darlinghq / darling

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

Darling doesn't build on Parrotsec Linux #510

Open Ro0tk1t opened 5 years ago

Ro0tk1t commented 5 years ago

my system is parrotsec 4.6 there is error log

[ 3%] Built target bsdln [ 3%] Building CXX object src/external/cctools-port/cctools/ld64/src/CMakeFiles/x86_64-apple-darwin11-ld.dir/ld/InputFiles.o c++: error: unrecognized command line option ‘-fblocks’ make[2]: [src/external/cctools-port/cctools/ld64/src/CMakeFiles/x86_64-apple-darwin11-ld.dir/build.make:63: src/external/cctools-port/cctools/ld64/src/CMakeFiles/x86_64-apple-darwin11-ld.dir/ld/InputFiles.o] Error 1 make[1]: [CMakeFiles/Makefile2:3459: src/external/cctools-port/cctools/ld64/src/CMakeFiles/x86_64-apple-darwin11-ld.dir/all] Error 2 make: *** [Makefile:130: all] Error 2

ahyattdev commented 5 years ago

What clang version are you using?

Ro0tk1t commented 5 years ago

clang-6.0/stable,now 1:6.0.1-10 amd64

SidharthArya commented 4 years ago

@Ro0tk1t I faced the same problem when building on gentoo. You may need to explicitely specify the clang and clang++ binary. CC="path to clang" CXX="path to clang++" cmake .. in my case that translates to: CC="/usr/lib/llvm/9/bin/clang" CXX="/usr/lib/llvm/9/bin/clang++" cmake ..