Altera_Forum
Honored Contributor
15 years agoTrouble compiling Syslib of NIOS2 App
Hi,
a while ago I created a little design containing a NIOS 2 and some peripherals (using Quartus II 9.0 and the SOPC Builder on Windows XP Pro / 32 Bit) . I also wrote some programs to learn how to access the hardware (hello world, letting some LEDs blink, etc.). Everything just worked fine (using NIOS II 9.0 IDE). Now (a couple of months later) I got back to this project and tried to compile my (once running) apps (using the same Software). The only thing I get now from the IDE, is an error during the build process (of the Syslib): "Compiling crt0.S... nios2-elf-gcc: argument to `-I' is missing" Using the Nios II Command Shell, I was able to get some more information
echo Compiling crt0.S...
mkdir -p ./
nios2-elf-gcc -MD -c -DSYSTEM_BUS_WIDTH=32 -DALT_NO_INSTRUCTION_EMULATION -I.. -Isystem_description -I
I/cygdrive/d/altera/90/ip/altera/sopc_builder_ip/altera_avalon_timer/HAL/inc -I/cygdrive/d/altera/90/ip/altera/sopc_builder_ip
...
It seems that the second "-I" option does not have an argument (obviously the problem). But how can I fix that? At the moment it seems to me, that this is hidden somewhere in some makefile (or a problem with an environment variable?!), but I'm lost tracking this issue down... I tried to understand the build process, but I'm no expert when it comes to makefiles and all the things used to build the executable. I also tried uninstalling the whole thing (Nios 2 IDE, Quartus, etc.), cleaning the Registry and reinstalling. Still it doesn't compile... I would really appreciate some help. Thanks...