Package Details: osxcross-git 0.16-2

Git Clone URL: https://aur.archlinux.org/osxcross-git.git (read-only, click to copy)
Package Base: osxcross-git
Description: macOS cross-compiling toolchain for Linux, FreeBSD and NetBSD
Upstream URL: https://github.com/tpoechtrager/osxcross
Keywords: apple c c++ clang compiler crosscompiler macos sdk toolchain
Licenses: MIT
Conflicts: apple-darwin-osxcross, osxcross, xar
Provides: osxcross, xar
Submitter: emersion
Maintainer: swyter
Last Packager: swyter
Votes: 1
Popularity: 0.000000
First Submitted: 2017-02-01 10:49 (UTC)
Last Updated: 2025-07-07 16:14 (UTC)

Dependencies (7)

Required by (6)

Sources (2)

Latest Comments

1 2 Next › Last »

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)

Change https://archive.org/ to https://web.archive.org/ in the sources please

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'

nikdog commented on 2023-07-29 17:30 (UTC)

@Daniel071 3 years late... But no, it does not. apple-darwin-osxcross installs specifically commit 16efae8 (at the time of writing). This version installs the latest available commit in the git repo, hence the -git suffix in the package name.

Daniel071 commented on 2020-08-06 00:34 (UTC) (edited on 2020-08-06 00:34 (UTC) by Daniel071)

Also, doesn't this package serve the same purpose as apple-darwin-osxcross?