[MacPorts] #42375: i386-elf-gcc error while compiling: cannot find crt0.o
MacPorts
noreply at macports.org
Wed Feb 5 09:23:38 PST 2014
#42375: i386-elf-gcc error while compiling: cannot find crt0.o
----------------------------------------------+----------------------------
Reporter: waves_no.13@… | Owner: macports-
Type: defect | tickets@…
Priority: Normal | Status: new
Component: ports | Milestone:
Keywords: i386-elf-gcc, cannot find crt0.o | Version: 2.2.1
| Port: i386-elf-gcc
----------------------------------------------+----------------------------
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!
--
Ticket URL: <https://trac.macports.org/ticket/42375>
MacPorts <http://www.macports.org/>
Ports system for OS X
More information about the macports-tickets
mailing list