Subject: need a C++ compiler? (was: CVS commit: pkgsrc)
To: Johnny C. Lam <jlam@netbsd.org>
From: Jeremy C. Reed <reed@reedmedia.net>
List: tech-pkg
Date: 02/02/2004 11:23:36
On pkgsrc-changes on Mon, 2 Feb 2004, Johnny C. Lam wrote:

> Log Message:
> These packages need a C++ compiler.

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 can not test now because the new mk/compiler/gcc.mk fails for me:

sh: line 1: type: -pipe: not found
sh: -c: line 2: syntax error: unexpected end of file
bmake:
"../../mk/compiler/../../mk/compiler/../../mk/compiler/../../mk/compiler/gcc.mk"
line 185: warning: "if /usr/sbin/pkg_info -K /var/db/pkg -qe gcc; then
/usr/sbin/pkg_info -K /var/db/pkg -f gcc |
/usr/bin/grep "File:.*bin/gcc" |                                /bin/sed
-e "s/.*File: *//;s/bin\/gcc.*//;q";           else
gccpath="`type cc -pipe | /usr/bin/awk '{ print $NF }'`";        case
$gccpath in                                        /usr/*)
/bin/echo "`/usr/bin/basename $gccpath`/";               ;;
*)                                                       /bin/echo
"not_found/"; ;;                                              esac"
returned non-zero status
bmake:
"../../mk/compiler/../../mk/compiler/../../mk/compiler/../../mk/compiler/gcc.mk"
line 186: Unassociated shell command "fi"
bmake:
"../../mk/compiler/../../mk/compiler/../../mk/compiler/../../mk/compiler/gcc.mk"
line 1: Could not find ../../lang/gcc/buildlink3.mk
bmake: Fatal errors encountered -- cannot continue

That was under databases/openldap on a Linux system. I didn't notice on
NetBSD 1.6.2 though.

It is doing:

${TYPE} ${CC}

My CC is "cc -pipe". I am trying to figure out where that -pipe was added.
I never noticed the -pipe by default before.

$ type cc -pipe
cc is /usr/bin/cc
bash: type: -pipe: not found


   Jeremy C. Reed
   http://www.reedmedia.net/