Closed Hello71 closed 8 months ago
On which Linux distribution did you encounter this? gcc-11
is not immediately available in Ubuntu 20.04 and the version of libdwarf.so
on Ubuntu 18.04 doesn't support DWARF 5 (at least not well).
I used gcc 11.2.0 and libdwarf 20210305 on Gentoo Linux for this compilation.
I just bumped into this problem while (native) building on RISC-V (gcc 11.2.0).
Has been there any progress on this? Shall I just hack build scripts to pass -gdwarf-4
?
I looked at it briefly, but didn't have time to even collect a consistent set of tools.
I'd be surprised if gcc-11 works without https://github.com/eclipse/omr/pull/6301 that addresses code problems that cause failures with gcc-10.
I think using -gdwarf-4
in the meantime is reasonable
I'd be surprised if gcc-11 works without #6301 On RISC-V there's no JIT so this is no problem. I'll use
-gdwarf-4
temporarily.
When compiling openj9-openjdk, I received this error:
I think this is related to https://gcc.gnu.org/gcc-11/changes.html:
This can be worked around by specifying -gdwarf-4, but it would be better to support the modern DWARF.