On Mon, Apr 12, 2021, 9:01 PM Tanushree Baindur <tanushree.bain...@gmail.com> wrote:
> Thanks a lot for your reply. I used menuconfig to generate the .config file > this time and noticed the elf relocation error for 64 bit. So I enabled the > option "Build 32-bit simulation on 64-bit machine" under System Type to > set CONFIG_SIM_M32. > > I now get the following linker error: > LD: nuttx > /usr/bin/ld: skipping incompatible /usr/lib/x86_64-linux-gnu/libz.so when > searching for -lz > /usr/bin/ld: skipping incompatible /usr/lib/x86_64-linux-gnu/libz.a when > searching for -lz > /usr/bin/ld: cannot find -lz > /usr/bin/ld: skipping incompatible /usr/lib/x86_64-linux-gnu/libz.so when > searching for -lz > collect2: error: ld returned 1 exit status > make[1]: *** [Makefile:323: nuttx] Error 1 > make[1]: Leaving directory > '/home/tanushreebaindur/nuttx-code/nuttx/arch/sim/src' > make: *** [tools/Makefile.unix:422: nuttx] Error 2 > > Are you using a 32 bit libz? I just compiled a 32 bit libz. Is there a > path setting to pick up the libz from a custom directory? I searched for > it, but couldn't find one. > Yes you will need a 32bit version of zlib. For me on Fedora that was dnf install zlib-devel.i686 >