LDC build not found for -lclang:

Newbie2019 newbie2019 at gmail.com
Sat Oct 19 03:57:08 UTC 2019


I try build ldc master branch with llvm clone from 
https://github.com/ldc-developers/llvm.git

get this error,  not sure where I am doing wrong, there link 
command seems not correct:

clang++  -DDMDV2 -DHAVE_SC_ARG_MAX -O3 -DNDEBUG -isysroot 
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk -Wl,-search_paths_first -Wl,-headerpad_max_install_names  obj/ldc-build-runtime.o  -o bin/ldc-build-runtime  -lclang: -lcd -l&& /usr/bin/clang -fomit-frame-pointer -pipe -O0 -L/opt/local/bin/../lib -lphobos2-ldc -ldruntime-ldc -ldl -lpthread -lm -m64 && :


```sh
[1/56] : && clang++  -DDMDV2 -DHAVE_SC_ARG_MAX -O3 -DNDEBUG 
-isysroot 
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk -Wl,-search_paths_first -Wl,-headerpad_max_install_names  obj/ldc-build-runtime.o  -o bin/ldc-build-runtime  -lclang: -lcd -l&& /usr/bin/clang -fomit-frame-pointer -pipe -O0 -L/opt/local/bin/../lib -lphobos2-ldc -ldruntime-ldc -ldl -lpthread -lm -m64 && :
FAILED: bin/ldc-build-runtime
: && clang++  -DDMDV2 -DHAVE_SC_ARG_MAX -O3 -DNDEBUG -isysroot 
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk -Wl,-search_paths_first -Wl,-headerpad_max_install_names  obj/ldc-build-runtime.o  -o bin/ldc-build-runtime  -lclang: -lcd -l&& /usr/bin/clang -fomit-frame-pointer -pipe -O0 -L/opt/local/bin/../lib -lphobos2-ldc -ldruntime-ldc -ldl -lpthread -lm -m64 && :
ld: library not found for -lclang:
clang: error: linker command failed with exit code 1 (use -v to 
see invocation)
ninja: build stopped: subcommand failed.
```


More information about the digitalmars-d-ldc mailing list