NetBSD Problem Report #50315

From rhialto@falu.nl  Thu Oct  8 18:48:20 2015
Return-Path: <rhialto@falu.nl>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 001C9A5858
	for <gnats-bugs@gnats.NetBSD.org>; Thu,  8 Oct 2015 18:48:19 +0000 (UTC)
Message-Id: <201510081848.t98ImF0D015503@murthe.falu.nl>
Date: Thu, 8 Oct 2015 20:48:15 +0200 (CEST)
From: rhialto@falu.nl
Reply-To: rhialto@falu.nl
To: gnats-bugs@gnats.NetBSD.org
Subject: textproc/link-grammar fails to configure (pkgsrc-2015Q3)
X-Send-Pr-Version: 3.95

>Number:         50315
>Category:       pkg
>Synopsis:       textproc/link-grammar fails to configure (pkgsrc-2015Q3)
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Oct 08 18:50:00 +0000 2015
>Last-Modified:  Thu Oct 08 19:05:00 +0000 2015
>Originator:     Rhialto
>Release:        NetBSD 6.1.5
>Organization:

>Environment:


System: NetBSD murthe.falu.nl 6.1.5 NetBSD 6.1.5 (MURTHE6.1.5) #0: Sun Oct 5 01:15:04 CEST 2014 rhialto@vargaz.falu.nl:/usr/src/sys/arch/amd64/compile/MURTHE6.1.5 amd64
Architecture: x86_64
Machine: amd64
>Description:
	When building textproc/link-grammar  from pkgsrc-2015Q3, the
	following happens:


Script started on Thu Oct  8 20:36:45 2015
...
checking how to run the C++ preprocessor... c++ -E
checking for ld used by c++... /home/tmp/textproc/link-grammar/work.x86_64/.wrapper/bin/ld
checking if the linker (/home/tmp/textproc/link-grammar/work.x86_64/.wrapper/bin/ld) is GNU ld... yes
checking whether the c++ linker (/home/tmp/textproc/link-grammar/work.x86_64/.wrapper/bin/ld) supports shared libraries... yes
checking for c++ option to produce PIC... -fPIC -DPIC
checking if c++ PIC flag -fPIC -DPIC works... yes
checking if c++ static flag -static works... yes
checking if c++ supports -c -o file.o... rm: conftest*: No such file or directory
yes
checking if c++ supports -c -o file.o... (cached) yes
checking whether the c++ linker (/home/tmp/textproc/link-grammar/work.x86_64/.wrapper/bin/ld) supports shared libraries... yes
...
checking stdio.h usability... no
checking stdio.h presence... yes
configure: WARNING: stdio.h: present but cannot be compiled
configure: WARNING: stdio.h:     check for missing prerequisite headers?
configure: WARNING: stdio.h: see the Autoconf documentation
configure: WARNING: stdio.h:     section "Present But Cannot Be Compiled"
configure: WARNING: stdio.h: proceeding with the compiler's result
configure: WARNING:     ## -------------------------------------------- ##
configure: WARNING:     ## Report this to link-grammar@googlegroups.com ##
configure: WARNING:     ## -------------------------------------------- ##
checking for stdio.h... no
configure: error: C++ compiler not found; it is needed for the SAT parser
*** Error code 1

Stop.
make: stopped in /mnt/vol1/rhialto/cvs/pkgsrc/textproc/link-grammar
*** Error code 1

Stop.
make: stopped in /mnt/vol1/rhialto/cvs/pkgsrc/textproc/link-grammar

Script done on Thu Oct  8 20:36:53 2015

	Looking at the configure.log file where stdio occurs, I see:


configure:16772: checking stdio.h usability
configure:16772: c++ -c -O2 -O3 -Wall -std=c++03  -DUSE_SAT_SOLVER=1 conftest.cpp >&5
cc1plus: error: unrecognized command line option "-std=c++03"
configure:16772: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "link-grammar"
| #define PACKAGE_TARNAME "link-grammar"
...

	in other words, in this test it supplies an option to g++ which
	it didn't do before.

	I don't know if it really required a C++03 compiler or not.
	The g++ I have is from NetBSD/amd64 6.1.5:

Using built-in specs.
COLLECT_GCC=gcc
Target: x86_64--netbsd
Configured with: /usr/src2/tools/gcc/../../external/gpl3/gcc/dist/configure --target=x86_64--netbsd --enable-long-long --enable-threads --with-bugurl=http://www.NetBSD.org/Misc/send-pr.html --with-pkgversion='NetBSD nb2 20111202' --enable-__cxa_atexit --with-tune=nocona --with-mpc=/var/obj/mknative/amd64/usr/src2/destdir.amd64/usr --with-mpfr=/var/obj/mknative/amd64/usr/src2/destdir.amd64/usr --with-gmp=/var/obj/mknative/amd64/usr/src2/destdir.amd64/usr --enable-tls --disable-multilib --disable-symvers --disable-libstdcxx-pch --build=x86_64-unknown-netbsd5.99.56 --host=x86_64--netbsd
Thread model: posix
gcc version 4.5.3 (NetBSD nb2 20110806) 

>How-To-Repeat:

>Fix:
	Use a C++ 2003 compiler? Which one is that?
	However that would probably force all programs using the library
	to also use that compiler, due to the appalling lack of ABI
	compatibility between g++ versions.

-Olaf.
-- 
___ Olaf 'Rhialto' Seibert  -- The Doctor: No, 'eureka' is Greek for
\X/ rhialto/at/xs4all.nl    -- 'this bath is too hot.'

>Audit-Trail:
From: Joerg Sonnenberger <joerg@britannica.bec.de>
To: gnats-bugs@NetBSD.org
Cc: pkg-manager@netbsd.org, gnats-admin@netbsd.org, pkgsrc-bugs@netbsd.org
Subject: Re: pkg/50315: textproc/link-grammar fails to configure
 (pkgsrc-2015Q3)
Date: Thu, 8 Oct 2015 21:04:26 +0200

 On Thu, Oct 08, 2015 at 06:50:00PM +0000, rhialto@falu.nl wrote:
 > >Fix:
 > 	Use a C++ 2003 compiler? Which one is that?

 Essentially, any modernish C++ compiler. It's C++98 with some additional
 corrections to the runtime. The flag should really not be added in first
 place.

 Joerg

>Unformatted:

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-2014 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.