Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 5 Aug 2019 14:48:02 -0700
From:      Mark Millard <marklmi@yahoo.com>
To:        freebsd-ports@freebsd.org, freebsd-toolchain@freebsd.org, "brooks@freebsd.org" <brooks@FreeBSD.org>
Subject:   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
Message-ID:  <9533FEC7-3B4D-4A88-BD4D-945456B603E4@yahoo.com>

next in thread | raw e-mail | index | archive | help
[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=20
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=3Don: Build static z3 library

inappropriate for armv7?

=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?9533FEC7-3B4D-4A88-BD4D-945456B603E4>