0

I naively tried cross-compile glibc with gcc 4.7.3.0 on Ubuntu 18.04 using the following command line:

../glibc/configure --prefix=/usr --host=arm-linux-gnueabihf

After fixing all compilation errors I was able to compile it fine, but I'm not sure if the output is in the right format. After staging using

make DESTDIR=/home/username/staging install

the staging folder structure if completely different from the one on Raspberry Pi device. For example, libc.so is located in ...staging/usr/lib while on a device it is located in /usr/lib/arm-linux-gnueabihf.

I'm not sure I'm on the right path here. Does anybody have experience cross-compiling glibc on Ubuntu for RaspberryPi? What are correct parameters to pass to configure script? Do I need to use Raspberry tools to compile glibc?

Thank you in advance!

  • This is an incredibly bad idea. – goldilocks Feb 14 at 14:28

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.