Forum Discussion
Altera_Forum
Honored Contributor
20 years agoWell, I tried building the toolchain described by Marc, and I used the uClibc version on his site, patched the buildroot like he said, and used gss versions 3.4.3 and 3.4.2, no busybox, and the build fails with:
make -C internals make[4]: Entering directory `/mnt/usbhd/jdhar/buildroot/toolchain_build_nios2/uClibc/libc/misc/internals' "/mnt/usbhd/jdhar/buildroot/build_nios2/staging_dir/bin/nios2-linux-uclibc-"gcc -Wall -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -Os -funit-at-a-time -fno-builtin -nostdinc -D_LIBC -I../../../include -I. -isystem /mnt/usbhd/jdhar/buildroot/build_nios2/staging_dir/lib/gcc/nios2-linux-uclibc/3.4.2/include -DNDEBUG -c __uClibc_main.c -o __uClibc_main.o __uClibc_main.c:23:23: asm/errno.h: No such file or directory __uClibc_main.c: In function `__check_one_fd': __uClibc_main.c:72: error: `EBADF' undeclared (first use in this function) __uClibc_main.c:72: error: (Each undeclared identifier is reported only once __uClibc_main.c:72: error: for each function it appears in.) __uClibc_main.c: At top level: __uClibc_main.c:70: warning: '__check_one_fd' defined but not used __uClibc_main.c:92: warning: '__check_suid' defined but not used I got the binaries from marc directly, so I will try getting the 2.6.9 kernel and patching it as instructed on the page - but I'm not hopeful that it will work either... I tried removing the extra LFs by zipping/unzipping (I verified that it did remove them in fact).. and I replaced the linux-2.6.x directory in the microtronix setup files with the new directory and reinstalled. When I build, I get this at the very end: nios2_system.h: init/.version.o.d: done. LD init/built-in.o LD .tmp_vmlinux1 KSYM .tmp_kallsyms1.S AS .tmp_kallsyms1.o ./..tmp_kallsyms1.o.d: not found make[1]: *** [.tmp_kallsyms1.o] Error 127 make: *** [_all] Error 2 make: Leaving directory `/cygdrive/c/altera/kits/nios2/bin/eclipse/plugins/com.microtronix.nios2linux.kernel_1.4.0/linux-2.6.x' I changed the makefile from: dos2unix $(depfile); to just: $(depfile); I also tried removin the line altogether, and it didn't work... on the plus side though, it seems like it removed the Warning about the CPIO Archive