amd64->armv7 cross build: devel/llvm90 build blocked by math/z3 build failure: can't create dynamic relocation R_ARM_MOVW_ABS_NC against symbol: __stack_chk_guard in readonly segment

Mark Millard marklmi at yahoo.com
Mon Aug 5 21:48:10 UTC 2019


[Note: Targeting aarch64 instead did not have this problem.]

[00:03:02] [02] [00:00:00] Building math/z3 | z3-4.8.5_1
. . .
[00:06:31] [02] [00:03:29] Saved math/z3 | z3-4.8.5_1 wrkdir to: /usr/local/poudriere/data/wrkdirs/FBSDFSSDjailArmV7-default/default/z3-4.8.5_1.tar
[00:06:31] [02] [00:03:29] Finished math/z3 | z3-4.8.5_1: Failed: build
. . .
[00:06:35] [02] [00:03:33] Skipping devel/llvm90 | llvm90-9.0.0.r1: Dependent port math/z3 | z3-4.8.5_1 failed

The specific first errors for math/z3 were:

ld: error: can't create dynamic relocation R_ARM_MOVW_ABS_NC against symbol: __stack_chk_guard in readonly segment; recompile object files with -fPIC or pass '-Wl,-z,notext' to allow text relocations 
in the output
>>> defined in /lib/libc.so.7
>>> referenced by install_tactic.cpp:97 (../src/api/dll/install_tactic.cpp:97)
>>>              api/dll/install_tactic.o:(install_tactics(tactic_manager&))

ld: error: can't create dynamic relocation R_ARM_MOVT_ABS against symbol: __stack_chk_guard in readonly segment; recompile object files with -fPIC or pass '-Wl,-z,notext' to allow text relocations in the output
>>> defined in /lib/libc.so.7
>>> referenced by install_tactic.cpp:97 (../src/api/dll/install_tactic.cpp:97)
>>>              api/dll/install_tactic.o:(install_tactics(tactic_manager&))

ld: error: can't create dynamic relocation R_ARM_MOVW_ABS_NC against symbol: .L.str in readonly segment; recompile object files with -fPIC or pass '-Wl,-z,notext' to allow text relocations in the output
>>> defined in api/dll/install_tactic.o
>>> referenced by install_tactic.cpp:98 (../src/api/dll/install_tactic.cpp:98)
>>>              api/dll/install_tactic.o:(install_tactics(tactic_manager&))


Is the default:

STATIC=on: Build static z3 library

inappropriate for armv7?

===
Mark Millard
marklmi at yahoo.com
( dsl-only.net went
away in early 2018-Mar)



More information about the freebsd-ports mailing list