This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]