[RFR]: 8223668: Clang on Linux build broken

Arthur Eubanks aeubanks at google.com
Fri May 10 02:05:58 UTC 2019


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 *".



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


More information about the hotspot-dev mailing list