Date: Wed, 14 Nov 2018 10:10:04 -0800 From: Mark Millard <marklmi@yahoo.com> To: ports-list freebsd <freebsd-ports@freebsd.org>, freebsd-x11@freebsd.org Subject: 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: <56BE95DD-61E5-43CB-923D-10E968003FE3@yahoo.com>
next in thread | raw e-mail | index | archive | help
I'll first note: # /usr/bin/ld -v LLD 6.0.1 (FreeBSD 335540-1300000) (compatible with GNU linkers) and that I use: CFLAGS.clang+=3D -mcpu=3Dcortex-a7 CXXFLAGS.clang+=3D -mcpu=3Dcortex-a7 CPPFLAGS.clang+=3D -mcpu=3Dcortex-a7 in the src.conf like = ~/src.configs/src.conf.armv7-clang-bootstrap.armv7-host file that I used. The error reports were: --- 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 /usr/bin/ld: error: can't create dynamic relocation R_ARM_V4BX against = local symbol in readonly segment; recompile object files with -fPIC >>> defined in = ./.libs/libpixman-arm-simd.a(pixman-arm-simd-asm-scaled.o) >>> referenced by pixman-arm-simd-asm-scaled.o:(.text+0x1B8) in archive = ./.libs/libpixman-arm-simd.a /usr/bin/ld: error: can't create dynamic relocation R_ARM_V4BX against = local symbol in readonly segment; recompile object files with -fPIC >>> defined in = ./.libs/libpixman-arm-simd.a(pixman-arm-simd-asm-scaled.o) >>> referenced by pixman-arm-simd-asm-scaled.o:(.text+0x374) in archive = ./.libs/libpixman-arm-simd.a /usr/bin/ld: error: can't create dynamic relocation R_ARM_V4BX against = local symbol in readonly segment; recompile object files with -fPIC >>> defined in ./.libs/libpixman-arm-neon.a(pixman-arm-neon-asm.o) >>> referenced by pixman-arm-neon-asm.o:(.text+0x17AC) in archive = ./.libs/libpixman-arm-neon.a /usr/bin/ld: error: can't create dynamic relocation R_ARM_V4BX against = local symbol in readonly segment; recompile object files with -fPIC >>> defined in ./.libs/libpixman-arm-neon.a(pixman-arm-neon-asm.o) >>> referenced by pixman-arm-neon-asm.o:(.text+0x1814) in archive = ./.libs/libpixman-arm-neon.a /usr/bin/ld: error: can't create dynamic relocation R_ARM_V4BX against = local symbol in readonly segment; recompile object files with -fPIC >>> defined in ./.libs/libpixman-arm-neon.a(pixman-arm-neon-asm.o) >>> referenced by pixman-arm-neon-asm.o:(.text+0x1A38) in archive = ./.libs/libpixman-arm-neon.a /usr/bin/ld: error: can't create dynamic relocation R_ARM_V4BX against = local symbol in readonly segment; recompile object files with -fPIC >>> defined in ./.libs/libpixman-arm-neon.a(pixman-arm-neon-asm.o) >>> referenced by pixman-arm-neon-asm.o:(.text+0x1AFC) in archive = ./.libs/libpixman-arm-neon.a /usr/bin/ld: error: can't create dynamic relocation R_ARM_V4BX against = local symbol in readonly segment; recompile object files with -fPIC >>> defined in ./.libs/libpixman-arm-neon.a(pixman-arm-neon-asm.o) >>> referenced by pixman-arm-neon-asm.o:(.text+0x21C8) in archive = ./.libs/libpixman-arm-neon.a /usr/bin/ld: error: can't create dynamic relocation R_ARM_V4BX against = local symbol in readonly segment; recompile object files with -fPIC >>> defined in ./.libs/libpixman-arm-neon.a(pixman-arm-neon-asm.o) >>> referenced by pixman-arm-neon-asm.o:(.text+0x2294) in archive = ./.libs/libpixman-arm-neon.a /usr/bin/ld: error: can't create dynamic relocation R_ARM_V4BX against = local symbol in readonly segment; recompile object files with -fPIC >>> defined in ./.libs/libpixman-arm-neon.a(pixman-arm-neon-asm.o) >>> referenced by pixman-arm-neon-asm.o:(.text+0x84E0) in archive = ./.libs/libpixman-arm-neon.a /usr/bin/ld: error: can't create dynamic relocation R_ARM_V4BX against = local symbol in readonly segment; recompile object files with -fPIC >>> defined in ./.libs/libpixman-arm-neon.a(pixman-arm-neon-asm.o) >>> referenced by pixman-arm-neon-asm.o:(.text+0x85C4) in archive = ./.libs/libpixman-arm-neon.a /usr/bin/ld: error: can't create dynamic relocation R_ARM_V4BX against = local symbol in readonly segment; recompile object files with -fPIC >>> defined in ./.libs/libpixman-arm-neon.a(pixman-arm-neon-asm.o) >>> referenced by pixman-arm-neon-asm.o:(.text+0x9720) in archive = ./.libs/libpixman-arm-neon.a /usr/bin/ld: error: can't create dynamic relocation R_ARM_V4BX against = local symbol in readonly segment; recompile object files with -fPIC >>> defined in ./.libs/libpixman-arm-neon.a(pixman-arm-neon-asm.o) >>> referenced by pixman-arm-neon-asm.o:(.text+0x9834) in archive = ./.libs/libpixman-arm-neon.a /usr/bin/ld: error: can't create dynamic relocation R_ARM_V4BX against = local symbol in readonly segment; recompile object files with -fPIC >>> defined in ./.libs/libpixman-arm-neon.a(pixman-arm-neon-asm.o) >>> referenced by pixman-arm-neon-asm.o:(.text+0xA7B0) in archive = ./.libs/libpixman-arm-neon.a /usr/bin/ld: error: can't create dynamic relocation R_ARM_V4BX against = local symbol in readonly segment; recompile object files with -fPIC >>> defined in ./.libs/libpixman-arm-neon.a(pixman-arm-neon-asm.o) >>> referenced by pixman-arm-neon-asm.o:(.text+0xA8CC) in archive = ./.libs/libpixman-arm-neon.a /usr/bin/ld: error: can't create dynamic relocation R_ARM_V4BX against = local symbol in readonly segment; recompile object files with -fPIC >>> defined in ./.libs/libpixman-arm-neon.a(pixman-arm-neon-asm.o) >>> referenced by pixman-arm-neon-asm.o:(.text+0x105A0) in archive = ./.libs/libpixman-arm-neon.a /usr/bin/ld: error: can't create dynamic relocation R_ARM_V4BX against = local symbol in readonly segment; recompile object files with -fPIC >>> defined in ./.libs/libpixman-arm-neon.a(pixman-arm-neon-asm.o) >>> referenced by pixman-arm-neon-asm.o:(.text+0x10DB8) in archive = ./.libs/libpixman-arm-neon.a /usr/bin/ld: error: can't create dynamic relocation R_ARM_V4BX against = local symbol in readonly segment; recompile object files with -fPIC >>> defined in ./.libs/libpixman-arm-neon.a(pixman-arm-neon-asm.o) >>> referenced by pixman-arm-neon-asm.o:(.text+0x11274) in archive = ./.libs/libpixman-arm-neon.a /usr/bin/ld: error: can't create dynamic relocation R_ARM_V4BX against = local symbol in readonly segment; recompile object files with -fPIC >>> defined in ./.libs/libpixman-arm-neon.a(pixman-arm-neon-asm.o) >>> referenced by pixman-arm-neon-asm.o:(.text+0x11808) in archive = ./.libs/libpixman-arm-neon.a /usr/bin/ld: error: can't create dynamic relocation R_ARM_V4BX against = local symbol in readonly segment; recompile object files with -fPIC >>> defined in = ./.libs/libpixman-arm-neon.a(pixman-arm-neon-asm-bilinear.o) >>> referenced by pixman-arm-neon-asm-bilinear.o:(.text+0x4F0) in = archive ./.libs/libpixman-arm-neon.a /usr/bin/ld: error: can't create dynamic relocation R_ARM_V4BX against = local symbol in readonly segment; recompile object files with -fPIC >>> defined in = ./.libs/libpixman-arm-neon.a(pixman-arm-neon-asm-bilinear.o) >>> referenced by pixman-arm-neon-asm-bilinear.o:(.text+0xABC) in = archive ./.libs/libpixman-arm-neon.a /usr/bin/ld: error: too many errors emitted, stopping now (use = -error-limit=3D0 to see all errors) cc: error: linker command failed with exit code 1 (use -v to see = invocation) *** [libpixman-1.la] Error code 1 make[3]: stopped in = /wrkdirs/usr/ports/x11/pixman/work/pixman-0.34.0/pixman 1 error make[3]: stopped in = /wrkdirs/usr/ports/x11/pixman/work/pixman-0.34.0/pixman *** [all-recursive] Error code 1 FreeBSD context details: # 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 =3D=3D=3D Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?56BE95DD-61E5-43CB-923D-10E968003FE3>