Go Back   DaemonForums > NetBSD > NetBSD Package System (pkgsrc)

NetBSD Package System (pkgsrc) Installation and upgrading of packages on NetBSD.

Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1   (View Single Post)  
Old 19th May 2008
fenrisW0lf fenrisW0lf is offline
Port Guard
Join Date: May 2008
Posts: 17
Default pkg_chk c++ compiler not available

Hi all,
I recently upgraded from NetBSD 3.x to 4.0 using the cd upgrade method. Everything seemed to work OK. I managed to get the new pkgsrc tree using csup.

When I run:
#pkg_chk -a -u -s -L /var/log/pkgchk.2008-05-19.log
It fails complaining about a missing c++ compiler. This is a snip of the log.
checking whether to enable maintainer-specific portions of Makefiles... no
checking ABI=32
checking whether cc is gcc... yes
checking compiler cc -O2 ... yes
checking compiler cc -O2 has sizeof(long)==4... yes
checking for i386--netbsdelf-gcc... cc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether cc accepts -g... yes
checking for cc option to accept ISO C89... none needed
checking for cc option to accept ISO C99... none needed
checking for cc option to accept ISO Standard C... (cached) none needed
checking how to run the C preprocessor... cc -E
checking build system compiler cc... yes
checking for build system preprocessor... cc -E
checking for build system executable suffix...
checking whether build system compiler is ANSI... yes
checking for build system compiler math library... -lm
checking whether we are using the GNU C++ compiler... yes
checking whether c++ accepts -g... yes
checking C++ compiler c++  -O2... no, std iostream
configure: error: C++ compiler not available, see config.log for details

make: stopped in /usr/pkgsrc/devel/gmp

make: stopped in /usr/pkgsrc/devel/gmp

make: stopped in /usr/pkgsrc/devel/gmp
** 'cd /usr/pkgsrc/devel/gmp && /usr/bin/make update CLEANDEPENDS=yes' failed
*** ** 'cd /usr/pkgsrc/devel/gmp && /usr/bin/make update CLEANDEPENDS=yes' failed
If I navigate to that directory '/usr/pkgsrc/devel/gmp' and run 'make' I get the same error.

I tried installing gcc from '/usr/pkgsrc/lang/gcc' but I still get the error. I am stumped and have nothing on the system as pkg_chk removed everything first . Any ideas would be greatly appreciated.

Reply With Quote

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
building cross compiler, having issues moonlightcheese FreeBSD General 2 13th September 2008 02:22 PM
java compiler bsdnewbie999 OpenBSD Packages and Ports 8 9th August 2008 12:18 PM
pcc compiler question ChineseBroccoli FreeBSD General 1 11th June 2008 11:29 PM

All times are GMT. The time now is 10:47 PM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick