Altera_Forum
Honored Contributor
15 years agoProblem with compiling hello.c
Hi everyone,
I've got a small problem regarding compiling the hello.c like it was said in the wiki (http://www.nioswiki.com/installnios2linux). There was no problem doing the stuff before. I used the prebuild BinaryToolchain although i don't put it in the /opt directory (no permissions). The verifying works also [1]. When i want to compile the hello.c, i get this error [2]. I know that i have no permissions on /opt... the includefiles aren't there anyway. I'm curious why it wont touch the include files on /home/working/nios2/lib/gcc/nios2-linux-uclibc/3.4.6/include Anyone got an idea? I think it might be linked up with the prefix stuff in the specs but i don't really know exaktly, i searched also for some config files, but none of them had any effects. For help, idea or even solution i would be grateful. :) [1]
calderch: pwd
/home/working
calderch: nios2-linux-uclibc-gcc -v
Reading specs from /home/working/nios2/bin/../lib/gcc/nios2-linux-uclibc/3.4.6/specs
Configured with: /root/buildroot/toolchain_build_nios2/gcc-3.4.6/configure --prefix=/opt/nios2 --build=i386-pc-linux-gnu --host=i386-pc-linux-gnu --target=nios2-linux-uclibc --enable-languages=c,c++ --disable-__cxa_atexit --enable-target-optspace --with-gnu-ld --disable-shared --disable-nls --enable-threads --enable-multilib
Thread model: posix
gcc version 3.4.6
[2]
calderch: nios2-linux-uclibc-gcc hello.c -o hello -elf2flt
cc1: /opt/nios2/lib/gcc/nios2-linux-uclibc/3.4.6/include: Permission denied
cc1: /opt/nios2/nios2-linux-uclibc/sys-include: Permission denied
cc1: /opt/nios2/nios2-linux-uclibc/include: Permission denied