惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Google DeepMind News
Google DeepMind News
WordPress大学
WordPress大学
S
SegmentFault 最新的问题
小众软件
小众软件
爱范儿
爱范儿
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
量子位
博客园_首页
T
Tailwind CSS Blog
The Cloudflare Blog
J
Java Code Geeks
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
U
Unit 42
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
人人都是产品经理
人人都是产品经理
N
Netflix TechBlog - Medium
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
腾讯CDC
P
Proofpoint News Feed
aimingoo的专栏
aimingoo的专栏
Recent Announcements
Recent Announcements
T
The Blog of Author Tim Ferriss
D
Docker
Microsoft Azure Blog
Microsoft Azure Blog

AUR Newest Packages

AUR (en) - linuxqq-clipsync-git AUR (en) - libtslitex-git AUR (en) - libtslitex-git AUR (en) - carton-appimage AUR (en) - veila-git AUR (en) - veila-bin AUR (en) - vigil-baseline AUR (en) - byedroid AUR (en) - neovim-base16-git AUR (en) - pirata AUR (en) - rpi-imager-git-non-root AUR (en) - python-fastapi-sso AUR (en) - tmux-ai-titles AUR (en) - zeed-bin AUR (en) - bclone-bin AUR (en) - dwl-git-azerty AUR (en) - auggie-bin AUR (en) - libspatialaudio-git AUR (en) - libspatialaudio AUR (en) - miniupnpd-iptables-legacy AUR (en) - miniupnpd-nft AUR (en) - jeeves-bin AUR (en) - opennow AUR (en) - rotki AUR (en) - kapi-bin AUR (en) - classfi-bin AUR (en) - classfi-git AUR (en) - classfi AUR (en) - giff-git AUR (en) - budget-tracker-bin
AUR (en) - osxcross-git
2026-06-21 · via AUR Newest Packages

RandoOnSteam commented on 2026-06-15 14:22 (UTC) (edited on 2026-06-15 14:23 (UTC) by RandoOnSteam)

Still get

[ 66%] Linking CXX executable ../../bin/llvm-tblgen
[ 66%] Building CXX object lib/MC/CMakeFiles/LLVMMC.dir/MCSectionELF.cpp.o
/usr/bin/ld: ../../lib/libLLVMSupport.a: error adding symbols: file format not recognized
[ 66%] Building CXX object lib/MC/CMakeFiles/LLVMMC.dir/MCSectionMachO.cpp.o
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
make[3]: *** [utils/TableGen/CMakeFiles/llvm-tblgen.dir/build.make:197: bin/llvm-tblgen] Error 1
make[2]: *** [CMakeFiles/Makefile2:12162: utils/TableGen/CMakeFiles/llvm-tblgen.dir/all] Error 2
make[2]: *** Waiting for unfinished jobs....

without adding '!lto' to options. Maybe theres a better way then turning lto off though

swyter commented on 2026-06-08 23:39 (UTC)

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.

RandoOnSteam commented on 2026-05-06 18:37 (UTC) (edited on 2026-05-06 18:38 (UTC) by RandoOnSteam)

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"

Petar commented on 2026-03-31 01:45 (UTC)

micwoj92 commented on 2025-10-22 06:16 (UTC)

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.

hotaru commented on 2025-07-10 22:54 (UTC)

the SDK URL in this PKGBUILD is 404.

swyter commented on 2024-11-07 17:56 (UTC)

Just built the current head and works just fine for me out of the box.

mirsella commented on 2024-09-25 07:17 (UTC) (edited on 2024-09-25 07:17 (UTC) by mirsella)

hello, package is still broken

mirsella commented on 2023-12-06 15:44 (UTC)

@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'

HurricanePootis commented on 2023-12-04 03:15 (UTC)

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'