Build errors on OS X "Failed module access verification"

Scott Palmer swpalmer at
Thu Jan 14 18:32:38 UTC 2016

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",
duplicate resource
"META-INF/services/sun.jvmstat.monitor.MonitoredHostService", skipping
inaccessible reference:
(jdk.attach) -> jdk.Exported (java.base)
inaccessible reference:
(jdk.attach) -> jdk.Exported (java.base)
... <tons more of these> ...
inaccessible reference:
(jdk.dynalink) -> jdk.Exported (java.base)
inaccessible reference: jdk.dynalink.package-info (jdk.dynalink) ->
jdk.Exported (java.base)
inaccessible reference: (jdk.dynalink) ->
jdk.Exported (java.base)
ERROR: Failed module access verification
make[3]: *** [checkdeps] Error 1
make[2]: *** [verify-modules] Error 2
make[2]: *** Waiting for unfinished jobs....

Which looks like this issue:
However that issue is marked as fixed.  Am I missing something?



* 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:
error: null passed to a callee that requires a non-null argument
    NSData *rtfdData = [styledText RTFDFromRange:NSMakeRange(0, [styledText
length]) documentAttributes:nil];
1 error generated.
* For target BUILD_LIBSA_MacosxDebuggerLocal.m:
error: 'ePtAttachDeprecated' is deprecated: PT_ATTACH is deprecated. See
PT_ATTACHEXC [-Werror,-Wdeprecated-declarations]
  if ((res = ptrace(PT_ATTACH, pid, 0, 0)) < 0) {
note: expanded from macro 'PT_ATTACH'
#define PT_ATTACH       ePtAttachDeprecated     /* trace some running
process */
note: 'ePtAttachDeprecated' has been explicitly marked deprecated here
        ePtAttachDeprecated __deprecated_enum_msg("PT_ATTACH is deprecated.
1 error generated.
=== End of repeated output ===

More information about the build-dev mailing list