Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Building error #792

Closed
NewSkyLine-dev opened this issue Aug 24, 2023 · 2 comments
Closed

Building error #792

NewSkyLine-dev opened this issue Aug 24, 2023 · 2 comments

Comments

@NewSkyLine-dev
Copy link

I am trying to build it from source with LLVM@16 on MacOS, but I get this error over and over again.

FAILED: tests/ui/create/CMakeFiles/create-binary.dir/create-binary.cc.o.ddi 
"/opt/homebrew/Cellar/llvm/16.0.6/bin/clang-scan-deps" -format=p1689 -- /opt/homebrew/Cellar/llvm/16.0.6/bin/clang++ -DPOAC_EXECUTABLE=\"/Users/fabian/Developer/poac/build/poac\" -I/Users/fabian/Developer/poac/include -I/Users/fabian/Developer/poac/build/_deps/ut-src/include -stdlib=libc++ -L/opt/homebrew/Cellar/llvm/16.0.6/lib/c++ -pthread -g -O1 -fsanitize=address -fno-omit-frame-pointer -std=c++20 -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk -fPIE -g -O0 -x c++ /Users/fabian/Developer/poac/tests/ui/create/create-binary.cc -c -o tests/ui/create/CMakeFiles/create-binary.dir/create-binary.cc.o -MT tests/ui/create/CMakeFiles/create-binary.dir/create-binary.cc.o.ddi -MD -MF tests/ui/create/CMakeFiles/create-binary.dir/create-binary.cc.o.ddi.d > tests/ui/create/CMakeFiles/create-binary.dir/create-binary.cc.o.ddi
warning: argument unused during compilation: '-L/opt/homebrew/Cellar/llvm/16.0.6/lib/c++'
Error while scanning dependencies for /Users/fabian/Developer/poac/tests/ui/create/create-binary.cc:
In file included from /Users/fabian/Developer/poac/tests/ui/create/create-binary.cc:2:
/Users/fabian/Developer/poac/build/_deps/ut-src/include/boost/ut.hpp:19:2: error: unterminated conditional directive
In file included from /Users/fabian/Developer/poac/tests/ui/create/create-binary.cc:5:
/Users/fabian/Developer/poac/tests/ui/create/../util/ui_test_util.hpp:23:10: fatal error: 'poac/util/shell.hpp' file not found
[213/421] Scanning /Users/fabian/Developer/poac/tests/ui/fmt/empty-name.cc for CXX dependencies
FAILED: tests/ui/fmt/CMakeFiles/empty-name.dir/empty-name.cc.o.ddi 
"/opt/homebrew/Cellar/llvm/16.0.6/bin/clang-scan-deps" -format=p1689 -- /opt/homebrew/Cellar/llvm/16.0.6/bin/clang++ -DPOAC_EXECUTABLE=\"/Users/fabian/Developer/poac/build/poac\" -I/Users/fabian/Developer/poac/include -I/Users/fabian/Developer/poac/build/_deps/ut-src/include -I/Users/fabian/Developer/poac/build/_deps/mitama-cpp-result-src/include -stdlib=libc++ -L/opt/homebrew/Cellar/llvm/16.0.6/lib/c++ -pthread -g -O1 -fsanitize=address -fno-omit-frame-pointer -std=c++20 -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk -fPIE -g -O0 -x c++ /Users/fabian/Developer/poac/tests/ui/fmt/empty-name.cc -c -o tests/ui/fmt/CMakeFiles/empty-name.dir/empty-name.cc.o -MT tests/ui/fmt/CMakeFiles/empty-name.dir/empty-name.cc.o.ddi -MD -MF tests/ui/fmt/CMakeFiles/empty-name.dir/empty-name.cc.o.ddi.d > tests/ui/fmt/CMakeFiles/empty-name.dir/empty-name.cc.o.ddi
warning: argument unused during compilation: '-L/opt/homebrew/Cellar/llvm/16.0.6/lib/c++'
Error while scanning dependencies for /Users/fabian/Developer/poac/tests/ui/fmt/empty-name.cc:
In file included from /Users/fabian/Developer/poac/tests/ui/fmt/empty-name.cc:5:
/Users/fabian/Developer/poac/build/_deps/ut-src/include/boost/ut.hpp:19:2: error: unterminated conditional directive
In file included from /Users/fabian/Developer/poac/tests/ui/fmt/empty-name.cc:8:
/Users/fabian/Developer/poac/tests/ui/fmt/../util/ui_test_util.hpp:23:10: fatal error: 'poac/util/shell.hpp' file not found
[214/421] Scanning /Users/fabian/Developer/poac/tests/ui/fmt/invalid-manifest.cc for CXX dependencies
FAILED: tests/ui/fmt/CMakeFiles/invalid-manifest.dir/invalid-manifest.cc.o.ddi 
"/opt/homebrew/Cellar/llvm/16.0.6/bin/clang-scan-deps" -format=p1689 -- /opt/homebrew/Cellar/llvm/16.0.6/bin/clang++ -DPOAC_EXECUTABLE=\"/Users/fabian/Developer/poac/build/poac\" -I/Users/fabian/Developer/poac/include -I/Users/fabian/Developer/poac/build/_deps/ut-src/include -I/Users/fabian/Developer/poac/build/_deps/mitama-cpp-result-src/include -stdlib=libc++ -L/opt/homebrew/Cellar/llvm/16.0.6/lib/c++ -pthread -g -O1 -fsanitize=address -fno-omit-frame-pointer -std=c++20 -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk -fPIE -g -O0 -x c++ /Users/fabian/Developer/poac/tests/ui/fmt/invalid-manifest.cc -c -o tests/ui/fmt/CMakeFiles/invalid-manifest.dir/invalid-manifest.cc.o -MT tests/ui/fmt/CMakeFiles/invalid-manifest.dir/invalid-manifest.cc.o.ddi -MD -MF tests/ui/fmt/CMakeFiles/invalid-manifest.dir/invalid-manifest.cc.o.ddi.d > tests/ui/fmt/CMakeFiles/invalid-manifest.dir/invalid-manifest.cc.o.ddi
warning: argument unused during compilation: '-L/opt/homebrew/Cellar/llvm/16.0.6/lib/c++'
Error while scanning dependencies for /Users/fabian/Developer/poac/tests/ui/fmt/invalid-manifest.cc:
In file included from /Users/fabian/Developer/poac/tests/ui/fmt/invalid-manifest.cc:5:
/Users/fabian/Developer/poac/build/_deps/ut-src/include/boost/ut.hpp:19:2: error: unterminated conditional directive
In file included from /Users/fabian/Developer/poac/tests/ui/fmt/invalid-manifest.cc:8:
/Users/fabian/Developer/poac/tests/ui/fmt/../util/ui_test_util.hpp:23:10: fatal error: 'poac/util/shell.hpp' file not found
[215/421] Building CXX object _deps/ninja-build/CMakeFiles/libninja.dir/src/state.cc.o

A fix would be appreciated 😄

@ken-matsui
Copy link
Member

@NewSkyLineTwitter

You should configure CMake with -DPOAC_BUILD_TESTING=OFF (ref: #781). I will update the README. Thanks for pointing this out.

@NewSkyLine-dev
Copy link
Author

@ken-matsui

I did what you said, but still get an error:

FAILED: CMakeFiles/poac_core_resolver_resolve.dir/src/core/resolver/resolve.ixx.o CMakeFiles/poac_core_resolver_resolve.dir/poac.core.resolver.resolve.pcm 
/opt/homebrew/Cellar/llvm/16.0.6/bin/clang++ -DFMT_SHARED -I/Users/fabian/Developer/poac/build/_deps/mitama-cpp-result-src/include -isystem /opt/homebrew/include -stdlib=libc++ -L/opt/homebrew/Cellar/llvm/16.0.6/lib/c++ -pthread -g -O1 -fsanitize=address -fno-omit-frame-pointer -std=c++20 -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX13.3.sdk -MD -MT CMakeFiles/poac_core_resolver_resolve.dir/src/core/resolver/resolve.ixx.o -MF CMakeFiles/poac_core_resolver_resolve.dir/src/core/resolver/resolve.ixx.o.d @CMakeFiles/poac_core_resolver_resolve.dir/src/core/resolver/resolve.ixx.o.modmap -o CMakeFiles/poac_core_resolver_resolve.dir/src/core/resolver/resolve.ixx.o -c /Users/fabian/Developer/poac/src/core/resolver/resolve.ixx
clang-16: warning: argument unused during compilation: '-L/opt/homebrew/Cellar/llvm/16.0.6/lib/c++' [-Wunused-command-line-argument]
In module 'poac.util.net' imported from /Users/fabian/Developer/poac/src/core/resolver/resolve.ixx:29:
/opt/homebrew/include/fmt/format.h:4076:1: error: 'fmt::formatter<std::string>' has different definitions in different modules; first difference is definition in module 'poac.util.format.<global>' found 1 base class
FMT_FORMAT_AS(std::basic_string<Char>, basic_string_view<Char>);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/homebrew/include/fmt/format.h:4067:10: note: expanded from macro 'FMT_FORMAT_AS'
  struct formatter<Type, Char> : formatter<Base, Char> {}
         ^                       ~~~~~~~~~~~~~~~~~~~~~
/opt/homebrew/include/fmt/core.h:1068:8: note: but in 'semver.interval.<global>' found 0 base classes
struct formatter {
       ^
1 error generated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants