David Forsythe created MESOS-8761:
-------------------------------------
Summary: Default linker fails to link tests on FreeBSD
Key: MESOS-8761
URL: https://issues.apache.org/jira/browse/MESOS-8761
Project: Mesos
Issue Type: Task
Environment: FreeBSD 11.1
Reporter: David Forsythe
Assignee: David Forsythe
When relying on the default linker:
{code:java}
[ 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
{code}
lld seems to work, and an updated gnu linker from binutils or may work as well.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)