Opened 11 years ago
Last modified 2 months ago
#42375 assigned defect
i386-elf-gcc error while compiling: cannot find crt0.o — at Initial Version
Reported by: | waves_no.13@… | Owned by: | macports-tickets@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.2.1 |
Keywords: | Cc: | ||
Port: | i386-elf-gcc |
Description
Hello,
I'm trying to cross compile a simple helloworld.c program on my Mac for an embedded Linux OS. Evrytime I try i get the following error: xxxxx-MacBook-Pro:Hallo_Welt f0xy$ i386-elf-gcc -g -Wall -o test main.c /opt/local/lib/gcc/i386-elf/4.7.2/../../../../i386-elf/bin/ld: cannot find crt0.o: No such file or directory collect2: Fehler: ld gab 1 als Ende-Status zurück
As far as I understand crt0.o is the C runtime libraray and ld the linker, so it's a missing file?...
Is there a workaround to fix this? It's my first time working with cross compilers and on an unix based OS.
Thanks a lot for any responds that might help!
Note: See
TracTickets for help on using
tickets.