[RFR]: 8223668: Clang on Linux build broken
David Holmes
david.holmes at oracle.com
Fri May 10 02:17:25 UTC 2019
Hi Arthur,
On 10/05/2019 12:05 pm, Arthur Eubanks wrote:
> Bug: https://bugs.openjdk.java.net/browse/JDK-8223668
> Webrev: http://cr.openjdk.java.net/~aeubanks/8223668/webrev.00/
>
> Currently the clang build on Linux is broken.
>
> $ clang --version
> clang version 4.0.1-10 (tags/RELEASE_401/final)
> Target: x86_64-pc-linux-gnu
> Thread model: posix
> InstalledDir: /usr/bin
>
> With "bash configure --with-toolchain-type=clang" we get the following
> errors:
>
>
> jdk/jdk/src/hotspot/os/linux/osContainer_linux.cpp:470:22: error:
> conversion from string literal to 'char *' is deprecated
> [-Werror,-Wc++11-compat-deprecated-writable-strings]
> char* format = "%s " JULONG_FORMAT;
>
> Fix is to use "const char *" instead of "char *".
I just updated the bug report - this is already being handled by
JDK-8223186: HotSpot compile warnings from GCC 9.
> jdk/jdk/build/hotspot/variant-server/libjvm/gtest/libjvm.so: undefined
> reference to `objArrayOopDesc::obj_at(int) const'
> clang: error: linker command failed with exit code 1 (use -v to see
> invocation)
>
> Fix is to add missing import to src/hotspot/share/jvmci/jvmciCompiler.cpp
That has also already been fixed:
8223639: [JVMCI] jvmciCompiler.cpp needs to include
"oops/objArrayOop.inline.hpp""
Cheers,
David
More information about the hotspot-dev
mailing list