[PATCH] D79342: [flang] Fix cmake circular dependency error

Valentin Clement via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon May 4 15:37:27 PDT 2020


clementval added a comment.

In D79342#2018668 <https://reviews.llvm.org/D79342#2018668>, @tskeith wrote:

> In D79342#2018403 <https://reviews.llvm.org/D79342#2018403>, @clementval wrote:
>
> > @tskeith If I removed it I see these kind of error:
> >
> >   ../../../../lib/libFortranEvaluate.a(characteristics.cpp.o):characteristics.cpp:function Fortran::evaluate::characteristics::TypeAndShape::AcquireShape(Fortran::semantics::ObjectEntityDetails const&) [clone .localalias.62]: error: undefined reference to 'Fortran::semantics::ArraySpec::IsDeferredShape() const'
> >   ../../../../lib/libFortranEvaluate.a(characteristics.cpp.o):characteristics.cpp:function Fortran::evaluate::characteristics::TypeAndShape::AcquireShape(Fortran::semantics::ObjectEntityDetails const&) [clone .localalias.62]: error: undefined reference to 'Fortran::semantics::ArraySpec::IsAssumedRank() const'
> >   ../../../../lib/libFortranEvaluate.a(characteristics.cpp.o):characteristics.cpp:function Fortran::evaluate::characteristics::TypeAndShape::AcquireShape(Fortran::semantics::ObjectEntityDetails const&) [clone .localalias.62]: error: undefined reference to 'Fortran::semantics::ArraySpec::IsAssumedShape() const'
> >   ../../../../lib/libFortranEvaluate.a(characteristics.cpp.o):characteristics.cpp:function Fortran::evaluate::characteristics::TypeAndShape::AcquireShape(Fortran::semantics::ObjectEntityDetails const&) [clone .localalias.62]: error: undefined reference to 'Fortran::semantics::ArraySpec::IsAssumedSize() const'
> >
>
>
> What compiler, linker, and OS?


CentOS Linux release 7.8.2003 (AltArch)
gcc 7.5
GNU gold

By the way, with the fix from D79366 <https://reviews.llvm.org/D79366> you can keep the dependency as is.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D79342/new/

https://reviews.llvm.org/D79342





More information about the llvm-commits mailing list