Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test build JDK8 on GCC11 #3758

Open
sxa opened this issue Apr 11, 2024 · 3 comments
Open

Test build JDK8 on GCC11 #3758

sxa opened this issue Apr 11, 2024 · 3 comments

Comments

@sxa
Copy link
Member

sxa commented Apr 11, 2024

Should be possible with the patch from openjdk/jdk8u-dev#357 (comment)

@sxa
Copy link
Member Author

sxa commented Apr 24, 2024

Running with --with-devkit didn't work via jenkins as it objected to not being able to find freetype:
configure: error: Could not find freetype! You might be able to fix this by running 'sudo yum install freetype-devel'.

Building a hotspot variant from the command line on aarch64 with CC and CXX set to the versions in /usr/local/gcc11/bin on the CentOS7 container also didn't work.

Same build with gcc-7.5 hit issues too though, so more investigation required to build from the branch.

@sxa
Copy link
Member Author

sxa commented May 2, 2024

OK GCC 10.3 works ok, 11.2 does not. I've tried with an 11.3 build and that has the same issues as 11.2:
/home/sxa/temurin-build/build-farm/workspace/build/src/hotspot/src/share/vm/opto/type.cpp:2556:71: error: 'this' pointer is null [-Werror=nonnull]

@sxa
Copy link
Member Author

sxa commented May 3, 2024

With GCC13.2 I get this:
/home/sxa/temurin-build/build-farm/workspace/build/src/hotspot/src/os_cpu/linux_aarch64/vm/orderAccess_linux_aarch64.inline.hpp:78:28: error: 'long unsigned int __atomic_load_8(const volatile void*, int)' writing 8 bytes into a region of size 0 overflows the destination [-Werror=stringop-overflow=]

Noting that by removing -Werror from the compile command it works ok - here is the full command and error:

[sxa@0854326e1d22 generated]$ /usr/local/gcc13/bin/g++-13.2 -DLINUX -D_GNU_SOURCE -DAARCH64 -DPRODUCT -I. -I/home/sxa/temurin-build/build-farm/workspace/build/src/hotspot/src/share/vm/prims -I/home/sxa/temurin-build/build-farm/workspace/build/src/hotspot/src/share/vm -I/home/sxa/temurin-build/build-farm/workspace/build/src/hotspot/src/share/vm/precompiled -I/home/sxa/temurin-build/build-farm/workspace/build/src/hotspot/src/cpu/aarch64/vm -I/home/sxa/temurin-build/build-farm/workspace/build/src/hotspot/src/os_cpu/linux_aarch64/vm -I/home/sxa/temurin-build/build-farm/workspace/build/src/hotspot/src/os/linux/vm -I/home/sxa/temurin-build/build-farm/workspace/build/src/hotspot/src/os/posix/vm -I../generated -DHOTSPOT_RELEASE_VERSION="\"25.412-b08\"" -DHOTSPOT_BUILD_TARGET="\"product\"" -DHOTSPOT_BUILD_USER="\"sxa\"" -DHOTSPOT_LIB_ARCH=\"aarch64\" -DHOTSPOT_VM_DISTRO="\"OpenJDK\"" -DTARGET_OS_FAMILY_linux -DTARGET_ARCH_aarch64 -DTARGET_ARCH_MODEL_aarch64 -DTARGET_OS_ARCH_linux_aarch64 -DTARGET_OS_ARCH_MODEL_linux_aarch64 -DTARGET_COMPILER_gcc -DINCLUDE_JFR=1 -DCOMPILER2 -DCOMPILER1 -fPIC -fno-rtti -fno-exceptions -D_REENTRANT -fcheck-new -fvisibility=hidden -pipe -fno-strict-aliasing -fno-omit-frame-pointer -O3 -g -DVM_LITTLE_ENDIAN -Werror -Wpointer-arith -Wsign-compare -Wundef -Wunused-function -Wunused-value -Wformat=2 -Wreturn-type -fstack-protector -fno-delete-null-pointer-checks -fno-lifetime-dse -std=gnu++98 -DDTRACE_ENABLED -c -MMD -MP -MF ../generated/dependencies/compileBroker.o.d -fpch-deps -o compileBroker.o /home/sxa/temurin-build/build-farm/workspace/build/src/hotspot/src/share/vm/compiler/compileBroker.cpp

