Forum Discussion
Altera_Forum
Honored Contributor
20 years agoI got some errors when build the cross tool chain
1. ==================================================== src is from linux2nios CD->GUNSRC.TGZ binutils->OK gcc->error elf2flt->OK here is the gcc error: rule to make target `../../../gcc/gcc/config/nios2/lib2-divmod.c', needed by
`libgcc.mk'. Stop.
make: Leaving directory `/usr/local/src/nios2/build/gcc/gcc'
make: *** Error 2 2. ================================================== windows_src: binutils->error gcc->ok elf2flt->ok here is the gcc error ...
checking whether ANSI C string concatenation works ... yes
*** ld does not support target nios2-elf
*** see ld/configure.tgt for supported targets
make: *** Error 1 3. ================================================== I fount the size of nios2-elf-gcc ar ld ... form inux2nios CD->GUNBIN.TGZ is larger than the ones that I built out. i.e. GUNBIN.TGZ->nios2-elf-gcc 409,858 byte /usr/local/bin/nios2-elf-gcc 269,679 byte( which is I built out) but I tested both of them could worke well. Why? Is it the static-library and dynamic-library? 4. ================================================== I cannot built out /usr/local/nios2-elf/lib (there are libm.a libc.a ...) and /usr/local/nios2-elf/include (some *.h files used for C) In which step are they during building cross tool chain?