Subject: Re: need a C++ compiler? (was: CVS commit: pkgsrc)
To: Jeremy C. Reed <reed@reedmedia.net>
From: grant beattie <grant@NetBSD.org>
List: tech-pkg
Date: 02/04/2004 14:18:20
--IR1Y5IvQhrKgS4e6
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

On Mon, Feb 02, 2004 at 11:23:36AM -0800, Jeremy C. Reed wrote:

> At this time, all packages using buildlinking need a C++ compiler.
> Because the linking has CXX. (Unless something changed recently.) Can we
> make buildlinking work if a C++ compiler is not installed?

I'm now seeing similar on Solaris with PKGSRC_COMPILER=sunpro.

===> Configuring for libebml-0.6.3
===> Building for libebml-0.6.3
g++ -c  -Wall -Wno-unknown-pragmas -ansi -fno-gnu-keywords -I/work/pkgbuild/devel/libebml/work.sol9/libebml-0.6.3/make/linux/../.. -o /work/pkgbuild/devel/libebml/work.sol9/libebml-0.6.3/make/linux/../../src/Debug.o /work/pkgbuild/devel/libebml/work.sol9/libebml-0.6.3/make/linux/../../src/Debug.cpp
gmake: g++: Command not found
gmake: *** [/work/pkgbuild/devel/libebml/work.sol9/libebml-0.6.3/make/linux/../../src/Debug.o] Error 127
*** Error code 2

setting CXX in /etc/mk.conf doesn't help. setting CXX on the command
line sort of works, but the SunPro logic doesn't get used.

# bmake show-vars VARNAMES=CXX
g++

if I set USE_LANGUAGES=c++ in the package I get:

sh: gcc: not found
bmake: "../../mk/compiler/../../mk/compiler/../../mk/compiler/../../mk/compiler/sunpro.mk" line 31: warning: "gcc -V 2>&1 | /usr/xpg4/bin/grep '^cc'" returned non-zero status

any ideas?

grant.


--IR1Y5IvQhrKgS4e6
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (NetBSD)

iD8DBQFAIGR8luYOb9yiFXoRAt1HAJ9EkFSh4ycTJcmT+m5MuVZpQQhIxgCePWCz
m+c68H7UANh0r1HkNjP0mBY=
=JU+U
-----END PGP SIGNATURE-----

--IR1Y5IvQhrKgS4e6--