This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Version 3.4.3: ix86-linux -> powerpc-aix4.2 Cross-Compiler
- From: David Edelsohn <dje at watson dot ibm dot com>
- To: Scott Dudley <scott at telesoft dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Wed, 19 Jan 2005 12:48:35 -0500
- Subject: Re: Version 3.4.3: ix86-linux -> powerpc-aix4.2 Cross-Compiler
- References: <41EE982D.7030306@telesoft.com>
>>>>> Scott Dudley writes:
Scott> // a.c
Scott> void main(void) {}
Scott> Works:
Scott> $ /usr/local/cross-tools/powerpc-ibm-aix4.2.1.0/bin/gcc -Wall -c a.c
Scott> a.c:1: warning: return type of 'main' is not `int'
main() should return int, not void.
Scott> Fails:
Scott> $ /usr/local/cross-tools/powerpc-ibm-aix4.2.1.0/bin/gcc -Wall a.c
Something is incompatible between the installed Binutils and the
installed libraries. All of the errors are due to libc. I would use the
crosstools (.../powerpc-ibm-aix4.2.1.0/bin/nm) and look at the installed
target libc.a. Either nm is broken or libc.a is corrupted or nm is not
looking at the correct libc.a.
David