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"



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.
> 
>  There's at least one other program that complains about the "solaris2" vs
> "solaris2.x" problem when being built, I think it's perl58.
> 
> >How-To-Repeat:
>  By hand:
> 
> struck:~/gcc-3.3.5 %./configure
> Configuring for a sparc-sun-solaris2.9 host.
>  [...]
> 
> 
> 
>  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
> ===> Checking for vulnerabilities in gcc3-c-3.3.5
> ===> Overriding tools for gcc3-c-3.3.5
> ===> Creating toolchain wrappers for gcc3-c-3.3.5
> ===> Configuring for gcc3-c-3.3.5
>  [...]
> checking host system type... sparc-sun-solaris2
> checking build system type... sparc-sun-solaris2
>  [...]
> 
> struck:/tmp %/usr/pkg/gcc3/bin/gcc -v
> Reading specs from /usr/pkg/gcc3/lib/gcc-lib/sparc-sun-solaris2/3.3.5/specs
> Configured with: ./configure --prefix=/usr/pkg/gcc3 --host=sparc-sun-solaris2 
> --enable-shared --enable-languages=c
> 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=sparc64-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