Forum Discussion
Altera_Forum
Honored Contributor
8 years agoHi,
--- Quote Start --- Thanks a lot, now I'm getting somewhere. I got a new compiler error that I think is something with the linker.
nios2-linux-gnu-gcc: unrecognized option `-shared'
/opt/nios2/lib/gcc/nios2-linux-uclibc/3.4.6/../../../../nios2-linux-uclibc/lib/crt1.o(.text+0x10): In function `_start':
: undefined reference to `main'
/opt/nios2/lib/gcc/nios2-linux-uclibc/3.4.6/../../../../nios2-linux-uclibc/lib/crt1.o(.text+0x14): In function `_start':
: undefined reference to `main'
collect2: ld returned 1 exit status
make: *** Error 1
make: Leaving directory `/home/developer/altera/nios2-linux/uClinux-dist/lib/lzo/build-lzo-2.03/src'
make: *** Error 1
make: Leaving directory `/home/developer/altera/nios2-linux/uClinux-dist/lib/lzo/build-lzo-2.03'
make: *** Error 2
make: Leaving directory `/home/developer/altera/nios2-linux/uClinux-dist/lib/lzo'
make: *** Error 2
make: Leaving directory `/home/developer/altera/nios2-linux/uClinux-dist/lib'
make: *** Error 2
make: Leaving directory `/home/developer/altera/nios2-linux/uClinux-dist/lib'
make: *** Error 1 --- Quote End --- If you are going to implement the 'no-mmu' version of Linux Kernel (=uClinux), it is impossible to use shared libraries because each task is loaded into each (different) address. So you must give up to compile the library 'lzo'.
Kernel/Library/Defaluts Selection --->
Customize Application/Library Settings
Exit
Exit
Library Configuration --->
Build liblzo <=== Do not select
If you want to use shared libraries, please change the kernel to mmu version. But you must also change the build tool to 'toolchain-mmu'. Kazu