lilzz
Posts: 411
Joined: Sat Nov 30, 2013 5:27 pm

Howto Patch up missing crt0.o during cross compiling

Fri Oct 17, 2014 12:33 am

I trying to compile Zlib on Mac for ARM based linux system.

export cross=/opt/local/bin/arm-none-eabi-
CC="${cross}gcc" AR="${cross}ar r" RANLIB="${cross}ranlib"
./configure
make

Error:../../../arm-none-eabi/bin/ld: cannot find crt0.o: No such file or directory
collect2: error: ld returned 1 exit status

SOmeone says the need to copy crt0.o over. But how? where to copy from and to?

Return to “Troubleshooting”