Subject: Re: Has no-one noticed this? (Re: can lang/gcc3 compile 64bit?)
To: None <tech-pkg@NetBSD.org>
From: Charlie Allom <charlie@rubberduck.com>
List: tech-pkg
Date: 01/21/2004 22:10:07
--Apple-Mail-12--260556370
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset=US-ASCII; format=flowed

On 18/01/2004, at 11:13 PM, Charlie Allom wrote:

>
> On 18/01/2004, at 11:25 AM, Charlie Allom wrote:
>
>> I am using lang/gcc3 on my Solaris 9 box as the only compiler, and 
>> for things in pkgsrc all is going well. But I am trying to compile 
>> ipfilter and it complains I cannot make 64bit programs...
>
> bugger, 3.3.2 from sunfreeware works. As does 3.3 sunfreeware. What is 
> wrong? :)

OK I found this:
	http://marc.theaimsgroup.com/?l=ipfilter&m=104999476227439&w=2

After tipped off that gcc -E worked on no input :P so the preprocessor 
is ok.. perhaps, but the linker is not.

So I put this into lang/gcc3/Makefile:
(no gnu binutils please)
	#.if defined(USE_BINUTILS) && ${USE_BINUTILS} == "YES"
	#DEPENDS=       binutils>=2.13.2.1:../../devel/binutils
	#CONFIGURE_ARGS+=   --with-as=${PREFIX}/${MACHINE_GNU_PLATFORM}/bin/as
	#.  include "../../devel/binutils/buildlink2.mk"
	#.endif
(use the solaris ld and as, thanks.)
	.  if ${OPSYS} == "SunOS"
	CONFIGURE_ARGS+=    --enable-shared --with-as=/usr/ccs/bin/as \
      	                --with-ld=/usr/ccs/bin/ld --disable-nls
	.  else

gcc now says that it's compiled like I asked.. when I query it with -v, 
but I still get no 64bit goodness.

sigh,
   C.
-- 
  charlie@rubberduck.com - Melbourne, Australia
  http://rubberduck.com/~yeled/
  PGP: 0x14AA7941 || finger yeled@lazy.spodder.com

--Apple-Mail-12--260556370
content-type: application/pgp-signature; x-mac-type=70674453;
	name=PGP.sig
content-description: This is a digitally signed message part
content-disposition: inline; filename=PGP.sig
content-transfer-encoding: 7bit

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (Darwin)

iD8DBQFADl4PqiZDwhSqeUERAsGRAJ9VPIEvyySJJ9MYg0IjkqH0460k+gCfW+KM
5Y7S3kzMc6NuEyt5V+fznR0=
=goCh
-----END PGP SIGNATURE-----

--Apple-Mail-12--260556370--