Subject: Re: GCC3 on NetBSD
To: Jason R Thorpe <thorpej@wasabisystems.com>
From: None <wulf@ping.net.au>
List: port-sparc64
Date: 11/23/2002 15:53:15
> 
> On Fri, Nov 22, 2002 at 08:45:55AM -0800, Mr Mine Sakiyama wrote:
> 
>  > Can I use gcc3 on NetBSD? I would guess kerl and and
>  > userland and maybe some applications in pkgsrc still
>  > require NetBSD's gcc. Will I screw up build process 
>  > by having GCC3 installed (probably in /usr/local/bin).
> 
> You can install GCC3.  I recomment 3.2.1 at this point.  I am working
> on getting GCC 3.3 ready for eventual integration into the NetBSD mainline.
> 
> ...you shouldn't have problems if you install GCC 3.2.1 in /usr/local/...
> 
> -- 
>         -- Jason R. Thorpe <thorpej@wasabisystems.com>

Expect problems with certain packages when both compilers exist in
the search path. (KDE project created with KDevelop-2.1.3).

/usr/pkg/bin/bash ../libtool --silent --mode=link --tag=CXX g++ -Wnon-virtual-dtor -Wno-long-long -Wbad-function-cast -Wundef -Wall -pedantic -W -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -O2 -O0 -g3 -Wall -fno-exceptions -fno-check-new -o kft990 -L/usr/X11R6/lib -L/usr/X11R6/qt3/lib -pthread -L/usr/pkg/lib -R /usr/X11R6/lib -R /usr/X11R6/qt3/lib -R /usr/X11R6/lib -R /usr/pkg/lib kft990.o main.o kft990maindlg.o kft990.moc.o kft990_meta_unload.o -lkdeui -lkdecore -lqt-mt -lpng -lz -lm -lXext -lX11 -lSM -lICE 
g++: unrecognized option `-pthread' 
/usr/local/lib/libstdc++.so: undefined reference to `_Unwind_GetIP' 
/usr/local/lib/libstdc++.so: undefined reference to `_Unwind_GetRegionStart' 
/usr/local/lib/libstdc++.so: undefined reference to `_Unwind_Resume' 
/usr/local/lib/libstdc++.so: undefined reference to `_Unwind_DeleteException' 
/usr/local/lib/libstdc++.so: undefined reference to `_Unwind_RaiseException' 
/usr/local/lib/libstdc++.so: undefined reference to `_Unwind_SetIP' 
 [...]

Here the libraries are getting mixed up....

***** standard compiler ***** 
husky# /usr/bin/gcc -v
Using builtin specs.
gcc version 2.95.3 20010315 (release) (NetBSD nb3)

husky# /usr/local/bin/gcc -v
Reading specs from /usr/local/lib/gcc-lib/i386-unknown-netbsdelf1.6D/3.2.1/specs
Configured with: ./configure --prefix=/usr/local
Thread model: single
gcc version 3.2.1 20020819 (prerelease)

cheerio Berndt