Closed DavidTruby closed 4 years ago
By the way, I was seeing the problem without explicitly requesting ld.bfd or ld.gold. Maybe it was using one of them by default, but I don't know how to tell. This was with GCC 8.4 on ubuntu 18.04.
BFD is the default on Ubuntu, unless its been changed on that machine or explicitly requested on the build line, so that would make sense.
Hi,
this patch works, I can build flang clang 11 dev build with no errors. Thanks @DavidTruby!
Committed directly into llvm-project: https://github.com/llvm/llvm-project/commit/a1726e65bc1fdbd2800839e48e68cb4a68cc7092
When building with LLVM HEAD, the unittests fail to link with ld.bfd or ld.gold due to a linker ordering issue. Adding libSemantics as a dependency to libEvaluate seems to fix that issue.