[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
Wed May 3 17:23:04 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):

 -fPIC is in the flags now, but the linker still fails:
 {{{
 /opt/local/libexec/gcc10-bootstrap/bin/gcc -pipe -fPIC -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_999e1.dir/CheckFunctionExists.c.o  -o cmTC_999e1 -lpthread
 /usr/bin/ld: CMakeFiles/cmTC_999e1.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
 }}}

 And this is a build error I didn't notice before because I had my PATH set
 wrong:
 {{{
 /opt/local/var/macports/build/_Users_cebtenzzre_ports_lang_clang-11-bootstrap/clang-11-bootstrap/work
 /llvm-project/llvm/projects/compiler-
 rt/lib/builtins/i386/ashldi3.S:20:Unknown pseudo-op: .balign
 /opt/local/var/macports/build/_Users_cebtenzzre_ports_lang_clang-11-bootstrap/clang-11-bootstrap/work
 /llvm-project/llvm/projects/compiler-
 rt/lib/builtins/i386/ashldi3.S:20:Rest of line ignored. 1st junk character
 valued 52 (4).
 make[2]: *** [projects/compiler-
 rt/lib/builtins/CMakeFiles/clang_rt.builtins_i386_osx.dir/i386/ashldi3.S.o]
 Error 1
 }}}

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


More information about the macports-tickets mailing list