compiling boost on AIX gives pthread errors
Hi, I am having problems with compiling boost 1.35 on AIX 5.3 with gcc 4.0.0. I get the pthread errors below. I am new to AIX, so I have hopes that this can be easily solved.... Cheers, Andrej ibm1# make ./tools/jam/src/bin.aix/bjam --user-config=user-config.jam --with-date_time ...patience... ...found 453 targets... ...updating 4 targets... gcc.compile.c++ bin.v2/libs/date_time/build/gcc-4.0.0/release/threading-multi/greg_month.o /usr/include/pthread.h:596: error: 'pthread_rwlock_t' was not declared in this scope /usr/include/pthread.h:596: error: expected primary-expression before ')' token /usr/include/pthread.h:599: error: 'pthread_rwlock_t' was not declared in this scope /usr/include/pthread.h:599: error: expected primary-expression before ',' token /usr/include/pthread.h:599: error: expected primary-expression before 'const' /usr/include/pthread.h:599: error: initializer expression list treated as compound expression /usr/include/pthread.h:603: error: 'pthread_rwlock_t' was not declared in this scope /usr/include/pthread.h:603: error: expected primary-expression before ')' token /usr/include/pthread.h:606: error: 'pthread_rwlock_t' was not declared in this scope /usr/include/pthread.h:606: error: expected primary-expression before ')' token /usr/include/pthread.h:609: error: 'pthread_rwlock_t' was not declared in this scope /usr/include/pthread.h:609: error: expected primary-expression before ')' token /usr/include/pthread.h:612: error: 'pthread_rwlock_t' was not declared in this scope /usr/include/pthread.h:612: error: expected primary-expression before ')' token /usr/include/pthread.h:615: error: 'pthread_rwlock_t' was not declared in this scope /usr/include/pthread.h:615: error: expected primary-expression before ')' token /usr/include/pthread.h:618: error: 'pthread_rwlockattr_t' was not declared in this scope /usr/include/pthread.h:618: error: expected primary-expression before ')' token /usr/include/pthread.h:621: error: expected ',' or '...' before '*' token /usr/include/pthread.h:625: error: 'pthread_rwlockattr_t' was not declared in this scope /usr/include/pthread.h:625: error: expected primary-expression before ')' token /usr/include/pthread.h:628: error: 'pthread_rwlockattr_t' was not declared in this scope /usr/include/pthread.h:628: error: expected primary-expression before ',' token /usr/include/pthread.h:628: error: expected primary-expression before 'int' /usr/include/pthread.h:628: error: initializer expression list treated as compound expression /usr/include/pthread.h:639: error: 'pthread_rwlock_t' was not declared in this scope /usr/include/pthread.h:639: error: expected primary-expression before ',' token /usr/include/pthread.h:639: error: expected primary-expression before 'const' /usr/include/pthread.h:639: error: initializer expression list treated as compound expression /usr/include/pthread.h:643: error: 'pthread_rwlock_t' was not declared in this scope /usr/include/pthread.h:643: error: expected primary-expression before ',' token /usr/include/pthread.h:643: error: expected primary-expression before 'const' /usr/include/pthread.h:643: error: initializer expression list treated as compound expression /usr/include/pthread.h:666: error: 'pthread_spinlock_t' was not declared in this scope /usr/include/pthread.h:666: error: expected primary-expression before ',' token /usr/include/pthread.h:666: error: expected primary-expression before 'int' /usr/include/pthread.h:666: error: initializer expression list treated as compound expression /usr/include/pthread.h:669: error: 'pthread_spinlock_t' was not declared in this scope /usr/include/pthread.h:669: error: expected primary-expression before ')' token /usr/include/pthread.h:672: error: 'pthread_spinlock_t' was not declared in this scope /usr/include/pthread.h:672: error: expected primary-expression before ')' token /usr/include/pthread.h:675: error: 'pthread_spinlock_t' was not declared in this scope /usr/include/pthread.h:675: error: expected primary-expression before ')' token /usr/include/pthread.h:678: error: 'pthread_spinlock_t' was not declared in this scope /usr/include/pthread.h:678: error: expected primary-expression before ')' token /usr/include/pthread.h:686: error: 'pthread_barrierattr_t' was not declared in this scope /usr/include/pthread.h:686: error: expected primary-expression before ')' token /usr/include/pthread.h:689: error: 'pthread_barrierattr_t' was not declared in this scope /usr/include/pthread.h:689: error: expected primary-expression before ')' token /usr/include/pthread.h:692: error: expected ',' or '...' before '*' token /usr/include/pthread.h:695: error: 'pthread_barrierattr_t' was not declared in this scope /usr/include/pthread.h:695: error: expected primary-expression before ',' token /usr/include/pthread.h:695: error: expected primary-expression before 'int' /usr/include/pthread.h:695: error: initializer expression list treated as compound expression /usr/include/pthread.h:703: error: 'pthread_barrier_t' was not declared in this scope /usr/include/pthread.h:703: error: expected primary-expression before ',' token /usr/include/pthread.h:703: error: expected primary-expression before 'const' /usr/include/pthread.h:703: error: expected primary-expression before 'unsigned' /usr/include/pthread.h:703: error: initializer expression list treated as compound expression /usr/include/pthread.h:707: error: 'pthread_barrier_t' was not declared in this scope /usr/include/pthread.h:707: error: expected primary-expression before ')' token /usr/include/pthread.h:710: error: 'pthread_barrier_t' was not declared in this scope /usr/include/pthread.h:710: error: expected primary-expression before ')' token __________________________________________________________ Sent from Yahoo! Mail. A Smarter Email http://uk.docs.yahoo.com/nowyoucan.html
Hi Andrej, On May 20, 2008, at 6:35 AM, Andrej van der Zee wrote:
I am having problems with compiling boost 1.35 on AIX 5.3 with gcc 4.0.0. I get the pthread errors below. I am new to AIX, so I have hopes that this can be easily solved....
We don't test with gcc on Aix, but we should. My system seems to compile this file okay : gcc.compile.c++ bin.v2/libs/date_time/build/gcc-4.0.0/release/ threading-multi/greg_month.o "g++" -ftemplate-depth-128 -O3 -finline-functions -Wno-inline - Wall -fPIC -pthread -DBOOST_ALL_DYN_LINK=1 -DBOOST_ALL_NO_LIB=1 - DDATE_TIME_INLINE -DNDEBUG -I"." -c -o "bin.v2/libs/date_time/build/ gcc-4.0.0/release/threading-multi/greg_month.o" "libs/date_time/src/ gregorian/greg_month.cpp" This is with Boost 1.35.0 and AIX 5.3 (31488 MB 8 CPU PowerPC_POWER5 model IBM,9118-575) -- Noel
Hi, Thanks for your reply. Are there any special configure options or packages that you installed? I installed AIX for the first time so maybe I did something bad. BTW, I noticed that pthread_rwlock_t (the struct my compiler does not recognize) is defined in "sys/types.h" and that this file is included from pthread.h like this: #ifndef _H_TYPES #include <sys.types.h> #endif But, _H_TYPES is defined at this point and therefor "sys/types.h" is never included! I checked removing "sys/types.h" totally from my system but the compiler does not complain about a missing "sys/types.h" at all! Please anybody? Cheers, Andrej --- "K. Noel Belcourt" <kbelco@sandia.gov> wrote:
Hi Andrej,
On May 20, 2008, at 6:35 AM, Andrej van der Zee wrote:
I am having problems with compiling boost 1.35 on AIX 5.3 with gcc 4.0.0. I get the pthread errors below. I am new to AIX, so I have hopes that this can be easily solved....
We don't test with gcc on Aix, but we should. My system seems to compile this file okay :
gcc.compile.c++ bin.v2/libs/date_time/build/gcc-4.0.0/release/ threading-multi/greg_month.o
"g++" -ftemplate-depth-128 -O3 -finline-functions -Wno-inline - Wall -fPIC -pthread -DBOOST_ALL_DYN_LINK=1 -DBOOST_ALL_NO_LIB=1 - DDATE_TIME_INLINE -DNDEBUG -I"." -c -o "bin.v2/libs/date_time/build/ gcc-4.0.0/release/threading-multi/greg_month.o" "libs/date_time/src/ gregorian/greg_month.cpp"
This is with Boost 1.35.0 and AIX 5.3 (31488 MB 8 CPU PowerPC_POWER5 model IBM,9118-575)
-- Noel
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-users
__________________________________________________________ Sent from Yahoo! Mail. A Smarter Email http://uk.docs.yahoo.com/nowyoucan.html
On May 20, 2008, at 4:36 PM, Andrej van der Zee wrote:
Are there any special configure options or packages that you installed? I installed AIX for the first time so maybe I did something bad.
Possibly, but it would be helpful if you sent the full compile line for greg_month.cpp, so we can compare them for differences.
BTW, I noticed that pthread_rwlock_t (the struct my compiler does not recognize) is defined in "sys/types.h" and that this file is included from pthread.h like this:
#ifndef _H_TYPES #include <sys.types.h> #endif
But, _H_TYPES is defined at this point and therefor "sys/types.h" is never included! I checked removing "sys/types.h" totally from my system but the compiler does not complain about a missing "sys/types.h" at all!
Don't know that I'm much help here. Perhaps you're using a gcc you built and installed yourself (rather than the one in /usr/bin/gcc)? -- Noel
Hi, I think it is related to my AIX installation or something (sorry for misusing the boost news group). Even the smallest program does not compile: #include <iostream> using namespace std; int main (void) { cout << "Hello World!\n"; return 0; } When running gcc main.cpp I some of the same errors as when compiling boost: ibm1# gcc main.cpp /opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/wchar.h:299: error: 'mbstate_t' has not been declared /opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/wchar.h:302: error: 'mbstate_t' has not been declared /opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/c++/cwchar:71: error: '::mbstate_t' has not been declared /opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/c++/cwchar:145: error: '::btowc' has not been declared /opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/c++/cwchar:150: error: '::fwide' has not been declared /opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/c++/cwchar:151: error: '::fwprintf' has not been declared /opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/c++/cwchar:152: error: '::fwscanf' has not been declared /opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/c++/cwchar:155: error: '::mbrlen' has not been declared /opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/c++/cwchar:156: error: '::mbrtowc' has not been declared /opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/c++/cwchar:157: error: '::mbsinit' has not been declared /opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/c++/cwchar:158: error: '::mbsrtowcs' has not been declared /opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/c++/cwchar:161: error: '::swprintf' has not been declared /opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/c++/cwchar:162: error: '::swscanf' has not been declared /opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/c++/cwchar:164: error: '::vfwprintf' has not been declared /opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/c++/cwchar:168: error: '::vswprintf' has not been declared /opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/c++/cwchar:172: error: '::vwprintf' has not been declared /opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/c++/cwchar:176: error: '::wcrtomb' has not been declared /opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/c++/cwchar:187: error: '::wcsrtombs' has not been declared /opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/c++/cwchar:197: error: '::wctob' has not been declared /opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/c++/cwchar:198: error: '::wmemcmp' has not been declared /opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/c++/cwchar:199: error: '::wmemcpy' has not been declared /opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/c++/cwchar:200: error: '::wmemmove' has not been declared /opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/c++/cwchar:201: error: '::wmemset' has not been declared /opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/c++/cwchar:202: error: '::wprintf' has not been declared /opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/c++/cwchar:203: error: '::wscanf' has not been declared /opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/c++/cwchar:223: error: '::wcsstr' has not been declared /opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/c++/cwchar: In function 'wchar_t* std::wcsstr(wchar_t*, const wchar_t*)': /opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/c++/cwchar:227: error: invalid conversion from 'const wchar_t*' to 'wchar_t*' /opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/c++/cwchar:227: error: initializing argument 1 of 'wchar_t* std::wcsstr(wchar_t*, const wchar_t*)' /opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/c++/cwchar: At global scope: /opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/c++/cwchar:229: error: '::wmemchr' has not been declared /opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/c++/cwchar: In function 'wchar_t* std::wmemchr(wchar_t*, wchar_t, size_t)': /opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/c++/cwchar:233: error: invalid conversion from 'const wchar_t*' to 'wchar_t*' /opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/c++/cwchar:233: error: initializing argument 1 of 'wchar_t* std::wmemchr(wchar_t*, wchar_t, size_t)' /opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/c++/bits/postypes.h: At global scope: /opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/c++/bits/postypes.h:210: error: 'mbstate_t' was not declared in this scope /opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/c++/bits/postypes.h:210: error: template argument 1 is invalid /opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/c++/bits/postypes.h:210: error: invalid type in declaration before ';' token /opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/c++/bits/postypes.h:212: error: 'mbstate_t' was not declared in this scope /opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/c++/bits/postypes.h:212: error: template argument 1 is invalid /opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/c++/bits/postypes.h:212: error: invalid type in declaration before ';' token /opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/c++/bits/char_traits.h:67: error: 'mbstate_t' in namespace 'std' does not name a type /opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/c++/bits/char_traits.h:237: error: 'mbstate_t' does not name a type /opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/c++/bits/char_traits.h:307: error: 'mbstate_t' does not name a type /opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/c++/bits/char_traits.h: In static member function 'static int std::char_traits<wchar_t>::compare(const wchar_t*, const wchar_t*, size_t)': /opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/c++/bits/char_traits.h:323: error: 'wmemcmp' was not declared in this scope /opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/c++/bits/char_traits.h: In static member function 'static const wchar_t* std::char_traits<wchar_t>::find(const wchar_t*, size_t, const wchar_t&)': /opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/c++/bits/char_traits.h:331: error: invalid conversion from 'const wchar_t*' to 'wchar_t*' /opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/c++/bits/char_traits.h:331: error: initializing argument 1 of 'wchar_t* std::wmemchr(wchar_t*, wchar_t, size_t)' /opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/c++/bits/char_traits.h: In static member function 'static wchar_t* std::char_traits<wchar_t>::move(wchar_t*, const wchar_t*, size_t)': /opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/c++/bits/char_traits.h:335: error: 'wmemmove' was not declared in this scope /opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/c++/bits/char_traits.h: In static member function 'static wchar_t* std::char_traits<wchar_t>::copy(wchar_t*, const wchar_t*, size_t)': /opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/c++/bits/char_traits.h:339: error: 'wmemcpy' was not declared in this scope /opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/c++/bits/char_traits.h: In static member function 'static wchar_t* std::char_traits<wchar_t>::assign(wchar_t*, size_t, wchar_t)': /opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/c++/bits/char_traits.h:343: error: 'wmemset' was not declared in this scope /opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/c++/bits/localefwd.h: At global scope: /opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/c++/bits/localefwd.h:124: error: 'mbstate_t' was not declared in this scope /opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/c++/bits/localefwd.h:124: error: template argument 3 is invalid /opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/c++/bits/localefwd.h:126: error: 'mbstate_t' was not declared in this scope /opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/c++/bits/localefwd.h:126: error: template argument 3 is invalid /opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/c++/bits/codecvt.h:333: error: 'mbstate_t' was not declared in this scope /opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/c++/bits/codecvt.h:333: error: template argument 3 is invalid /opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/c++/bits/codecvt.h:333: error: explicit specialization of non-template '<type error>' /opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/c++/bits/codecvt.h:334: error: 'mbstate_t' was not declared in this scope /opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/c++/bits/codecvt.h:334: error: template argument 3 is invalid /opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/c++/bits/codecvt.h:391: error: 'mbstate_t' was not declared in this scope /opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/c++/bits/codecvt.h:391: error: template argument 3 is invalid /opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/c++/bits/codecvt.h:391: error: explicit specialization of non-template '<type error>' /opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/c++/bits/codecvt.h:392: error: 'mbstate_t' was not declared in this scope /opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/c++/bits/codecvt.h:392: error: template argument 3 is invalid /opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/c++/bits/locale_facets.tcc:2550: error: 'mbstate_t' was not declared in this scope /opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/c++/bits/locale_facets.tcc:2550: error: template argument 3 is invalid /opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/c++/bits/locale_facets.tcc:2555: error: 'mbstate_t' was not declared in this scope /opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/c++/bits/locale_facets.tcc:2555: error: template argument 3 is invalid /opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/c++/bits/locale_facets.tcc:2556: error: 'mbstate_t' was not declared in this scope /opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/c++/bits/locale_facets.tcc:2556: error: template argument 3 is invalid /opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/c++/bits/locale_facets.tcc:2556: error: template-id 'use_facet<<expression error> >' for 'const int& std::use_facet(const std::locale&)' does not match any template declaration /opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/c++/bits/locale_facets.tcc:2612: error: 'mbstate_t' was not declared in this scope /opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/c++/bits/locale_facets.tcc:2612: error: template argument 3 is invalid /opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/c++/bits/locale_facets.tcc:2612: error: template-id 'has_facet<<expression error> >' for 'bool std::has_facet(const std::locale&)' does not match any template declaration /opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/c++/bits/locale_facets.tcc:2677: error: 'mbstate_t' was not declared in this scope /opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/c++/bits/locale_facets.tcc:2677: error: template argument 3 is invalid /opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/c++/bits/locale_facets.tcc:2682: error: 'mbstate_t' was not declared in this scope /opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/c++/bits/locale_facets.tcc:2682: error: template argument 3 is invalid /opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/c++/bits/locale_facets.tcc:2683: error: 'mbstate_t' was not declared in this scope /opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/c++/bits/locale_facets.tcc:2683: error: template argument 3 is invalid /opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/c++/bits/locale_facets.tcc:2683: error: template-id 'use_facet<<expression error> >' for 'const int& std::use_facet(const std::locale&)' does not match any template declaration /opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/c++/bits/locale_facets.tcc:2739: error: 'mbstate_t' was not declared in this scope /opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/c++/bits/locale_facets.tcc:2739: error: template argument 3 is invalid /opt/freeware/lib/gcc/powerpc-ibm-aix5.1.0.0/4.0.0/include/c++/bits/locale_facets.tcc:2739: error: template-id 'has_facet<<expression error> >' for 'bool std::has_facet(const std::locale&)' does not match any template declaration I am probably doing something silly. Any idea? Thanks, Andrej --- "K. Noel Belcourt" <kbelco@sandia.gov> wrote:
On May 20, 2008, at 4:36 PM, Andrej van der Zee wrote:
Are there any special configure options or packages that you installed? I installed AIX for the first time so maybe I did something bad.
Possibly, but it would be helpful if you sent the full compile line for greg_month.cpp, so we can compare them for differences.
BTW, I noticed that pthread_rwlock_t (the struct my compiler does not recognize) is defined in "sys/types.h" and that this file is included from pthread.h like this:
#ifndef _H_TYPES #include <sys.types.h> #endif
But, _H_TYPES is defined at this point and therefor "sys/types.h" is never included! I checked removing "sys/types.h" totally from my system but the compiler does not complain about a missing "sys/types.h" at all!
Don't know that I'm much help here. Perhaps you're using a gcc you built and installed yourself (rather than the one in /usr/bin/gcc)?
-- Noel
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org
http://lists.boost.org/mailman/listinfo.cgi/boost-users
__________________________________________________________ Sent from Yahoo! Mail. A Smarter Email http://uk.docs.yahoo.com/nowyoucan.html
On May 20, 2008, at 9:52 PM, Andrej van der Zee wrote:
I think it is related to my AIX installation or something (sorry for misusing the boost news group). Even the smallest program does not compile:
#include <iostream>
using namespace std;
int main (void) { cout << "Hello World!\n";
return 0; }
When running gcc main.cpp I some of the same errors as when compiling boost:
Yup, seems like an installation problem. Good luck! -- Noel
Andrej van der Zee wrote:
Hi,
I think it is related to my AIX installation or something (sorry for misusing the boost news group). Even the smallest program does not compile:
#include <iostream>
using namespace std;
int main (void) { cout << "Hello World!\n";
return 0; }
If you are using the IBM provided gcc (4.0?), I found that was hopelessly broken. I do remember a XOPEN macro being involved. I've learned to block out the memory so I can't help you much more than that. I think I was better off compiling it myself so maybe that would help you. Like others said, good luck ;-) Sohail
If you are using the IBM provided gcc (4.0?), I found that was hopelessly broken.
': /opt/freeware/lib/gcc/powerpc-ibm-aix5.3.0.0/4.2.0/include/c++/bits/stl_iterator_base_types.h:129: instantiated from 'std::iterator_traits<boost::archive::iterators::remove_whitespace<boost::archive::iterators::istream_iterator<char>
' ./boost/detail/iterator.hpp:83: instantiated from 'boost::detail::iterator_traits<boost::archive::iterators::remove_whitespace<boost::archive::iterators::istream_iterator<char> ' ./boost/iterator/iterator_categories.hpp:163: instantiated from 'boost::iterator_traversal<boost::archive::iterators::remove_whitespace<boost::archive::iterators::istream_iterator<char> ' ./boost/mpl/eval_if.hpp:38: instantiated from 'boost::mpl::eval_if<boost::is_same<boost::use_default, boost::use_default>, boost::iterator_traversal<boost::archive::iterators::remove_whitespace<boost::archive::iterators::istream_iterator<char> , boost::mpl::identity<boost::use_default> >' ./boost/iterator/iterator_adaptor.hpp:167: instantiated from 'boost::detail::ia_dflt_help<boost::use_default, boost::iterator_traversal<boost::archive::iterators::remove_whitespace<boost::archive::iterators::istream_iterator<char>
' ./boost/iterator/iterator_adaptor.hpp:218: instantiated from 'boost::detail::iterator_adaptor_base<boost::transform_iterator<boost::archive::iterators::detail::to_6_bit<char>, boost::archive::iterators::remove_whitespace<boost::archive::iterators::istream_iterator<char> , boost::use_default, boost::use_default>, boost::archive::iterators::remove_whitespace<boost::archive::iterators::istream_iterator<char> , char, boost::use_default, char, boost::use_default>' ./boost/iterator/iterator_adaptor.hpp:266: instantiated from 'boost::iterator_adaptor<boost::transform_iterator<boost::archive::iterators::detail::to_6_bit<char>, boost::archive::iterators::remove_whitespace<boost::archive::iterators::istream_iterator<char> , boost::use_default, boost::use_default>, boost::archive::iterators::remove_whitespace<boost::archive::iterators::istream_iterator<char> , char, boost::use_default, char, boost::use_default>' ./boost/iterator/transform_iterator.hpp:92: instantiated from 'boost::transform_iterator<boost::archive::iterators::detail::to_6_bit<char>, boost::archive::iterators::remove_whitespace<boost::archive::iterators::istream_iterator<char> , boost::use_default, boost::use_default>' ./boost/archive/iterators/binary_from_base64.hpp:91: instantiated from 'boost::archive::iterators::binary_from_base64<boost::archive::iterators::remove_whitespace<boost::archive::iterators::istream_iterator<char> , char>' /opt/freeware/lib/gcc/powerpc-ibm-aix5.3.0.0/4.2.0/include/c++/bits/stl_iterator_base_types.h:129: instantiated from 'std::iterator_traits<boost::archive::iterators::binary_from_base64<boost::archive::iterators::remove_whitespace<boost::archive::iterators::istream_iterator<char> , char> >' ./boost/detail/iterator.hpp:83: instantiated from 'boost::detail::iterator_traits<boost::archive::iterators::binary_from_base64<boost::archive::iterators::remove_whitespace<boost::archive::iterators::istream_iterator<char> , char> >' ./boost/iterator/iterator_traits.hpp:49: instantiated from 'boost::iterator_difference<boost::archive::iterators::binary_from_base64<boost::archive::iterators::remove_whitespace<boost::archive::iterators::istream_iterator<char> , char> >' ./boost/mpl/eval_if.hpp:38: instantiated from 'boost::mpl::eval_if<boost::is_same<boost::use_default, boost::use_default>, boost::iterator_difference<boost::archive::iterators::binary_from_base64<boost::archive::iterators::remove_whitespace<boost::archive::iterators::istream_iterator<char> , char> >, boost::mpl::identity<boost::use_default> ' ./boost/iterator/iterator_adaptor.hpp:167: instantiated from 'boost::detail::ia_dflt_help<boost::use_default, boost::iterator_difference<boost::archive::iterators::binary_from_base64<boost::archive::iterators::remove_whitespace<boost::archive::iterators::istream_iterator<char> , char> > >' ./boost/iterator/iterator_adaptor.hpp:218: instantiated from 'boost::detail::iterator_adaptor_base<boost::archive::iterators::transform_width<boost::archive::iterators::binary_from_base64<boost::archive::iterators::remove_whitespace<boost::archive::iterators::istream_iterator<char> , char>, 8, 6, char>, boost::archive::iterators::binary_from_base64<boost::archive::iterators::remove_whitespace<boost::archive::iterators::istream_iterator<char> , char>, char, boost::single_pass_traversal_tag, char, boost::use_default>' ./boost/iterator/iterator_adaptor.hpp:266: instantiated from 'boost::iterator_adaptor<boost::archive::iterators::transform_width<boost::archive::iterators::binary_from_base64<boost::archive::iterators::remove_whitespace<boost::archive::iterators::istream_iterator<char> , char>, 8, 6, char>, boost::archive::iterators::binary_from_base64<boost::archive::iterators::remove_whitespace<boost::archive::iterators::istream_iterator<char> , char>, char, boost::single_pass_traversal_tag, char, boost::use_default>' ./boost/archive/iterators/transform_width.hpp:54: instantiated from 'boost::archive::iterators::transform_width<boost::archive::iterators::binary_from_base64<boost::archive::iterators::remove_whitespace<boost::archive::iterators::istream_iterator<char> , char>, 8, 6, char>' ./boost/archive/impl/basic_text_iprimitive.ipp:70: instantiated from 'void boost::archive::basic_text_iprimitive<IStream>::load_binary(void*, size_t) [with IStream = std::basic_istream<char, std::char_traits<char> >]'
' has a field 'boost::archive::iterators::remove_whitespace<boost::archive::iterators::istream_iterator<char> ::<anonymous>' whose type uses the anonymous namespace ./boost/archive/iterators/remove_whitespace.hpp:146: warning: 'boost::archive::iterators::remove_whitespace<boost::archive::iterators::istream_iterator<char> ' has a base 'boost::archive::iterators::filter_iterator<<unnamed>::remove_whitespace_predicate<char>, boost::archive::iterators::istream_iterator<char> >' whose type uses the anonymous namespace gcc.compile.c++ bin.v2/libs/serialization/build/gcc-4.2.0/release/threading-multi/basic_text_oprimitive.o ./boost/archive/basic_text_oprimitive.hpp: In member function 'void boost::archive::basic_text_oprimitive<OStream>::save(bool) [with OStream = std::basic_ostream<char, std::char_traits<char> >]':
Thanks, after installing gcc 4.2.0 from the IBM website gcc works more or less. Problem is, I still can't compile boost because I get an internal compiler error now (see below some gcc output) for some sources. I was wondering, did ANYONE manage to compile boost on AIX 5.3 with gcc? If so, which version of boost and gcc did you use? Cheers, Andrej ibm1# make ./tools/jam/src/bin.aix/bjam --user-config=user-config.jam warning: Graph library does not contain optional GraphML reader. note: to enable GraphML support, set EXPAT_INCLUDE and EXPAT_LIBPATH to the note: directories containing the Expat headers and libraries, respectively. warning: skipping optional Message Passing Interface (MPI) library. note: to enable MPI support, add "using mpi ;" to user-config.jam. note: to suppress this message, pass "--without-mpi" to bjam. note: otherwise, you can safely ignore this message. Building Boost.Regex with the optional Unicode/ICU support disabled. Please refer to the Boost.Regex documentation for more information (don't panic: this is a strictly optional feature). ...patience... ...patience... ...found 3932 targets... ...updating 248 targets... MkDir1 bin.v2 MkDir1 bin.v2/libs MkDir1 bin.v2/libs/serialization MkDir1 bin.v2/libs/serialization/build MkDir1 bin.v2/libs/serialization/build/gcc-4.2.0 MkDir1 bin.v2/libs/serialization/build/gcc-4.2.0/release MkDir1 bin.v2/libs/serialization/build/gcc-4.2.0/release/threading-multi gcc.compile.c++ bin.v2/libs/serialization/build/gcc-4.2.0/release/threading-multi/basic_archive.o gcc.compile.c++ bin.v2/libs/serialization/build/gcc-4.2.0/release/threading-multi/basic_iarchive.o gcc.compile.c++ bin.v2/libs/serialization/build/gcc-4.2.0/release/threading-multi/basic_iserializer.o gcc.compile.c++ bin.v2/libs/serialization/build/gcc-4.2.0/release/threading-multi/basic_oarchive.o gcc.compile.c++ bin.v2/libs/serialization/build/gcc-4.2.0/release/threading-multi/basic_oserializer.o gcc.compile.c++ bin.v2/libs/serialization/build/gcc-4.2.0/release/threading-multi/basic_pointer_iserializer.o gcc.compile.c++ bin.v2/libs/serialization/build/gcc-4.2.0/release/threading-multi/basic_pointer_oserializer.o gcc.compile.c++ bin.v2/libs/serialization/build/gcc-4.2.0/release/threading-multi/basic_serializer_map.o gcc.compile.c++ bin.v2/libs/serialization/build/gcc-4.2.0/release/threading-multi/basic_text_iprimitive.o ./boost/archive/iterators/remove_whitespace.hpp: In instantiation of 'boost::archive::iterators::remove_whitespace<boost::archive::iterators::istream_iterator<char> libs/serialization/src/basic_text_iprimitive.cpp:25: instantiated from here ./boost/archive/iterators/remove_whitespace.hpp:146: warning: 'boost::archive::iterators::remove_whitespace<boost::archive::iterators::istream_iterator<char> libs/serialization/src/basic_text_oprimitive.cpp:25: instantiated from here ./boost/archive/basic_text_oprimitive.hpp:92: warning: unused variable 'i' libs/serialization/src/basic_text_oprimitive.cpp: At global scope: libs/serialization/src/basic_text_oprimitive.cpp:27: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://gcc.gnu.org/bugs.html> for instructions. "g++" -ftemplate-depth-128 -O3 -finline-functions -Wno-inline -Wall -fPIC -pthread -DBOOST_ALL_NO_LIB=1 -DBOOST_SERIALIZATION_DYN_LINK=1 -DNDEBUG -I"." -c -o "bin.v2/libs/serialization/build/gcc-4.2.0/release/threading-multi/basic_text_oprimitive.o" "libs/serialization/src/basic_text_oprimitive.cpp" ...failed gcc.compile.c++ bin.v2/libs/serialization/build/gcc-4.2.0/release/threading-multi/basic_text_oprimitive.o... gcc.compile.c++ bin.v2/libs/serialization/build/gcc-4.2.0/release/threading-multi/basic_xml_archive.o gcc.compile.c++ bin.v2/libs/serialization/build/gcc-4.2.0/release/threading-multi/binary_iarchive.o gcc.compile.c++ bin.v2/libs/serialization/build/gcc-4.2.0/release/threading-multi/binary_oarchive.o ./boost/archive/basic_binary_oprimitive.hpp: In member function 'void boost::archive::basic_binary_oprimitive<Archive, Elem, Tr>::save(bool) [with Archive = boost::archive::binary_oarchive, Elem = char, Tr = std::char_traits<char>]': libs/serialization/src/binary_oarchive.cpp:24: instantiated from here ./boost/archive/basic_binary_oprimitive.hpp:90: warning: unused variable 'i' gcc.compile.c++ bin.v2/libs/serialization/build/gcc-4.2.0/release/threading-multi/codecvt_null.o gcc.compile.c++ bin.v2/libs/serialization/build/gcc-4.2.0/release/threading-multi/extended_type_info.o gcc.compile.c++ bin.v2/libs/serialization/build/gcc-4.2.0/release/threading-multi/extended_type_info_no_rtti.o gcc.compile.c++ bin.v2/libs/serialization/build/gcc-4.2.0/release/threading-multi/extended_type_info_typeid.o gcc.compile.c++ bin.v2/libs/serialization/build/gcc-4.2.0/release/threading-multi/polymorphic_iarchive.o gcc.compile.c++ bin.v2/libs/serialization/build/gcc-4.2.0/release/threading-multi/polymorphic_oarchive.o gcc.compile.c++ bin.v2/libs/serialization/build/gcc-4.2.0/release/threading-multi/stl_port.o gcc.compile.c++ bin.v2/libs/serialization/build/gcc-4.2.0/release/threading-multi/text_iarchive.o gcc.compile.c++ bin.v2/libs/serialization/build/gcc-4.2.0/release/threading-multi/text_oarchive.o gcc.compile.c++ bin.v2/libs/serialization/build/gcc-4.2.0/release/threading-multi/void_cast.o gcc.compile.c++ bin.v2/libs/serialization/build/gcc-4.2.0/release/threading-multi/xml_grammar.o libs/serialization/src/xml_grammar.cpp:73: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://gcc.gnu.org/bugs.html> for instructions. "g++" -ftemplate-depth-128 -O3 -finline-functions -Wno-inline -Wall -fPIC -pthread -DBOOST_ALL_NO_LIB=1 -DBOOST_SERIALIZATION_DYN_LINK=1 -DNDEBUG -I"." -c -o "bin.v2/libs/serialization/build/gcc-4.2.0/release/threading-multi/xml_grammar.o" "libs/serialization/src/xml_grammar.cpp" ...failed gcc.compile.c++ bin.v2/libs/serialization/build/gcc-4.2.0/release/threading-multi/xml_grammar.o... __________________________________________________________ Sent from Yahoo! Mail. A Smarter Email http://uk.docs.yahoo.com/nowyoucan.html
On May 21, 2008, at 8:28 PM, Andrej van der Zee wrote:
If you are using the IBM provided gcc (4.0?), I found that was hopelessly broken.
Thanks, after installing gcc 4.2.0 from the IBM website gcc works more or less. Problem is, I still can't compile boost because I get an internal compiler error now (see below some gcc output) for some sources. I was wondering, did ANYONE manage to compile boost on AIX 5.3 with gcc? If so, which version of boost and gcc did you use?
We use vacpp version 8.0, sorry. -- Noel
Hi,
Hi Andrej,
On May 20, 2008, at 6:35 AM, Andrej van der Zee wrote:
I am having problems with compiling boost 1.35 on AIX 5.3 with gcc 4.0.0. I get the pthread errors below. I am new to AIX, so I have hopes that this can be easily solved....
We don't test with gcc on Aix, but we should.
Is AIX tested with any other compilers than gcc? Thanks, Andrej __________________________________________________________ Sent from Yahoo! Mail. A Smarter Email http://uk.docs.yahoo.com/nowyoucan.html
participants (3)
-
Andrej van der Zee
-
K. Noel Belcourt
-
Sohail Somani