This is an archive of the discontinued LLVM Phabricator instance.

[flang] Fixed unittest build issue with older gcc.
ClosedPublic

Authored by vzakhari on Jan 18 2023, 6:13 PM.

Details

Summary

I am getting this error with check-flang:

ld.lld: error: undefined symbol: mlir::SuccessorRange::SuccessorRange(mlir::Operation*)
>>> referenced by Operation.h:549 (/llvm-project/llvm/../mlir/include/mlir/IR/Operation.h:549)
>>>               CMakeFiles/FlangRuntimeTests.dir/Allocatable.cpp.o:(mlir::Operation::getSuccessors())

The buildbots are okay, so I guess it has something to do with
gcc-9 that I am using.

Diff Detail

Event Timeline

vzakhari created this revision.Jan 18 2023, 6:13 PM
vzakhari requested review of this revision.Jan 18 2023, 6:13 PM

It fails in other reviews like this: https://buildkite.com/llvm-project/premerge-checks/builds/131469#0185c7d2-1cf4-4b7e-a03d-61e2f2e0b92d

David, I am going to merge it without approval.

This revision was not accepted when it landed; it landed in state Needs Review.Jan 18 2023, 7:21 PM
This revision was automatically updated to reflect the committed changes.

Thanks for fixing this!