From owner-freebsd-multimedia@freebsd.org Fri Feb 3 15:06:01 2017 Return-Path: Delivered-To: freebsd-multimedia@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 2FED9CCE0FD for ; Fri, 3 Feb 2017 15:06:01 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 198A1FB9 for ; Fri, 3 Feb 2017 15:06:01 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 15E46CCE0FA; Fri, 3 Feb 2017 15:06:01 +0000 (UTC) Delivered-To: multimedia@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 15900CCE0F8 for ; Fri, 3 Feb 2017 15:06:01 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 05290FB8 for ; Fri, 3 Feb 2017 15:06:01 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id v13F60cI067441 for ; Fri, 3 Feb 2017 15:06:00 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: multimedia@FreeBSD.org Subject: [Bug 215974] [PATCH] audio/liba52: armv6 build requires -fPIC Date: Fri, 03 Feb 2017 15:06:01 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: patch X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: mmel@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: multimedia@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Feb 2017 15:06:01 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D215974 --- Comment #2 from Michal Meloun --- Yes, it's still needed. By ARM EABI, shared library must be compiled with -fPIC. (In short, standard ARM object file may contain relocations which cannot be resolved by runtime linker, like R_ARM_MOVW_*, R_ARM_MOVT_*.) The port build fails if you have specified any 'higher' CPU type.=20 With -mcpu=3Dcortex-a15, the build fails with: (and I'm sorry, I did not realize that -mcpu is necessary for the exhibitio= n of this problem)=20 /bin/sh ../libtool --mode=3Dlink cc -pipe -munaligned-access -mcpu=3Dcort= ex-a15 -fno-builtin-sin -fno-builtin-cos -fno-strict-aliasing -O -pipe -O2 -munaligned-access -fomit-frame-pointer -prefer-non-pic -o liba52.la -rpath /usr/local/lib -no-undefined bitstream.lo imdct.lo bit_allocate.lo parse.lo downmix.lo -lm rm -fr .libs/liba52.la .libs/liba52.* .libs/liba52.* cc -shared bitstream.lo imdct.lo bit_allocate.lo parse.lo downmix.lo=20 -lm -Wl,-soname -Wl,liba52.so.0 -o .libs/liba52.so.0.0.0 /usr/bin/ld: imdct.lo(.text+0x90c):=20 unresolvable R_ARM_MOVW_ABS_NC relocation against symbol `__stderrp@@FBSD_1.0' /usr/bin/ld: final link failed: Nonrepresentable section on output --=20 You are receiving this mail because: You are the assignee for the bug.=