Tinderbox / universe buildfailure with custom options

From: Gordon Bergling <gbergling_at_googlemail.com>
Date: Sat, 25 Apr 2020 22:18:59 +0200
Hi,

I tried to make a tinderbox / universe build today, but it was failing with 
some custom buildoptions. The options are the following:

WITH_EXTRA_TCP_STACKS=1
WITH_BEARSSL=1
WITH_PIE=1
WITH_RETPOLINE=1

What strange is, is, that with a "make buildworld buildkernel" everything works fine.
Only the tinderbox / universe target seems to be broken by these options.

Has anyone an idea why the tinderbox / universe target is broken with these
build options?

The following are the, rather shortened, error messages.

===> rescue/rescue (obj,build-tools)
ld: error: can't create dynamic relocation R_X86_64_32S against local symbol in readonly segment; recompile object files with -fPIC or pass '-Wl,-z,notext' to allow text relocations in the output
>>> defined in jsmn.o
>>> referenced by jsmn.c:0 (/boiler/nfs/src/lib/libpmc/pmu-events/jsmn.c:0)
>>>               jsmn.o:(jsmn_parse)

ld: error: can't create dynamic relocation R_X86_64_32S against local symbol in readonly segment; recompile object files with -fPIC or pass '-Wl,-z,notext' to allow text relocations in the output
>>> defined in jsmn.o
>>> referenced by jsmn.c:0 (/boiler/nfs/src/lib/libpmc/pmu-events/jsmn.c:0)
>>>               jsmn.o:(jsmn_parse)

ld: error: can't create dynamic relocation R_X86_64_32S against local symbol in readonly segment; recompile object files with -fPIC or pass '-Wl,-z,notext' to allow text relocations in the output
>>> defined in jsmn.o
>>> referenced by jsmn.c:304 (/boiler/nfs/src/lib/libpmc/pmu-events/jsmn.c:304)
>>>               jsmn.o:(jsmn_strerror)

ld: error: can't create dynamic relocation R_X86_64_32 against local symbol in readonly segment; recompile object files with -fPIC or pass '-Wl,-z,notext' to allow text relocations in the output
>>> defined in jsmn.o
>>> referenced by jsmn.c:316 (/boiler/nfs/src/lib/libpmc/pmu-events/jsmn.c:316)
>>>               jsmn.o:(jsmn_strerror)

ld: error: can't create dynamic relocation R_X86_64_64 against local symbol in readonly segment; recompile object files with -fPIC or pass '-Wl,-z,notext' to allow text relocations in the output
>>> defined in jsmn.o
>>> referenced by jsmn.c
>>>               jsmn.o:(.rodata+0x0)

--Gordon
Received on Sat Apr 25 2020 - 18:19:04 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:23 UTC