This is the mail archive of the crossgcc@cygnus.com mailing list for the crossgcc project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
I've built an egcs 1.1b powerpc cross compiler on Linux and now I'm trying to compile and link a "hello world" C program. I'm trying to build this program to run on a powerpc based AIX machine. When I try to build, I get this output: > make aixhello CFLAGS="-b powerpc-eabi -mcpu=604" LDFLAGS="-b aixcoff-rs6000 -lc -lgcc" aixhello powerpc-eabi-gcc -b powerpc-eabi -mcpu=604 -o aixhello.o -c hello.c powerpc-eabi-ld aixhello.o /home/tomw/aix43/powerpc-eabi/lib//crt0.o /home/tomw/aix43/powerpc-eabi/lib//ecrtn.o -b aixcoff-rs6000 -lc -lgcc -o aixhello /home/tomw/aix43/powerpc-eabi/lib/libc.a(exit.o): In function `exit': /home/tomw/newlib-1.8.1/objdir/powerpc-eabi/newlib/libc/stdlib/../../../../ ../newlib/libc/stdlib/exit.c:70: undefined reference to `_exit' make: *** [aixhello] Error 1 I've seen some linker script files, but I'm not sure how to configure them for the AIX-COFF target. The examples are configured for a powerpc-elf target. How do I know what other libraries I need to link with to get everything? Can I even do what I am attempting to do? How do I find out how to configure a linker script file for an AIX powerpc machine? Help!?!?!?!?!?!?! Thanks in advance..... Peace..... Tom Williams tom.williams@diversifiedsoftware.com ________________________________________________ To get help for the crossgcc list, send mail to crossgcc-request@cygnus.com with the text 'help' (without the quotes) in the body of the message.