From: Marc S. <ma...@au...> - 2001-03-14 03:51:08
|
(Forwarded for general information to the public mailing list at aix...@os...) The version of gcc that is currently out there is "beta" and will soon be superceded by another version that was developed for the GNUPro Tools from Cygnus. My understanding is that Cygnus' versions do not map precisely to the "standard" versions. I'll try to get a direct response from Cygnus on how to answer the question. It is "later" than 2.95.2 from my understanding. Hopefully all of this will settle down at the 3.0 merge as the AIX fixes get pulled into the main branches. I believe that this level does contain a number of fixes for AIX which are not in the standard GCC release. Those pthread.h errors are fixed already in the AIX 4.3.3 service stream and in AIX 5.1. What's szbuf? That just looks like a warning - shouldn't have stopped anything from compiling. In AIX, the format argument to printf is const char* - szbuf doesn't smell like a const. I would expect a warning in that circumstance. Marc > > Sorry to repost a message, but I'm hoping someone can answer my questions. > I've got code that builds with GCC 2.95.2 on Solaris and Linux. I get > compile errors with the GCC compiler in the AIX toolkit. Here are my > questions: > > 1. Is the compiler in the toolkit non-standard? Does it contain fixes for > AIX that are not part of a standard GCC release? > > 2. What level of GCC is it based on? GCC -v returns "gcc version > 2.9-aix43-000718". > > Thanks! > Mike Allen > > -----Original Message----- > From: Mike Allen > Sent: Tuesday, March 06, 2001 1:30 PM > To: 'aix...@au...' > Subject: Compile errors from GCC tools for AIX (aix43-000718) > > > Greetings, > > I just installed the GCC tools for AIX (aix43-000718). I'm trying to > compile code that builds OK with GCC 2.95.2 on Solaris and Linux. I'm > getting the following warnings: > > In file included from atmemmgr.cpp:37: > /usr/include/pthread.h:113: warning: missing white space after `#define > PTHREAD_MUTEX_INITIALIZER' > /usr/include/pthread.h:128: warning: missing white space after `#define > PTHREAD_COND_INITIALIZER' > /usr/include/pthread.h:147: warning: missing white space after `#define > PTHREAD_RWLOCK_INITIALIZER' > /usr/include/pthread.h:157: warning: missing white space after `#define > PTHREAD_ONCE_INIT' > > > Here is the header from the pthread.h file: > > /* static char sccsid[] = "@(#)15 1.32.2.32 > src/bos/usr/ccs/lib/libpthreads/pthread.h, libpth, bos43R 11/24/99 > 12:02:08"; */ > /* > * COMPONENT_NAME: libpth > * > * FUNCTIONS: > * > * ORIGINS: 27, 71, 83 > * > * LEVEL 1, 5 Years Bull Confidential Information > * > * (c) Copyright 1990, 1991, 1992, 1993 OPEN SOFTWARE FOUNDATION, INC. > * ALL RIGHTS RESERVED > * > * OSF/1 1.2 > */ > > > > > I edited the pthread.h file to add white space to the indicated lines so > that I could go further. Then I hit this warning: > > atmemmgr.cpp:1368: warning: format not a string literal, argument types not > checked > > Here is the offending line from the source: > > fprintf(stderr,szBuf); > > Again, this compiles fine with gcc 2.95.2 on Linux. There doesn't seem to > be any way to turn off this warning. > > > > > What level is the compiler in this package? Here is what I get from gcc -v > > Reading specs from > /usr/gcc/aix43-000718/H-powerpc-ibm-aix4.3.3.0/bin/../lib/gcc-lib/powerpc-ib > m-aix4.3.3.0/2.9-aix43-000718/specs > gcc version 2.9-aix43-000718 > > > Thanks, > Mike Allen > ----------- > WRQ, Inc. > Seattle, WA > > 206-217-7715 > _______________________________________________ > aixtoolbox-list mailing list > aix...@os... > http://oss.software.ibm.com/developerworks/opensource/mailman/listinfo/aixtoolbox-list > -- Marc Stephenson IBM Server Group - Austin, TX Internet: ma...@au... NOTES: ma...@us... Phone: 512-327-5670 T/L 678-3189 |