NetBSD Problem Report #34135
From www@NetBSD.org Thu Aug 3 14:22:30 2006
Return-Path: <www@NetBSD.org>
Received: by narn.NetBSD.org (Postfix, from userid 31301)
id 4D99163B8C1; Thu, 3 Aug 2006 14:22:30 +0000 (UTC)
Message-Id: <20060803142230.4D99163B8C1@narn.NetBSD.org>
Date: Thu, 3 Aug 2006 14:22:30 +0000 (UTC)
From: srcshelton@gmail.com
Reply-To: srcshelton@gmail.com
To: gnats-bugs@NetBSD.org
Subject: Compiler path bug in recent pkgsrc update?
X-Send-Pr-Version: www-1.0
>Number: 34135
>Category: pkg
>Synopsis: Compiler path bug in recent pkgsrc update?
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: rillig
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Aug 03 14:25:00 +0000 2006
>Closed-Date: Sun Sep 17 22:53:32 +0000 2006
>Last-Modified: Sun Sep 17 22:55:00 +0000 2006
>Originator: Stuart Shelton
>Release: n/a
>Organization:
>Environment:
IRIX64 octane 6.5 01090133 IP30 mips
>Description:
For about 2/3 days now, I've noticed that whenever I compile *any* pkgsrc package, I'm getting errors saying, for example:
/usr/bsd/var/tmp/graphics/tiff/work/.wrapper/bin/cc[50]: : cannot execute
Now "/usr/bsd/var/tmp/graphics/tiff/work/.wrapper/bin/cc" definitely exists, and is definitely executable - so is "[50]" or even "[50]: " accidentally being appended to the path to $CC?
I'm using the MIPSpro compilers ("PKGSRC_COMPILER=mipspro" in mk.conf and --preserve-path passed to the bootstrap script), so I don't know if this problem turns up in the general case.
Also note that I haven't actually experienced any build failures since this problem began to occur - so a compiler is definitely being found somewhere!
(I'm wondering if this is a linker thing... a sample chunk of output from building libtiff is:
creating tiff-bi
source='tiff-grayscale.c' object='tiff-grayscale.o' libtool=no DEPDIR=.deps depmode=sgi /bin/ksh ../../config/depcomp cc -DHAVE_CONFIG_H -I. -I. -I../../libtiff -I../../libtiff -I../../libtiff -I/usr/bsd/include -I/usr/include -c99 -O2 -n32 -mips4 -r14000 -apo -float_const -use_readonly_const -TARG:isa=mips4:platform=ip30:processor=r14000 -TENV:zeroinit_in_bss=ON -OPT:fast_io=ON:Olimit=8192:reorg_common=ON:swp=ON -LNO:auto_dist=ON:fusion_peeling_limit=8:gather_scatter=2 -woff 1174,1183,1185,1552,3970,3968 -n32 -I/usr/include -I/usr/bsd/include -fullwarn -c tiff-grayscale.c
/bin/ksh ../../libtool --tag=CC --mode=link cc -c99 -O2 -n32 -mips4 -r14000 -apo -float_const -use_readonly_const -TARG:isa=mips4:platform=ip30:processor=r14000 -TENV:zeroinit_in_bss=ON -OPT:fast_io=ON:Olimit=8192:reorg_common=ON:swp=ON -LNO:auto_dist=ON:fusion_peeling_limit=8:gather_scatter=2 -woff 1174,1183,1185,1552,3970,3968 -n32 -I/usr/include -I/usr/bsd/include -fullwarn -Wl,-v -Wl,-s -Wl,-x -n32 -mips4 -rdata_shared -Wl,-allow_jump_at_eop -Wl,-rpath,/usr/bsd/lib -n32 -L/usr/lib32 -Wl,-rpath,/usr/lib32 -L/usr/bsd/lib32 -Wl,-rpath,/usr/bsd/lib32 -o tiff-grayscale tiff-grayscale.o ../../libtiff/libtiff.la -ljpeg -lz -lm -lc
libtool: link: warning: library `/usr/bsd/var/tmp/graphics/tiff/work/.buildlink/lib32/libjpeg.la' was moved.
libtool: link: warning: library `/usr/bsd/var/tmp/graphics/tiff/work/.buildlink/lib32/libjpeg.la' was moved.
cc -c99 -O2 -n32 -mips4 -r14000 -apo -float_const -use_readonly_const -TARG:isa=mips4:platform=ip30:processor=r14000 -TENV:zeroinit_in_bss=ON -OPT:fast_io=ON:Olimit=8192:reorg_common=ON:swp=ON -LNO:auto_dist=ON:fusion_peeling_limit=8:gather_scatter=2 -woff 1174,1183,1185,1552,3970,3968 -n32 -I/usr/bsd/var/tmp/graphics/tiff/work/.buildlink/include -fullwarn -Wl,-v -Wl,-s -Wl,-x -n32 -mips4 -rdata_shared -Wl,-allow_jump_at_eop -Wl,-rpath -Wl,/usr/bsd/lib -n32 -Wl,-rpath -Wl,/usr/lib32 -Wl,-rpath -Wl,/usr/bsd/lib32 -o .libs/tiff-grayscale tiff-grayscale.o -L/usr/bsd/var/tmp/graphics/tiff/work/.buildlink/lib32 ../../libtiff/.libs/libtiff.so -L/usr/bsd/var/tmp/graphics/tiff/work/.buildlink/lib /usr/bsd/var/tmp/graphics/tiff/work/.buildlink/lib32/libjpeg.so -lz -lm -lc -Wl,-rpath -Wl,/usr/bsd/lib:/usr/bsd/var/tmp/graphics/tiff/work/.buildlink/lib32
/usr/bsd/var/tmp/graphics/tiff/work/.wrapper/bin/cc[50]: : cannot execute
/usr/bsd/var/tmp/graphics/tiff/work/.wrapper/bin/cc[50]: : cannot execute
ld32: Mapped === /usr/lib32/mips4/crt1.o ==== at address 0x4000000
ld32: 1: loading /usr/lib32/mips4/crt1.o.
... etc. So the "cannot execute" warning seems to come after compiling the code, but before linking it)
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
From: Stuart Shelton <srcshelton@gmail.com>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: pkg/34135: Compiler path bug in recent pkgsrc update?
Date: Wed, 16 Aug 2006 20:09:37 +0100
When building devel/nss, I get:
/usr/bsd/var/tmp/devel/nss/work/.wrapper/bin/cc[51]: debug_log: not
found
/usr/bsd/var/tmp/devel/nss/work/.wrapper/bin/cc[51]: debug_log: not
found
/usr/bsd/var/tmp/devel/nss/work/.wrapper/bin/cc[51]: debug_log: not
found
... so is this infact a harmless syntax error (in mk/wrapper.sh?) which
is just generating noisy output?
On the other hand, am I losing error messages but getting this output
instead?
Responsible-Changed-From-To: pkg-manager->rillig
Responsible-Changed-By: rillig@netbsd.org
Responsible-Changed-When: Sun, 17 Sep 2006 22:53:32 +0000
Responsible-Changed-Why:
I'll take it.
State-Changed-From-To: open->closed
State-Changed-By: rillig@netbsd.org
State-Changed-When: Sun, 17 Sep 2006 22:53:32 +0000
State-Changed-Why:
I committed the fixes to both problems today. Thanks for the PR.
From: Roland Illig <rillig@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc:
Subject: PR/34135 CVS commit: pkgsrc/mk/wrapper
Date: Sun, 17 Sep 2006 22:52:45 +0000 (UTC)
Module Name: pkgsrc
Committed By: rillig
Date: Sun Sep 17 22:52:45 UTC 2006
Modified Files:
pkgsrc/mk/wrapper: arg-source bsd.wrapper.mk cmd-sink-ld
Log Message:
When $debug_log is set to ":" and at the same time $IFS is ":", the
command line
$debug_log $arguments
tries to execute the empty command. This results in error messages of
the form
cc[50]: : cannot execute (IRIX)
bash: : command not found (Bash)
: permission denied (NetBSD /bin/sh)
Setting IFS to the original value as soon as possible fixes these bugs.
Fixes PR 34135.
To generate a diff of this commit:
cvs rdiff -r1.7 -r1.8 pkgsrc/mk/wrapper/arg-source
cvs rdiff -r1.52 -r1.53 pkgsrc/mk/wrapper/bsd.wrapper.mk
cvs rdiff -r1.2 -r1.3 pkgsrc/mk/wrapper/cmd-sink-ld
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
>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.