Build Issue
Closed this issue · 0 comments
RobinMorrisLuo commented
Hi, I encounter a build issue and I don't know how to fix it, maybe it's my environment issue.
Does anybody can help me ? Thanks : )
the CMakeError.log"
is :
Checking whether the ASM compiler is GNU using "--version" did not match "(GNU assembler)|(GCC)|(Free Software Foundation)":
clang version 17.0.0
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /media/Workspace/llvm/debug/build/bin
Performing C++ SOURCE FILE Test LLVM_LIBSTDCXX_MIN failed with the following output:
Change Dir: /media/Workspace/llvm/test/build/CMakeFiles/CMakeTmp
Run Build Command(s):/usr/bin/ninja cmTC_9b05f && [1/2] Building CXX object CMakeFiles/cmTC_9b05f.dir/src.cxx.o
FAILED: CMakeFiles/cmTC_9b05f.dir/src.cxx.o
/media/Workspace/llvm/debug/build/bin/clang++ -DLLVM_LIBSTDCXX_MIN -std=c++0x -std=c++14 -MD -MT CMakeFiles/cmTC_9b05f.dir/src.cxx.o -MF CMakeFiles/cmTC_9b05f.dir/src.cxx.o.d -o CMakeFiles/cmTC_9b05f.dir/src.cxx.o -c /media/Workspace/llvm/test/build/CMakeFiles/CMakeTmp/src.cxx
/media/Workspace/llvm/test/build/CMakeFiles/CMakeTmp/src.cxx:2:10: fatal error: 'iosfwd' file not found
2 | #include <iosfwd>
| ^~~~~~~~
1 error generated.
ninja: build stopped: subcommand failed.
Source file was:
#include <iosfwd>
#if defined(__GLIBCXX__)
#if !defined(_GLIBCXX_RELEASE) || _GLIBCXX_RELEASE < 7
#error Unsupported libstdc++ version
#endif
#endif
int main() { return 0; }