pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: pkg/29232: pkgsrc/gcc3 configures for "solaris2" instead of "solaris2.x"



The following reply was made to PR pkg/29232; it has been noted by GNATS.

From: grant beattie <grant%NetBSD.org@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: pkg-manager%netbsd.org@localhost, gnats-admin%netbsd.org@localhost,
        pkgsrc-bugs%netbsd.org@localhost
Subject: Re: pkg/29232: pkgsrc/gcc3 configures for "solaris2" instead of 
"solaris2.x"
Date: Sat, 5 Feb 2005 11:39:20 +1100

 On Fri, Feb 04, 2005 at 09:42:00PM +0000, rquinn%sec.sprint.net@localhost 
wrote:
 
 > >Description:
 > When compiling gcc3 on a Solaris box, pkgsrc configures it as "solaris2"
 > instead of "2.8" or "2.9" that gcc uses by default when hand compiled.
 > The resulting gcc can not create 64bit binaries, so for instance you can
 > not compile the 'lsof' package.
 >=20
 >  There's at least one other program that complains about the "solaris2" vs
 > "solaris2.x" problem when being built, I think it's perl58.
 >=20
 > >How-To-Repeat:
 >  By hand:
 >=20
 > struck:~/gcc-3.3.5 %./configure
 > Configuring for a sparc-sun-solaris2.9 host.
 >  [...]
 >=20
 >=20
 >=20
 >  In pkgsrc:
 > struck:/usr/pkgsrc/lang/gcc3-c #bmake extract
 > struck:/usr/pkgsrc/lang/gcc3-c #bmake patch
 >  [...]
 > struck:/usr/pkgsrc/lang/gcc3-c #bmake configure
 > =3D=3D=3D> Checking for vulnerabilities in gcc3-c-3.3.5
 > =3D=3D=3D> Overriding tools for gcc3-c-3.3.5
 > =3D=3D=3D> Creating toolchain wrappers for gcc3-c-3.3.5
 > =3D=3D=3D> Configuring for gcc3-c-3.3.5
 >  [...]
 > checking host system type... sparc-sun-solaris2
 > checking build system type... sparc-sun-solaris2
 >  [...]
 >=20
 > struck:/tmp %/usr/pkg/gcc3/bin/gcc -v
 > Reading specs from /usr/pkg/gcc3/lib/gcc-lib/sparc-sun-solaris2/3.3.5/spe=
 cs
 > Configured with: ./configure --prefix=3D/usr/pkg/gcc3 --host=3Dsparc-sun-=
 solaris2 --enable-shared --enable-languages=3Dc
 > Thread model: posix
 > gcc version 3.3.5
 > struck:/tmp %/usr/pkg/gcc3/bin/gcc -m64 test.c -o test
 > cc1: error: -m64 is not supported by this configuration
 
 although what you describe is certainly an issue, it is actually not
 what causes gcc to built a 32bit only compiler.
 
 to build a gcc that will accept -m64, you need to build it with
 --host=3Dsparc64-sun-solaris (or sparcv9-sun-solaris, which is a synonym
 for that).
 
 I was about to raise this issue on tech-pkg shortly, as it may have
 some unexpected pkgsrc-wide impact.
 
 grant.
 



Home | Main Index | Thread Index | Old Index