RFR: 8349140: Size optimization (opt-size) build fails after recent PCH changes
Julian Waters
jwaters at openjdk.org
Tue Feb 4 15:50:11 UTC 2025
On Tue, 4 Feb 2025 15:35:03 GMT, Matthias Baesken <mbaesken at openjdk.org> wrote:
> When using the configure flag --enable-jvm-feature-opt-size (linux x86_64 opt build, gcc 11 devkit) we run into this error after the recent PCH related changes :
>
>
> cc1plus: error: /build_optsize/hotspot/variant-server/libjvm/objs/precompiled/precompiled.hpp.gch: not used because `__OPTIMIZE_SIZE__' not defined [-Werror=invalid-pch]
>
> + exit 1
> gmake[3]: *** [lib/CompileJvm.gmk:170: /build_optsize/hotspot/variant-server/libjvm/objs/allocation.o] Error 1
>
>
> Please note that allocation.cpp is currently in the list of `OPT_SPEED_SRC` files (means - files to be optimized for speed even in case of SIZE optimization) :
> https://github.com/openjdk/jdk/blob/master/make/hotspot/lib/JvmFeatures.gmk#L196
>
> Same issue can be observed on Windows x86_64 (VS2022 used).
make/hotspot/lib/JvmOverrideFiles.gmk line 154:
> 152: else ifeq ($(call isTargetOs, windows), true)
> 153: JVM_PRECOMPILED_HEADER_EXCLUDE := \
> 154: bytecodeInterpreter.cpp \
Does bytecodeInterpreter.cpp and friend no longer need to be excluded from precompiled headers? Windows/Zero might not exist yet, but I don't think we'd want to preclude that
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/23442#discussion_r1941430884
More information about the build-dev
mailing list