In file included from /home/sxa/temurin-build/build-farm/workspace/build/src/hotspot/src/share/vm/runtime/orderAccess.inline.hpp:45,
                 from /home/sxa/temurin-build/build-farm/workspace/build/src/hotspot/src/os/linux/vm/os_linux.inline.hpp:29,
                 from /home/sxa/temurin-build/build-farm/workspace/build/src/hotspot/src/share/vm/utilities/histogram.hpp:32,
                 from /home/sxa/temurin-build/build-farm/workspace/build/src/hotspot/src/share/vm/runtime/mutex.hpp:30,
                 from /home/sxa/temurin-build/build-farm/workspace/build/src/hotspot/src/share/vm/classfile/classLoaderData.hpp:32,
                 from /home/sxa/temurin-build/build-farm/workspace/build/src/hotspot/src/share/vm/oops/typeArrayKlass.hpp:28,
                 from /home/sxa/temurin-build/build-farm/workspace/build/src/hotspot/src/share/vm/oops/typeArrayOop.hpp:29,
                 from /home/sxa/temurin-build/build-farm/workspace/build/src/hotspot/src/share/vm/oops/constantPool.hpp:32,
                 from /home/sxa/temurin-build/build-farm/workspace/build/src/hotspot/src/share/vm/oops/method.hpp:33,
                 from /home/sxa/temurin-build/build-farm/workspace/build/src/hotspot/src/share/vm/runtime/frame.hpp:28,
                 from /home/sxa/temurin-build/build-farm/workspace/build/src/hotspot/src/share/vm/code/codeBlob.hpp:30,
                 from /home/sxa/temurin-build/build-farm/workspace/build/src/hotspot/src/share/vm/code/codeCache.hpp:28,
                 from /home/sxa/temurin-build/build-farm/workspace/build/src/hotspot/src/cpu/aarch64/vm/assembler_aarch64.inline.hpp:32,
                 from /home/sxa/temurin-build/build-farm/workspace/build/src/hotspot/src/share/vm/asm/assembler.inline.hpp:46,
                 from /home/sxa/temurin-build/build-farm/workspace/build/src/hotspot/src/share/vm/precompiled/precompiled.hpp:30,
                 from /home/sxa/temurin-build/build-farm/workspace/build/src/hotspot/src/share/vm/compiler/compileBroker.cpp:25:
In static member function 'static void* OrderAccess::load_ptr_acquire(const volatile void*)',
    inlined from 'nmethod* volatile Method::code() const' at /home/sxa/temurin-build/build-farm/workspace/build/src/hotspot/src/share/vm/oops/method.hpp:454:127,
    inlined from 'static bool CompileBroker::compilation_is_complete(methodHandle, int, int)' at /home/sxa/temurin-build/build-farm/workspace/build/src/hotspot/src/share/vm/compiler/compileBroker.cpp:1463:37,
    inlined from 'static bool CompileBroker::compilation_is_complete(methodHandle, int, int)' at /home/sxa/temurin-build/build-farm/workspace/build/src/hotspot/src/share/vm/compiler/compileBroker.cpp:1448:6,
    inlined from 'static nmethod* CompileBroker::compile_method(methodHandle, int, int, methodHandle, int, const char*, Thread*)' at /home/sxa/temurin-build/build-farm/workspace/build/src/hotspot/src/share/vm/compiler/compileBroker.cpp:1357:34:
/home/sxa/temurin-build/build-farm/workspace/build/src/hotspot/src/os_cpu/linux_aarch64/vm/orderAccess_linux_aarch64.inline.hpp:78:28: error: 'long unsigned int __atomic_load_8(const volatile void*, int)' writing 8 bytes into a region of size 0 overflows the destination [-Werror=stringop-overflow=]
   78 | { void* data; __atomic_load((void* const volatile *)p, &data, __ATOMIC_ACQUIRE); return data; }
      |               ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In static member function 'static nmethod* CompileBroker::compile_method(methodHandle, int, int, methodHandle, int, const char*, Thread*)':
cc1plus: note: destination object is likely at address zero
cc1plus: all warnings being treated as errors

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant