NetBSD Problem Report #48504
From hf@spg.tu-darmstadt.de Tue Jan 7 15:35:06 2014
Return-Path: <hf@spg.tu-darmstadt.de>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
(Client CN "mail.NetBSD.org", Issuer "Postmaster NetBSD.org" (not verified))
by mollari.NetBSD.org (Postfix) with ESMTPS id D4D4FA6468
for <gnats-bugs@gnats.NetBSD.org>; Tue, 7 Jan 2014 15:35:06 +0000 (UTC)
Message-Id: <201401071530.s07FURfQ023898@Hochstuhl.nt.e-technik.tu-darmstadt.de>
Date: Tue, 7 Jan 2014 16:30:27 +0100 (CET)
From: Hauke Fath <hf@spg.tu-darmstadt.de>
Reply-To: Hauke Fath <hf@spg.tu-darmstadt.de>
To: gnats-bugs@gnats.NetBSD.org
Cc: Hauke Fath <hf@spg.tu-darmstadt.de>
Subject: devel/binutils does not build
X-Send-Pr-Version: 3.95
>Number: 48504
>Category: pkg
>Synopsis: devel/binutils does not build
>Confidential: no
>Severity: critical
>Priority: high
>Responsible: pkg-manager
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Jan 07 15:40:00 +0000 2014
>Closed-Date: Fri Jan 17 05:55:00 +0000 2014
>Last-Modified: Fri Jan 17 08:30:00 +0000 2014
>Originator: Hauke Fath
>Release: NetBSD 6.1_RC3
>Organization:
>Environment:
System: NetBSD Hochstuhl 6.1_RC3 NetBSD 6.1_RC3 (MONOLITHIC) #0: Mon Apr 22 18:37:21 CEST 2013 hf@Hochstuhl:/var/obj/netbsd-builds/6/i386/sys/arch/i386/compile/MONOLITHIC i386
Architecture: i386
Machine: i386
>Description:
[...]
Configuring in ./opcodes
configure: creating cache ./config.cache
checking build system type... i486--netbsdelf
checking host system type... i486--netbsdelf
checking target system type... i486--netbsdelf
checking for i486--netbsdelf-gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for library containing strerror... none required
./configure.lineno: 3239: Syntax error: Missing '}'
*** Error code 1
Stop.
make: stopped in /var/obj/pkgsrc/devel/binutils/work/binutils-2.24
*** Error code 1
where opcodes/configure.lineno has
3232 int
3233 main ()
3234 {
3235 #ifndef __GNUC__
3236 choke me
3237 #endif
3238
3239 ;
3240 return 0;
3241 }
>How-To-Repeat:
Build binutils. Try to, that is.
>Fix:
If I knew...
>Release-Note:
>Audit-Trail:
From: Thomas Klausner <wiz@NetBSD.org>
To: NetBSD bugtracking <gnats-bugs@NetBSD.org>
Cc: Greg Oster <oster@cs.usask.ca>
Subject: Re: pkg/48504: devel/binutils does not build
Date: Tue, 7 Jan 2014 21:20:43 +0100
On Tue, Jan 07, 2014 at 03:40:00PM +0000, Hauke Fath wrote:
> Stop.
> make: stopped in /var/obj/pkgsrc/devel/binutils/work/binutils-2.24
> *** Error code 1
>
> where opcodes/configure.lineno has
>
> 3232 int
> 3233 main ()
> 3234 {
> 3235 #ifndef __GNUC__
> 3236 choke me
> 3237 #endif
> 3238
> 3239 ;
> 3240 return 0;
> 3241 }
>
>
> >How-To-Repeat:
>
> Build binutils. Try to, that is.
There is a difference to 2.23.2 a few lines higher, which is:
@@ -3216,7 +3216,7 @@
# We currently only use the version number for the name of any shared
# library. For user convenience, we always use the same version
# number that BFD is using.
-BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
+BFD_VERSION=`${srcdir}/../bfd/configure --version | sed -n -e '1s,.* ,,p'`
am__api_version='1.11'
Does anyone remember a shell bug that was fixed post-6-release that
might cause trouble here?
Should we use CONFIGURE_SHELL=bash on NetBSD<6.99?
Thomas
From: Greg Oster <oster@cs.usask.ca>
To: Thomas Klausner <wiz@NetBSD.org>
Cc: NetBSD bugtracking <gnats-bugs@NetBSD.org>
Subject: Re: pkg/48504: devel/binutils does not build
Date: Tue, 7 Jan 2014 15:26:10 -0600
On Tue, 7 Jan 2014 21:20:43 +0100
Thomas Klausner <wiz@NetBSD.org> wrote:
> On Tue, Jan 07, 2014 at 03:40:00PM +0000, Hauke Fath wrote:
> > Stop.
> > make: stopped in /var/obj/pkgsrc/devel/binutils/work/binutils-2.24
> > *** Error code 1
> >
> > where opcodes/configure.lineno has
> >
> > 3232 int
> > 3233 main ()
> > 3234 {
> > 3235 #ifndef __GNUC__
> > 3236 choke me
> > 3237 #endif
> > 3238
> > 3239 ;
> > 3240 return 0;
> > 3241 }
> >
> >
> > >How-To-Repeat:
> >
> > Build binutils. Try to, that is.
>
> There is a difference to 2.23.2 a few lines higher, which is:
>
> @@ -3216,7 +3216,7 @@
> # We currently only use the version number for the name of any shared
> # library. For user convenience, we always use the same version
> # number that BFD is using.
> -BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^
> ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
> +BFD_VERSION=`${srcdir}/../bfd/configure --version | sed -n -e
> '1s,.* ,,p'` am__api_version='1.11'
Using the "BFD_VERSION=`sed -n -e ..." line doesn't change anything for
me.
> Does anyone remember a shell bug that was fixed post-6-release that
> might cause trouble here?
>
> Should we use CONFIGURE_SHELL=bash on NetBSD<6.99?
Using "CONFIGURE_SHELL=bash" doesn't fix it either.
I'm on NetBSD/amd64 6.1.2.
Later...
Greg Oster
From: christos@zoulas.com (Christos Zoulas)
To: gnats-bugs@NetBSD.org, pkg-manager@netbsd.org, gnats-admin@netbsd.org,
pkgsrc-bugs@netbsd.org, Hauke Fath <hf@spg.tu-darmstadt.de>
Cc:
Subject: Re: pkg/48504: devel/binutils does not build
Date: Tue, 7 Jan 2014 17:49:10 -0500
On Jan 7, 8:25pm, wiz@NetBSD.org (Thomas Klausner) wrote:
-- Subject: Re: pkg/48504: devel/binutils does not build
| The following reply was made to PR pkg/48504; it has been noted by GNATS.
|
| From: Thomas Klausner <wiz@NetBSD.org>
| To: NetBSD bugtracking <gnats-bugs@NetBSD.org>
| Cc: Greg Oster <oster@cs.usask.ca>
| Subject: Re: pkg/48504: devel/binutils does not build
| Date: Tue, 7 Jan 2014 21:20:43 +0100
|
| On Tue, Jan 07, 2014 at 03:40:00PM +0000, Hauke Fath wrote:
| > Stop.
| > make: stopped in /var/obj/pkgsrc/devel/binutils/work/binutils-2.24
| > *** Error code 1
| >
| > where opcodes/configure.lineno has
| >
| > 3232 int
| > 3233 main ()
| > 3234 {
| > 3235 #ifndef __GNUC__
| > 3236 choke me
| > 3237 #endif
| > 3238
| > 3239 ;
| > 3240 return 0;
| > 3241 }
| >
| >
| > >How-To-Repeat:
| >
| > Build binutils. Try to, that is.
|
| There is a difference to 2.23.2 a few lines higher, which is:
|
| @@ -3216,7 +3216,7 @@
| # We currently only use the version number for the name of any shared
| # library. For user convenience, we always use the same version
| # number that BFD is using.
| -BFD_VERSION=`sed -n -e 's/^.._INIT_AUTOMAKE.*,[ ]*\([^ ]*\)[ ]*).*/\1/p' < ${srcdir}/../bfd/configure.in`
| +BFD_VERSION=`${srcdir}/../bfd/configure --version | sed -n -e '1s,.* ,,p'`
|
| am__api_version='1.11'
|
|
| Does anyone remember a shell bug that was fixed post-6-release that
| might cause trouble here?
Yes, the $LINENO stuff.
christos
From: "Ryo ONODERA" <ryoon@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/48504 CVS commit: pkgsrc/devel/binutils
Date: Mon, 13 Jan 2014 15:06:55 +0000
Module Name: pkgsrc
Committed By: ryoon
Date: Mon Jan 13 15:06:55 UTC 2014
Modified Files:
pkgsrc/devel/binutils: Makefile
Log Message:
Fix PR pkg/48504
* Use ksh instead of /bin/sh for NetBSD 5 and 6
* Tested on NetBSD/i386 5.2 and NetBSD/amd64 6.1 with non-PREFER_PKGSRC
To generate a diff of this commit:
cvs rdiff -u -r1.55 -r1.56 pkgsrc/devel/binutils/Makefile
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
State-Changed-From-To: open->closed
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Fri, 17 Jan 2014 05:55:00 +0000
State-Changed-Why:
fixed, thanks
(right?)
From: Hauke Fath <hf@spg.tu-darmstadt.de>
To: gnats-bugs@NetBSD.org
Cc: pkg-manager@NetBSD.org, pkgsrc-bugs@NetBSD.org, gnats-admin@NetBSD.org,
dholland@NetBSD.org
Subject: Re: pkg/48504 (devel/binutils does not build)
Date: Fri, 17 Jan 2014 09:07:58 +0100
On Fri, 17 Jan 2014 05:55:00 +0000 (UTC), dholland@NetBSD.org wrote:
> fixed, thanks
> (right?)
Yes, fixed, thanks!
hauke
--=20
The ASCII Ribbon Campaign Hauke Fath
() No HTML/RTF in email Institut f=FCr Nachrichtentechnik
/\ No Word docs in email TU Darmstadt
Respect for open standards Ruf +49-6151-16-3281
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.