Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
21 years ago

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.

Stefan

20 Replies