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

osx jdk11 build failed with no reason #3810

Closed
pshipton opened this issue Nov 23, 2018 · 7 comments · Fixed by #3815
Closed

osx jdk11 build failed with no reason #3810

pshipton opened this issue Nov 23, 2018 · 7 comments · Fixed by #3815

Comments

@pshipton
Copy link
Member

https://ci.eclipse.org/openj9/job/Build-JDK11-osx_x86-64_cmprssptrs/8/

00:24:09 Compiling 18 files for java.datatransfer
00:24:09 Compiling 117 files for java.compiler
00:24:11 Compiling 10 files for java.instrument
00:24:11 Compiling 34 files for java.logging
00:24:12 Compiling 354 files for java.management
00:24:13 Compiling 140 files for java.net.http
00:24:16 Compiling 1831 files for java.xml
00:24:19 Compiling 15 files for java.scripting
00:24:19 Compiling 5 files for java.transaction.xa
00:24:19 Compiling 21 files for java.smartcardio
00:24:20 Compiling 60 files for jdk.internal.jvmstat
00:24:20 Compiling 145 files for jdk.charsets
00:24:21 Compiling 398 files for jdk.compiler
00:24:23 Compiling 15 files for jdk.crypto.ec
00:24:25 Compiling 68 files for jdk.dynalink
00:24:27 Compiling 3 files for jdk.internal.ed
00:24:28 Compiling 44 files for jdk.httpserver
00:24:29 Compiling 55 files for jdk.internal.le
00:24:30 Compiling 51 files for jdk.internal.opt
00:24:32 Compiling 33 files for jdk.jartool
00:24:33 Compiling 83 files for jdk.management
00:24:34 make[4]: *** [j9vm] Error 2
00:24:34 make[3]: *** [build-j9] Error 2
00:24:34 make[2]: *** [j9vm-build] Error 2
00:24:34 make[2]: *** Waiting for unfinished jobs....
00:24:34 Note: Some input files use or override a deprecated API that is marked for removal.
00:24:34 Note: Recompile with -Xlint:removal for details.
00:24:34 Note: /Users/jenkins/workspace/Build-JDK11-osx_x86-64_cmprssptrs/build/macosx-x86_64-normal-server-release/support/j9jcl_sources/jdk.management/share/classes/com/sun/management/GcInfo.java uses unchecked or unsafe operations.
00:24:34 Note: Recompile with -Xlint:unchecked for details.
00:24:39 
00:24:39 ERROR: Build failed for target 'all' in configuration 'macosx-x86_64-normal-server-release' (exit code 2) 
00:24:39 Stopping sjavac server
00:24:39 
00:24:39 No indication of failed target found.
00:24:39 Hint: Try searching the build log for '] Error'.
00:24:39 Hint: See doc/building.html#troubleshooting for assistance.
00:24:39 
00:24:39 make[1]: *** [main] Error 2
00:24:39 make: *** [all] Error 2
@pshipton
Copy link
Member Author

@DanHeidinga fyi

@sxa
Copy link
Contributor

sxa commented Nov 23, 2018

Was just looking to see if this had been raised since I'm seeing it at adoptopenjdk for the JDK8 and JDK11 macos builds. The error is this one:

05:22:59 In file included from MHInterpreter.cpp:24:
05:22:59 ./../oti/clang/stddef.h:24:9: error: 'offsetof' macro redefined [-Werror,-Wmacro-redefined]
05:22:59 #define offsetof(type, member) __builtin_offsetof(type, member)
05:22:59         ^
05:22:59 /Library/Developer/CommandLineTools/usr/lib/clang/9.1.0/include/stddef.h:120:9: note: previous definition is here
05:22:59 #define offsetof(t, d) __builtin_offsetof(t, d)
05:22:59         ^
05:22:59 /usr/bin/clang -DOPENJ9_BUILD -O3 -fno-strict-aliasing -g -MMD -DOSX -D_REENTRANT -D_FILE_OFFSET_BITS=64 -fPIC -DJ9HAMMER -m64 -Wimplicit -Wreturn-type -Werror -Wall -I. -I../include -I../oti -I../util -I../gc_include -I../omr/gc/include -I../shared_common/include -I../gc_glue_java -I../nls -I../omr/include_core    -DUT_DIRECT_TRACE_REGISTRATION -DTR_HOST_X86 -c -o ModularityHashTables.o ModularityHashTables.c
05:22:59 1 error generated.
05:22:59 make[5]: *** [MHInterpreter.o] Error 1
05:22:59 make[5]: *** Waiting for unfinished jobs....
05:24:09 /Users/jenkins/workspace/Build-JDK11-osx_x86-64_cmprssptrs/build/macosx-x86_64-normal-server-release/support/j9jcl_sources/java.base/share/classes/java/lang/Class.java:2860: warning: no @param for cls
05:24:09 public <U> Class<? extends U> asSubclass(Class<U> cls) {

@DanHeidinga
Copy link
Member

@babsingh Ring any bells for you?

@DanHeidinga
Copy link
Member

Looking at the history of that change, I think it's supposed to be windows specific.

Will pull together a PR that adds #if defined(WIN32) around that include

@pdbain-ibm
Copy link
Contributor

I'm getting the same problem.

@babsingh
Copy link
Contributor

babsingh commented Nov 23, 2018

Agreeing with Dan. This happens due to a recent Windows specific change: Replace mingw with clang in compilation, which was merged two days ago.

DanHeidinga added a commit to DanHeidinga/openj9 that referenced this issue Nov 23, 2018
@DanHeidinga
Copy link
Member

This is fixed in #3815

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

Successfully merging a pull request may close this issue.

5 participants