[MacPorts] #67348: clang-11-bootstrap @11.1.0_4: Attempting to use @rpath without CMAKE_SHARED_LIBRARY_RUNTIME_C_FLAG being set

MacPorts noreply at macports.org
Tue May 2 22:01:43 UTC 2023


#67348: clang-11-bootstrap @11.1.0_4: Attempting to use @rpath without
CMAKE_SHARED_LIBRARY_RUNTIME_C_FLAG being set
---------------------------------+--------------------
  Reporter:  Cebtenzzre          |      Owner:  (none)
      Type:  defect              |     Status:  new
  Priority:  Normal              |  Milestone:
 Component:  ports               |    Version:  2.8.1
Resolution:                      |   Keywords:  tiger
      Port:  clang-11-bootstrap  |
---------------------------------+--------------------

Comment (by Cebtenzzre):

 CMakeError.log shows why pthread_create was not found:
 {{{
 Determining if the function pthread_create exists in the pthread failed
 with the following output:
 Change Dir:
 /opt/local/var/macports/build/_Users_cebtenzzre_ports_lang_clang-11-bootstrap/clang-11-bootstrap/work/build/CMakeFiles/CMakeTmp

 Run Build Command:"make" "cmTC_3599f/fast"
 make -f CMakeFiles/cmTC_3599f.dir/build.make
 CMakeFiles/cmTC_3599f.dir/build
 Building C object CMakeFiles/cmTC_3599f.dir/CheckFunctionExists.c.o
 /opt/local/libexec/gcc10-bootstrap/bin/gcc   -pipe -DNDEBUG
 -DCHECK_FUNCTION_EXISTS=pthread_create -arch i386 -mmacosx-version-
 min=10.4   -o CMakeFiles/cmTC_3599f.dir/CheckFunctionExists.c.o   -c
 /opt/local/libexec/cmake-
 bootstrap/share/cmake-3.9/Modules/CheckFunctionExists.c
 Linking C executable cmTC_3599f
 /opt/local/libexec/cmake-bootstrap/bin/cmake -E cmake_link_script
 CMakeFiles/cmTC_3599f.dir/link.txt --verbose=1
 /opt/local/libexec/gcc10-bootstrap/bin/gcc -pipe -DNDEBUG
 -DCHECK_FUNCTION_EXISTS=pthread_create -arch i386 -mmacosx-version-
 min=10.4 -Wl,-search_paths_first -Wl,-headerpad_max_install_names -static-
 libstdc++ -static-libgcc
 CMakeFiles/cmTC_3599f.dir/CheckFunctionExists.c.o  -o cmTC_3599f -lpthread
 /usr/bin/ld: CMakeFiles/cmTC_3599f.dir/CheckFunctionExists.c.o has
 external relocation entries in non-writable section (__TEXT,__text) for
 symbols:
 _pthread_create
 collect2: error: ld returned 1 exit status
 }}}

 A quick google search tells me this could be due to missing -fPIC.

-- 
Ticket URL: <https://trac.macports.org/ticket/67348#comment:13>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list