[
https://issues.apache.org/jira/browse/MESOS-6830?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Aaron Wood updated MESOS-6830:
------------------------------
Description:
Gold linker complains about using -pie without -fPIC:
/usr/bin/ld: local/mesos_local-main.o: relocation R_X86_64_32 against `.rodata'
can not be used when making a shared object; recompile with -fPIC
local/mesos_local-main.o: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
/usr/bin/ld: cli/mesos-mesos.o: relocation R_X86_64_32 against `.rodata' can
not be used when making a shared object; recompile with -fPIC
cli/mesos-mesos.o: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
Makefile:5208: recipe for target 'mesos-local' failed
make[2]: *** [mesos-local] Error 1
make[2]: *** Waiting for unfinished jobs....
/Makefile:5131: recipe for target 'mesos' failed
make[2]: *** [mesos] Error 1
usr/bin/ld: log/mesos_log-main.o: relocation R_X86_64_32 against `.bss' can not
be used when making a shared object; recompile with -fPIC
log/mesos_log-main.o: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
https://reviews.apache.org/r/54953/
was:
Gold linker complains about using -pie without -fPIC:
/usr/bin/ld: local/mesos_local-main.o: relocation R_X86_64_32 against `.rodata'
can not be used when making a shared object; recompile with -fPIC
local/mesos_local-main.o: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
/usr/bin/ld: cli/mesos-mesos.o: relocation R_X86_64_32 against `.rodata' can
not be used when making a shared object; recompile with -fPIC
cli/mesos-mesos.o: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
Makefile:5208: recipe for target 'mesos-local' failed
make[2]: *** [mesos-local] Error 1
make[2]: *** Waiting for unfinished jobs....
/Makefile:5131: recipe for target 'mesos' failed
make[2]: *** [mesos] Error 1
usr/bin/ld: log/mesos_log-main.o: relocation R_X86_64_32 against `.bss' can not
be used when making a shared object; recompile with -fPIC
log/mesos_log-main.o: error adding symbols: Bad value
collect2: error: ld returned 1 exit status
> Mesos fails to link with gold when providing -pie without -fPIC
> ---------------------------------------------------------------
>
> Key: MESOS-6830
> URL: https://issues.apache.org/jira/browse/MESOS-6830
> Project: Mesos
> Issue Type: Bug
> Components: build, libprocess, security, stout
> Reporter: Aaron Wood
> Assignee: Aaron Wood
>
> Gold linker complains about using -pie without -fPIC:
> /usr/bin/ld: local/mesos_local-main.o: relocation R_X86_64_32 against
> `.rodata' can not be used when making a shared object; recompile with -fPIC
> local/mesos_local-main.o: error adding symbols: Bad value
> collect2: error: ld returned 1 exit status
> /usr/bin/ld: cli/mesos-mesos.o: relocation R_X86_64_32 against `.rodata' can
> not be used when making a shared object; recompile with -fPIC
> cli/mesos-mesos.o: error adding symbols: Bad value
> collect2: error: ld returned 1 exit status
> Makefile:5208: recipe for target 'mesos-local' failed
> make[2]: *** [mesos-local] Error 1
> make[2]: *** Waiting for unfinished jobs....
> /Makefile:5131: recipe for target 'mesos' failed
> make[2]: *** [mesos] Error 1
> usr/bin/ld: log/mesos_log-main.o: relocation R_X86_64_32 against `.bss' can
> not be used when making a shared object; recompile with -fPIC
> log/mesos_log-main.o: error adding symbols: Bad value
> collect2: error: ld returned 1 exit status
> https://reviews.apache.org/r/54953/
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)