Altera_Forum
Honored Contributor
20 years agobuild nios2-elf-gcc with fedore4
Hi,
I try to build the compiler tools with fedora4. Binutils compiled and installed well. Following error on the screen when trying building gcc :checking whether byte ordering is bigendian... cross-compiling...
unknown
checking to probe for byte ordering... /usr/local/nios2-elf/nios2-elf/bin/ld: crt0.o: No such file: No such file or directory
collect2: ld returned 1 exit status
unknown
configure: error: unknown endianess - sorry
/src/src/gcc/libiberty/configure: line 3289: exit: please: numeric argument required
/src/src/gcc/libiberty/configure: line 3289: exit: please: numeric argument required I used : # ../configure --target=nios2-elf --prefix=/usr/local/nios2-elf --with-newlib --enable-languages=c,c++ and then make. I'm using gcc32 (not gcc 4.0), and the sources from the linux CDRom from Altera (Nios2 - 5.0). I first extracted GNUSRC.TGZ from the COMMON directory, and then copied in the sources found in LINUX/GNUBIN.TGZ Any idea what I do wrong? Stefaan