[MacPorts] #70206: llvm-15 @15.0.7_1 +universal: ld: Assertion failed: (name != NULL)
MacPorts
noreply at macports.org
Wed Jun 12 00:27:11 UTC 2024
#70206: llvm-15 @15.0.7_1 +universal: ld: Assertion failed: (name != NULL)
------------------------+---------------------
Reporter: ar-an-ribe | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.9.3
Keywords: | Port: llvm-15
------------------------+---------------------
On Mavericks, I currently have `llvm-15 @15.0.7_0 +universal` installed,
and I’d like to build `llvm-15 @15.0.7_1 +universal`. About 5% of the way
through the build, it attempts to link `../../../../bin/polly-isl-test`,
when an assertion fails in `ld`:
{{{
:info:build /opt/local/bin/clang-mp-13 -pipe -Os -DNDEBUG
-D__DISABLE_MP_LEGACY_SUPPORT_SYSCONF_WRAP__=1
-D__DISABLE_MP_LEGACY_SUPPORT_REALPATH_WRAP__=1
-isystem/opt/local/include/LegacySupport -I/opt/local/include -fPIC
-Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-
unused-parameter -Wwrite-strings -Wmissing-field-initializers -pedantic
-Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-
switch-default -Wstring-conversion -Wmisleading-indentation -O3 -DNDEBUG
-arch x86_64 -arch i386 -mmacosx-version-min=10.9 -Wl,-search_paths_first
-Wl,-headerpad_max_install_names -L/opt/local/lib
-Wl,-headerpad_max_install_names /opt/local/lib/libMacportsLegacySupport.a
"CMakeFiles/polly-isl-test.dir/isl/isl_test.c.o" -o ../../../../bin/polly-
isl-test ../../../../lib/libPollyISL.a
:info:build 0 0x10ff110e7 __assert_rtn + 144
:info:build 1 0x10ff3e525 ld::Fixup::Fixup(unsigned int,
ld::Fixup::Cluster, ld::Fixup::Kind, bool, char const*) + 107
:info:build 2 0x10ff1909d
mach_o::relocatable::Parser<x86_64>::addFixup(mach_o::relocatable::Parser<x86_64>::SourceLocation
const&, ld::Fixup::Cluster, ld::Fixup::Kind, bool, char const*) + 33
:info:build 3 0x10ff149bd
mach_o::relocatable::Section<x86_64>::addRelocFixup(mach_o::relocatable::Parser<x86_64>&,
macho_relocation_info<Pointer64<LittleEndian> > const*) + 1457
:info:build 4 0x10ff3a423
mach_o::relocatable::Section<x86_64>::makeFixups(mach_o::relocatable::Parser<x86_64>&,
mach_o::relocatable::Parser<x86_64>::CFI_CU_InfoArrays const&) + 91
:info:build 5 0x10ff362b8
mach_o::relocatable::Parser<x86_64>::parse(mach_o::relocatable::ParserOptions
const&) + 2028
:info:build 6 0x10ff1b9e2
mach_o::relocatable::Parser<x86_64>::parse(unsigned char const*, unsigned
long long, char const*, long, ld::File::Ordinal,
mach_o::relocatable::ParserOptions const&) + 374
:info:build 7 0x10ff48afc
archive::File<x86_64>::makeObjectFileForMember(archive::File<x86_64>::Entry
const*) const + 752
:info:build 8 0x10ff4864e
archive::File<x86_64>::justInTimeforEachAtom(char const*,
ld::File::AtomHandler&) const + 122
:info:build 9 0x10ff5da0b ld::tool::InputFiles::searchLibraries(char
const*, bool, bool, bool, ld::File::AtomHandler&) const + 219
:info:build 10 0x10ff657c4 ld::tool::Resolver::resolveUndefines() + 160
:info:build 11 0x10ff6792d ld::tool::Resolver::resolve() + 79
:info:build 12 0x10ff11c47 main + 679
:info:build 13 0x7fff90f195fd start + 1
:info:build /tmp/-a27fea.out-2024-05-11-200852.ld-snapshot
:info:build ld: Assertion failed: (name != NULL), function Fixup, file
/SourceCache/ld64/ld64-236.4/src/ld/ld.hpp, line 505.
:info:build clang: error: linker command failed with exit code 1 (use -v
to see invocation)
:info:build make[2]: *** [bin/polly-isl-test] Error 1
:info:build make[2]: Leaving directory
`/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_llvm-15/llvm-15/work/build'
:info:build make[1]: *** [tools/polly/lib/External/CMakeFiles/polly-isl-
test.dir/all] Error 2
:info:build make[1]: *** Waiting for unfinished jobs....
}}}
The `ld` that its configure step found was the ld64 at
`/Library/Developer/CommandLineTools/usr/bin/ld` (presumably found through
`xcrun`, given the symbolic link chain that begins with
`/opt/local/bin/ld`). Should its configure step have chosen a different
`ld`, e.g. `/opt/local/libexec/llvm-15/bin/ld64.lld`?
--
Ticket URL: <https://trac.macports.org/ticket/70206>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list