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

Default linker fails to link tests on FreeBSD

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.6.0
    • None
    • None
    • FreeBSD 11.1

    Description

      When relying on the default linker:

       

      [ 82%] Linking CXX executable ../mesos-tests
      cd /mesos-build/src/tests && /usr/local/bin/cmake -E cmake_link_script CMakeFiles/mesos-tests.dir/link.txt --verbose=1 /usr/bin/c++ CMakeFiles/mesos-tests.dir/active_user_test_helper.cpp.o CMakeFiles/mesos-tests.dir/cluster.cpp.o CMakeFiles/mesos-tests.dir/container izer.cpp.o CMakeFiles/mesos-tests.dir/environment.cpp.o CMakeFiles/mesos-tests.dir/flags.cpp.o CMakeFiles/mesos-tests.dir/http_server_test_helper.cpp.o CMakeFiles/mesos-tests.dir/main.cpp.o CMakeFiles/mesos-tests.dir/mesos.cpp.o
      ...
      ../../3rdparty/leveldb-1.19/src/leveldb-1.19/out-static/libleveldb.a ../../3rdparty/googletest-1.8.0/src/googletest-1.8.0-build/googlemock/libgmock.a ../../3rdparty/googletest-1.8.0/src/googletest-1.8.0-build/googlemock/gtest/libgtest.a ../.libs/libload_qos_controller.so ../.libs/libfixed_resource_es timator.so ../.libs/liblogrotate_container_logger.so -Wl,-rpath-link,/mesos-build/3rdparty/libev-4.22/src/libev-4.22-build/lib CMakeFiles/mesos-tests.dir/api_tests.cpp.o: file not recognized: File format not recognized
      ...
      root@mesos0:/mesos-build # ld --version
      GNU ld 2.17.50 [FreeBSD] 2007-07-03
      

      lld seems to work, and an updated gnu linker from binutils or gold may work as well.

       

      Attachments

        Issue Links

          Activity

            People

              dforsyth David Forsythe
              dforsyth David Forsythe
              Benjamin Bannier Benjamin Bannier
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: