[MacPorts] #65763: ld64-274 - universal variant -- Linker Failed - Undefined symbols for architecture i386 & /opt/local/lib/libxar.dylib, file was built for unsupported file format
MacPorts
noreply at macports.org
Sun Sep 4 01:33:49 UTC 2022
#65763: ld64-274 - universal variant -- Linker Failed - Undefined symbols for
architecture i386 & /opt/local/lib/libxar.dylib, file was built for
unsupported file format
--------------------+----------------------
Reporter: RobK88 | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.7.2
Keywords: lion | Port: ld64-274
--------------------+----------------------
I am able to build the x86_64 binary for ld64-274 on lion (10.7.5)
But I am unable to build the +universal variant.
Please see below and the attached main.log for more details.
{{{
ld: warning: ignoring file /opt/local/lib/libxar.dylib, file was built for
unsupported file format ( 0xcf 0xfa 0xed 0xfe 0x 7 0x 0 0x 0 0x 1 0x 3 0x
0 0x 0 0x 0 0x 6 0x 0 0x 0 0x 0 ) which is not the architecture being
linked (i386): /opt/local/lib/libxar.dylib
Undefined symbols for architecture i386:
"_xar_add_frombuffer", referenced from:
ld::passes::bitcode_bundle::BundleHandler::obfuscateAndWriteToPath(ld::passes::bitcode_bundle::BitcodeObfuscator*,
char const*) in bitcode_bundle.o
ld::passes::bitcode_bundle::BitcodeBundle::doPass() in
bitcode_bundle.o
"_xar_close", referenced from:
ld::passes::bitcode_bundle::BundleHandler::~BundleHandler() in
bitcode_bundle.o
ld::passes::bitcode_bundle::BundleHandler::obfuscateAndWriteToPath(ld::passes::bitcode_bundle::BitcodeObfuscator*,
char const*) in bitcode_bundle.o
ld::passes::bitcode_bundle::BitcodeBundle::doPass() in
bitcode_bundle.o
"_xar_extract_tobuffersz", referenced from:
ld::passes::bitcode_bundle::FileHandler::initFile() in
bitcode_bundle.o
"_xar_file_first", referenced from:
ld::passes::bitcode_bundle::BundleHandler::init() in
bitcode_bundle.o
"_xar_file_next", referenced from:
ld::passes::bitcode_bundle::BundleHandler::init() in
bitcode_bundle.o
"_xar_iter_free", referenced from:
ld::passes::bitcode_bundle::BundleHandler::init() in
bitcode_bundle.o
ld::passes::bitcode_bundle::BundleHandler::copyXARProp(__xar_file_t
const*, __xar_file_t const*) in bitcode_bundle.o
"_xar_iter_new", referenced from:
ld::passes::bitcode_bundle::BundleHandler::init() in
bitcode_bundle.o
ld::passes::bitcode_bundle::BundleHandler::copyXARProp(__xar_file_t
const*, __xar_file_t const*) in bitcode_bundle.o
"_xar_open", referenced from:
ld::passes::bitcode_bundle::BundleHandler::init() in
bitcode_bundle.o
ld::passes::bitcode_bundle::BundleHandler::obfuscateAndWriteToPath(ld::passes::bitcode_bundle::BitcodeObfuscator*,
char const*) in bitcode_bundle.o
ld::passes::bitcode_bundle::BitcodeBundle::doPass() in
bitcode_bundle.o
"_xar_opt_set", referenced from:
ld::passes::bitcode_bundle::BundleHandler::obfuscateAndWriteToPath(ld::passes::bitcode_bundle::BitcodeObfuscator*,
char const*) in bitcode_bundle.o
ld::passes::bitcode_bundle::BitcodeBundle::doPass() in
bitcode_bundle.o
"_xar_prop_create", referenced from:
ld::passes::bitcode_bundle::BundleHandler::copyXARProp(__xar_file_t
const*, __xar_file_t const*) in bitcode_bundle.o
ld::passes::bitcode_bundle::BitcodeBundle::doPass() in
bitcode_bundle.o
"_xar_prop_first", referenced from:
ld::passes::bitcode_bundle::BundleHandler::copyXARProp(__xar_file_t
const*, __xar_file_t const*) in bitcode_bundle.o
"_xar_prop_get", referenced from:
ld::passes::bitcode_bundle::BundleHandler::init() in
bitcode_bundle.o
ld::passes::bitcode_bundle::BundleHandler::copyXARProp(__xar_file_t
const*, __xar_file_t const*) in bitcode_bundle.o
ld::passes::bitcode_bundle::BundleHandler::obfuscateAndWriteToPath(ld::passes::bitcode_bundle::BitcodeObfuscator*,
char const*) in bitcode_bundle.o
"_xar_prop_next", referenced from:
ld::passes::bitcode_bundle::BundleHandler::copyXARProp(__xar_file_t
const*, __xar_file_t const*) in bitcode_bundle.o
"_xar_prop_set", referenced from:
ld::passes::bitcode_bundle::BitcodeBundle::doPass() in
bitcode_bundle.o
"_xar_prop_unset", referenced from:
ld::passes::bitcode_bundle::BundleHandler::copyXARProp(__xar_file_t
const*, __xar_file_t const*) in bitcode_bundle.o
"_xar_subdoc_first", referenced from:
ld::passes::bitcode_bundle::BundleHandler::obfuscateAndWriteToPath(ld::passes::bitcode_bundle::BitcodeObfuscator*,
char const*) in bitcode_bundle.o
"_xar_subdoc_name", referenced from:
ld::passes::bitcode_bundle::BundleHandler::obfuscateAndWriteToPath(ld::passes::bitcode_bundle::BitcodeObfuscator*,
char const*) in bitcode_bundle.o
"_xar_subdoc_new", referenced from:
ld::passes::bitcode_bundle::BundleHandler::obfuscateAndWriteToPath(ld::passes::bitcode_bundle::BitcodeObfuscator*,
char const*) in bitcode_bundle.o
ld::passes::bitcode_bundle::BitcodeBundle::doPass() in
bitcode_bundle.o
"_xar_subdoc_next", referenced from:
ld::passes::bitcode_bundle::BundleHandler::obfuscateAndWriteToPath(ld::passes::bitcode_bundle::BitcodeObfuscator*,
char const*) in bitcode_bundle.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see
invocation)
make: *** [ld] Error 1
make: Leaving directory
`/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_ld64/ld64-274/work/ld64-274.2'
Command failed: cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_ld64/ld64-274/work/ld64-274.2"
&& /usr/bin/make -j4 -w all CC="/usr/bin/clang" CXX="/usr/bin/clang++"
OTHER_CPPFLAGS="-I/opt/local/include
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_ld64/ld64-274/work/dyld-655.1.1/include"
OTHER_CFLAGS="-Os -arch x86_64 -arch i386" OTHER_CXXFLAGS="-Os -std=c++11
-stdlib=libc++ -stdlib=libc++ -arch x86_64 -arch i386"
OTHER_LDFLAGS="-L/opt/local/lib -Wl,-headerpad_max_install_names -lc++abi
-stdlib=libc++ -arch x86_64 -arch i386" LLVM_CONFIG=/opt/local/bin/llvm-
config-mp-3.4
Exit code: 2
Error: Failed to build ld64-274: command execution failed
Error: See
/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_ld64/ld64-274/main.log
for details.
Error: Follow https://guide.macports.org/#project.tickets if you believe
there is a bug.
Error: Processing of port ld64-274 failed
bash-3.2$
}}}
--
Ticket URL: <https://trac.macports.org/ticket/65763>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list