Rajveer100 wrote:
I am actually facing an issue all of a sudden after rebasing and deletion of
build folder:
```shell
rajveersingh@MacBook-Pro llvm-project % build/bin/clang++ -std=c++20
-fno-exceptions debug-clang-138939.cpp -v
clang version 21.0.0git ([email protected]:Rajveer100/llvm-project.git
46a9b0193bb5bdb9a082582f19e7a32ac2a3973d)
Target: arm64-apple-darwin24.4.0
Thread model: posix
InstalledDir:
/Users/rajveersingh/GitHub-OpenSource/llvm-project/llvm-project/build/bin
Build config: +unoptimized, +assertions
ignoring nonexistent directory
"/Users/rajveersingh/GitHub-OpenSource/llvm-project/llvm-project/build/bin/../include/c++/v1"
ignoring nonexistent directory "/usr/include/c++/v1"
"/Users/rajveersingh/GitHub-OpenSource/llvm-project/llvm-project/build/bin/clang-21"
-cc1 -triple arm64-apple-macosx15.0.0 -Wundef-prefix=TARGET_OS_
-Werror=undef-prefix -Wdeprecated-objc-isa-usage
-Werror=deprecated-objc-isa-usage -emit-obj -dumpdir a- -disable-free
-clear-ast-before-backend -main-file-name debug-clang-138939.cpp
-mrelocation-model pic -pic-level 2 -mframe-pointer=non-leaf -ffp-contract=on
-fno-rounding-math -fcompatibility-qualified-id-block-type-checking
-fvisibility-inlines-hidden-static-local-var
-fbuiltin-headers-in-system-modules -fdefine-target-os-macros -enable-tlsdesc
-target-cpu apple-m1 -target-feature +zcm -target-feature +zcz -target-feature
+v8.4a -target-feature +aes -target-feature +altnzcv -target-feature +ccdp
-target-feature +ccpp -target-feature +complxnum -target-feature +crc
-target-feature +dotprod -target-feature +flagm -target-feature +fp-armv8
-target-feature +fp16fml -target-feature +fptoint -target-feature +fullfp16
-target-feature +jsconv -target-feature +lse -target-feature +neon
-target-feature +pauth -target-feature +perfmon -target-feature +predres
-target-feature +ras -target-feature +rcpc -target-feature +rdm -target-feature
+sb -target-feature +sha2 -target-feature +sha3 -target-feature +specrestrict
-target-feature +ssbs -target-abi darwinpcs -debugger-tuning=lldb
-fdebug-compilation-dir=/Users/rajveersingh/GitHub-OpenSource/llvm-project/llvm-project
-target-linker-version 1167.4.1 -v
-fcoverage-compilation-dir=/Users/rajveersingh/GitHub-OpenSource/llvm-project/llvm-project
-resource-dir
/Users/rajveersingh/GitHub-OpenSource/llvm-project/llvm-project/build/lib/clang/21
-internal-isystem /usr/local/include -internal-isystem
/Users/rajveersingh/GitHub-OpenSource/llvm-project/llvm-project/build/lib/clang/21/include
-internal-externc-isystem /usr/include -internal-iframework
/System/Library/Frameworks -internal-iframework /System/Library/SubFrameworks
-internal-iframework /Library/Frameworks -std=c++20 -fdeprecated-macro
-ferror-limit 19 -stack-protector 1 -fblocks -fencode-extended-block-signature
-fregister-global-dtors-with-atexit -fgnuc-version=4.2.1 -fno-implicit-modules
-fskip-odr-check-in-gmf -fmax-type-align=16 -fcolor-diagnostics -o
/var/folders/4t/ztwxql616yv_ltl525j048t40000gn/T/debug-clang-138939-a6988f.o -x
c++ debug-clang-138939.cpp
clang -cc1 version 21.0.0git based upon LLVM 21.0.0git default target
arm64-apple-darwin24.4.0
ignoring nonexistent directory "/usr/include"
ignoring nonexistent directory "/System/Library/SubFrameworks"
#include "..." search starts here:
#include <...> search starts here:
/usr/local/include
/Users/rajveersingh/GitHub-OpenSource/llvm-project/llvm-project/build/lib/clang/21/include
/System/Library/Frameworks (framework directory)
/Library/Frameworks (framework directory)
End of search list.
"/usr/bin/ld" -demangle -lto_library
/Users/rajveersingh/GitHub-OpenSource/llvm-project/llvm-project/build/lib/libLTO.dylib
-no_deduplicate -dynamic -arch arm64 -platform_version macos 15.0.0 15.0.0
-mllvm -enable-linkonceodr-outlining -o a.out
/var/folders/4t/ztwxql616yv_ltl525j048t40000gn/T/debug-clang-138939-a6988f.o
-lc++ -lSystem
ld: library 'c++' not found
clang++: error: linker command failed with exit code 1 (use -v to see
invocation)
```
Linker issues have happened sometimes in the past and I managed to resolve
them, maybe this one could be for a different reason, let me know if you can
help me out with this.
In the mean time, I will double check with the typical macOS DYLD stuff, Xcode
CLT, etc.
https://github.com/llvm/llvm-project/pull/139859
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits