From owner-freebsd-ports@freebsd.org Fri Nov 16 19:40:09 2018 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 6B0641102D90 for ; Fri, 16 Nov 2018 19:40:09 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic316-20.consmr.mail.ne1.yahoo.com (sonic316-20.consmr.mail.ne1.yahoo.com [66.163.187.146]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 477AA8C794 for ; Fri, 16 Nov 2018 19:40:08 +0000 (UTC) (envelope-from marklmi@yahoo.com) X-YMail-OSG: cWLmc_kVM1lf73jf1liNztWhIBhc.24ZedzeQcObdNszkQARF8HarZulgLJjeDE xOoyD5BNL.R.xDX69oatdDXq_3eCn_zy8BzyFzk3Y61nW_zyFD3klAXIJ3r.ETufnjfS75GF2lUS tz2yA9P2aB3PJghd8IB0aytzEkgEuQ3MmpoXNtgBaRTYDAvQ_woP8t52PvONKWgSJxf_k2wbKwxz B3fOlGODxFlyusBB0UyeBB7Cfq7TJnKKJPl.g__ncTVwbImr1y0_mTg9OqexqtjAzDXw6a21OQrT 15zVws0DslQX9W4kTPiU7aS7RNub8qWnffRIurzKY96wg21yhMZt1xiJ0f5GIYT4mLRvdsln1QvT 1HaDkPRLWjUTXmEM5ESYwW9SrhRrz5LV20y4snzDLAmzyGFdiVjd3.3T786.R8Qqr7c_X0TgVjHa Svr9wwMQZHyo3LnrBtfPcOOrNT17M7vrm0tEkqbaDthpd20DFNSfkWMH8nV4VHba2aSoPF8BfKdI vdYyXimwlxx_MqBc4aDfcoq.cdZ6.d2CnIGTRK990ndCX6ah.jVelSNVQavujqp6eoUKXzpHF3uU Zz87dJwXOTG9wbeuR88UEHUKzo5ty87NFhTDd9ru5_vR02WnRZ9nQvYItVAljq6YEXTn_8leQ8rl jP3DR88.E1n74HdkH83yYykhiO276gjgMDRMtlpkO5J1ivmkJHPEq_wLyK8bU61jAWa5CTE6oWn6 TY1Gi3c1vxol6dUagjs0HyAnoM529apquS1jqYRPncW9Bicz1fx_z.lH7iwhHlfTygbQjJ0hQL0x 5NoKNsb5JUDbk2HSalXboDWZvMCrwJm4V.S0KVcvfkraUUIqdJETmJekzwcuHg0ytV8KzzAc4wxQ 1M8TF9vFeaj5OS9q5Xom1rbc7gtEsbN2U5jS1KIgYsY3Zn411.f7UMEFLA.Sforq5tai5BK9azRi Aknofe8uVF7opVHHbOXIkf6rJie53FuCNH0jCujI02KncAkF0zSF_KT_GTVj55xMYWFQXfjkWg6D 58cKqs6S47u8t_0uJbHwnyi7Fxh2iqxJrVg0gVkTYjBxpqtd7KaQb6G6XIiv_ Received: from sonic.gate.mail.ne1.yahoo.com by sonic316.consmr.mail.ne1.yahoo.com with HTTP; Fri, 16 Nov 2018 19:40:00 +0000 Received: from c-76-115-7-162.hsd1.or.comcast.net (EHLO [192.168.1.25]) ([76.115.7.162]) by smtp404.mail.ne1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID e580598802778c3b0a4f707bc19aad8b; Fri, 16 Nov 2018 19:39:57 +0000 (UTC) From: Mark Millard Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 12.1 \(3445.101.1\)) Subject: Re: ports head -r487783: on armv7 x11/pixman fails to build: /usr/bin/ld: error: can't create dynamic relocation R_ARM_V4BX against local symbol in readonly segment; recompile object files with -fPIC Message-Id: Date: Fri, 16 Nov 2018 11:39:55 -0800 To: Jan Beich , ports-list freebsd X-Mailer: Apple Mail (2.3445.101.1) X-Rspamd-Queue-Id: 477AA8C794 X-Spamd-Result: default: False [4.53 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; MV_CASE(0.50)[]; FREEMAIL_FROM(0.00)[yahoo.com]; RCVD_COUNT_THREE(0.00)[3]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[yahoo.com:+]; MX_GOOD(-0.01)[cached: mta6.am0.yahoodns.net]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; FROM_EQ_ENVFROM(0.00)[]; IP_SCORE(1.79)[ip: (5.48), ipnet: 66.163.184.0/21(1.98), asn: 36646(1.59), country: US(-0.10)]; RCVD_TLS_LAST(0.00)[]; FREEMAIL_ENVFROM(0.00)[yahoo.com]; ASN(0.00)[asn:36646, ipnet:66.163.184.0/21, country:US]; MID_RHS_MATCH_FROM(0.00)[]; ARC_NA(0.00)[]; FAKE_REPLY(1.00)[]; R_DKIM_ALLOW(-0.20)[yahoo.com]; FROM_HAS_DN(0.00)[]; NEURAL_SPAM_SHORT(0.56)[0.563,0]; MIME_GOOD(-0.10)[text/plain]; NEURAL_SPAM_MEDIUM(0.97)[0.969,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_SPAM_LONG(0.72)[0.716,0]; RCVD_IN_DNSWL_NONE(0.00)[146.187.163.66.list.dnswl.org : 127.0.5.0] X-Rspamd-Server: mx1.freebsd.org X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Nov 2018 19:40:09 -0000 Jan Beich jbeich at FreeBSD.org wrote on Fri Nov 16 02:15:57 UTC 2018 : > Mark Millard via freebsd-x11 writes: >=20 > > [Added: The original cross-build via poudriere-devel and = qemu-user-static > > did not get this problem. I give details later. Sumamry: Looks like = -O2 > > was used for the cross build and -O was used for armv7 native. The > > difference is likely(?) from my materials but not supporting both = ways of > > building is likely a problem with the port(?).] >=20 > x11/pixman builds fine on armv7 even with -O. Tested both Clang/LLD = 6.0 > and 7.0 after forcing MACHINE_CPUARCH=3Darm on command line. Interesting. My context was a poudriere build that was rebuilding all my normal ports for the armv7 context (414 total). (poudriere is still running, still having 12 to go, including llvm60, llvm70, and gcc8.) This was/is under: # uname -apKU FreeBSD OPiP2E 13.0-CURRENT FreeBSD 13.0-CURRENT #5 r340287M: Sat Nov 10 = 22:40:25 PST 2018 = markmi@FBSDFSSD:/usr/obj/armv7_clang/arm.armv7/usr/src/arm.armv7/sys/GENER= IC-NODBG arm armv7 1300003 1300003 and is tied to my jump from before openssl was updated( -r339076 ) to after. It was using system clang and lld, not devel/llvm* . The only other thing to have failed so far is multimedia/libpvx but it failed built both ways ( native and cross-build with /nxb-bin/. . . ). Do you have a log that would show the commands that were used to produce the things that were listed in my original report for the "R_ARM_V4BX against local in readonly segment": pixman-arm-simd-asm-scaled.o pixman-arm-neon-asm.o pixman-arm-neon-asm-bilinear.o --- libpixman-1.la --- (for where the use of the .o's was attempted via = a library) ? If yes we might be able to compare for differences to explain the variation. I do have the logs from the poudriere build attempts in both contexts ( native and cross-build with /nxb-bin/. . . ). It might be possible that my -mcpu use mixed with -O is part of what is required to have the problem. (Only difference?) It looks to be a long time (days) before the armv7 poudriere run will complete. So testing alternatives in that environment is delayed. For now comparing commands in log files is all I've got to work with initially (if we can). Next would be to look at the .S files. My failing-context's commands: (The 3 sources are .S files. The -o .libs/*.o commands do list -fPIC and = -DPIC but I'm not sure how those would apply to .S files.) --- pixman-arm-simd-asm-scaled.lo --- libtool: compile: cc -DHAVE_CONFIG_H -I. -I.. -mcpu=3Dcortex-a7 -O = -pipe -mcpu=3Dcortex-a7 -g -fno-strict-aliasing -no-integrated-as -MT = pixman-arm-simd-asm-scaled.lo -MD -MP -MF = .deps/pixman-arm-simd-asm-scaled.Tpo -c pixman-arm-simd-asm-scaled.S = -fPIC -DPIC -o .libs/pixman-arm-simd-asm-scaled.o --- pixman-arm-simd-asm-scaled.lo --- libtool: compile: cc -DHAVE_CONFIG_H -I. -I.. -mcpu=3Dcortex-a7 -O = -pipe -mcpu=3Dcortex-a7 -g -fno-strict-aliasing -no-integrated-as -MT = pixman-arm-simd-asm-scaled.lo -MD -MP -MF = .deps/pixman-arm-simd-asm-scaled.Tpo -c pixman-arm-simd-asm-scaled.S -o = pixman-arm-simd-asm-scaled.o >/dev/null 2>&1 --- libpixman-arm-simd.la --- libtool: link: ar cru .libs/libpixman-arm-simd.a .libs/pixman-arm-simd.o = .libs/pixman-arm-simd-asm.o .libs/pixman-arm-simd-asm-scaled.o=20 libtool: link: ranlib .libs/libpixman-arm-simd.a libtool: link: ( cd ".libs" && rm -f "libpixman-arm-simd.la" && ln -s = "../libpixman-arm-simd.la" "libpixman-arm-simd.la" ) --- pixman-arm-neon-asm.lo --- libtool: compile: cc -DHAVE_CONFIG_H -I. -I.. -mcpu=3Dcortex-a7 -O = -pipe -mcpu=3Dcortex-a7 -g -fno-strict-aliasing -no-integrated-as -MT = pixman-arm-neon-asm.lo -MD -MP -MF .deps/pixman-arm-neon-asm.Tpo -c = pixman-arm-neon-asm.S -fPIC -DPIC -o .libs/pixman-arm-neon-asm.o --- pixman-arm-neon-asm.lo --- libtool: compile: cc -DHAVE_CONFIG_H -I. -I.. -mcpu=3Dcortex-a7 -O = -pipe -mcpu=3Dcortex-a7 -g -fno-strict-aliasing -no-integrated-as -MT = pixman-arm-neon-asm.lo -MD -MP -MF .deps/pixman-arm-neon-asm.Tpo -c = pixman-arm-neon-asm.S -o pixman-arm-neon-asm.o >/dev/null 2>&1 --- libpixman-arm-neon.la --- /bin/sh ../libtool --tag=3DCC --mode=3Dlink cc -O -pipe = -mcpu=3Dcortex-a7 -g -fno-strict-aliasing -Wall = -Wdeclaration-after-statement -Wno-unused-local-typedefs = -fno-strict-aliasing -fvisibility=3Dhidden -o libpixman-arm-neon.la = pixman-arm-neon.lo pixman-arm-neon-asm.lo = pixman-arm-neon-asm-bilinear.lo -lm libtool: link: ar cru .libs/libpixman-arm-neon.a .libs/pixman-arm-neon.o = .libs/pixman-arm-neon-asm.o .libs/pixman-arm-neon-asm-bilinear.o=20 libtool: link: ranlib .libs/libpixman-arm-neon.a libtool: link: ( cd ".libs" && rm -f "libpixman-arm-neon.la" && ln -s = "../libpixman-arm-neon.la" "libpixman-arm-neon.la" ) --- pixman-arm-neon-asm-bilinear.lo --- . . . libtool: compile: cc -DHAVE_CONFIG_H -I. -I.. -mcpu=3Dcortex-a7 -O = -pipe -mcpu=3Dcortex-a7 -g -fno-strict-aliasing -no-integrated-as -MT = pixman-arm-neon-asm-bilinear.lo -MD -MP -MF = .deps/pixman-arm-neon-asm-bilinear.Tpo -c pixman-arm-neon-asm-bilinear.S = -fPIC -DPIC -o .libs/pixman-arm-neon-asm-bilinear.o libtool: compile: cc -DHAVE_CONFIG_H -I. -I.. -mcpu=3Dcortex-a7 -O = -pipe -mcpu=3Dcortex-a7 -g -fno-strict-aliasing -no-integrated-as -MT = pixman-arm-neon-asm-bilinear.lo -MD -MP -MF = .deps/pixman-arm-neon-asm-bilinear.Tpo -c pixman-arm-neon-asm-bilinear.S = -o pixman-arm-neon-asm-bilinear.o >/dev/null 2>&1 --- libpixman-arm-neon.la --- /bin/sh ../libtool --tag=3DCC --mode=3Dlink cc -O -pipe = -mcpu=3Dcortex-a7 -g -fno-strict-aliasing -Wall = -Wdeclaration-after-statement -Wno-unused-local-typedefs = -fno-strict-aliasing -fvisibility=3Dhidden -o libpixman-arm-neon.la = pixman-arm-neon.lo pixman-arm-neon-asm.lo = pixman-arm-neon-asm-bilinear.lo -lm libtool: link: ar cru .libs/libpixman-arm-neon.a .libs/pixman-arm-neon.o = .libs/pixman-arm-neon-asm.o .libs/pixman-arm-neon-asm-bilinear.o=20 libtool: link: ranlib .libs/libpixman-arm-neon.a libtool: link: ( cd ".libs" && rm -f "libpixman-arm-neon.la" && ln -s = "../libpixman-arm-neon.la" "libpixman-arm-neon.la" ) --- libpixman-1.la --- /bin/sh ../libtool --tag=3DCC --mode=3Dlink cc -O -pipe = -mcpu=3Dcortex-a7 -g -fno-strict-aliasing -Wall = -Wdeclaration-after-statement -Wno-unused-local-typedefs = -fno-strict-aliasing -fvisibility=3Dhid den -version-info 34:0:34 -no-undefined -pthread -o = libpixman-1.la -rpath /usr/local/lib pixman.lo pixman-access.lo = pixman-access-accessors.lo pixman-bits-image.lo pixman-combine32.lo = pixm an-combine-float.lo pixman-conical-gradient.lo pixman-filter.lo = pixman-x86.lo pixman-mips.lo pixman-arm.lo pixman-ppc.lo pixman-edge.lo = pixman-edge-accessors.lo pixman-fast-path.lo pixman-glyph.lo=20 pixman-general.lo pixman-gradient-walker.lo pixman-image.lo = pixman-implementation.lo pixman-linear-gradient.lo pixman-matrix.lo = pixman-noop.lo pixman-radial-gradient.lo pixman-region16.lo pixman-r egion32.lo pixman-solid-fill.lo pixman-timer.lo pixman-trap.lo = pixman-utils.lo -lm -lm libpixman-arm-simd.la = libpixman-arm-neon.la -lm libtool: link: cc -shared -fPIC -DPIC .libs/pixman.o = .libs/pixman-access.o .libs/pixman-access-accessors.o = .libs/pixman-bits-image.o .libs/pixman-combine32.o = .libs/pixman-combine-float.o .libs/pixma n-conical-gradient.o .libs/pixman-filter.o .libs/pixman-x86.o = .libs/pixman-mips.o .libs/pixman-arm.o .libs/pixman-ppc.o = .libs/pixman-edge.o .libs/pixman-edge-accessors.o = .libs/pixman-fast-path.o .libs /pixman-glyph.o .libs/pixman-general.o .libs/pixman-gradient-walker.o = .libs/pixman-image.o .libs/pixman-implementation.o = .libs/pixman-linear-gradient.o .libs/pixman-matrix.o .libs/pixman-noop.o = .libs/ pixman-radial-gradient.o .libs/pixman-region16.o .libs/pixman-region32.o = .libs/pixman-solid-fill.o .libs/pixman-timer.o .libs/pixman-trap.o = .libs/pixman-utils.o -Wl,--whole-archive ./.libs/libpixman- arm-simd.a ./.libs/libpixman-arm-neon.a -Wl,--no-whole-archive -lm -O = -mcpu=3Dcortex-a7 -g -pthread -pthread -Wl,-soname = -Wl,libpixman-1.so.0 -o .libs/libpixman-1.so.0.34.0 =3D=3D=3D Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar)