[MacPorts] #42375: i386-elf-gcc error while compiling: cannot find crt0.o
MacPorts
noreply at macports.org
Wed Feb 5 11:14:23 PST 2014
#42375: i386-elf-gcc error while compiling: cannot find crt0.o
----------------------------+----------------------
Reporter: waves_no.13@… | Owner: stepan@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.2.1
Resolution: | Keywords:
Port: i386-elf-gcc |
----------------------------+----------------------
Changes (by macsforever2000@…):
* owner: macports-tickets@… => stepan@…
* keywords: i386-elf-gcc, cannot find crt0.o =>
Old 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!
New 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!
--
Comment:
In the future, please use WikiFormatting and Cc the port maintainers
({{{port info --maintainers i386-elf-gcc}}}).
--
Ticket URL: <https://trac.macports.org/ticket/42375#comment:1>
MacPorts <http://www.macports.org/>
Ports system for OS X
More information about the macports-tickets
mailing list