Subject: pkg/34135: Compiler path bug in recent pkgsrc update?
To: None <,,>
From: None <>
List: pkgsrc-bugs
Date: 08/03/2006 14:25:00
>Number:         34135
>Category:       pkg
>Synopsis:       Compiler path bug in recent pkgsrc update?
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Aug 03 14:25:00 +0000 2006
>Originator:     Stuart Shelton
>Release:        n/a
IRIX64 octane 6.5 01090133 IP30 mips

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/ -ljpeg -lz -lm -lc
libtool: link: warning: library `/usr/bsd/var/tmp/graphics/tiff/work/.buildlink/lib32/' was moved.
libtool: link: warning: library `/usr/bsd/var/tmp/graphics/tiff/work/.buildlink/lib32/' 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/ -L/usr/bsd/var/tmp/graphics/tiff/work/.buildlink/lib /usr/bsd/var/tmp/graphics/tiff/work/.buildlink/lib32/ -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)