i all, I'm trying to compile gcc-3.4.6 on solaris 8 sparc platform. I'm facing a problem that i'm not able to solve myself. Is there any guru of gcc compilation who can help me ? This the way i'm trying to compile gcc : --------------------------------------------------------- Sources of gcc-3.4.6 are in /projets/ITG/itgdev21/base_gcc/gcc-3.4.6 mkdir /projets/ITG/itgdev21/base_gcc/gcc-3.4.2_depl cd /projets/ITG/itgdev21/base_gcc/gcc-3.4.2_depl i'm using : gnu make to compile gcc as there is problem with solaris make. export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH (for iconv). export PATH=$HOME/make/bin:/usr/ccs/bin:$PATH Configuration Steps : ------------------------------ export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH (for iconv). export PATH=$HOME/make/bin:/usr/ccs/bin:$PATH ($HOME/make/bin pointed to gnu make i have compile by myself). ../gcc-3.4.6/configure --prefix=/var/tmp --disable-nls --enable-shared --enable-languages=c,c++ --enable-__cxa_atexit --enable-clocale=gnu The result is ------------------- In file included from /ITGDEVWEB/projet/itgdev21/base_gcc/gcc-3.4.6_depl/sparc-sun-solaris2.8/sparcv9/libstdc++-v3/include/iosfwd:46, from /ITGDEVWEB/projet/itgdev21/base_gcc/gcc- 3.4.6_depl/sparc-sun-solaris2.8/sparcv9/libstdc++-v3/include/bits/stl_algobase.h:70, from /ITGDEVWEB/projet/itgdev21/base_gcc/gcc-3.4.6_depl/sparc-sun-solaris2.8/sparcv9/libstdc++-v3/include/memory:54 , from ../../../../../gcc-3.4.6/libstdc++-v3/src/allocator.cc:35: /ITGDEVWEB/projet/itgdev21/base_gcc/gcc-3.4.6_depl/sparc-sun-solaris2.8/sparcv9/libstdc++-v3/include/sparc-sun-solaris2.8/bits/c++locale.h:61: error: `__locale_t' does not name a type /ITGDEVWEB/projet/itgdev21/base_gcc/gcc-3.4.6_depl/sparc-sun-solaris2.8/sparcv9/libstdc++-v3/include/sparc-sun-solaris2.8/bits/c++locale.h:75: error: expected `,' or `...' before '&' token /ITGDEVWEB/projet/itgdev21/base_gcc/gcc-3.4.6_depl/sparc-sun-solaris2.8/sparcv9/libstdc++-v3/include/sparc-sun-solaris2.8/bits/c++locale.h: In function `int std::__convert_from_v(char*, int, const char*, _Tv, int)': /ITGDEVWEB/projet/itgdev21/base_gcc/gcc-3.4.6_depl/sparc-sun-solaris2.8/sparcv9/libstdc++-v3/include/sparc-sun-solaris2.8/bits/c++locale.h:86: error: `__prec' was not declared in this scope make[6]: *** [allocator.lo] Error 1 make[6]: Leaving directory `/ITGDEVWEB/projet/itgdev21/base_gcc/gcc- 3.4.6_depl/sparc-sun-solaris2.8/sparcv9/libstdc++-v3/src' make[5]: *** [all-recursive] Error 1 make[5]: Leaving directory `/ITGDEVWEB/projet/itgdev21/base_gcc/gcc- 3.4.6_depl/sparc-sun-solaris2.8/sparcv9/libstdc++-v3' make[4]: *** [all] Error 2 make[4]: Leaving directory `/ITGDEVWEB/projet/itgdev21/base_gcc/gcc- 3.4.6_depl/sparc-sun-solaris2.8/sparcv9/libstdc++-v3' make[3]: *** [multi-do] Error 1 make[3]: Leaving directory `/ITGDEVWEB/projet/itgdev21/base_gcc/gcc- 3.4.6_depl/sparc-sun-solaris2.8/libstdc++-v3' make[2]: *** [all-multi] Error 2 make[2]: Leaving directory `/ITGDEVWEB/projet/itgdev21/base_gcc/gcc- 3.4.6_depl/sparc-sun-solaris2.8/libstdc++-v3' make[1]: *** [all] Error 2 make[1]: Leaving directory `/ITGDEVWEB/projet/itgdev21/base_gcc/gcc- 3.4.6_depl/sparc-sun-solaris2.8/libstdc++-v3' make: *** [all-target-libstdc++-v3] Error 2 bash-2.03$ Anyone could help me solving this issue. The strange thing is using --enable-langages=c, gcc is properly compiling. I'm trying to use the following comands : ../gcc-3.4.6/configure --prefix=/var/tmp --disable-nls --enable-languages=c,c++ --enable-__cxa_atexit --enable-clocale=gnu as it seems --enable-shared does not seems to be compatible with libstdc++ Any help would be much appreciate as soon i'm really facing a problem. One more question, is gcc-4.2.1 is compiling on solaris 2.8 as soon as it'is not available on sunfreeware ? Kind Regards, Farid.