darlinghq / darling

Darwin/macOS emulation layer for Linux
http://www.darlinghq.org
GNU General Public License v3.0
11.54k stars 445 forks source link

Unrecognized command-line option ‘-mmacosx-version-min=10.15’ #1064

Closed aretsmarvin closed 2 years ago

aretsmarvin commented 3 years ago

Build Log What is the build error?

[marvin@Thinkpad-Marvin build]$ make
[  0%] Building C object src/libelfloader/native/CMakeFiles/elfloader_dummy32.dir/elfcalls.c.o
cc: error: unrecognized command-line option ‘-mmacosx-version-min=10.15’
make[2]: *** [src/libelfloader/native/CMakeFiles/elfloader_dummy32.dir/build.make:76: src/libelfloader/native/CMakeFiles/elfloader_dummy32.dir/elfcalls.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:13068: src/libelfloader/native/CMakeFiles/elfloader_dummy32.dir/all] Error 2
make: *** [Makefile:136: all] Error 2
[marvin@Thinkpad-Marvin build]$ 

System Information Endeavour OS (Arch)

clang | 13.0.0 | cmake | 3.21.4 | Linux Kernel | 5.15.2-arch1-1 | Darling | 289628cccf0cd7567c1d275f09600ad214d26acd

I am following the install/build instructions from: https://docs.darlinghq.org/build-instructions.html

sudo pacman -S --needed make cmake clang flex bison icu fuse linux-headers gcc-multilib \
lib32-gcc-libs pkg-config fontconfig cairo libtiff python2 mesa llvm libbsd libxkbfile \ 
libxcursor libxext libxkbcommon libxrandr

git clone --recursive https://github.com/darlinghq/darling.git
cd darling
mkdir build && cd build
cmake ..
make <----- this throws the error
calvin2021y commented 2 years ago

Test on debian, get same error like this on master branch.

facekapow commented 2 years ago

This should be fixed with the latest commit; see this if you need to update an existing clone. Please re-open if the issue persists.