Subject: pkg/20398: pkgsrc/lang/gpc does not build
To: None <>
From: Tomasz Luchowski <>
List: netbsd-bugs
Date: 02/17/2003 22:13:23
>Number:         20398
>Category:       pkg
>Synopsis:       pkgsrc/lang/gpc does not build
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Feb 17 14:13:00 PST 2003
>Release:        NetBSD 1.6N
/* Tomasz Luchowski <> */
NetBSD dell 1.6N NetBSD 1.6N (DELL.orig) #0: Wed Feb 12 22:26:49 UTC 2003
Architecture: i386
Machine: i386
	I am running a few days old 1.6N/i386 with -current pkgsrc (just updated),
	lang/gpc fails to build:

	23:07 zuntum@dell:/usr/pkgsrc/lang/gpc> make
=> Checksum OK for gpc-2.1.tar.gz.
=> Checksum OK for gcc-2.95.3.tar.gz.
=> Checksum OK for gcc-2.95.3-diff-2002-08-29.gz.
===> Extracting for gpc-2.1
===> Required installed package gmp-[0-9]*: gmp-4.1 found
===> Required installed package ncurses-[0-9]*: ncurses-5.3 found
===> Required installed package rx-[0-9]*: rx-1.5 found
===> Required installed package bison-[0-9]*: bison-1.875nb1 found
===> Required installed package gsed-[0-9]*: gsed-3.02 found
===> Required installed package gmake>=3.78: gmake-3.80nb1 found
/bin/mkdir -p /usr/cvs/pkgsrc/lang/gpc/work/gcc-2.95.3
/bin/cp /usr/pkgsrc/lang/gpc/../gcc/files/xm-netbsd.h /usr/cvs/pkgsrc/lang/gpc/work/gcc-2.95.3/gcc/config
/bin/cp /usr/pkgsrc/lang/gpc/../gcc/files/xm-target64.h /usr/cvs/pkgsrc/lang/gpc/work/gcc-2.95.3/gcc/config
for file in /usr/pkgsrc/lang/gpc/../gcc/files/*_* ; do                    arch=`/usr/bin/basename ${file} | /usr/bin/sed -e "s/_.*//"`;   dest=`/usr/bin/basename ${file} | /usr/bin/sed -e "s/${arch}_//"`;  /bin/mkdir -p /usr/cvs/pkgsrc/lang/gpc/work/gcc-2.95.3/gcc/config/${arch};                          /bin/cp ${file} /usr/cvs/pkgsrc/lang/gpc/work/gcc-2.95.3/gcc/config/${arch}/${dest};    done
/bin/rm /usr/cvs/pkgsrc/lang/gpc/work/gcc-2.95.3/gcc/config/alpha/netbsd-elf.h
/bin/rm /usr/cvs/pkgsrc/lang/gpc/work/gcc-2.95.3/gcc/config/arm/t-netbsd
/bin/rm /usr/cvs/pkgsrc/lang/gpc/work/gcc-2.95.3/gcc/config/mips/x-netbsd
===> Patching for gpc-2.1
/bin/mv -f /usr/cvs/pkgsrc/lang/gpc/work/gpc-20020510/p /usr/cvs/pkgsrc/lang/gpc/work/gcc-2.95.3/gcc/
===> Applying distribution patches for gpc-2.1
===> Applying pkgsrc patches for gpc-2.1
===> Configuring for gpc-2.1
/bin/mkdir -p /usr/cvs/pkgsrc/lang/gpc/work/objdir
/usr/bin/touch -f       /usr/cvs/pkgsrc/lang/gpc/work/gcc-2.95.3/gcc/c-gperf.h
echo "bogus" > /usr/cvs/pkgsrc/lang/gpc/work/gcc-2.95.3/gcc/
Created "Makefile" in /usr/cvs/pkgsrc/lang/gpc/work/objdir using "mh-frag" and "mt-frag"
/tmp/cONf17500.pos: /usr/pkg/gcc-2.95.3/bin/gcc: not found
*** The command '/usr/pkg/gcc-2.95.3/bin/gcc -o conftest -O2 -pipe    -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

make: stopped in /usr/pkgsrc/lang/gpc
*** Error code 1

make: stopped in /usr/pkgsrc/lang/gpc
23:08 zuntum@dell:/usr/pkgsrc/lang/gpc>

	Should it perhaps depend on lang/gcc package?