From owner-freebsd-ports@FreeBSD.ORG Fri Mar 16 18:18:52 2012 Return-Path: Delivered-To: ports@FreeBSD.ORG Received: from mandree.no-ip.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by hub.freebsd.org (Postfix) with ESMTP id 28A181065678; Fri, 16 Mar 2012 18:18:52 +0000 (UTC) (envelope-from mandree@FreeBSD.org) Received: from [127.0.0.1] (localhost.localdomain [127.0.0.1]) by apollo.emma.line.org (Postfix) with ESMTP id 4E6BD23CE8A; Fri, 16 Mar 2012 19:18:51 +0100 (CET) Message-ID: <4F63840B.6040401@FreeBSD.org> Date: Fri, 16 Mar 2012 19:18:51 +0100 From: Matthias Andree User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.27) Gecko/20120216 Mnenhy/0.8.3 Thunderbird/3.1.19 MIME-Version: 1.0 To: Jeremy Messenger References: In-Reply-To: X-Enigmail-Version: 1.1.2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: FreeBSD Ports Mailing List , lua@FreeBSD.ORG Subject: Re: lang/lua: It does need gmake. X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Mar 2012 18:18:52 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Am 15.03.2012 20:50, schrieb Jeremy Messenger: > I get a build failure on amd64: > > --------------------------------- > /usr/bin/ld: lapi.o: relocation R_X86_64_32 against `luaO_nilobject_' > can not be used when making a shared object; recompile with -fPIC > lapi.o: could not read symbols: Bad value > *** Error code 1 > --------------------------------- > > I got it fixed by add USE_GMAKE=yes in the Makefile and now I can get > it built ok. If you compare the build log between make and gmake. You > will see it has different output. This > http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/162279 has broken it. > > May I commit it by add USE_GMAKE=yes back in? Jeremy, rather not -- let's not add dependencies if we can help it; MAKE_ARGS= CFLAGS="${CFLAGS}" seems to do the trick for me (I could reproduce your problem on 9-STABLE amd64). I've committed that (without bumping port revision) after short discussion with Niclas and some Tinderbox and "port test" smoke tests, please let us know if it doesn't help. I suppose the issue is that GNU make passes variables from environment in a different way than BSD make does, or CFLAGS are assembled in a different way, but I lack the time to investigate before end of March. Since stuffing CFLAGS onto the command line helps, I think we should be fine though. Feel free to shed some light and/or investigate. Best regards Matthias -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iEYEARECAAYFAk9jg/4ACgkQvmGDOQUufZWMoACg0maMPVq0vYhk9fq+vOHB8+TG ua8AoIp6CzQ8/kBunjja1V8pL0q9Ae66 =ITMi -----END PGP SIGNATURE-----