From owner-freebsd-arm@freebsd.org Fri Feb 19 20:42:46 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 B0B56AAC6DC for ; Fri, 19 Feb 2016 20:42:46 +0000 (UTC) (envelope-from russ.haley@gmail.com) Received: from mail-vk0-x22a.google.com (mail-vk0-x22a.google.com [IPv6:2607:f8b0:400c:c05::22a]) (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 6BCCB1049 for ; Fri, 19 Feb 2016 20:42:46 +0000 (UTC) (envelope-from russ.haley@gmail.com) Received: by mail-vk0-x22a.google.com with SMTP id e6so85063557vkh.2 for ; Fri, 19 Feb 2016 12:42:46 -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=Rza4SCp3poZiSVBC3IfsygtW79YjNteaAzDVfXDhRQM=; b=XQ4kixP9ZVhv2Xe05XCHLaSu/qshGeAZDSmZ1TeTD7Ulnlv8DA1XmxQquECGwaAQ6t wr+FvqyiapZ9ixN1tPYP+ADvW7M5JjHjAqfz0zEWBC9oyQw5LwRzptwh/D+6jhZMsuoX TQu70F206rEAXun3Ot0TSX84TBKrbK+n38os1ASfYkFm5JZX6YOor+og54zYhjddXQlt Cg+Hb8jlBnYPtjEcse+hE5jkLryBjiv/F9/Eadg3e1US4i+ymwMqyXHkZR11HcCMXV4t PC6GhkZLt8gRLJBTB5ytq2EeXcoKktHYP9WTqCl/1oKpdwOR0IpdSMtZEqMxC/fMHwBg /HaQ== 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=Rza4SCp3poZiSVBC3IfsygtW79YjNteaAzDVfXDhRQM=; b=F+aWoyzdKmHz3rjdJa8VNe/EAMnl6P03KOMYEr1j54VSaOKpgMX+yrjndUIH6DW81x RrNg1Mna8G0j3mpF+1GVhLeIhaS3pwPIdAVnDOQnxVD8Iz3mJTHoAd/3iVA5jLm/RpPS cm1iksy+tRsdq2t/rYQC4o+TE4Kq/DYc3meOryvTj9u256nmSD1o++IxHZO+9ADQx0O2 g55CDIKYDzM2WG7ncztNwNyAVa5vod+quBXCdA5xxJyq7ULF6+ZXefQZPfpCBT/4OcLN DPCTzCnFtJIX6BNtxp+xeNk7HSAqIf1ebYoyiekE2z1nZVXQtG1iAhNSy7TEsTyvQ9P4 ivWA== X-Gm-Message-State: AG10YOQiy+RVXz0NKZxhuaaK9yOm/FgVc3kQYqL+xerbovbbldePoEKL9vppQp9nyT3N09qlT2QBmrxccj7bUw== MIME-Version: 1.0 X-Received: by 10.31.141.75 with SMTP id p72mr12954185vkd.13.1455914565377; Fri, 19 Feb 2016 12:42:45 -0800 (PST) Received: by 10.31.54.13 with HTTP; Fri, 19 Feb 2016 12:42:45 -0800 (PST) In-Reply-To: References: Date: Fri, 19 Feb 2016 12:42:45 -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:42:46 -0000 On Fri, Feb 19, 2016 at 12:38 PM, Russell Haley wrot= e: > On Fri, Feb 19, 2016 at 12:34 PM, Russell Haley wr= ote: >> On Fri, Feb 19, 2016 at 11:43 AM, Mark Millard wro= te: >>> When attempting to build devel/kyua on a rpi2b under projects/clang380-= import -r295601 via portmaster -DK devel/kyua the attempt failed in lang/lu= a52 with: >>> >>> --- lapi.o --- >>> /usr/bin/clang -target armv6--freebsd11.0-gnueabi -march=3Darmv7-a -mcp= u=3Dcortex-a7 -mfloat-abi=3Dsoftfp -mno-unaligned-access -B/usr/local/arm-g= nueabi-freebsd/bin/ -Wall -DLUA_COMPAT_ALL -pipe -mfloat-abi=3Dsoftfp -is= ystem /usr/local/include -g -fno-strict-aliasing -I/usr/local/include -isys= tem /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_AB= S_NC against `a local symbol' can not be used when making a shared object; = recompile with -fPIC >>> lapi.o: error adding symbols: Bad value >>> clang: error: linker command failed with exit code 1 (use -v to see inv= ocation) >>> *** [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=3Dlu= a52 > > Russ Okay, if you look at the Makefile for Lau52 at line 60 there are -fPIC cflags for other platforms but armv6 and i386 are missing. https://svnweb.freebsd.org/ports/head/lang/lua52/Makefile?view=3Dmarkup Russ