Subject: Re: lang/gcc34 seems to be broken on Solaris 10, need help
To: Raymond Meyer <raymond.meyer@rambler.ru>
From: Raymond Meyer <raymond.meyer@rambler.ru>
List: pkgsrc-users
Date: 06/29/2006 07:08:34
On Wed, 28 Jun 2006 01:53:36 +0100
Raymond Meyer <raymond.meyer@rambler.ru> wrote:
> Hi, I'm trying to build lang/gcc34 (C, C++ and Fortran compilers) on Solaris
> 10, after compiling for a while, it stops with the following error message:
>
> creating libtool
> updating cache ./config.cache
> configure: loading cache ./config.cache
> checking how to run the C++ preprocessor... cpp
> configure: error: C++ preprocessor "cpp" fails sanity check
> See `config.log' for more details.
> gmake[1]: *** [configure-target-libstdc++-v3] Error 1
> gmake[1]: Leaving directory `/opt/pkg.obj/lang/gcc34/work.ultra10-lan/obj'
> gmake: *** [bootstrap] Error 2
> *** Error code 2
>
> Stop.
> bmake: stopped in /opt/pkgsrc/lang/gcc34
>
>
> Checking
> /opt/pkg.obj/lang/gcc34/work.ultra10-lan/obj/sparc-sun-solaris2.10/libstdc+
> +-v3/config.log
>
> I see the following errors:
>
> configure:4698: checking how to run the C++ preprocessor
> configure:4812: result: cpp
> configure:4836: cpp -O2 -O3 -mcpu=ultrasparc -mvis -mv8plus -pipe
> -I/opt/pkg.obj /lang/gcc34/work.ultra10-lan/.buildlink/include
> -I/opt/pkg/include -I/usr/includ e conftest.cc
> cpp: installation problem, cannot exec `cc1plus': No such file or directory
> configure:4842: $? = 1
> configure: failed program was:
> | /* confdefs.h. */
> |
> | #define PACKAGE_NAME "package-unused"
> | #define PACKAGE_TARNAME "libstdc++"
> | #define PACKAGE_VERSION "version-unused"
> | #define PACKAGE_STRING "package-unused version-unused"
> | #define PACKAGE_BUGREPORT ""
> | #ifdef __cplusplus
> | extern "C" void exit (int);
> | #endif
> | /* end confdefs.h. */
> | #ifdef __STDC__
> | # include <limits.h>
> | #else
> | # include <assert.h>
> | #endif
> | Syntax error
>
>
> So I ran the following command manually, because I assume that is the cpp
> which is called by configure script
>
> # /opt/pkg.obj/lang/gcc34/work.ultra10-lan/obj/gcc/stage2/cpp /tmp/conftest.cc
> cpp: installation problem, cannot exec `cc1plus': No such file or directory
>
> Does anyone know what would be a proper fix to this?
>
Well seems like I need to have both bootstrap gcc C AND C++ compilers
installed. Installing lang/gcc3-c++ fixed the issue...