[ 
https://issues.apache.org/jira/browse/MESOS-7409?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Gavin updated MESOS-7409:
-------------------------
    Comment: was deleted

(was: www.rtat.net)

> Failure to link with lld
> ------------------------
>
>                 Key: MESOS-7409
>                 URL: https://issues.apache.org/jira/browse/MESOS-7409
>             Project: Mesos
>          Issue Type: Bug
>          Components: cmake
>            Reporter: Benjamin Bannier
>            Priority: Major
>              Labels: mesosphere
>         Attachments: Dockerfile
>
>
> Mesos does not link with LLVM's lld,
> {code}
> /usr/bin/ld: error: 
> /BUILD/3rdparty/glog-0.3.3/src/glog-0.3.3/src/../src/logging.cc:349: can't 
> create dynamic relocation R_X86_64_32S against symbol 'vtable for 
> google::base::Logger' defined in 
> /BUILD/3rdparty/glog-0.3.3/src/glog-0.3.3-lib/lib/lib/libglog.a(libglog_la-logging.o)
> /usr/bin/ld: error: 
> /BUILD/3rdparty/glog-0.3.3/src/glog-0.3.3/src/../src/logging.cc:1589: can't 
> create dynamic relocation R_X86_64_32S against symbol 'vtable for 
> google::LogSink' defined in 
> /BUILD/3rdparty/glog-0.3.3/src/glog-0.3.3-lib/lib/lib/libglog.a(libglog_la-logging.o)
> /usr/bin/ld: error: 
> /BUILD/3rdparty/glog-0.3.3/src/glog-0.3.3/src/../src/logging.cc:349: can't 
> create dynamic relocation R_X86_64_32S against symbol 'vtable for 
> google::base::Logger' defined in 
> /BUILD/3rdparty/glog-0.3.3/src/glog-0.3.3-lib/lib/lib/libglog.a(libglog_la-logging.o)
> /usr/bin/ld: error: 
> /BUILD/3rdparty/glog-0.3.3/src/glog-0.3.3/src/../src/logging.cc:1589: can't 
> create dynamic relocation R_X86_64_32S against symbol 'vtable for 
> google::LogSink' defined in 
> /BUILD/3rdparty/glog-0.3.3/src/glog-0.3.3-lib/lib/lib/libglog.a(libglog_la-logging.o)
> /usr/bin/ld: error: 
> /BUILD/3rdparty/glog-0.3.3/src/glog-0.3.3/src/../src/logging.cc:1444: can't 
> create dynamic relocation R_X86_64_PC32 against symbol 'abort' defined in 
> //lib/x86_64-linux-gnu/libc.so.6
> /usr/bin/ld: error: 
> /BUILD/3rdparty/glog-0.3.3/src/glog-0.3.3/src/../src/logging.cc:848: can't 
> create dynamic relocation R_X86_64_PC32 against symbol 'fflush' defined in 
> //lib/x86_64-linux-gnu/libc.so.6
> /usr/bin/ld: error: 
> /BUILD/3rdparty/glog-0.3.3/src/glog-0.3.3/src/../src/logging.cc:853: can't 
> create dynamic relocation R_X86_64_PC32 against symbol 
> 'fLI::FLAGS_logbufsecs' defined in 
> /BUILD/3rdparty/glog-0.3.3/src/glog-0.3.3-lib/lib/lib/libglog.a(libglog_la-logging.o)
> /usr/bin/ld: error: 
> /BUILD/3rdparty/glog-0.3.3/src/glog-0.3.3/src/../src/logging.cc:854: can't 
> create dynamic relocation R_X86_64_PC32 against symbol 
> 'google::glog_internal_namespace_::CycleClock_Now()' defined in 
> /BUILD/3rdparty/glog-0.3.3/src/glog-0.3.3-lib/lib/lib/libglog.a(libglog_la-utilities.o)
> /usr/bin/ld: error: 
> /BUILD/3rdparty/glog-0.3.3/src/glog-0.3.3/src/../src/logging.cc:854: can't 
> create dynamic relocation R_X86_64_PC32 against symbol 
> 'google::glog_internal_namespace_::UsecToCycles(long)' defined in 
> /BUILD/3rdparty/glog-0.3.3/src/glog-0.3.3-lib/lib/lib/libglog.a(libglog_la-utilities.o)
> /usr/bin/ld: error: 
> /BUILD/3rdparty/glog-0.3.3/src/glog-0.3.3/src/../src/logging.cc:1105: can't 
> create dynamic relocation R_X86_64_PC32 against symbol 'operator 
> delete[](void*)' defined in /usr/lib/gcc/x86_64-linux-gnu/4.8/libstdc++.so
> /usr/bin/ld: error: /usr/include/c++/4.8/bits/basic_ios.h:152: can't create 
> dynamic relocation R_X86_64_PC32 against symbol 'std::basic_ios<char, 
> std::char_traits<char> >::clear(std::_Ios_Iostate)' defined in 
> /usr/lib/gcc/x86_64-linux-gnu/4.8/libstdc++.so
> /usr/bin/ld: error: 
> /BUILD/3rdparty/glog-0.3.3/src/glog-0.3.3/src/../src/logging.cc:636: can't 
> create dynamic relocation R_X86_64_PC32 against symbol 
> 'google::LogDestination::terminal_supports_color_' defined in 
> /BUILD/3rdparty/glog-0.3.3/src/glog-0.3.3-lib/lib/lib/libglog.a(libglog_la-logging.o)
> /usr/bin/ld: error: 
> /BUILD/3rdparty/glog-0.3.3/src/glog-0.3.3/src/../src/logging.cc:635: can't 
> create dynamic relocation R_X86_64_PC32 against symbol 
> 'fLB::FLAGS_colorlogtostderr' defined in 
> /BUILD/3rdparty/glog-0.3.3/src/glog-0.3.3-lib/lib/lib/libglog.a(libglog_la-logging.o)
> /usr/bin/ld: error: /usr/include/x86_64-linux-gnu/bits/stdio2.h:98: can't 
> create dynamic relocation R_X86_64_32S against local symbol in readonly 
> segment defined in 
> /BUILD/3rdparty/glog-0.3.3/src/glog-0.3.3-lib/lib/lib/libglog.a(libglog_la-logging.o)
> /usr/bin/ld: error: /usr/include/x86_64-linux-gnu/bits/stdio2.h:98: can't 
> create dynamic relocation R_X86_64_PC32 against symbol 'stderr' defined in 
> //lib/x86_64-linux-gnu/libc.so.6
> /usr/bin/ld: error: /usr/include/x86_64-linux-gnu/bits/stdio2.h:98: can't 
> create dynamic relocation R_X86_64_32 against local symbol in readonly 
> segment defined in 
> /BUILD/3rdparty/glog-0.3.3/src/glog-0.3.3-lib/lib/lib/libglog.a(libglog_la-logging.o)
> /usr/bin/ld: error: /usr/include/x86_64-linux-gnu/bits/stdio2.h:98: can't 
> create dynamic relocation R_X86_64_PC32 against symbol '__fprintf_chk' 
> defined in //lib/x86_64-linux-gnu/libc.so.6
> /usr/bin/ld: error: 
> /BUILD/3rdparty/glog-0.3.3/src/glog-0.3.3/src/../src/logging.cc:664: can't 
> create dynamic relocation R_X86_64_PC32 against symbol 'stderr' defined in 
> //lib/x86_64-linux-gnu/libc.so.6
> /usr/bin/ld: error: 
> /BUILD/3rdparty/glog-0.3.3/src/glog-0.3.3/src/../src/logging.cc:664: can't 
> create dynamic relocation R_X86_64_PC32 against symbol 'fwrite' defined in 
> //lib/x86_64-linux-gnu/libc.so.6
> /usr/bin/ld: error: /usr/include/x86_64-linux-gnu/bits/stdio2.h:98: can't 
> create dynamic relocation R_X86_64_PC32 against symbol 'stderr' defined in 
> //lib/x86_64-linux-gnu/libc.so.6
> {code}
> Looking at the configure flags used in the autotools and cmake build one 
> difference is that the cmake build does not compile with {{-fPIC}}.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to