On 2016-01-14 19:32, Scott Palmer wrote:
I managed to get configure working by installing freetype via XQuartz and
forcing it to be found with ./configure --with-freetype=/opt/X11

I'm building on OS X 10.11.2.

The table in Appendix C: Build Environments or the README-builds.html file
says "Xcode 6.3 or newer", but Xcode 7 resulted in a couple build errors*.
Other sections of README-build.html say only "Xcode 6.3" and "Be sure to
use the right Xcode".  So I installed the command line tools for 6.3.2 and
that cleared up the 2 compile errors I got with Xcode 7.

After configuring I ran "make all"

Now I'm getting some other errors that appear to be fairly far into the
build process:

Creating jre jimage
duplicate resource
"META-INF/services/sun.jvmstat.monitor.MonitoredHostService", skipping
duplicate resource "META-INF/services/com.sun.jdi.connect.Connector",
skipping
duplicate resource
"META-INF/services/sun.jvmstat.monitor.MonitoredHostService", skipping
inaccessible reference: com.sun.tools.attach.AgentInitializationException
(jdk.attach) -> jdk.Exported (java.base)
inaccessible reference: com.sun.tools.attach.AgentLoadException
(jdk.attach) -> jdk.Exported (java.base)
... <tons more of these> ...
inaccessible reference: jdk.dynalink.linker.support.package-info
(jdk.dynalink) -> jdk.Exported (java.base)
inaccessible reference: jdk.dynalink.package-info (jdk.dynalink) ->
jdk.Exported (java.base)
inaccessible reference: jdk.dynalink.support.package-info (jdk.dynalink) ->
jdk.Exported (java.base)
ERROR: Failed module access verification

In JDK-8049422, jdk.Exported was removed. It seems there are broken references to jdk.Export. Could it be that your forest is not correctly synced? I suggest trying, in order,
1) bash get_source.sh and rebuild
2) make clean and rebuild
3) re-clone the forest

/Magnus

make[3]: *** [checkdeps] Error 1
make[2]: *** [verify-modules] Error 2
make[2]: *** Waiting for unfinished jobs....


Which looks like this issue:
https://bugs.openjdk.java.net/browse/JDK-8067479
However that issue is marked as fixed.  Am I missing something?


Thanks,

Scott

* These are the compiler errors when using Xcode 7, if anyone cares:
=== Output from failing command(s) repeated here ===
* For target BUILD_LIBAWT_LWAWT_AWTView.m:
/Users/spalmer/dev/openjdk9/jdk/src/java.desktop/macosx/native/libawt_lwawt/awt/AWTView.m:627:36:
error: null passed to a callee that requires a non-null argument
[-Werror,-Wnonnull]
     NSData *rtfdData = [styledText RTFDFromRange:NSMakeRange(0, [styledText
length]) documentAttributes:nil];
                                    ^
                              ~~~
1 error generated.
* For target BUILD_LIBSA_MacosxDebuggerLocal.m:
/Users/spalmer/dev/openjdk9/hotspot/agent/src/os/bsd/MacosxDebuggerLocal.m:691:21:
error: 'ePtAttachDeprecated' is deprecated: PT_ATTACH is deprecated. See
PT_ATTACHEXC [-Werror,-Wdeprecated-declarations]
   if ((res = ptrace(PT_ATTACH, pid, 0, 0)) < 0) {
                     ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include/sys/ptrace.h:85:19:
note: expanded from macro 'PT_ATTACH'
#define PT_ATTACH       ePtAttachDeprecated     /* trace some running
process */
                         ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include/sys/ptrace.h:71:2:
note: 'ePtAttachDeprecated' has been explicitly marked deprecated here
         ePtAttachDeprecated __deprecated_enum_msg("PT_ATTACH is deprecated.
See PT_ATTACHEXC") = 10
         ^
1 error generated.
=== End of repeated output ===

Reply via email to