[MacPorts] #68404: ocaml fails to build on 10.8 Intel and earlier: clang: error: linker command failed with exit code 1 (use -v to see invocation)

MacPorts noreply at macports.org
Mon Oct 9 15:18:36 UTC 2023


#68404: ocaml fails to build on 10.8 Intel and earlier: clang: error: linker
command failed with exit code 1 (use -v to see invocation)
---------------------------------------------+----------------------
 Reporter:  barracuda156                     |      Owner:  pmetzger
     Type:  defect                           |     Status:  assigned
 Priority:  Normal                           |  Milestone:
Component:  ports                            |    Version:  2.8.1
 Keywords:  mountainlion, lion, snowleopard  |       Port:  ocaml
---------------------------------------------+----------------------
 {{{
 ld: warning: unexpected dylib (/usr/lib/libSystem.dylib) on link line
 0  0x1073810e7  __assert_rtn + 144
 1  0x1073ea966  ld::tool::SectionRelocationsAtom<x86>::sectSymNum(bool,
 ld::Atom const*) + 0
 2  0x1073d8ef8
 ld::tool::SectionRelocationsAtom<x86_64>::encodeSectionReloc(ld::Internal::FinalSection*,
 ld::tool::SectionRelocationsAtom<x86_64>::Entry const&,
 std::__1::vector<macho_relocation_info<Pointer64<LittleEndian> >,
 std::__1::allocator<macho_relocation_info<Pointer64<LittleEndian> > > >&)
 + 86
 3  0x10740e060  ld::tool::SectionRelocationsAtom<x86_64>::encode() + 62
 4  0x1073dfffe
 ld::tool::OutputFile::updateLINKEDITAddresses(ld::Internal&) + 454
 5  0x1073dace4  ld::tool::OutputFile::write(ld::Internal&) + 138
 6  0x107381d94  main + 1012
 7  0x1076dc7e1  start + 0
 A linker snapshot was created at:
         /tmp/dynlink_compilerlibs.o-2023-09-05-065212.ld-snapshot
 ld: Assertion failed: (_machoSection != 0), function machoSection, file
 /SourceCache/ld64/ld64-236.4/src/ld/ld.hpp, line 714.
 clang: error: linker command failed with exit code 1 (use -v to see
 invocation)
 File
 "/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_lang_ocaml/ocaml/work/ocaml-4.14.1/otherlibs/dynlink/native/dynlink_compilerlibs.cmx",
 line 1:
 Error: Error during partial linking
 }}}
 https://build.macports.org/builders/ports-10.8_x86_64-builder/builds/150042/steps
 /install-port/logs/stdio

 On 10.6.8 Intel `clang-3.4` is picked, and it also fails:
 https://build.macports.org/builders/ports-10.6_x86_64-builder/builds/173117/steps
 /install-port/logs/stdio

-- 
Ticket URL: <https://trac.macports.org/ticket/68404>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list