NetBSD Problem Report #22450
Received: (qmail 886 invoked by uid 605); 12 Aug 2003 12:42:12 -0000
Message-Id: <20030812124204.9FA8C7A5@terry.sophos.com>
Date: Tue, 12 Aug 2003 13:42:04 +0100 (BST)
From: Ian.Fry@sophos.com
Sender: gnats-bugs-owner@NetBSD.org
Reply-To: Ian.Fry@sophos.com
To: gnats-bugs@gnats.netbsd.org
Subject: devel/binutils does not build on NetBSD 1.5.x
X-Send-Pr-Version: 3.95
>Number: 22450
>Category: pkg
>Synopsis: devel/binutils does not build on NetBSD 1.5.x
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: pkg-manager
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Aug 12 12:43:00 +0000 2003
>Closed-Date: Sat Aug 23 21:15:31 +0000 2003
>Last-Modified: Sat Aug 23 21:15:31 +0000 2003
>Originator: Ian Fry
>Release: NetBSD 1.5.4_ALPHA
>Organization:
>Environment:
System: NetBSD neo.localnet 1.5.4_ALPHA NetBSD 1.5.4_ALPHA (NEO) #18: Sun Feb 9 10:46:40 GMT 2003 ief@neo.localnet:/mnt/source/kernels/NEO i386
Architecture: i386
Machine: i386
>Description:
devel/binutils does not build on NetBSD 1.5.x because it requires gcc
2.95.3 or later, and texinfo 4.6 or later
>How-To-Repeat:
cd pkgsrc/devel/binutils
make
>Fix:
This fixes the problem for 1.5.x, but introduces an extra dependency on
lang/gcc for 1.6 and later
Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/devel/binutils/Makefile,v
retrieving revision 1.14
diff -u -u -r1.14 Makefile
--- Makefile 2003/07/17 21:29:40 1.14
+++ Makefile 2003/08/02 13:12:41
@@ -16,6 +16,8 @@
USE_NEW_TEXINFO= YES
USE_PKGLOCALEDIR= YES
+TEXINFO_REQD= 4.6
+
CONFIGURE_ARGS+= --with-lib-path='/lib:/usr/lib'
PLIST_SRC= ${PKGDIR}/PLIST.common
@@ -36,5 +38,8 @@
post-install:
${FIND} ${PREFIX}/${MACHINE_GNU_PLATFORM}/lib/ldscripts -type f -print | \
${SORT} -r | ${SED} 's;${PREFIX}/;;g' > ${WRKDIR}/PLIST_DYNAMIC
+
+USE_GCC2= # defined
+.include "../../mk/gcc.buildlink2.mk"
.include "../../mk/bsd.pkg.mk"
>Release-Note:
>Audit-Trail:
From: Stoned Elipot <seb@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: pr/22450 CVS commit: pkgsrc/devel/binutils
Date: Tue, 12 Aug 2003 14:15:39 +0000 (UTC)
Module Name: pkgsrc
Committed By: seb
Date: Tue Aug 12 14:15:39 UTC 2003
Modified Files:
pkgsrc/devel/binutils: Makefile
Log Message:
A somewhat recent makeinfo is needed.
As suggested in PR pkg/22450 by <Ian dot Fry at sophos dot com>.
But version 4.0 is good enough and this is what is available on the 1.6
branch.
To generate a diff of this commit:
cvs rdiff -r1.15 -r1.16 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->feedback
State-Changed-By: seb
State-Changed-When: Tue Aug 12 14:16:50 UTC 2003
State-Changed-Why:
I have committed a fix to the package. Makeinfo version 4.0 is now
required: this version is up to the job and more it is available on 1.6
branch and in 1.6* releases.
Please note that I was able to build this package with 1.5.3's egcs.
Could you please confirm your gcc problem?
From: Ian Fry <Ian.Fry@sophos.com>
To: gnats-bugs@gnats.netbsd.org
Cc: seb@netbsd.org, pkg-manager@netbsd.org
Subject: Re: pkg/22450
Date: Tue, 12 Aug 2003 15:26:42 +0100
On Tue, Aug 12, 2003 at 02:19:56PM -0000, seb@netbsd.org wrote:
> I have committed a fix to the package. Makeinfo version 4.0 is now
> required: this version is up to the job and more it is available on 1.6
> branch and in 1.6* releases.
Excellent, thanks - I'll update pkgsrc tonight and verify this.
> Please note that I was able to build this package with 1.5.3's egcs.
> Could you please confirm your gcc problem?
IIRC (I'm not at the machine that has the problem), it fails quite early
in the auto-conf phase with a problem that is compiler related (or that's
what it seemed to me). I can get a transcript of the failure tonight and
send to you.
Ian.
From: Ian Fry <Ian.Fry@sophos.com>
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: pkg/22450
Date: Thu, 21 Aug 2003 09:16:35 +0100
--liOOAslEiF7prFVr
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
It turns out that this build failure is caused by having '.' in your PATH.
I managed to try this on another box, on which I use a different shell and
binutils built just fine. So, I tried 'env PATH=/usr/bin:/bin:/usr/pkg/bin
make' and that worked too.
I've attached a script of a failed build for reference.
Please feel free to close this PR.
Ian.
--liOOAslEiF7prFVr
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="binutils.log"
Script started on Tue Aug 12 18:06:42 2003
neo:ief /mnt/source/pkgsrc/devel/binutils $ make
===> Checking for vulnerabilities in binutils-2.14.0.0
=> Checksum OK for binutils-2.14.tar.gz.
work -> /mnt/scratch/work/pkgsrc/devel/binutils/work
===> Extracting for binutils-2.14.0.0
===> Required installed package gtexinfo>=4.6: gtexinfo-4.6nb1 found
===> Patching for binutils-2.14.0.0
===> Applying pkgsrc patches for binutils-2.14.0.0
===> Buildlinking for binutils-2.14.0.0
===> Configuring for binutils-2.14.0.0
creating cache ./config.cache
checking host system type... i386--netbsdelf
checking target system type... i386--netbsdelf
checking build system type... i386--netbsdelf
*** This configuration is not supported in the following subdirectories:
target-libiberty
(Any other directories should still work fine.)
collect2: ld returned 33 exit status
*** The command 'cc -o conftest -O2 -I/usr/pkg/include -I/usr/pkg/include -Wl,-R/usr/pkg/lib -L/usr/pkg/lib conftest.c' failed.
*** You must set the environment variable CC to a working compiler.
*** Error code 1
Stop.
*** Error code 1
Stop.
neo:ief /mnt/source/pkgsrc/devel/binutils $ exit
Script done on Tue Aug 12 18:07:16 2003
--liOOAslEiF7prFVr--
State-Changed-From-To: feedback->closed
State-Changed-By: wiz
State-Changed-When: Sat Aug 23 21:15:06 UTC 2003
State-Changed-Why:
'.' in the path is not supported :)
Thanks for tracking it down.
>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.