On Fri, 5 Feb 2021 09:38:03 GMT, Aleksey Shipilev <sh...@openjdk.org> wrote:
> Configuration summary: > * Name: linux-alpha-zero-slowdebug > * Debug level: slowdebug > * HS debug level: debug > * JVM variants: zero > * JVM features: zero: 'epsilongc g1gc jni-check jvmti management nmt > parallelgc serialgc services vm-structs zero' > * OpenJDK target: OS: linux, CPU architecture: alpha, address length: 64 > * Version string: 17-internal+0-adhoc.shade.jdk (17-internal) > > Tools summary: > * Boot JDK: openjdk version "15-testing" 2020-09-15 OpenJDK Runtime > Environment (build > 15-testing+0-builds.shipilev.net-openjdk-jdk15-b17-20201010) OpenJDK 64-Bit > Server VM (build 15-testing+0-builds.shipilev.net-openjdk-jdk15-b17-20201010, > mixed mode, sharing) (at /home/shade/Install/jdk15.0.2-ea) > * Toolchain: gcc (GNU Compiler Collection) > * C Compiler: Version 9.3.0 (at /usr/bin/alpha-linux-gnu-gcc) > * C++ Compiler: Version 9.3.0 (at /usr/bin/alpha-linux-gnu-g++) > > $ CONF=linux-alpha-zero-fastdebug make hotspot > > * For target hotspot_variant-zero_libjvm_objs_cardTable.o: > cc1plus: error: '-fstack-protector' not supported for this target [-Werror] > cc1plus: all warnings being treated as errors > > JDK-8199405 removed the conditional checks for -fstack-protector > availability. I believe the intent was to trust that every recent GCC has > this option. But this issue shows that stack-protector support is also > arch-specific? > > Linux x86_64 server configure now says: > > checking if CC supports "-fstack-protector -Werror"... yes > checking if CXX supports "-fstack-protector -Werror"... yes > checking if both CC and CXX support "-fstack-protector -Werror"... yes > > Linux Zero alpha configure now says: > > checking if CC supports "-fstack-protector -Werror"... no > checking if CXX supports "-fstack-protector -Werror"... no > checking if both CC and CXX support "-fstack-protector -Werror"... no > > Additional testing: > - [x] Linux Zero alpha {release,fastdebug,slowdebug} cross-compilation > - [x] Eyeballing configure logs for Linux Zero {alpha, x86_64} Changes requested by ihse (Reviewer). make/autoconf/flags-cflags.m4 line 209: > 207: # Not all versions of gcc support -fstack-protector-all > 208: STACK_PROTECTOR_ALL_CFLAG="-fstack-protector-all" > 209: FLAGS_COMPILER_CHECK_ARGUMENTS(ARGUMENT: > [STACK_PROTECTOR_ALL_CFLAG -Werror], You don't need to add `-Werror` anymore, `$CFLAGS_WARNINGS_ARE_ERRORS` is now added automatically by `FLAGS_COMPILER_CHECK_ARGUMENTS` (as it should have been from the beginning). make/autoconf/flags-cflags.m4 line 465: > 463: # Not all versions of gcc support -fstack-protector > 464: STACK_PROTECTOR_CFLAG="-fstack-protector" > 465: FLAGS_COMPILER_CHECK_ARGUMENTS(ARGUMENT: [$STACK_PROTECTOR_CFLAG > -Werror], ... same here... ------------- PR: https://git.openjdk.java.net/jdk/pull/2423