Version 3.4.3: ix86-linux -> powerpc-aix4.2 Cross-Compiler

David Edelsohn dje@watson.ibm.com
Wed Jan 19 19:05:00 GMT 2005


>>>>> 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



More information about the Gcc mailing list