Date: Tue, 24 Jan 2012 08:03:55 +0100 From: Roland Smith <rsmith@xs4all.nl> To: Lee Thomas <lthomas_lists@lthomas.net> Cc: FreeBSD Questions <freebsd-questions@freebsd.org> Subject: Re: lang/lua fails to build on 9.0-STABLE amd64 - bug or config issue? Message-ID: <20120124070355.GA65967@slackbox.erewhon.net> In-Reply-To: <522f40f6b20c88cc7b17b4967e09cea6@lthomas.net> References: <522f40f6b20c88cc7b17b4967e09cea6@lthomas.net>
next in thread | previous in thread | raw e-mail | index | archive | help
--huq684BweRXVnRxX Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Jan 23, 2012 at 04:22:30PM -0700, Lee Thomas wrote: > Hello fellow FreeBSD users, > I ran across an odd issue compiling lua from ports on amd64 with=20 > FreeBSD 9.0-STABLE, and I'm not sure whether it's a bug or incorrect=20 > configuration on my part. The lang/lua port throws a linker error,=20 The same port builds fine on my machine (9.0-RELEASE, amd64, also CPUTYPE=3Dnocona, otherwise standard settings in make.conf). >=20 > #uname -a > FreeBSD Anon 9.0-STABLE FreeBSD 9.0-STABLE #0: Sat Jan 21 10:39:05 EST=20 > 2012 anon@Anon:/usr/obj/usr/src/sys/GENERIC amd64 FreeBSD slackbox.erewhon.net 9.0-RELEASE FreeBSD 9.0-RELEASE #0: Tue Jan 3= 07:46:30 UTC 2012 root@farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GE= NERIC amd64 =20 > #cat /etc/make.conf > CPUTYPE?=3Dnocona > CFLAGS=3D -O2 -fno-strict-aliasing -pipe > COPTFLAGS=3D -O -pipe --------------------------------------------- # file: /etc/make.conf # host: slackbox.erewhon.net # Time-stamp: <2012-01-15 18:27:45 rsmith> # $Id: a7a5c36f9b8474b6139154d7d7b8aa595415be86 $ # Type of CPU the system is built for. CPUTYPE=3Dnocona # Compiler flags # Use standard settings. --------------------------------------------- =20 > #csup ports-supfile > Connected to 216.165.129.134 > Updating collection ports-all/cvs > Finished successfully I tend to use portmaster, but I've got the same port version; lua-5.1.4_6. > #cd /usr/ports/lang/lua && make clean build > =3D=3D=3D> Cleaning for lua-5.1.4_6 > =3D=3D=3D> Vulnerability check disabled, database not found > =3D=3D=3D> License check disabled, port has not defined LICENSE > =3D=3D=3D> Extracting for lua-5.1.4_6 > =3D> SHA256 Checksum OK for lua-5.1.4.tar.gz. > =3D> SHA256 Checksum OK for patch-lua-5.1.4-3. > =3D=3D=3D> Patching for lua-5.1.4_6 > =3D=3D=3D> Applying distribution patches for lua-5.1.4_6 > =3D=3D=3D> Applying FreeBSD patches for lua-5.1.4_6 > =3D=3D=3D> lua-5.1.4_6 depends on executable: pkg-config - found > =3D=3D=3D> Configuring for lua-5.1.4_6 > =3D=3D=3D> Building for lua-5.1.4_6 After builing, I get the following for lapi.*: # sha256 work/lua-5.1.4/src/lapi.* SHA256 (work/lua-5.1.4/src/lapi.c) =3D 6aa0d9fdd88b13fe46568ad6722ecf44164f= b84476cfdf6480cf05b5704935f8 SHA256 (work/lua-5.1.4/src/lapi.h) =3D 4aea4c1b975d43184f4f1fd1a42c79cf11d7= 4d2801315740cec07fe9abebb56d SHA256 (work/lua-5.1.4/src/lapi.o) =3D 08de497fe95c4afacd941f6aeede3d07db9f= b08db7260efeffd5a4c0194bcb7e # cc --version cc (GCC) 4.2.1 20070831 patched [FreeBSD] Copyright (C) 2007 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. You could try building with clang, that works here as well; # make CC=3Dclang and gives: # sha256 work/lua-5.1.4/src/lapi.o SHA256 (work/lua-5.1.4/src/lapi.o) =3D d96c0ae288387d9030e1228eaa03f9997b62= e433b16ad7b9df959f99901bc301 Roland --=20 R.F.Smith http://www.xs4all.nl/~rsmith/ [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725) --huq684BweRXVnRxX Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.18 (FreeBSD) iEYEARECAAYFAk8eV9sACgkQEnfvsMMhpyWnNACgmvn36LOhZe2AZUI6iZ4Ovlgb t9wAnib72KOG7nVHWWm64KwVISBkpgRR =u82v -----END PGP SIGNATURE----- --huq684BweRXVnRxX--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120124070355.GA65967>