Opened 3 years ago

Last modified 3 years ago

#61612 assigned defect

xorg-libx11 @1.7.0 variant +docs does not build on El Capitan, OK on Big Sur (Java problem?)

Reported by: snowflake (Dave Evans) Owned by: jeremyhu (Jeremy Huddleston Sequoia)
Priority: Normal Milestone:
Component: ports Version: 2.6.99
Keywords: Cc: cjones051073 (Chris Jones)
Port: xorg-libx11

Description

I am upgrading xorg-libx11 with the +docs variant. The build fails on El Capitan but is OK on Big Sur.

The build fails during the destroot phase where it is building the docs. I suspect it is a Java error like this one:

JVMJ9GC017E -Xmx too small, must be at least 1 Mbytes
JVMJ9VM015W Initialization error for library j9gc29(2): Failed to initialize
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.

There are errors like these below, but they also occur in the Big Sur build.

Error: unresolved olink: targetdoc/targetptr = 'icccm/Input_Focus'.
Error: unresolved olink: targetdoc/targetptr = 'icccm/Input_Focus'.
Error: unresolved olink: targetdoc/targetptr = 'icccm/icccm'.
Error: unresolved olink: targetdoc/targetptr = 'icccm/icccm'.
Error: unresolved olink: targetdoc/targetptr = 'icccm/Changing_Window_State'.
Error: unresolved olink: targetdoc/targetptr = 'icccm/Changing_Window_State'.
Error: unresolved olink: targetdoc/targetptr = 'xlfd/xlfd'.
Error: unresolved olink: targetdoc/targetptr = 'xlfd/xlfd'.

I do not know how to increase the -Xmx value.

Change History (4)

comment:1 Changed 3 years ago by snowflake (Dave Evans)

For both the El Capitan and Big Sur builds I was using JAVA_HOME set to openjdk8.

On El Capitan, I set JAVA_HOME to openjdk14-openj9. The build now succeeds on El Capitan.

Why openjdk8 works on Big Sur but not on El Capitan is a mystery to me at least.

comment:2 Changed 3 years ago by snowflake (Dave Evans)

Summary: xorg-lib11 @1.7.0 variant +docs does not build on El Capitan, OK on Big Sur (Java problem?)xorg-libx11 @1.7.0 variant +docs does not build on El Capitan, OK on Big Sur (Java problem?)

comment:3 Changed 3 years ago by jmroot (Joshua Root)

Cc: cjones051073 added

comment:4 Changed 3 years ago by snowflake (Dave Evans)

The version info of the java on El Capitan is

openjdk version "1.8.0_275"
OpenJDK Runtime Environment (AdoptOpenJDK)(build 1.8.0_275-b01)
OpenJDK 64-Bit Server VM (AdoptOpenJDK)(build 25.275-b01, mixed mode)

Later versions of openjdk document the JDK_JAVA_OPTIONS environment variable in the java(1) page.

I set JDK_JAVA_OPTIONS to -Xmx8000k and exported it. The destroot phase now succeeds with openjdk 1.8.0_275 on El Capitan.

Note: See TracTickets for help on using tickets.