Subject: Systems with GCC 3 as the system compiler
To: None <tech-pkg@netbsd.org>
From: Martti Kuparinen <martti.kuparinen@iki.fi>
List: tech-pkg
Date: 09/11/2003 10:19:30
Hi!

How should we handle hosts with GCC 3 as the system compiler? I updated
pkgsrc/devel/ddd to the latest version and it requires GCC 3.x to compile
correctly.

I have GCC 3.3 as the dafult compiler in Slackware Linux so I don't
want to install the lang/gcc3 package. What is the right place to
check the system compiler's version, mk/gcc.buildlink2.mk or
lang/gcc3/buildlink2.mk?

Martti


ROOT n52:/usr/pkgsrc/devel/ddd> bmake clean clean-depends
sh: line 1: /usr/pkg/gcc-3.3/bin/gcc: No such file or directory
dirname: too few arguments
Try `dirname --help' for more information.
bmake: "../../mk/../lang/gcc3/../../mk/../lang/gcc3/buildlink2.mk" line 28: 
warning: "dirname `/usr/pkg/gcc-3.3/bin/gcc --print-libgcc-file-name`" 
returned non-zero status
===> Cleaning for ddd-3.3.7
sh: line 1: /usr/pkg/gcc-3.3/bin/gcc: No such file or directory
dirname: too few arguments
Try `dirname --help' for more information.
bmake: "../../mk/../lang/gcc3/../../mk/../lang/gcc3/buildlink2.mk" line 28: 
warning: "dirname `/usr/pkg/gcc-3.3/bin/gcc --print-libgcc-file-name`" 
returned non-zero status
sh: line 1: /usr/pkg/gcc-3.3/bin/gcc: No such file or directory
dirname: too few arguments
Try `dirname --help' for more information.
bmake: "../../mk/../lang/gcc3/../../mk/../lang/gcc3/buildlink2.mk" line 28: 
warning: "dirname `/usr/pkg/gcc-3.3/bin/gcc --print-libgcc-file-name`" 
returned non-zero status
===> Cleaning for gcc3-3.3nb5
===> Cleaning for x11-links-0.14
===> Cleaning for openmotif-2.1.30nb2
===> Cleaning for pkg_install-info-4.5nb2


ROOT n52:/usr/pkgsrc/devel/ddd> gcc -v
Reading specs from /usr/lib/gcc-lib/i386-slackware-linux/3.2.2/specs
Configured with: ../gcc-3.2.2/configure --prefix=/usr --enable-shared 
--enable-threads=posix --enable-__cxa_atexit --disable-checking --with-gnu-ld 
--verbose --target=i386-slackware-linux --host=i386-slackware-linux
Thread model: posix
gcc version 3.2.2