[ 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 was: Gold linker complains about using -pie without -fPIC: /bin/bash ../libtool --tag=CXX --mode=link g++ -pthread -Wall -Wsign-compare -Wformat-security -g1 -O0 -Wno-unused-local-typedefs -std=c++11 -pie -Wl,--as-needed -o mesos-log log/mesos_log-main.o libmesos.la -lz -lsvn_delta-1 -lsvn_subr-1 -lsasl2 -lcurl -lapr-1 -lz -lrt /bin/bash ../libtool --tag=CXX --mode=link g++ -pthread -Wall -Wsign-compare -Wformat-security -g1 -O0 -Wno-unused-local-typedefs -std=c++11 -pie -Wl,--as-needed -o mesos-local local/mesos_local-main.o libmesos.la -lz -lsvn_delta-1 -lsvn_subr-1 -lsasl2 -lcurl -lapr-1 -lz -lrt /bin/bash ../libtool --tag=CXX --mode=link g++ -pthread -Wall -Wsign-compare -Wformat-security -g1 -O0 -Wno-unused-local-typedefs -std=c++11 -pie -Wl,--as-needed -o mesos cli/mesos-mesos.o libmesos.la -lz -lsvn_delta-1 -lsvn_subr-1 -lsasl2 -lcurl -lapr-1 -lz -lrt libtool: link: g++ -pthread -Wall -Wsign-compare -Wformat-security -g1 -O0 -Wno-unused-local-typedefs -std=c++11 -pie -Wl,--as-needed -o .libs/mesos-local local/mesos_local-main.o ./.libs/libmesos.so /usr/lib/x86_64-linux-gnu/libsvn_delta-1.so /usr/lib/x86_64-linux-gnu/libsvn_subr-1.so -lsasl2 /usr/lib/x86_64-linux-gnu/libcurl-nss.so /usr/lib/x86_64-linux-gnu/libapr-1.so -lz -lrt -pthread libtool: link: g++ -pthread -Wall -Wsign-compare -Wformat-security -g1 -O0 -Wno-unused-local-typedefs -std=c++11 -pie -Wl,--as-needed -o .libs/mesos-log log/mesos_log-main.o ./.libs/libmesos.so /usr/lib/x86_64-linux-gnu/libsvn_delta-1.so /usr/lib/x86_64-linux-gnu/libsvn_subr-1.so -lsasl2 /usr/lib/x86_64-linux-gnu/libcurl-nss.so /usr/lib/x86_64-linux-gnu/libapr-1.so -lz -lrt -pthread libtool: link: g++ -pthread -Wall -Wsign-compare -Wformat-security -g1 -O0 -Wno-unused-local-typedefs -std=c++11 -pie -Wl,--as-needed -o .libs/mesos cli/mesos-mesos.o ./.libs/libmesos.so /usr/lib/x86_64-linux-gnu/libsvn_delta-1.so /usr/lib/x86_64-linux-gnu/libsvn_subr-1.so -lsasl2 /usr/lib/x86_64-linux-gnu/libcurl-nss.so /usr/lib/x86_64-linux-gnu/libapr-1.so -lz -lrt -pthread /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 -- This message was sent by Atlassian JIRA (v6.3.4#6332)