[flang-commits] [flang] [Flang][Parser] Add missing dependencies to CMakeLists.txt (PR #77483)
Krzysztof Parzyszek via flang-commits
flang-commits at lists.llvm.org
Thu Jan 11 12:44:53 PST 2024
kparzysz wrote:
Bad news, this didn't work. I put `DumpTree` in OpenMP.cpp, and I'm getting
```
/usr/bin/ld: CMakeFiles/obj.FortranLower.dir/OpenMP.cpp.o: in function `std::enable_if<((!(is_class_v<llvm::acc::Directive>))||(is_same_v<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, llvm::acc::Directive>))||(is_same_v<Fortran::parser::CharBlock, llvm::acc::Directive>), void>::type Fortran::parser::Walk<llvm::acc::Directive, Fortran::parser::ParseTreeDumper>(llvm::acc::Directive const&, Fortran::parser::ParseTreeDumper&)':
OpenMP.cpp:(.text._ZN7Fortran6parser4WalkIN4llvm3acc9DirectiveENS0_15ParseTreeDumperEEENSt9enable_ifIXoooont10is_class_vIT_E9is_same_vINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7_E9is_same_vINS0_9CharBlockES7_EEvE4typeERKS7_RT0_[_ZN7Fortran6parser4WalkIN4llvm3acc9DirectiveENS0_15ParseTreeDumperEEENSt9enable_ifIXoooont10is_class_vIT_E9is_same_vINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES7_E9is_same_vINS0_9CharBlockES7_EEvE4typeERKS7_RT0_]+0x146): undefined reference to `llvm::acc::getOpenACCDirectiveName(llvm::acc::Directive)'
/usr/bin/ld: CMakeFiles/obj.FortranLower.dir/OpenMP.cpp.o: in function `std::enable_if<WrapperTrait<Fortran::parser::AccDefaultClause>, void>::type Fortran::parser::Walk<Fortran::parser::AccDefaultClause, Fortran::parser::ParseTreeDumper>(Fortran::parser::AccDefaultClause const&, Fortran::parser::ParseTreeDumper&)':
OpenMP.cpp:(.text._ZN7Fortran6parser4WalkINS0_16AccDefaultClauseENS0_15ParseTreeDumperEEENSt9enable_ifIX12WrapperTraitIT_EEvE4typeERKS5_RT0_[_ZN7Fortran6parser4WalkINS0_16AccDefaultClauseENS0_15ParseTreeDumperEEENSt9enable_ifIX12WrapperTraitIT_EEvE4typeERKS5_RT0_]+0x27c): undefined reference to `llvm::acc::getOpenACCDefaultValueName(llvm::acc::DefaultValue)'
collect2: error: ld returned 1 exit status```
https://github.com/llvm/llvm-project/pull/77483
More information about the flang-commits
mailing list