From owner-freebsd-amd64@FreeBSD.ORG Mon Nov 24 03:47:54 2003 Return-Path: Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4260E16A4CE for ; Mon, 24 Nov 2003 03:47:54 -0800 (PST) Received: from dragon.nuxi.com (trang.nuxi.com [66.93.134.19]) by mx1.FreeBSD.org (Postfix) with ESMTP id 42C2E43F85 for ; Mon, 24 Nov 2003 03:47:53 -0800 (PST) (envelope-from obrien@dragon.nuxi.com) Received: from dragon.nuxi.com (obrien@localhost [127.0.0.1]) by dragon.nuxi.com (8.12.10/8.12.9) with ESMTP id hAOBlpvX060953; Mon, 24 Nov 2003 03:47:51 -0800 (PST) (envelope-from obrien@dragon.nuxi.com) Received: (from obrien@localhost) by dragon.nuxi.com (8.12.10/8.12.10/Submit) id hAOBloTA060952; Mon, 24 Nov 2003 03:47:50 -0800 (PST) (envelope-from obrien) Date: Mon, 24 Nov 2003 03:47:50 -0800 From: "David O'Brien" To: Akinori MUSHA Message-ID: <20031124114750.GA60860@dragon.nuxi.com> References: <20031124002433.GB6264@xor.obsecurity.org> <86znemcf0m.knu@iDaemons.org> <20031124092900.GA12109@xor.obsecurity.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20031124092900.GA12109@xor.obsecurity.org> User-Agent: Mutt/1.4.1i X-Operating-System: FreeBSD 5.2-BETA Organization: The NUXI BSD Group X-Pgp-Rsa-Fingerprint: B7 4D 3E E9 11 39 5F A3 90 76 5D 69 58 D9 98 7A X-Pgp-Rsa-Keyid: 1024/34F9F9D5 cc: freebsd-amd64@freebsd.org cc: Kris Kennaway Subject: Re: ruby-1.8.1.p2 broken on amd64 X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: obrien@freebsd.org List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 24 Nov 2003 11:47:54 -0000 On Mon, Nov 24, 2003 at 01:29:00AM -0800, Kris Kennaway wrote: > On Mon, Nov 24, 2003 at 06:06:01PM +0900, Akinori MUSHA wrote: > > > http://bento.freebsd.org/errorlogs/amd64-5-latest/ruby-1.8.1.p2.log > > > Can you please investigate ASAP? > > > > Hmm, I'm a bit confused. The substitute config.guess/sub (in > > ports/Template/, which came with a newer autoconf) seem to recognoze > > "amd64" and replace it with "x86_64", and as we don't have such a > > thing as "x86_64" available from a port, there is no other way than > > hardcoding s/amd64/x86_64/ blah blah blah to make packaging > > (pkg-plist) work. The bug is in Mk/bsd.ruby.mk. It is bogusly clearing CONFIGURE_TARGET. At least for passing the --target GNU tuple to GNU autoconf. GNU software has always used a 3-TUPPLE: cpu, vender, OS. While - might be the proper tuple for Ruby itself, it isn't for GNU autoconf. Modern versions of GNU autoconf are a lot more strict about demanding a 3-tuple vs. 2-tuple than older versions. Setting RUBY_ARCH?=${ARCH}-portbld-freebsd${OSREL:C/\..*//}${RUBY_R} gets GNU autoconf to configure properly. The "-pc-" in "x86_64-pc-freebsd5" is a big warning GNU configure isn't being run correctly.