Experience with g++ 4.2.0 on AIX 5.3 - Aix

This is a discussion on Experience with g++ 4.2.0 on AIX 5.3 - Aix ; Hello, Has anyone tried the the g++ 4.2.0 build for AIX 5.3 provided on http://www-03.ibm.com/systems/p/os/a...download.html? The reason for asking is that I experience it to be very broken. I can't even complete hello world applications with g++ without getting a ...

+ Reply to Thread
Results 1 to 12 of 12

Thread: Experience with g++ 4.2.0 on AIX 5.3

  1. Experience with g++ 4.2.0 on AIX 5.3

    Hello,

    Has anyone tried the the g++ 4.2.0 build for AIX 5.3 provided on
    http://www-03.ibm.com/systems/p/os/a...download.html?

    The reason for asking is that I experience it to be very broken. I can't
    even complete hello world applications with g++ without getting a ton of
    weird linker errors. Before applying the latest TL I was at level 03 and I
    had a lot of errors with signal() related code. Now when I applied up to the
    latest TL then I get a lot of math and pthread related linker errors even
    for basic stuff.

    So in my effort to solve this I wanted to do a recompile of gcc and g++.
    However this fails horribly as well. (Errors at the end of post)

    Has anyone had better success?

    Goddamit I hate AIX. Why does everything has to be that complicated? It took
    me less than 1 hour to do the same task on linux and now I'm fighting for 4
    days.

    -- Henrik

    http://www.x-formation.com/
    http://kb.x-formation.com/categories...lm+and+FLEXnet
    ------------

    gmake[4]: Entering directory
    `/opt/gcc/build/powerpc-ibm-aix5.3.0.0/libstdc++-v3/include'
    if [ ! -d "./powerpc-ibm-aix5.3.0.0/bits/stdc++.h.gch" ]; then \
    mkdir -p ./powerpc-ibm-aix5.3.0.0/bits/stdc++.h.gch; \
    fi; \
    /opt/gcc/build/./gcc/xgcc -shared-libgcc -B/opt/gcc/build/./gcc -nostdinc++
    -L/opt/gcc/build/powerpc-ibm-aix5.3.0.0/libstdc++-v3/src -L/opt/gcc/build/powerpc-ibm-aix5.3.0.0/libstdc++-v3/src/.libs
    -B/opt/freeware/powerpc-ibm-aix5.3.0.0/bin/ -B/opt/freeware/powerpc-ibm-aix5.3.0.0/lib/
    -isystem /opt/freeware/powerpc-ibm-aix5.3.0.0/include -isystem
    /opt/freeware/powerpc-ibm-aix5.3.0.0/sys-include -Winvalid-pch -Wno-deprecated
    -x
    ++-header -g -O2 -I/opt/gcc/build/powerpc-ibm-aix5.3.0.0/libstdc++-v3/include/powerpc-ibm-aix5.3.0.0
    -I/opt/gcc/build/powerpc-ibm-aix5.3.0.0/libstdc++-v3/include -I/opt/gcc/gcc-4.2.0/libstdc++-v3/libsupc++
    -O0 -g /opt/gcc/gcc-4.2.0/libstdc++-v3/include/precompiled/stdc++.h -o
    powerpc-ibm-aix5.3.0.0/bits/stdc++.h.gch/O0g.gch

    In file included from
    /opt/gcc/build/powerpc-ibm-aix5.3.0.0/libstdc++-v3/include/cctype:50,
    from
    /opt/gcc/gcc-4.2.0/libstdc++-v3/include/precompiled/stdc++.h:38:
    /opt/gcc/build/powerpc-ibm-aix5.3.0.0/libstdc++-v3/include/powerpc-ibm-aix5.3.0.0/bits/c++config.h:1087:2:
    error: #endif without #if
    In file included from
    /opt/gcc/build/powerpc-ibm-aix5.3.0.0/libstdc++-v3/include/clocale:50,
    from
    /opt/gcc/gcc-4.2.0/libstdc++-v3/include/precompiled/stdc++.h:43:
    /opt/gcc/build/powerpc-ibm-aix5.3.0.0/libstdc++-v3/include/powerpc-ibm-aix5.3.0.0/bits/c++config.h:1087:2:
    error: #endif without #if
    In file included from
    /opt/gcc/build/powerpc-ibm-aix5.3.0.0/libstdc++-v3/include/cmath:50,
    from
    /opt/gcc/gcc-4.2.0/libstdc++-v3/include/precompiled/stdc++.h:44:
    /opt/gcc/build/powerpc-ibm-aix5.3.0.0/libstdc++-v3/include/powerpc-ibm-aix5.3.0.0/bits/c++config.h:1087:2:
    error: #endif without #if
    In file included from
    /opt/gcc/build/powerpc-ibm-aix5.3.0.0/libstdc++-v3/include/bits/cpp_type_traits.h:43,
    from
    /opt/gcc/build/powerpc-ibm-aix5.3.0.0/libstdc++-v3/include/cmath:51,
    from
    /opt/gcc/gcc-4.2.0/libstdc++-v3/include/precompiled/stdc++.h:44:
    /opt/gcc/build/powerpc-ibm-aix5.3.0.0/libstdc++-v3/include/powerpc-ibm-aix5.3.0.0/bits/c++config.h:1087:2:
    error: #endif without #if
    In file included from
    /opt/gcc/build/powerpc-ibm-aix5.3.0.0/libstdc++-v3/include/cstddef:50,
    from
    /opt/gcc/build/powerpc-ibm-aix5.3.0.0/libstdc++-v3/include/ext/type_traits.h:40,
    from
    /opt/gcc/build/powerpc-ibm-aix5.3.0.0/libstdc++-v3/include/cmath:52,
    from
    /opt/gcc/gcc-4.2.0/libstdc++-v3/include/precompiled/stdc++.h:44:
    /opt/gcc/build/powerpc-ibm-aix5.3.0.0/libstdc++-v3/include/powerpc-ibm-aix5.3.0.0/bits/c++config.h:1087:2:
    error: #endif without #if
    In file included from
    /opt/gcc/build/powerpc-ibm-aix5.3.0.0/libstdc++-v3/include/utility:65,
    from
    /opt/gcc/build/powerpc-ibm-aix5.3.0.0/libstdc++-v3/include/ext/type_traits.h:41,
    from
    /opt/gcc/build/powerpc-ibm-aix5.3.0.0/libstdc++-v3/include/cmath:52,
    from
    /opt/gcc/gcc-4.2.0/libstdc++-v3/include/precompiled/stdc++.h:44:
    /opt/gcc/build/powerpc-ibm-aix5.3.0.0/libstdc++-v3/include/powerpc-ibm-aix5.3.0.0/bits/c++config.h:1087:2:
    error: #endif without #if
    In file included from
    /opt/gcc/build/powerpc-ibm-aix5.3.0.0/libstdc++-v3/include/csetjmp:50,
    from
    /opt/gcc/gcc-4.2.0/libstdc++-v3/include/precompiled/stdc++.h:45:
    /opt/gcc/build/powerpc-ibm-aix5.3.0.0/libstdc++-v3/include/powerpc-ibm-aix5.3.0.0/bits/c++config.h:1087:2:
    error: #endif without #if
    In file included from
    /opt/gcc/build/powerpc-ibm-aix5.3.0.0/libstdc++-v3/include/csignal:50,
    from
    /opt/gcc/gcc-4.2.0/libstdc++-v3/include/precompiled/stdc++.h:46:
    /opt/gcc/build/powerpc-ibm-aix5.3.0.0/libstdc++-v3/include/powerpc-ibm-aix5.3.0.0/bits/c++config.h:1087:2:
    error: #endif without #if
    In file included from
    /opt/gcc/build/powerpc-ibm-aix5.3.0.0/libstdc++-v3/include/cstdarg:50,
    from
    /opt/gcc/gcc-4.2.0/libstdc++-v3/include/precompiled/stdc++.h:47:
    /opt/gcc/build/powerpc-ibm-aix5.3.0.0/libstdc++-v3/include/powerpc-ibm-aix5.3.0.0/bits/c++config.h:1087:2:
    error: #endif without #if
    In file included from
    /opt/gcc/build/powerpc-ibm-aix5.3.0.0/libstdc++-v3/include/cstdio:50,
    from
    /opt/gcc/gcc-4.2.0/libstdc++-v3/include/precompiled/stdc++.h:49:
    /opt/gcc/build/powerpc-ibm-aix5.3.0.0/libstdc++-v3/include/powerpc-ibm-aix5.3.0.0/bits/c++config.h:1087:2:
    error: #endif without #if
    In file included from
    /opt/gcc/build/powerpc-ibm-aix5.3.0.0/libstdc++-v3/include/cstdlib:50,
    from
    /opt/gcc/gcc-4.2.0/libstdc++-v3/include/precompiled/stdc++.h:50:
    /opt/gcc/build/powerpc-ibm-aix5.3.0.0/libstdc++-v3/include/powerpc-ibm-aix5.3.0.0/bits/c++config.h:1087:2:
    error: #endif without #if
    In file included from
    /opt/gcc/build/powerpc-ibm-aix5.3.0.0/libstdc++-v3/include/cstring:50,
    from
    /opt/gcc/gcc-4.2.0/libstdc++-v3/include/precompiled/stdc++.h:51:
    /opt/gcc/build/powerpc-ibm-aix5.3.0.0/libstdc++-v3/include/powerpc-ibm-aix5.3.0.0/bits/c++config.h:1087:2:
    error: #endif without #if
    In file included from
    /opt/gcc/build/powerpc-ibm-aix5.3.0.0/libstdc++-v3/include/bits/stl_algobase.h:65,
    from
    /opt/gcc/build/powerpc-ibm-aix5.3.0.0/libstdc++-v3/include/algorithm:65,
    from
    /opt/gcc/gcc-4.2.0/libstdc++-v3/include/precompiled/stdc++.h:55:
    /opt/gcc/build/powerpc-ibm-aix5.3.0.0/libstdc++-v3/include/powerpc-ibm-aix5.3.0.0/bits/c++config.h:1087:2:
    error: #endif without #if
    In file included from
    /opt/gcc/build/powerpc-ibm-aix5.3.0.0/libstdc++-v3/include/iosfwd:44,
    from
    /opt/gcc/build/powerpc-ibm-aix5.3.0.0/libstdc++-v3/include/bits/stl_algobase.h:70,
    from
    /opt/gcc/build/powerpc-ibm-aix5.3.0.0/libstdc++-v3/include/algorithm:65,
    from
    /opt/gcc/gcc-4.2.0/libstdc++-v3/include/precompiled/stdc++.h:55:
    /opt/gcc/build/powerpc-ibm-aix5.3.0.0/libstdc++-v3/include/powerpc-ibm-aix5.3.0.0/bits/c++config.h:1087:2:
    error: #endif without #if
    In file included from
    /opt/gcc/build/powerpc-ibm-aix5.3.0.0/libstdc++-v3/include/bits/stringfwd.h:44,
    from
    /opt/gcc/build/powerpc-ibm-aix5.3.0.0/libstdc++-v3/include/iosfwd:48,
    from
    /opt/gcc/build/powerpc-ibm-aix5.3.0.0/libstdc++-v3/include/bits/stl_algobase.h:70,
    from
    /opt/gcc/build/powerpc-ibm-aix5.3.0.0/libstdc++-v3/include/algorithm:65,
    from
    /opt/gcc/gcc-4.2.0/libstdc++-v3/include/precompiled/stdc++.h:55:
    /opt/gcc/build/powerpc-ibm-aix5.3.0.0/libstdc++-v3/include/powerpc-ibm-aix5.3.0.0/bits/c++config.h:1087:2:
    error: #endif without #if
    In file included from
    /opt/gcc/build/powerpc-ibm-aix5.3.0.0/libstdc++-v3/include/cwchar:50,
    from
    /opt/gcc/build/powerpc-ibm-aix5.3.0.0/libstdc++-v3/include/bits/postypes.h:46,
    from
    /opt/gcc/build/powerpc-ibm-aix5.3.0.0/libstdc++-v3/include/iosfwd:49,
    from
    /opt/gcc/build/powerpc-ibm-aix5.3.0.0/libstdc++-v3/include/bits/stl_algobase.h:70,
    from
    /opt/gcc/build/powerpc-ibm-aix5.3.0.0/libstdc++-v3/include/algorithm:65,
    from
    /opt/gcc/gcc-4.2.0/libstdc++-v3/include/precompiled/stdc++.h:55:
    /opt/gcc/build/powerpc-ibm-aix5.3.0.0/libstdc++-v3/include/powerpc-ibm-aix5.3.0.0/bits/c++config.h:1087:2:
    error: #endif without #if
    In file included from
    /opt/gcc/build/powerpc-ibm-aix5.3.0.0/libstdc++-v3/include/bits/functexcept.h:41,
    from
    /opt/gcc/build/powerpc-ibm-aix5.3.0.0/libstdc++-v3/include/iosfwd:50,
    from
    /opt/gcc/build/powerpc-ibm-aix5.3.0.0/libstdc++-v3/include/bits/stl_algobase.h:70,
    from
    /opt/gcc/build/powerpc-ibm-aix5.3.0.0/libstdc++-v3/include/algorithm:65,
    from
    /opt/gcc/gcc-4.2.0/libstdc++-v3/include/precompiled/stdc++.h:55:
    /opt/gcc/build/powerpc-ibm-aix5.3.0.0/libstdc++-v3/include/powerpc-ibm-aix5.3.0.0/bits/c++config.h:1087:2:
    error: #endif without #if
    In file included from
    /opt/gcc/build/powerpc-ibm-aix5.3.0.0/libstdc++-v3/include/bits/concept_check.h:40,
    from
    /opt/gcc/build/powerpc-ibm-aix5.3.0.0/libstdc++-v3/include/bits/stl_iterator_base_funcs.h:69,
    from
    /opt/gcc/build/powerpc-ibm-aix5.3.0.0/libstdc++-v3/include/bits/stl_algobase.h:75,
    from
    /opt/gcc/build/powerpc-ibm-aix5.3.0.0/libstdc++-v3/include/algorithm:65,
    from
    /opt/gcc/gcc-4.2.0/libstdc++-v3/include/precompiled/stdc++.h:55:
    /opt/gcc/build/powerpc-ibm-aix5.3.0.0/libstdc++-v3/include/powerpc-ibm-aix5.3.0.0/bits/c++config.h:1087:2:
    error: #endif without #if
    In file included from
    /opt/gcc/gcc-4.2.0/libstdc++-v3/libsupc++/exception:42,
    from /opt/gcc/gcc-4.2.0/libstdc++-v3/libsupc++/new:45,
    from
    /opt/gcc/build/powerpc-ibm-aix5.3.0.0/libstdc++-v3/include/bits/stl_construct.h:65,
    from
    /opt/gcc/build/powerpc-ibm-aix5.3.0.0/libstdc++-v3/include/algorithm:66,
    from
    /opt/gcc/gcc-4.2.0/libstdc++-v3/include/precompiled/stdc++.h:55:
    /opt/gcc/build/powerpc-ibm-aix5.3.0.0/libstdc++-v3/include/powerpc-ibm-aix5.3.0.0/bits/c++config.h:1087:2:
    error: #endif without #if
    In file included from
    /opt/gcc/build/powerpc-ibm-aix5.3.0.0/libstdc++-v3/include/limits:48,
    from
    /opt/gcc/build/powerpc-ibm-aix5.3.0.0/libstdc++-v3/include/memory:60,
    from
    /opt/gcc/build/powerpc-ibm-aix5.3.0.0/libstdc++-v3/include/bits/stl_tempbuf.h:65,
    from
    /opt/gcc/build/powerpc-ibm-aix5.3.0.0/libstdc++-v3/include/bits/stl_algo.h:66,
    from
    /opt/gcc/build/powerpc-ibm-aix5.3.0.0/libstdc++-v3/include/algorithm:68,
    from
    /opt/gcc/gcc-4.2.0/libstdc++-v3/include/precompiled/stdc++.h:55:
    /opt/gcc/build/powerpc-ibm-aix5.3.0.0/libstdc++-v3/include/powerpc-ibm-aix5.3.0.0/bits/c++config.h:1087:2:
    error: #endif without #if
    In file included from
    /opt/gcc/build/powerpc-ibm-aix5.3.0.0/libstdc++-v3/include/string:45,
    from
    /opt/gcc/build/powerpc-ibm-aix5.3.0.0/libstdc++-v3/include/bitset:56,
    from
    /opt/gcc/gcc-4.2.0/libstdc++-v3/include/precompiled/stdc++.h:56:
    /opt/gcc/build/powerpc-ibm-aix5.3.0.0/libstdc++-v3/include/powerpc-ibm-aix5.3.0.0/bits/c++config.h:1087:2:
    error: #endif without #if
    In file included from
    /opt/gcc/build/powerpc-ibm-aix5.3.0.0/libstdc++-v3/include/ext/atomicity.h:38,
    from
    /opt/gcc/build/powerpc-ibm-aix5.3.0.0/libstdc++-v3/include/bits/basic_string.h:46,
    from
    /opt/gcc/build/powerpc-ibm-aix5.3.0.0/libstdc++-v3/include/string:54,
    from
    /opt/gcc/build/powerpc-ibm-aix5.3.0.0/libstdc++-v3/include/bitset:56,
    from
    /opt/gcc/gcc-4.2.0/libstdc++-v3/include/precompiled/stdc++.h:56:
    /opt/gcc/build/powerpc-ibm-aix5.3.0.0/libstdc++-v3/include/powerpc-ibm-aix5.3.0.0/bits/c++config.h:1087:2:
    error: #endif without #if
    In file included from
    /opt/gcc/build/powerpc-ibm-aix5.3.0.0/libstdc++-v3/include/bits/localefwd.h:45,
    from
    /opt/gcc/build/powerpc-ibm-aix5.3.0.0/libstdc++-v3/include/ios:47,
    from
    /opt/gcc/build/powerpc-ibm-aix5.3.0.0/libstdc++-v3/include/ostream:45,
    from
    /opt/gcc/build/powerpc-ibm-aix5.3.0.0/libstdc++-v3/include/bitset:59,
    from
    /opt/gcc/gcc-4.2.0/libstdc++-v3/include/precompiled/stdc++.h:56:
    /opt/gcc/build/powerpc-ibm-aix5.3.0.0/libstdc++-v3/include/powerpc-ibm-aix5.3.0.0/bits/c++config.h:1087:2:
    error: #endif without #if
    In file included from
    /opt/gcc/build/powerpc-ibm-aix5.3.0.0/libstdc++-v3/include/streambuf:44,
    from
    /opt/gcc/build/powerpc-ibm-aix5.3.0.0/libstdc++-v3/include/ios:49,
    from
    /opt/gcc/build/powerpc-ibm-aix5.3.0.0/libstdc++-v3/include/ostream:45,
    from
    /opt/gcc/build/powerpc-ibm-aix5.3.0.0/libstdc++-v3/include/bitset:59,
    from
    /opt/gcc/gcc-4.2.0/libstdc++-v3/include/precompiled/stdc++.h:56:
    /opt/gcc/build/powerpc-ibm-aix5.3.0.0/libstdc++-v3/include/powerpc-ibm-aix5.3.0.0/bits/c++config.h:1087:2:
    error: #endif without #if
    In file included from
    /opt/gcc/build/powerpc-ibm-aix5.3.0.0/libstdc++-v3/include/cwctype:50,
    from
    /opt/gcc/build/powerpc-ibm-aix5.3.0.0/libstdc++-v3/include/bits/locale_facets.h:46,
    from
    /opt/gcc/build/powerpc-ibm-aix5.3.0.0/libstdc++-v3/include/bits/basic_ios.h:44,
    from
    /opt/gcc/build/powerpc-ibm-aix5.3.0.0/libstdc++-v3/include/ios:50,
    from
    /opt/gcc/build/powerpc-ibm-aix5.3.0.0/libstdc++-v3/include/ostream:45,
    from
    /opt/gcc/build/powerpc-ibm-aix5.3.0.0/libstdc++-v3/include/bitset:59,
    from
    /opt/gcc/gcc-4.2.0/libstdc++-v3/include/precompiled/stdc++.h:56:
    /opt/gcc/build/powerpc-ibm-aix5.3.0.0/libstdc++-v3/include/powerpc-ibm-aix5.3.0.0/bits/c++config.h:1087:2:
    error: #endif without #if
    In file included from
    /opt/gcc/build/powerpc-ibm-aix5.3.0.0/libstdc++-v3/include/complex:47,
    from
    /opt/gcc/gcc-4.2.0/libstdc++-v3/include/precompiled/stdc++.h:57:
    /opt/gcc/build/powerpc-ibm-aix5.3.0.0/libstdc++-v3/include/powerpc-ibm-aix5.3.0.0/bits/c++config.h:1087:2:
    error: #endif without #if
    In file included from
    /opt/gcc/build/powerpc-ibm-aix5.3.0.0/libstdc++-v3/include/powerpc-ibm-aix5.3.0.0/bits/basic_file.h:45,
    from
    /opt/gcc/build/powerpc-ibm-aix5.3.0.0/libstdc++-v3/include/fstream:48,
    from
    /opt/gcc/gcc-4.2.0/libstdc++-v3/include/precompiled/stdc++.h:60:
    /opt/gcc/build/powerpc-ibm-aix5.3.0.0/libstdc++-v3/include/powerpc-ibm-aix5.3.0.0/bits/c++config.h:1087:2:
    error: #endif without #if
    In file included from
    /opt/gcc/build/powerpc-ibm-aix5.3.0.0/libstdc++-v3/include/functional:53,
    from
    /opt/gcc/gcc-4.2.0/libstdc++-v3/include/precompiled/stdc++.h:61:
    /opt/gcc/build/powerpc-ibm-aix5.3.0.0/libstdc++-v3/include/powerpc-ibm-aix5.3.0.0/bits/c++config.h:1087:2:
    error: #endif without #if
    In file included from
    /opt/gcc/build/powerpc-ibm-aix5.3.0.0/libstdc++-v3/include/iomanip:44,
    from
    /opt/gcc/gcc-4.2.0/libstdc++-v3/include/precompiled/stdc++.h:62:
    /opt/gcc/build/powerpc-ibm-aix5.3.0.0/libstdc++-v3/include/powerpc-ibm-aix5.3.0.0/bits/c++config.h:1087:2:
    error: #endif without #if
    In file included from
    /opt/gcc/build/powerpc-ibm-aix5.3.0.0/libstdc++-v3/include/iostream:44,
    from
    /opt/gcc/gcc-4.2.0/libstdc++-v3/include/precompiled/stdc++.h:65:
    /opt/gcc/build/powerpc-ibm-aix5.3.0.0/libstdc++-v3/include/powerpc-ibm-aix5.3.0.0/bits/c++config.h:1087:2:
    error: #endif without #if
    In file included from
    /opt/gcc/build/powerpc-ibm-aix5.3.0.0/libstdc++-v3/include/iterator:65,
    from
    /opt/gcc/gcc-4.2.0/libstdc++-v3/include/precompiled/stdc++.h:67:
    /opt/gcc/build/powerpc-ibm-aix5.3.0.0/libstdc++-v3/include/powerpc-ibm-aix5.3.0.0/bits/c++config.h:1087:2:
    error: #endif without #if
    In file included from
    /opt/gcc/build/powerpc-ibm-aix5.3.0.0/libstdc++-v3/include/numeric:65,
    from
    /opt/gcc/gcc-4.2.0/libstdc++-v3/include/precompiled/stdc++.h:74:
    /opt/gcc/build/powerpc-ibm-aix5.3.0.0/libstdc++-v3/include/powerpc-ibm-aix5.3.0.0/bits/c++config.h:1087:2:
    error: #endif without #if
    In file included from
    /opt/gcc/build/powerpc-ibm-aix5.3.0.0/libstdc++-v3/include/queue:65,
    from
    /opt/gcc/gcc-4.2.0/libstdc++-v3/include/precompiled/stdc++.h:76:
    /opt/gcc/build/powerpc-ibm-aix5.3.0.0/libstdc++-v3/include/powerpc-ibm-aix5.3.0.0/bits/c++config.h:1087:2:
    error: #endif without #if
    In file included from
    /opt/gcc/build/powerpc-ibm-aix5.3.0.0/libstdc++-v3/include/valarray:42,
    from
    /opt/gcc/gcc-4.2.0/libstdc++-v3/include/precompiled/stdc++.h:85:
    /opt/gcc/build/powerpc-ibm-aix5.3.0.0/libstdc++-v3/include/powerpc-ibm-aix5.3.0.0/bits/c++config.h:1087:2:
    error: #endif without #if
    In file included from
    /opt/gcc/build/powerpc-ibm-aix5.3.0.0/libstdc++-v3/include/bits/valarray_array.h:43,
    from
    /opt/gcc/build/powerpc-ibm-aix5.3.0.0/libstdc++-v3/include/valarray:92,
    from
    /opt/gcc/gcc-4.2.0/libstdc++-v3/include/precompiled/stdc++.h:85:
    /opt/gcc/build/powerpc-ibm-aix5.3.0.0/libstdc++-v3/include/powerpc-ibm-aix5.3.0.0/bits/c++config.h:1087:2:
    error: #endif without #if
    In file included from
    /opt/gcc/gcc-4.2.0/libstdc++-v3/include/precompiled/stdc++.h:38:
    /opt/gcc/build/powerpc-ibm-aix5.3.0.0/libstdc++-v3/include/cctype:68: error:
    expected constructor, destructor, or type conversion before '(' token
    In file included from
    /opt/gcc/build/powerpc-ibm-aix5.3.0.0/libstdc++-v3/include/cerrno:50,
    from
    /opt/gcc/gcc-4.2.0/libstdc++-v3/include/precompiled/stdc++.h:39:
    /usr/include/errno.h:62: error: expected constructor, destructor, or type
    conversion before 'extern'
    In file included from
    /opt/gcc/gcc-4.2.0/libstdc++-v3/include/precompiled/stdc++.h:43:
    /opt/gcc/build/powerpc-ibm-aix5.3.0.0/libstdc++-v3/include/clocale:57:
    error: expected constructor, destructor, or type conversion before '(' token
    /opt/gcc/build/powerpc-ibm-aix5.3.0.0/libstdc++-v3/include/clocale:63:
    error: '_GLIBCXX_END_NAMESPACE' does not name a type
    In file included from
    /opt/gcc/build/powerpc-ibm-aix5.3.0.0/libstdc++-v3/include/cmath:51,
    from
    /opt/gcc/gcc-4.2.0/libstdc++-v3/include/precompiled/stdc++.h:44:
    /opt/gcc/build/powerpc-ibm-aix5.3.0.0/libstdc++-v3/include/bits/cpp_type_traits.h:79:
    error: '_GLIBCXX_END_NAMESPACE' does not name a type
    /opt/gcc/build/powerpc-ibm-aix5.3.0.0/libstdc++-v3/include/bits/cpp_type_traits.h:313:
    error: '__gnu_cxx' was not declared in this scope
    /opt/gcc/build/powerpc-ibm-aix5.3.0.0/libstdc++-v3/include/bits/cpp_type_traits.h:314:
    error: template argument 1 is invalid
    /opt/gcc/build/powerpc-ibm-aix5.3.0.0/libstdc++-v3/include/bits/cpp_type_traits.h:350:
    error: '__detail' has not been declared
    /opt/gcc/build/powerpc-ibm-aix5.3.0.0/libstdc++-v3/include/bits/cpp_type_traits.h:350:
    error: expected primary-expression before '>' token
    /opt/gcc/build/powerpc-ibm-aix5.3.0.0/libstdc++-v3/include/bits/cpp_type_traits.h:351:
    error: '__detail' has not been declared
    /opt/gcc/build/powerpc-ibm-aix5.3.0.0/libstdc++-v3/include/bits/cpp_type_traits.h:401:
    error: '_GLIBCXX_END_NAMESPACE' does not name a type
    In file included from
    /opt/gcc/build/powerpc-ibm-aix5.3.0.0/libstdc++-v3/include/ext/type_traits.h:40,
    from
    /opt/gcc/build/powerpc-ibm-aix5.3.0.0/libstdc++-v3/include/cmath:52,
    from
    /opt/gcc/gcc-4.2.0/libstdc++-v3/include/precompiled/stdc++.h:44:
    /opt/gcc/build/powerpc-ibm-aix5.3.0.0/libstdc++-v3/include/cstddef:58:
    error: '_GLIBCXX_END_NAMESPACE' does not name a type
    In file included from
    /opt/gcc/build/powerpc-ibm-aix5.3.0.0/libstdc++-v3/include/utility:66,
    from
    /opt/gcc/build/powerpc-ibm-aix5.3.0.0/libstdc++-v3/include/ext/type_traits.h:41,
    from
    /opt/gcc/build/powerpc-ibm-aix5.3.0.0/libstdc++-v3/include/cmath:52,
    from
    /opt/gcc/gcc-4.2.0/libstdc++-v3/include/precompiled/stdc++.h:44:
    /opt/gcc/build/powerpc-ibm-aix5.3.0.0/libstdc++-v3/include/bits/stl_relops.h:136:
    error: '_GLIBCXX_END_NAMESPACE' does not name a type
    In file included from
    /opt/gcc/build/powerpc-ibm-aix5.3.0.0/libstdc++-v3/include/utility:67,
    from
    /opt/gcc/build/powerpc-ibm-aix5.3.0.0/libstdc++-v3/include/ext/type_traits.h:41,
    from
    /opt/gcc/build/powerpc-ibm-aix5.3.0.0/libstdc++-v3/include/cmath:52,
    from
    /opt/gcc/gcc-4.2.0/libstdc++-v3/include/precompiled/stdc++.h:44:
    /opt/gcc/build/powerpc-ibm-aix5.3.0.0/libstdc++-v3/include/bits/stl_pair.h:96:
    error: expected ',' or '...' before '<' token
    /opt/gcc/build/powerpc-ibm-aix5.3.0.0/libstdc++-v3/include/bits/stl_pair.h:96:
    error: 'bool operator==(int)' must have an argument of class or enumerated
    type
    /opt/gcc/build/powerpc-ibm-aix5.3.0.0/libstdc++-v3/include/bits/stl_pair.h:102:
    error: expected ',' or '...' before '<' token
    /opt/gcc/build/powerpc-ibm-aix5.3.0.0/libstdc++-v3/include/bits/stl_pair.h:102:
    error: 'bool operator<(int)' must have an argument of class or enumerated
    type
    /opt/gcc/build/powerpc-ibm-aix5.3.0.0/libstdc++-v3/include/bits/stl_pair.h:109:
    error: expected ',' or '...' before '<' token
    /opt/gcc/build/powerpc-ibm-aix5.3.0.0/libstdc++-v3/include/bits/stl_pair.h:109:
    error: 'bool operator!=(int)' must have an argument of class or enumerated
    type
    /opt/gcc/build/powerpc-ibm-aix5.3.0.0/libstdc++-v3/include/bits/stl_pair.h:115:
    error: expected ',' or '...' before '<' token
    /opt/gcc/build/powerpc-ibm-aix5.3.0.0/libstdc++-v3/include/bits/stl_pair.h:115:
    error: 'bool operator>(int)' must have an argument of class or enumerated
    type
    /opt/gcc/build/powerpc-ibm-aix5.3.0.0/libstdc++-v3/include/bits/stl_pair.h:121:
    error: expected ',' or '...' before '<' token
    /opt/gcc/build/powerpc-ibm-aix5.3.0.0/libstdc++-v3/include/bits/stl_pair.h:121:
    error: 'bool operator<=(int)' must have an argument of class or enumerated
    type
    /opt/gcc/build/powerpc-ibm-aix5.3.0.0/libstdc++-v3/include/bits/stl_pair.h:127:
    error: expected ',' or '...' before '<' token
    /opt/gcc/build/powerpc-ibm-aix5.3.0.0/libstdc++-v3/include/bits/stl_pair.h:127:
    error: 'bool operator>=(int)' must have an argument of class or enumerated
    type
    /opt/gcc/build/powerpc-ibm-aix5.3.0.0/libstdc++-v3/include/bits/stl_pair.h:143:
    error: expected initializer before '<' token
    /opt/gcc/build/powerpc-ibm-aix5.3.0.0/libstdc++-v3/include/bits/stl_pair.h:147:
    error: '_GLIBCXX_END_NAMESPACE' does not name a type
    In file included from
    /opt/gcc/build/powerpc-ibm-aix5.3.0.0/libstdc++-v3/include/cmath:52,
    from
    /opt/gcc/gcc-4.2.0/libstdc++-v3/include/precompiled/stdc++.h:44:
    /opt/gcc/build/powerpc-ibm-aix5.3.0.0/libstdc++-v3/include/ext/type_traits.h:52:
    error: '__enable_if' is not a template
    /opt/gcc/build/powerpc-ibm-aix5.3.0.0/libstdc++-v3/include/ext/type_traits.h:71:
    error: '__is_integer' is not a member of 'std'
    /opt/gcc/build/powerpc-ibm-aix5.3.0.0/libstdc++-v3/include/ext/type_traits.h:71:
    error: '__is_integer' is not a member of 'std'
    /opt/gcc/build/powerpc-ibm-aix5.3.0.0/libstdc++-v3/include/ext/type_traits.h:71:
    error: template argument 1 is invalid
    /opt/gcc/build/powerpc-ibm-aix5.3.0.0/libstdc++-v3/include/ext/type_traits.h:71:
    error: typedef name may not be a nested-name-specifier
    /opt/gcc/build/powerpc-ibm-aix5.3.0.0/libstdc++-v3/include/ext/type_traits.h:71:
    error: expected ';' before '>' token
    /opt/gcc/build/powerpc-ibm-aix5.3.0.0/libstdc++-v3/include/ext/type_traits.h:74:
    error: '__if_type' has not been declared
    /opt/gcc/build/powerpc-ibm-aix5.3.0.0/libstdc++-v3/include/ext/type_traits.h:114:
    error: '__is_integer' is not a member of 'std'
    /opt/gcc/build/powerpc-ibm-aix5.3.0.0/libstdc++-v3/include/ext/type_traits.h:114:
    error: '__is_integer' is not a member of 'std'
    /opt/gcc/build/powerpc-ibm-aix5.3.0.0/libstdc++-v3/include/ext/type_traits.h:114:
    error: template argument 1 is invalid
    /opt/gcc/build/powerpc-ibm-aix5.3.0.0/libstdc++-v3/include/ext/type_traits.h:114:
    error: typedef name may not be a nested-name-specifier
    /opt/gcc/build/powerpc-ibm-aix5.3.0.0/libstdc++-v3/include/ext/type_traits.h:114:
    error: expected ';' before '>' token
    /opt/gcc/build/powerpc-ibm-aix5.3.0.0/libstdc++-v3/include/ext/type_traits.h:117:
    error: '__if_type' has not been declared
    In file included from
    /opt/gcc/build/powerpc-ibm-aix5.3.0.0/libstdc++-v3/include/cmath:54,
    from
    /opt/gcc/gcc-4.2.0/libstdc++-v3/include/precompiled/stdc++.h:44:
    /opt/gcc/build/./gcc/include/math.h:55: error: expected constructor,
    destructor, or type conversion before 'extern'
    In file included from
    /opt/gcc/build/powerpc-ibm-aix5.3.0.0/libstdc++-v3/include/powerpc-ibm-aix5.3.0.0/bits/c++io.h:43,
    from
    /opt/gcc/build/powerpc-ibm-aix5.3.0.0/libstdc++-v3/include/iosfwd:46,
    from
    /opt/gcc/build/powerpc-ibm-aix5.3.0.0/libstdc++-v3/include/bits/stl_algobase.h:70,
    from
    /opt/gcc/build/powerpc-ibm-aix5.3.0.0/libstdc++-v3/include/algorithm:65,
    from
    /opt/gcc/gcc-4.2.0/libstdc++-v3/include/precompiled/stdc++.h:55:
    /opt/gcc/build/powerpc-ibm-aix5.3.0.0/libstdc++-v3/include/powerpc-ibm-aix5.3.0.0/bits/gthr.h:33:
    error: expected declaration before end of line
    gmake[4]: *** [powerpc-ibm-aix5.3.0.0/bits/stdc++.h.gch/O0g.gch] Error 1
    gmake[3]: *** [all-recursive] Error 1
    gmake[2]: *** [all] Error 2
    gmake[1]: *** [all-target-libstdc++-v3] Error 2
    gmake: *** [all] Error 2


  2. Re: Experience with g++ 4.2.0 on AIX 5.3

    Check http://www.perzl.org/aix/,
    The IBM provided AIX GNU packages are pretty outdated.

    hth
    Hajo

  3. Re: Experience with g++ 4.2.0 on AIX 5.3

    > Check http://www.perzl.org/aix/,
    > The IBM provided AIX GNU packages are pretty outdated.
    >


    Unfortunately it doesn't work either. Even for simple Hello World type of
    applications it doesn't work with the c++ compiler:

    bash-3.2# g++ t.cpp
    ld: 0711-224 WARNING: Duplicate symbol: .__divdi3
    ld: 0711-224 WARNING: Duplicate symbol: .__moddi3
    ld: 0711-224 WARNING: Duplicate symbol: .__udivdi3
    ld: 0711-224 WARNING: Duplicate symbol: .__umoddi3
    ld: 0711-224 WARNING: Duplicate symbol: .__udivmoddi4
    ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more
    information.


    This is a plain install with the latest patches installed... Perhaps I
    should do a new install and stop installing the patches? It could that the
    compiler isn't ready for the latest patches.... Why is aix suppose to be
    that complicated!?

    -- Henrik

    http://www.x-formation.com/
    http://kb.x-formation.com/categories...lm+and+FLEXnet


  4. Re: Experience with g++ 4.2.0 on AIX 5.3

    On May 17, 12:45 pm, "Henrik Goldman" wrote:
    > > Check http://www.perzl.org/aix/,
    > > The IBM provided AIX GNU packages are pretty outdated.

    >
    > Unfortunately it doesn't work either. Even for simple Hello World type of
    > applications it doesn't work with the c++ compiler:
    >
    > bash-3.2# g++ t.cpp
    > ld: 0711-224 WARNING: Duplicate symbol: .__divdi3
    > ld: 0711-224 WARNING: Duplicate symbol: .__moddi3
    > ld: 0711-224 WARNING: Duplicate symbol: .__udivdi3
    > ld: 0711-224 WARNING: Duplicate symbol: .__umoddi3
    > ld: 0711-224 WARNING: Duplicate symbol: .__udivmoddi4
    > ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more
    > information.

    These are warning , normaly they can be ignored
    ....
    > compiler isn't ready for the latest patches.... Why is aix suppose to be
    > that complicated!?

    Its different but not complicated. As a matter of fact for me ( I am
    not a programmer ) its f... easy.

    cheers
    Hajo

  5. Re: Experience with g++ 4.2.0 on AIX 5.3

    "Henrik Goldman" writes:

    > Unfortunately it doesn't work either. Even for simple Hello World type
    > of applications it doesn't work with the c++ compiler:
    >
    > bash-3.2# g++ t.cpp
    > ld: 0711-224 WARNING: Duplicate symbol: .__divdi3
    > ld: 0711-224 WARNING: Duplicate symbol: .__moddi3
    > ld: 0711-224 WARNING: Duplicate symbol: .__udivdi3
    > ld: 0711-224 WARNING: Duplicate symbol: .__umoddi3
    > ld: 0711-224 WARNING: Duplicate symbol: .__udivmoddi4
    > ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.


    These are *harmless* warnings.

    What exactly didn't work?
    Didn't above command produce 'a.out'? Did that 'a.out' not run?

    > Why is aix suppose to be that complicated!?


    I am sure it's not intentional, and there are some significant
    advantages to AIX linking model, which are slowly percolating into
    the ELF world as well (symbol visibility and all).

    Cheers,
    --
    In order to understand recursion you must first understand recursion.
    Remove /-nsp/ for email.

  6. Re: Experience with g++ 4.2.0 on AIX 5.3

    ....
    >> ld: 0711-224 WARNING: Duplicate symbol: .__udivmoddi4
    >> ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more
    >> information.

    >
    > These are *harmless* warnings.
    >
    > What exactly didn't work?
    > Didn't above command produce 'a.out'? Did that 'a.out' not run?


    Well it started out being simple warnings and ended with something more
    problematic.
    It did run... but more complex code does not.

    After digging further I got these warnings as you see and then further a few
    more warnings of similar type.

    However there must be something wrong... since after a lot of work I started
    to get crashes with static variables.

    As an example here is some code that breaks down when a static std::string
    gets assigned:

    Program received signal SIGSEGV, Segmentation fault.
    [Switching to Thread 1]
    0xd1f6ad78 in std::string::assign ()
    from
    /opt/freeware/lib/gcc/powerpc-ibm-aix5.3.0.0/4.2.3/libstdc++.a(libstdc++.so.6)
    (gdb) bt
    #0 0xd1f6ad78 in std::string::assign ()
    from
    /opt/freeware/lib/gcc/powerpc-ibm-aix5.3.0.0/4.2.3/libstdc++.a(libstdc++.so.6)
    #1 0xd1fb135c in std::string:perator= ()
    from
    /opt/freeware/lib/gcc/powerpc-ibm-aix5.3.0.0/4.2.3/libstdc++.a(libstdc++.so.6)
    #2 0x10113a80 in CMultiuserStressTest::SetOut (this=0x2ff229c8,
    strOut=@0x2ff229b4) at test_network.cpp:67

    The code in question is some unittest code that looks like:

    void SetOut(string strOut)
    {
    m_strOut = strOut;
    }

    The m_strOut variable is a static one defined as:


    string CMultiuserStressTest::m_strOut;


    I'm not sure what strategy to take on this one... I guess I should either
    try another compiler version or perhaps go for recompiling gcc again.
    However when I tried a few days ago it ended in horror and I lots 24 hours
    waiting for it to finish.

    -- Henrik


  7. Re: Experience with g++ 4.2.0 on AIX 5.3

    > Its different but not complicated. As a matter of fact for me ( I am
    > not a programmer ) its f... easy.
    >

    Have you ever considered that some other programmer had to deal with it
    before you could just type the commands? Essentially it's f... easy to type
    a command and expect output... but what I'm talking about here is slightly
    more complicated.

    I tried to recompile gcc a couple of days ago and initially I had problems
    with buggy headers from IBM. Eventually I found a patch against that since
    it was a bug in the OS... and then I ended up on numerous linker related
    errors where I ended off with these. The recompilation failed though at some
    point where it was unable to recover with wrongly auto-generated code. E.g.
    header file was missing the header and still had a #endif at the bottom...
    Don't tell me it's f... easy if you haven't tried it and wasted 4 days on
    getting something simple like this working.

    -- Henrik


  8. Re: Experience with g++ 4.2.0 on AIX 5.3

    On 2008-05-18, Henrik Goldman wrote:
    > I tried to recompile gcc a couple of days ago and initially I had problems
    > with buggy headers from IBM. Eventually I found a patch against that since
    > it was a bug in the OS... and then I ended up on numerous linker related
    > errors where I ended off with these. The recompilation failed though at some
    > point where it was unable to recover with wrongly auto-generated code. E.g.
    > header file was missing the header and still had a #endif at the bottom...
    > Don't tell me it's f... easy if you haven't tried it and wasted 4 days on
    > getting something simple like this working.


    Building gcc was pretty straight forward the last time i did it on AIX
    (v4.1.0 IIRC). Some pointers that'll help you to speed up the build:
    - use a RAM disk as your build directory. IIRC it needs at least 2GB
    RAM.
    - set CONFIG_SHELL to anything != /bin/sh, preferably bash from the
    toolbox.
    - take a look at the AIX specific build instructions for gcc:
    http://gcc.gnu.org/install/specific.html#x-ibm-aix

    Bootstrapping took me about 48 hours on a dual 200 MHz 7043-260 and 4GB
    RAM with gcc, g++ and gfortan enabled.

    HTH,

    Frank

  9. Re: Experience with g++ 4.2.0 on AIX 5.3

    On May 18, 11:15 pm, "Henrik Goldman" wrote:
    ....
    > a command and expect output... but what I'm talking about here is slightly
    > more complicated.

    Wooh

    First you say that you are using the IBM provided GCC which is broken
    afaik. That's the reason why i pointed you to poerzl.org
    Then you say that your own build does not work and you do not provide
    the build environment for your GCC.
    Then you are even not able to provide a piece of code which will show
    your problem thus we are not able to reproduces it.

    Its really easy to help you.
    Hajo

  10. Re: Experience with g++ 4.2.0 on AIX 5.3

    Henrik Goldman wrote:
    >
    > Goddamit I hate AIX. Why does everything has to be that complicated? It
    > took me less than 1 hour to do the same task on linux and now I'm
    > fighting for 4 days.


    Not too long ago this used to read, "It took me less than 1 hour to do
    the same task on Solaris...."

    "Why does everything have to be that complicated?" As you've already
    discovered, sometimes people get things wrong (e.g. the header file
    debacle), and sometimes people pave the way before you. Too often
    programmers ignorantly and erroneously presume that just because it's
    linux it's portable and compatible.

  11. Re: Experience with g++ 4.2.0 on AIX 5.3


    > Not too long ago this used to read, "It took me less than 1 hour to do
    > the same task on Solaris...."
    >


    I don't think I've said that statement. I got nearly as many problems with
    Solaris 8 as I have with AIX.

    > "Why does everything have to be that complicated?" As you've already
    > discovered, sometimes people get things wrong (e.g. the header file
    > debacle), and sometimes people pave the way before you. Too often
    > programmers ignorantly and erroneously presume that just because it's
    > linux it's portable and compatible.


    I know that working code doesn't come for free. Lots of efforts has to be
    done on quality assurance etc.
    However you cannot deny the fact that with a user group on linux growing
    every day there is a lot more interest (and people) to find and solve the
    problems more quickly.

    -- Henrik


  12. Re: Experience with g++ 4.2.0 on AIX 5.3


    > First you say that you are using the IBM provided GCC which is broken
    > afaik. That's the reason why i pointed you to poerzl.org
    > Then you say that your own build does not work and you do not provide
    > the build environment for your GCC.


    It is AIX 5.3 TL08. First I installed the 4.2.3 build from the website and
    then used that to bootstrap the source.

    > Then you are even not able to provide a piece of code which will show
    > your problem thus we are not able to reproduces it.


    It's not as easy as you might thing. The actual application failing is more
    than 10000 lines of code. Obviously there is always a risk of uncovered bugs
    and this typically take a while to figure out.

    However I managed to narrow down the problems. What I find is that it breaks
    a signal 11 whenever I assign to a static class variable:

    Program received signal SIGSEGV, Segmentation fault.
    [Switching to Thread 1]
    0xd1decd7c in std::string::assign (this=,
    __str=)
    from
    /opt/freeware/lib/gcc/powerpc-ibm-aix5.3.0.0/4.2.3/libstdc++.a(libstdc++.so.6)



    (gdb) bt
    #0 0xd1decd7c in std::string::assign (this=,
    __str=)
    from
    /opt/freeware/lib/gcc/powerpc-ibm-aix5.3.0.0/4.2.3/libstdc++.a(libstdc++.so.6)
    #1 0xd1e3a8b0 in std::string:perator= (this=,
    __str=)
    from
    /opt/freeware/lib/gcc/powerpc-ibm-aix5.3.0.0/4.2.3/libstdc++.a(libstdc++.so.6)
    #2 0x1011418c in CNonblockingSocketTest::SetOut (this=0x2ff22890,
    strOut=@0x2ff22840) at test_network.cpp:916

    At the current stage I'm trying to narrow this down into a re-pro that can
    be shared... however how would that help me anyway? Even if it's a bug in
    the compiler then chances are that it goes unresolved for a long time. I
    already saw the first warning signs with the warnings, c++ code that doesn't
    alway link properly and now the static variable.


    This makes it really hard to support for any serious usage.

    -- Henrik


+ Reply to Thread