Opened 11 years ago

Last modified 2 months ago

#42375 assigned defect

i386-elf-gcc error while compiling: cannot find crt0.o — at Version 1

Reported by: waves_no.13@… Owned by: stepan@…
Priority: Normal Milestone:
Component: ports Version: 2.2.1
Keywords: Cc:
Port: i386-elf-gcc

Description (last modified by mf2k (Frank Schima))

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!

Change History (1)

comment:1 Changed 11 years ago by mf2k (Frank Schima)

Description: modified (diff)
Keywords: i386-elf-gcc cannot find crt0.o removed
Owner: changed from macports-tickets@… to stepan@…

In the future, please use WikiFormatting and Cc the port maintainers (port info --maintainers i386-elf-gcc).

Note: See TracTickets for help on using tickets.