NetBSD Problem Report #42402

From www@NetBSD.org  Wed Dec  2 22:40:39 2009
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by www.NetBSD.org (Postfix) with ESMTP id 372DD63C4CB
	for <gnats-bugs@gnats.netbsd.org>; Wed,  2 Dec 2009 22:40:39 +0000 (UTC)
Message-Id: <20091202224039.0EDE163C4AF@www.NetBSD.org>
Date: Wed,  2 Dec 2009 22:40:39 +0000 (UTC)
From: mi+netbsd@aldan.algebra.com
Reply-To: mi+netbsd@aldan.algebra.com
To: gnats-bugs@NetBSD.org
Subject: bootstrap fails when using CXX=g++44
X-Send-Pr-Version: www-1.0

>Number:         42402
>Category:       pkg
>Synopsis:       bootstrap fails when using CXX=g++44
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Dec 02 22:45:00 +0000 2009
>Last-Modified:  Fri Dec 04 21:10:03 +0000 2009
>Originator:     Mikhail T.
>Release:        
>Organization:
Virtual Estates, Inc.
>Environment:
Linux ws-testjw.MYDOMAIN.com 2.6.18-164.el5 #1 SMP Tue Aug 18 15:51:48 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux
>Description:
env CC=gcc44 CXX=g++44 CFLAGS="-O2 -pipe -march=core2 -fno-strict-aliasing" ./bootstrap --abi 64 --pkgdbdir /var/db/pkg --prefix /opt --sysconfdir /etc --varbase /var --workdir /tmp/bootstrap

[...]

checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking whether we are using the GNU C++ compiler... no
checking whether g++44 accepts -g... no
checking dependency style of g++44... none
checking how to run the C++ preprocessor... cpp
configure: error: C++ preprocessor "cpp" fails sanity check
See `config.log' for more details.
*** Error code 1

Stop.
bmake: stopped in /usr/pkgsrc/pkgtools/pkg_install
WARNING: *** Please consider adding c++ to USE_LANGUAGES in the package Makefile.
*** Error code 1

Stop.
bmake: stopped in /usr/pkgsrc/pkgtools/pkg_install
===> exited with status 1
aborted.

>How-To-Repeat:
Try bootstrapping on Linux as shown in the Full Description
>Fix:
Do not specify the alternative C++ compiler...

>Audit-Trail:
From: pan Boston-Kievskij <mi+gusar@aldan.algebra.com>
To: gnats-bugs@NetBSD.org
Cc: gnats-admin@NetBSD.org, pkgsrc-bugs@NetBSD.org
Subject: Re: pkg/42402: bootstrap fails when using CXX=g++44
Date: Thu, 03 Dec 2009 12:43:47 -0500

 Apparently, this happens, when there is no "regular" c++ compiler
 installed on the system. Only cc, gcc44, and g++44.

 c++ should not be needed, if I specify CXX=whatever...

 	-mi

From: "Mikhail T." <mi+thun@aldan.algebra.com>
To: gnats-bugs@NetBSD.org
Cc: pkg-manager@NetBSD.org, gnats-admin@NetBSD.org, pkgsrc-bugs@NetBSD.org,
        mi+netbsd@aldan.algebra.com
Subject: Re: pkg/42402: bootstrap fails when using CXX=g++44
Date: Fri, 04 Dec 2009 16:07:22 -0500

 >  Apparently, this happens, when there is no "regular" c++ compiler
 >  installed on the system. Only cc, gcc44, and g++44.
 >  
 >  c++ should not be needed, if I specify CXX=whatever...
 >  
 >  	-mi

 It seems, that all failures to use g++44 are due to:

 ...
 configure:5201: checking for C++ compiler version
 configure:5208: g++44 --version >&5
 PKGSRC-WARNING: Something is trying to run the c++ compiler,
 PKGSRC-WARNING: but it is not added to USE_LANGUAGES in the
 					package Makefile.
 configure:5211: $? = 1
 ...

 Hope, this helps. Yours,

 	-mi

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.