lang/lua fails to build on 9.0-STABLE amd64 - bug or config issue?

Roland Smith rsmith at xs4all.nl
Tue Jan 24 07:04:33 UTC 2012


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 
> FreeBSD 9.0-STABLE, and I'm not sure whether it's a bug or incorrect 
> configuration on my part. The lang/lua port throws a linker error, 

The same port builds fine on my machine (9.0-RELEASE, amd64, also
CPUTYPE=nocona, otherwise standard settings in make.conf).

> 
> #uname -a
> FreeBSD Anon 9.0-STABLE FreeBSD 9.0-STABLE #0: Sat Jan 21 10:39:05 EST 
> 2012 anon at 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 at farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  amd64
 
> #cat /etc/make.conf
> CPUTYPE?=nocona
> CFLAGS= -O2 -fno-strict-aliasing -pipe
> COPTFLAGS= -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=nocona

# Compiler flags
# Use standard settings.
---------------------------------------------
 
> #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
> ===>  Cleaning for lua-5.1.4_6
> ===>  Vulnerability check disabled, database not found
> ===>  License check disabled, port has not defined LICENSE
> ===>  Extracting for lua-5.1.4_6
> => SHA256 Checksum OK for lua-5.1.4.tar.gz.
> => SHA256 Checksum OK for patch-lua-5.1.4-3.
> ===>  Patching for lua-5.1.4_6
> ===>  Applying distribution patches for lua-5.1.4_6
> ===>  Applying FreeBSD patches for lua-5.1.4_6
> ===>   lua-5.1.4_6 depends on executable: pkg-config - found
> ===>  Configuring for lua-5.1.4_6
> ===>  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) = 6aa0d9fdd88b13fe46568ad6722ecf44164fb84476cfdf6480cf05b5704935f8
SHA256 (work/lua-5.1.4/src/lapi.h) = 4aea4c1b975d43184f4f1fd1a42c79cf11d74d2801315740cec07fe9abebb56d
SHA256 (work/lua-5.1.4/src/lapi.o) = 08de497fe95c4afacd941f6aeede3d07db9fb08db7260efeffd5a4c0194bcb7e

# 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=clang

and gives:

# sha256 work/lua-5.1.4/src/lapi.o
SHA256 (work/lua-5.1.4/src/lapi.o) = d96c0ae288387d9030e1228eaa03f9997b62e433b16ad7b9df959f99901bc301

Roland
-- 
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)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20120124/7a786d2a/attachment.pgp


More information about the freebsd-questions mailing list