Forum Discussion
gtf-launch error while building library
I'm getting an error using Build->Library that indicates gtf-lauch is not found which results in an Error 127 while trying to later open the output file. I've verified that gtf-lauch exists and interestingly enough if I run the exact same makefile command from the NIOSII SDK shell it WORKS fine.
It's not clear to me why gtf-launch would not be detected from the Makefile but will work in the same shell that make was executed in? Here's the full details: Quartus Web Editiion 4.2SP1 NIOSII Version 1.1 ecos for NIOSII 1.1 Using NIOSII Development Kit Cyclone 1c20 "standard" FPGA image Selected Template: NIOSII Development Board and "default" packages. Then select Build->Library and I get the following output. As you can see gtf-launch was not found. [Initial output cut] ... make[1]: Entering directory `/cygdrive/c/altera/project/cyclone_1c20/sgltest_build/error/current' make[1]: Nothing to be done for `headers'. make[1]: Leaving directory `/cygdrive/c/altera/project/cyclone_1c20/sgltest_build/error/current' headers finished make -r -C hal/nios2/arch/current /cygdrive/c/altera/project/cyclone_1c20/sgltest_install/gtf-launch make[1]: Entering directory `/cygdrive/c/altera/project/cyclone_1c20/sgltest_build/hal/nios2/arch/current' make[1]: `/cygdrive/c/altera/project/cyclone_1c20/sgltest_install/gtf-launch' is up to date. make[1]: Leaving directory `/cygdrive/c/altera/project/cyclone_1c20/sgltest_build/hal/nios2/arch/current' make -r -C hal/nios2/arch/current /cygdrive/c/altera/project/cyclone_1c20/sgltest_install/include/cyg/hal/system.h make[1]: Entering directory `/cygdrive/c/altera/project/cyclone_1c20/sgltest_build/hal/nios2/arch/current' /cygdrive/c/altera/project/cyclone_1c20/sgltest_install/gtf-launch: not found /cygdrive/c/altera/project/cyclone_1c20/sgltest_install/gtf-launch --gtf=`cygpath -m /cygdrive/c/altera/kits/nios2/components/ecos/ecos-current/packages/hal/nios2/arch/current/gtf/system.h.gtf` --output-directory=`cygpath -m /cygdrive/c/altera/project/cyclone_1c20/sgltest_install/include/cyg/hal/` make[1]: *** [/cygdrive/c/altera/project/cyclone_1c20/sgltest_install/include/cyg/hal/system.h] Error 127 make[1]: Leaving directory `/cygdrive/c/altera/project/cyclone_1c20/sgltest_build/hal/nios2/arch/current' make: *** [build] Error 2 make: Leaving directory `/cygdrive/c/altera/project/cyclone_1c20/sgltest_build' As this point I verified that gtf-lauch was in the expected location: [SOPC Builder]$ ls -l total 3 -rw-r--r-- 1 Administ mkpasswd 387 Mar 21 11:13 gtf-launch drwxr-xr-x 6 Administ mkpasswd 0 Mar 21 11:13 include/ drwxr-xr-x 2 Administ mkpasswd 0 Mar 21 11:13 lib/ -rwxr-xr-x 1 Administ mkpasswd 1425 Mar 21 13:48 program_flash* /cygdrive/c/altera/project/cyclone_1c20/sgltest_install I then copied the command that had failed during the Make into the NIOSII SDK Shell and ran it. This command successfully ran and built the system.h file. I then changed directory to the .../sgltest_build directory and did a "make". It failed to run gtf-launch four more times on 4 different directories/outputs. If I ran the command that failed manually at the shell prompt, all of the associated files were built and then the makefile continued on after re-running. Using this method I was able to build the library. Tedious, but at least it works. At this point I was able to build, download, and test the example applications and they seem to work. Any thoughts as to why this will run in the shell but not the Makefile? Thanks for all your help. Stefan20 Replies
- Altera_Forum
Honored Contributor
While the majority of people don't run into this problem, and I've never been able to reproduce it myself, you're not the first to run into this. In particular aihuazou reported this problem on this forum. In his case it was fixed by upgrading his operating system. He was previously running Windows NT.
I've tried this on the same version of Windows without problems, so I don't think it's Windows NT itself that's at fault. My guess is that the problem is something to do with drive configuration, permissions, cygwin configuration or the likes. Sorry I don't have a good answer for you, but if you get any clues as to what the problem might be - please post your findings. - Altera_Forum
Honored Contributor
Thanks. I'm running Windows 2000 SP4 and have tried this on the local drive as well as a networked drive. Do you typically use Windows XP then?
If I find a solution, I'll post it. Anyone else encounter and solve this problem - other than an OS upgrade? Stefan - Altera_Forum
Honored Contributor
One other thought.
Do you think this could be related to the fact that I started with Quartus V4.0 and NIOSII V1.0 and over time have upgraded to Quartus V4.1 then V4.2 and NIOSII V1.1? I've also installed and run uClinux as well for the Altera development kit. Stefan - Altera_Forum
Honored Contributor
I don't think it could be related to these things, since I've done very similar things myself - but I wouldn't rule anything out at the moment.
The one thing I haven't done myself is that I've never had ucLinux and eCos on the same machine, but I believe others have been able to get them to happily coexist. - Altera_Forum
Honored Contributor
I also meet this problem!
I can't build uclinux and ecos2.0! make[1]: Entering directory `/cygdrive/e/altera/kits/nios2/examples/MyProject/Redboot/redboot_build/hal/nios2/arch/current' /cygdrive/e/altera/kits/nios2/examples/MyProject/Redboot/redboot_install/gtf-launch --gtf=`cygpath -m /cygdrive/e/altera/kits/nios2/components/ecos/ecos-current/packages/hal/nios2/arch/current/gtf/system.h.gtf` --output-directory=`cygpath -m /cygdrive/e/altera/kits/nios2/examples/MyProject/Redboot/redboot_install/include/cyg/hal/` make[1]: Leaving directory `/cygdrive/e/altera/kits/nios2/examples/MyProject/Redboot/redboot_build/hal/nios2/arch/current' /cygdrive/e/altera/kits/nios2/examples/MyProject/Redboot/redboot_install/gtf-launch: not found make: Leaving directory `/cygdrive/e/altera/kits/nios2/examples/MyProject/Redboot/redboot_build' - Altera_Forum
Honored Contributor
Starting with Quartus 4.2 already installed, I did the following:
1. Installed version 1.1 of the Nios II kit. 2. Installed version 1.3 of ucLinux. 3. Installed eCos for Nios II 1.1. I was able to succesfully build a Nios II eCos project. However I did notice that ucLinux modifies the Nios II shell path to have /usr/local/bin at the front. It may be possible that you have something installed there which is interfering with the build process (either due to an older version of ucLinux, or some other package you may have installed). To ensure this isn't the case, try editting the file kits/nios2/user.bashrc and comment out the line: export PATH="/usr/local/bin:$PATH" then restart the shell and try to run nios2configtool. - Altera_Forum
Honored Contributor
I tried once, but still won't do!
I can't build uclinux and ecos2.0! - Altera_Forum
Honored Contributor
I suspect that the connection to ucLinux may be a red herring here. However to be sure have you tried the following:
1. uninstall eCos, ucLinux, the Nios II kit, and Quartus. 2. reinstall everything except ucLinux. - Altera_Forum
Honored Contributor
Hi:
there are two possiblities: one is that your PC has been affected virus , the second is that you should fixed the " make " command in the NIOS IDE to "make INSTALL_DIR=<PATH>" ,i think you success if you do so - Altera_Forum
Honored Contributor
I also encountered this annoying "gtf-launch" problem, excactly as described by StefanLevie.
I use Quartus 5.0 and Nios 5.0 and have never installed uclinux, so uclinux cannot be the problem. Has anybody found a solution yet?