JDK-8223668 : Clang Linux build broken
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • Submitted: 2019-05-10
  • Updated: 2019-05-10
  • Resolved: 2019-05-10
Related Reports
Duplicate :  
Duplicate :  
Relates :  
Relates :  
Description
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;

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)
Comments
Ah in that case ignore this bug.
10-05-2019

The second problem has also just been fixed by JDK-8223639: [JVMCI] jvmciCompiler.cpp needs to include "oops/objArrayOop.inline.hpp""
10-05-2019

Moved to hotspot->runtime as these should be fixed in the source not via build flags.
10-05-2019

The first issue is already being handled by: JDK-8223186: HotSpot compile warnings from GCC 9
10-05-2019