Subject: Re: Report on broken packages, gcc3 on sparc64
To: Martin Husemann <>
From: Frederick Bruckman <>
List: tech-pkg
Date: 07/17/2003 10:52:46
On Thu, 17 Jul 2003, Martin Husemann wrote:

> On Wed, Jul 16, 2003 at 09:34:40PM -0400, leam wrote:
> > Before I do the next build I'll update the kernel and pkgsrc, so any
> > fixes made will be automatically gotten.
> I think the most important think to fix is the gcc3 pkg (the missing __GNUC__
> define).

There's nothing wrong with gcc-3* in that regard. It's well
documented, and modern autoconf systems allow for it, using "gcc -E"
for the C-preprocessor.

All you have to is set up your environment correctly:

    export PATH='/usr/pkg/gcc-3.3/bin':$PATH
    export CC='/usr/pkg/gcc-3.3/bin/gcc'
    export CXX='/usr/pkg/gcc-3.3/bin/g++'
    export CPP='/usr/pkg/gcc-3.3/bin/cpp -gcc'

What's broken is USE_GCC3, not gcc-3.