Uploaded image for project: 'Mesos'
  1. Mesos
  2. MESOS-7409

Failure to link with lld

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • cmake

    Description

      Mesos does not link with LLVM's lld,

      /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
      

      Looking at the configure flags used in the autotools and cmake build one difference is that the cmake build does not compile with -fPIC.

      Attachments

        1. Dockerfile
          0.7 kB
          Benjamin Bannier

        Issue Links

          Activity

            People

              Unassigned Unassigned
              bbannier Benjamin Bannier
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated: