-
Type:
Bug
-
Resolution: Fixed
-
Priority:
P4
-
Affects Version/s: 16
-
Component/s: infrastructure
-
None
-
Environment:
$ lsb_release -d
Description: Ubuntu 20.04.1 LTS$ clang --version
clang version 10.0.0-4ubuntu1
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/bin
-
b23
-
x86_64
-
linux_ubuntu
When compiling the JDK using Clang 10.0.0 on Ubuntu 20.04, I get a few error messages like this one:
src/hotspot/share/c1/c1_LIR.cpp:526:50: error: misleading indentation; statement is not part of the previous 'if' [-Werror,-Wmisleading-indentation]
To reproduce:
$ bash configure --with-toolchain-type=clang
$ make images
(fails with "error: misleading indentation..." errors)
Adding 'misleading-indentation' to the 'DISABLED_WARNINGS_clang' variable in different .gmk files under the 'make' directory seems to fix the problem.
src/hotspot/share/c1/c1_LIR.cpp:526:50: error: misleading indentation; statement is not part of the previous 'if' [-Werror,-Wmisleading-indentation]
To reproduce:
$ bash configure --with-toolchain-type=clang
$ make images
(fails with "error: misleading indentation..." errors)
Adding 'misleading-indentation' to the 'DISABLED_WARNINGS_clang' variable in different .gmk files under the 'make' directory seems to fix the problem.