c2lang / c2compiler

the c2 programming language
c2lang.org
Apache License 2.0
703 stars 49 forks source link

MacOS build failed. #116

Closed ghost closed 4 years ago

ghost commented 4 years ago

@lerno @bvdberg @vfr-nl @DerSaidin @bryant1410

step-by-step:

git clone git://github.com/c2lang/c2compiler.git
cd c2compiler
source ./env.sh
mkdir build
cd build
cmake . ..
make -j4

errors:

Scanning dependencies of target c2c
[ 98%] Building CXX object c2c/CMakeFiles/c2c.dir/main.cpp.o
[100%] Linking CXX executable c2c
Undefined symbols for architecture x86_64:
  "_CFBundleGetVersionNumber", referenced from:
      ___clang_at_available_requires_core_foundation_framework in libLLVMSupport.a(Path.cpp.o)
ld: symbol(s) not found for architecture x86_64
clang-9: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [c2c/c2c] Error 1
make[1]: *** [c2c/CMakeFiles/c2c.dir/all] Error 2
make: *** [all] Error 2

OS: macOS CPU: x86_64 Clang/LLVM: v9.0.0

please help!!

bvdberg commented 4 years ago

Did you follow the INSTALL.md files?