From owner-freebsd-arm@freebsd.org Fri Feb 19 20:38:15 2016 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B07B4AAC511 for ; Fri, 19 Feb 2016 20:38:15 +0000 (UTC) (envelope-from russ.haley@gmail.com) Received: from mail-vk0-x22d.google.com (mail-vk0-x22d.google.com [IPv6:2607:f8b0:400c:c05::22d]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 69AD41CEC for ; Fri, 19 Feb 2016 20:38:15 +0000 (UTC) (envelope-from russ.haley@gmail.com) Received: by mail-vk0-x22d.google.com with SMTP id e185so84994351vkb.1 for ; Fri, 19 Feb 2016 12:38:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=G4eskKO4SgEzF7cpFk5k/vFEcLuxNbSQBci7/7ETcBo=; b=cX8KLbPGNYgCmxvm2+prma7dBblNarfY2mKEv8NrWzeP7/3KtuSqDUGLvZ7ylLl0iJ SoxGgW1FtEM6FPLyMcqtOu5hPSF7kFHQXoT7DTy/CJhex6zCOBlPC70q0EtSqfZC/gZ1 6y7XLbxQmT4kEaPqgm4DsDvIz7e0mDv6UZc9+ymDruRMA/Xk8/GDotQaL79KDQZFoG5d Ts544ahrYq9+urRNuOBaoQQ41BPOtkZ/E6oUO/3R0tbSMcXgxXX8k5ABeuIxFsvEE1Zq G/Iw7LjqtPrk385qUvTc5Ji+jlMDk6ap5HnXfJEu91yBpKYaC505NzOc10XuqoSu8eSx B4Zg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=G4eskKO4SgEzF7cpFk5k/vFEcLuxNbSQBci7/7ETcBo=; b=QG1JNKk23UgGQ8dXNcZiWId/V4BGglSPSk0pUPOxOXZWpnonTk3BE+fOfhMUzAHto3 l0hhKfsEXCokAdUXAlR+wrjy7kKp6j9BfaxO63b9QDGEJEjoxle0r3bkIFKygvV6bBEE EYhLyaRXIEB7TK08/fnubXpPv/KXglcjS/2HxMqoTWEFKBIvXiA6jx974JJOmnADeho6 2yjEITT445zcNlU7V4iLCS+z5G8QRsI4n2culWgFE3M1tt0Zu5kc681XpJgawetJkYsm f27YptBoIoWHO+vRkuzOyJ/SMFeGI7HYr3EFu+PlwFJHePcF+c/GqjpJhqqAYvnroFE0 fZKA== X-Gm-Message-State: AG10YOQnyaZyhigx1xhwEE3VbdzW5J13dwrkduxp8KxqwgDWvTOwQi6F3fG4DojK2ZVw4DSaLojNI1uCDC5GUQ== MIME-Version: 1.0 X-Received: by 10.31.45.143 with SMTP id t137mr12300619vkt.143.1455914293380; Fri, 19 Feb 2016 12:38:13 -0800 (PST) Received: by 10.31.54.13 with HTTP; Fri, 19 Feb 2016 12:38:13 -0800 (PST) In-Reply-To: References: Date: Fri, 19 Feb 2016 12:38:13 -0800 Message-ID: Subject: Re: I've submitted 207324 for lang/lua52 needing to use -fPIC (kyua build blocked, clang380-import context) From: Russell Haley To: Mark Millard Cc: freebsd-arm Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Feb 2016 20:38:15 -0000 On Fri, Feb 19, 2016 at 12:34 PM, Russell Haley wrot= e: > On Fri, Feb 19, 2016 at 11:43 AM, Mark Millard wrot= e: >> When attempting to build devel/kyua on a rpi2b under projects/clang380-i= mport -r295601 via portmaster -DK devel/kyua the attempt failed in lang/lua= 52 with: >> >> --- lapi.o --- >> /usr/bin/clang -target armv6--freebsd11.0-gnueabi -march=3Darmv7-a -mcpu= =3Dcortex-a7 -mfloat-abi=3Dsoftfp -mno-unaligned-access -B/usr/local/arm-gn= ueabi-freebsd/bin/ -Wall -DLUA_COMPAT_ALL -pipe -mfloat-abi=3Dsoftfp -isy= stem /usr/local/include -g -fno-strict-aliasing -I/usr/local/include -isyst= em /usr/local/include -DLUA_USE_LINUX -c lapi.c -o lapi.o >> . . . >> --- liblua-5.2.so --- >> /usr/local/arm-gnueabi-freebsd/bin/ld: lapi.o: relocation R_ARM_MOVW_ABS= _NC against `a local symbol' can not be used when making a shared object; r= ecompile with -fPIC >> lapi.o: error adding symbols: Bad value >> clang: error: linker command failed with exit code 1 (use -v to see invo= cation) >> *** [liblua-5.2.so] Error code 1 >> > I'm not sure about the kyua stuff, but I was getting a "similar error" > when I built lua5.3 using clang on x64. From memory, I recall adding > the -fPIC option to the lua5.3 Makefile (as the error indicates) and > also having to remove a -luab (or something like that) and then it > worked. Potentially you could just install lua from ports first? > http://www.freshports.org/lang/lua52/ Sorry, I meant pkg. But it looks like it's not being built for armv6? http://portsmon.freebsd.org/portoverview.py?category=3Dlang&portname=3Dlua5= 2 Russ