[MacPorts] #65838: tor: build failure with Xcode/CLT 14: ld: archive member '__.SYMDEF SORTED' is not mach-o or llvm bitcode file for architecture x86_64
MacPorts
noreply at macports.org
Thu Sep 15 03:50:40 UTC 2022
#65838: tor: build failure with Xcode/CLT 14: ld: archive member '__.SYMDEF SORTED'
is not mach-o or llvm bitcode file for architecture x86_64
-------------------------+--------------------
Reporter: i0ntempest | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.7.2
Resolution: | Keywords: ld
Port: tor |
-------------------------+--------------------
Comment (by i0ntempest):
It runs {{{ar}}} and {{{ranlib}}} to combine a bunch of archives into one:
{{{
#!/bin/sh
set -e
TMPDIR="$(mktemp -d -t tor_lib_combining.XXXXXX)"
ORIGDIR="$(pwd)"
trap 'cd "$ORIGDIR" && rm -rf "$TMPDIR"' 0
abspath() {
echo "$(cd "$(dirname "$1")" >/dev/null && pwd)/$(basename "$1")"
}
TARGET=$(abspath "$1")
shift
for input in "$@"; do
cd "$ORIGDIR"
abs=$(abspath "$input")
dir="$TMPDIR"/$(basename "$input" .a)
mkdir "$dir"
cd "$dir" >/dev/null
"${AR:-ar}" x "$abs"
done
cd "$TMPDIR" >/dev/null
"${AR:-ar}" "${ARFLAGS:-cru}" library.tmp.a ./*/**
"${RANLIB:-ranlib}" library.tmp.a
mv -f library.tmp.a "$TARGET"
}}}
I can't see what it's doing wrong. Maybe someone can?
--
Ticket URL: <https://trac.macports.org/ticket/65838#comment:2>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list