[MacPorts] #65246: clang-14: crashes occurring for multiple ports

MacPorts noreply at macports.org
Sat Jul 5 02:00:45 UTC 2025


#65246: clang-14: crashes occurring for multiple ports
----------------------------------------------------+--------------------
  Reporter:  mascguy                                |      Owner:  (none)
      Type:  defect                                 |     Status:  new
  Priority:  Normal                                 |  Milestone:
 Component:  ports                                  |    Version:  2.7.2
Resolution:                                         |   Keywords:
      Port:  clang-14 llvm-14 darktable libopenraw  |
----------------------------------------------------+--------------------

Comment (by i3roly):

 Replying to [comment:26 mascguy]:
 > Replying to [comment:24 catap]:
 > > Just for keep things in one place. Building of `llvm-devel` on 10.6 by
 clang-13 and clang-14 fails with the same reason
 >
 > So the $100,000 question I'd like to throw out to the group, is this:
 Why are we introducing another upstream LLVM release - 15 - when LLVM 13
 and 14 aren't rock-solid?
 >
 > That makes zero sense to me...

 thanks for your dedication to this issue chris.

 i noticed it as well when trying to build clang-19 for snow leopard.
 llvm-19 builds easily, but clearly there is something plaguing 10.6, since
 linking libunwind on 10.7 works fine:
 {{{
 [1030/1324] : &&
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-19/clang-19/work/build/bin/clang
 --target=x86_64-apple-darwin11.4.2 -fPIC -Werror=date-time -Wall -Wextra
 -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-
 initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wstring-
 conversion -Wmisleading-indentation -Wctad-maybe-unsupported
 -fdiagnostics-color -O3 -DNDEBUG -mmacosx-version-min=10.7 -dynamiclib
 -Wl,-headerpad_max_install_names -nostdlib++ --unwindlib=none
 -compatibility_version 1 -install_name /usr/lib/libunwind.1.dylib
 -compatibility_version 1.0.0 -current_version 1.0.0 -o
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-19/clang-19/work/build/lib/libunwind.1.0.dylib
 -install_name @rpath/libunwind.1.dylib
 libunwind/src/CMakeFiles/unwind_shared_objects.dir/libunwind.cpp.o
 libunwind/src/CMakeFiles/unwind_shared_objects.dir/Unwind-EHABI.cpp.o
 libunwind/src/CMakeFiles/unwind_shared_objects.dir/Unwind-seh.cpp.o
 libunwind/src/CMakeFiles/unwind_shared_objects.dir/UnwindLevel1.c.o
 libunwind/src/CMakeFiles/unwind_shared_objects.dir/UnwindLevel1-gcc-
 ext.c.o libunwind/src/CMakeFiles/unwind_shared_objects.dir/Unwind-sjlj.c.o
 libunwind/src/CMakeFiles/unwind_shared_objects.dir/Unwind-wasm.c.o
 libunwind/src/CMakeFiles/unwind_shared_objects.dir/UnwindRegistersRestore.S.o
 libunwind/src/CMakeFiles/unwind_shared_objects.dir/UnwindRegistersSave.S.o
 && :
 clang: warning: argument unused during compilation: '--unwindlib=none'
 [-Wunused-command-line-argument]
 }}}


 but on 10.6 i get the same error as you:

 {{{
 FAILED:
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-19/clang-19/work/build/lib/libunwind.1.0.dylib
 : &&
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-19/clang-19/work/build/bin/clang
 --target=x86_64-apple-darwin10.8.0 -fPIC -Werror=date-time -Wall -Wextra
 -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-
 initializers -Wimplicit-fallthrough -Wcovered-switch-default -Wstring-
 conversion -Wmisleading-indentation -Wctad-maybe-unsupported
 -fdiagnostics-color -O3 -DNDEBUG -mmacosx-version-min=10.6 -dynamiclib
 -Wl,-headerpad_max_install_names -dynamiclib
 -Wl,-headerpad_max_install_names -nostdlib++ -compatibility_version 1
 -install_name /usr/lib/libunwind.1.dylib -compatibility_version 1.0.0
 -current_version 1.0.0  -o
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_lang_llvm-19/clang-19/work/build/lib/libunwind.1.0.dylib
 -install_name @rpath/libunwind.1.dylib
 libunwind/src/CMakeFiles/unwind_shared_objects.dir/libunwind.cpp.o
 libunwind/src/CMakeFiles/unwind_shared_objects.dir/Unwind-EHABI.cpp.o
 libunwind/src/CMakeFiles/unwind_shared_objects.dir/Unwind-seh.cpp.o
 libunwind/src/CMakeFiles/unwind_shared_objects.dir/UnwindLevel1.c.o
 libunwind/src/CMakeFiles/unwind_shared_objects.dir/UnwindLevel1-gcc-
 ext.c.o libunwind/src/CMakeFiles/unwind_shared_objects.dir/Unwind-sjlj.c.o
 libunwind/src/CMakeFiles/unwind_shared_objects.dir/Unwind-wasm.c.o
 libunwind/src/CMakeFiles/unwind_shared_objects.dir/UnwindRegistersRestore.S.o
 libunwind/src/CMakeFiles/unwind_shared_objects.dir/UnwindRegistersSave.S.o
 && :
 Assertion failed: (name != NULL), function Fixup, file src/ld/ld.hpp, line
 394.
 0  0x100001fa0  __assert_rtn + 79
 1  0x10007564e  ld::Fixup::Fixup(unsigned int, ld::Fixup::Cluster,
 ld::Fixup::Kind, bool, char const*) + 70
 2  0x10009015c
 mach_o::relocatable::Parser<x86_64>::FixupInAtom::FixupInAtom(mach_o::relocatable::Parser<x86_64>::SourceLocation
 const&, ld::Fixup::Cluster, ld::Fixup::Kind, bool, char const*) + 30
 3  0x10009baff
 mach_o::relocatable::Parser<x86_64>::addFixup(mach_o::relocatable::Parser<x86_64>::SourceLocation
 const&, ld::Fixup::Cluster, ld::Fixup::Kind, bool, char const*) + 31
 4  0x10008882d
 mach_o::relocatable::Section<x86_64>::addRelocFixup(mach_o::relocatable::Parser<x86_64>&,
 macho_relocation_info<Pointer64<LittleEndian> > const*) + 1977
 5  0x1000a4b2d
 mach_o::relocatable::Section<x86_64>::makeFixups(mach_o::relocatable::Parser<x86_64>&,
 mach_o::relocatable::Parser<x86_64>::CFI_CU_InfoArrays const&) + 75
 6  0x1000b8a0f
 mach_o::relocatable::Parser<x86_64>::parse(mach_o::relocatable::ParserOptions
 const&) + 1251
 7  0x1000b8e5f  mach_o::relocatable::Parser<x86_64>::parse(unsigned char
 const*, unsigned long long, char const*, long, unsigned int,
 mach_o::relocatable::ParserOptions const&) + 66
 8  0x100089643  mach_o::relocatable::parse(unsigned char const*, unsigned
 long long, char const*, long, unsigned int,
 mach_o::relocatable::ParserOptions const&) + 319
 9  0x10000e8b5  ld::tool::InputFiles::makeFile(Options::FileInfo const&,
 bool) + 579
 10  0x10000ed31  ld::tool::InputFiles::InputFiles(Options&, char const**)
 + 413
 11  0x10000b860  main + 166
 12  0x1000039b4  start + 52
 clang: error: linker command failed with exit code 1 (use -v to see
 invocation)
 }}}

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


More information about the macports-tickets mailing list