






















Sorry everyone, for some reason I didn't have comment notifications enabled here! It should be fixed now. Thanks to @RandoOnSteam for the patch.
As I haven't had to reinstall this because the 2023 version keeps running fine I didn't notice.
There might be a better fix than this, but this fixed the SDK link and the linker errors
--- /home/user/Downloads/osxcross-git/PKGBUILD 2025-07-07 09:14:34.000000000 -0700
+++ /home/user/Downloads/osxcross-git/PKGBUILDMODDED 2026-05-06 11:29:39.753885163 -0700
@@ -10,7 +10,7 @@
url="https://github.com/tpoechtrager/osxcross"
license=('MIT')
depends=('clang>=3.2')
-makedepends=('patch' 'libxml2' 'bash')
+makedepends=('patch' 'libxml2' 'bash' 'git' 'cmake')
optdepends=(
'llvm: for Link Time Optimization support and ld64 -bitcode_bundle support'
'uuid: for ld64 -random_uuid support'
@@ -20,7 +20,7 @@
conflicts=("$_pkgname" xar apple-darwin-osxcross)
source=(
'git+https://github.com/tpoechtrager/osxcross.git'
- "https://archive.org/https://s3.dockerproject.org/darwin/v2/${_sdkname}.tar.xz"
+ "https://web.archive.org/https://s3.dockerproject.org/darwin/v2/${_sdkname}.tar.xz"
# swy: this repository by an anonymous individual seems to have pre-bundled versions of the other SDKs,
# in case you want to change $_sdkname and use a newer version, comment the URL above and uncomment this one
@@ -29,7 +29,7 @@
)
md5sums=('SKIP' 'b0d81b95746c7e698c39c7df1e15ca7d')
noextract=("${_sdkname}.tar.xz")
-options=('!strip')
+options=('!strip' '!lto')
install="$pkgname.install"
# https://github.com/tpoechtrager/cctools-port/issues/108
@@ -43,6 +43,10 @@
build() {
cd "$srcdir/$_pkgname"
+ # Explicitly use system Clang/LLVM to avoid linker confusion
+ export CC=clang
+ export CXX=clang++
+
# swy: put all the generated files in there
export OSXCROSS_TARGET_DIR="$srcdir/usr/local/osx-ndk-x86"; mkdir -p "$OSXCROSS_TARGET_DIR"
sed -i -s "s|export TARGET_DIR\=|export TARGET_DIR\='${OSXCROSS_TARGET_DIR}' #|" "./tools/tools.sh"
Same issue:
-> Downloading MacOSX10.11.sdk.tar.xz...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
curl: (22) The requested URL returned error: 404
==> ERROR: Failure while downloading https://archive.org/https://s3.dockerproject.org/darwin/v2/MacOSX10.11.sdk.tar.xz
Aborting...
==> ERROR: Could not download sources.
the SDK URL in this PKGBUILD is 404.
Just built the current head and works just fine for me out of the box.
hello, package is still broken
@HurricanePootis submitted a PR that has been merged to the xar repo, this compile error is now fixed. But I have a new one further down the installation :
/usr/bin/ld: otool-arm_disasm.o:(.bss+0x8): multiple definition of `dis_info'; otool-i386_disasm.o:(.bss+0x0): first defined here
/usr/bin/ld: otool-arm64_disasm.o:(.bss+0x0): multiple definition of `dis_info'; otool-i386_disasm.o:(.bss+0x0): first defined here
/usr/bin/ld: otool-print_bitcode.o: in function `print_bitcode_section':
print_bitcode.c:(.text+0x4b6): warning: the use of `mktemp' is dangerous, better use `mkstemp' or `mkdtemp'
I am getting the following error
lib/ext2.c:117:2: error: call to undeclared library function 'free' with type 'void (void *)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
free(vstr);
^
lib/ext2.c:117:2: note: include the header <stdlib.h> or explicitly provide a declaration for 'free'
lib/ext2.c:198:13: error: call to undeclared library function 'strtol' with type 'long (const char *, char **, int)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
version = strtol(temp, NULL, 10);
^
lib/ext2.c:198:13: note: include the header <stdlib.h> or explicitly provide a declaration for 'strtol'
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。
Still get
without adding '!lto' to options. Maybe theres a better way then turning lto off though