Skip to content

[flang][regression] Can't build flang. Incorrect dependencies specified for libFIROpenACCSupport.so? #123377

Closed
@pawosm-arm

Description

@pawosm-arm

I'm configuring the build as such:

cmake /path/to/llvm \
-DBUILD_SHARED_LIBS=True \
-DCMAKE_BUILD_TYPE=Debug \
-DLLVM_BINUTILS_INCDIR=/usr/include \
-DLIBOMP_FORTRAN_MODULES=True \
-DLIBOMP_COPY_EXPORTS=False \
-DLIBOMP_USE_HWLOC=False \
-DLIBOMP_OMPT_SUPPORT=ON \
-DLLVM_ENABLE_LLD=True \
-DLLVM_ENABLE_FFI=False \
-DLLVM_TARGETS_TO_BUILD="AArch64" \
-DLLVM_ENABLE_PROJECTS="llvm;clang;flang" \
-DLLVM_ENABLE_RUNTIMES="compiler-rt;openmp" \
-DCMAKE_INSTALL_PREFIX=/some/prefix

Since this machine has somewhat limited resources, I'm running 12 build processes only. The build fails as such:

[ 98%] Building CXX object tools/flang/lib/Optimizer/Transforms/CMakeFiles/FIRTransforms.dir/PolymorphicOpConversion.cpp.o
ld.lld: error: undefined symbol: Fortran::evaluate::ProcedureRef::~ProcedureRef()
>>> referenced by call.h:282 (flang/include/flang/Evaluate/call.h:282)
>>>               CMakeFiles/FIROpenACCSupport.dir/FIROpenACCTypeInterfaces.cpp.o:(Fortran::evaluate::FunctionRef<Fortran::evaluate::Type<(Fortran::common::TypeCategory)0, 1> >::~FunctionRef())
>>> referenced by call.h:282 (flang/include/flang/Evaluate/call.h:282)
>>>               CMakeFiles/FIROpenACCSupport.dir/FIROpenACCTypeInterfaces.cpp.o:(Fortran::evaluate::FunctionRef<Fortran::evaluate::Type<(Fortran::common::TypeCategory)0, 2> >::~FunctionRef())
>>> referenced by call.h:282 (flang/include/flang/Evaluate/call.h:282)
>>>               CMakeFiles/FIROpenACCSupport.dir/FIROpenACCTypeInterfaces.cpp.o:(Fortran::evaluate::FunctionRef<Fortran::evaluate::Type<(Fortran::common::TypeCategory)0, 4> >::~FunctionRef())
>>> referenced 19 more times

Metadata

Metadata

Assignees

Labels

build-problemflangFlang issues not falling into any other category

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions