forked from llvm/llvm-project
-
Notifications
You must be signed in to change notification settings - Fork 76
Open
Labels
ExternalIssue reported by community userIssue reported by community userbugSomething isn't workingSomething isn't workingflanggenericBuild error, or some other issue not caused by an LLVM bugBuild error, or some other issue not caused by an LLVM bugopenmpstatus: triage
Description
When building flang with openmp the build can fail like this:
CCACHE_CPP2=yes CCACHE_HASHDIR=yes CCACHE_SLOPPINESS=pch_defines,time_macros /usr/bin/ccache /usr/bin/c++ -DFLANG_INCLUDE_TESTS=1 -DGTEST_HAS_RTTI=0 -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GLIBCXX_USE_CXX11_ABI=1 -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMI
T_MACROS -I/home/acc/llvm-stuff/build/tools/flang/lib/Support -I/home/acc/llvm-stuff/llvm-project/flang/lib/Support -I/home/acc/llvm-stuff/llvm-project/flang/include -I/home/acc/llvm-stuff/build/tools/flang/include -I/home/acc/llvm-stuff/build/include -I/home/acc/llvm-stuff/llvm-pr
oject/llvm/include -isystem /home/acc/llvm-stuff/llvm-project/flang/../mlir/include -isystem /home/acc/llvm-stuff/build/tools/mlir/include -isystem /home/acc/llvm-stuff/build/tools/clang/include -isystem /home/acc/llvm-stuff/llvm-project/llvm/../clang/include -fPIC -fno-semantic-in
terposition -fvisibility-inlines-hidden -Werror=date-time -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-maybe-uninitialized -Wno-nonnull -Wno-class-memaccess -Wno-dangling-referen
ce -Wno-redundant-move -Wno-pessimizing-move -Wno-array-bounds -Wno-stringop-overread -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wno-misleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -Wno-depre
cated-copy -Wno-ctad-maybe-unsupported -fno-semantic-interposition -fpch-preprocess -O3 -DNDEBUG -std=c++17 -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -MD -MT tools/flang/lib/Support/CMakeFiles/FortranSupport.dir/OpenMP-utils.cpp.o -MF tools/flang/lib/Support/CMakeFiles/Fo
rtranSupport.dir/OpenMP-utils.cpp.o.d -o tools/flang/lib/Support/CMakeFiles/FortranSupport.dir/OpenMP-utils.cpp.o -c /home/acc/llvm-stuff/llvm-project/flang/lib/Support/OpenMP-utils.cpp
In file included from /home/acc/llvm-stuff/llvm-project/flang/include/flang/Optimizer/HLFIR/HLFIROps.h:17,
from /home/acc/llvm-stuff/llvm-project/flang/include/flang/Optimizer/Builder/DirectivesCommon.h:25,
from /home/acc/llvm-stuff/llvm-project/flang/include/flang/Support/OpenMP-utils.h:12,
from /home/acc/llvm-stuff/llvm-project/flang/lib/Support/OpenMP-utils.cpp:9:
/home/acc/llvm-stuff/llvm-project/flang/include/flang/Optimizer/HLFIR/HLFIRDialect.h:28:10: fatal error: flang/Optimizer/HLFIR/HLFIRDialect.h.inc: No such file or directory
28 | #include "flang/Optimizer/HLFIR/HLFIRDialect.h.inc"
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
Adding HLFIROpsIncGen as a dependency in flang/lib/Support/CMakeLists.txt seems to fix this.
Metadata
Metadata
Assignees
Labels
ExternalIssue reported by community userIssue reported by community userbugSomething isn't workingSomething isn't workingflanggenericBuild error, or some other issue not caused by an LLVM bugBuild error, or some other issue not caused by an LLVM bugopenmpstatus: triage