-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Description
I'm trying to build babble on mac (#10 branch). I'm compiling with the homebrew-installed llvm and zig cc as a compiler as it uses its own toolchain and avoids some of the problems I've been having with native/homebrew clang. The full build script is
CC=zig-cc CXX=zig-c++ cmake -S . -B build -G Ninja -DCMAKE_INSTALL_PREFIX=install -DLLVM_DIR=/usr/local/Cellar/llvm/17.0.6_1/lib/cmake/llvm/ && cmake --build build
(zig-cc and zig-c++ are just files installed in ~/.local/bin containing zig c++ $@ etc.).
I'm getting this issue with the tests where bbl-translate is run:
[13/31] Linking CXX static library test/stdfunction/libstdfunction-bind-dummy.a
/Library/Developer/CommandLineTools/usr/bin/ranlib: file: test/stdfunction/libstdfunction-bind-dummy.a(bind.cpp.o) has no symbols
[16/31] Generating smartptr-c.cpp
FAILED: test/smartptr/smartptr-c.cpp /Users/ashley/babble/build/test/smartptr/smartptr-c.cpp
cd /Users/ashley/babble/build/test/smartptr && /Users/ashley/babble/build/bbl/bbl-translate /Users/ashley/babble/test/smartptr/bind.cpp -- -std=c++17 -fsyntax-only -fno-spell-checking -I/usr/local/opt/llvm/lib/clang/17/include -I/Users/ashley/babble/bbl/include -I/Users/ashley/babble/test/smartptr -- smartptr -o /Users/ashley/babble/build/test/smartptr
/Users/ashley/babble/test/smartptr/bind.cpp:1:10: fatal error: cannot open file '/Users/ashley/babble/test/smartptr/babble': No such file or directory
1 | #include "babble"
| ^
[2024-01-30 16:13:10.335] [info] [cpp_context.cpp:2872] ASTs built in 1.0951439109999999s
[2024-01-30 16:13:10.340] [error] [api_cpp_context.cpp:45] /Users/ashley/babble/bbl/src/cpp_context.cpp:2885 compilation generated 3045 errors. Cannot continue
[2024-01-30 16:13:10.341] [error] [bbl-translate.cpp:491] extraction failed after 1.1113919739999998s
I don't really know what to make of it.
Metadata
Metadata
Assignees
Labels
No labels