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

AIX compile failure with JDK11 extensions #2468

Closed
jdekonin opened this issue Jul 24, 2018 · 7 comments
Closed

AIX compile failure with JDK11 extensions #2468

jdekonin opened this issue Jul 24, 2018 · 7 comments
Assignees

Comments

@jdekonin
Copy link
Contributor

https://ci.eclipse.org/openj9/job/PullRequest-Sanity-JDK11-aix_ppc-64_cmprssptrs-OpenJDK11/1/console

Actually looks like we are just past the openj9 native compilation and into java.base-libs

00:27:57.168 ld: 0711-224 WARNING: Duplicate symbol: .sigaction
00:27:57.169 ld: 0711-224 WARNING: Duplicate symbol: sigaction
00:27:57.169 ld: 0711-344 See the loadmap file /home/u0020236/workspace/PullRequest-Sanity-JDK11-aix_ppc-64_cmprssptrs-OpenJDK11/build/aix-ppc64-normal-server-release/support/native/java.base/libjsig/libjsig.loadmap for more information.
00:27:57.169 ld: 0711-407 ERROR: Symbol .sigaction
00:27:57.169 	Visibility is not allowed on a reference to an imported symbol.
00:27:57.169 Lib-java.base.gmk:139: recipe for target '/home/u0020236/workspace/PullRequest-Sanity-JDK11-aix_ppc-64_cmprssptrs-OpenJDK11/build/aix-ppc64-normal-server-release/support/modules_libs/java.base/libjsig.so' failed
00:27:57.169 gmake[3]: *** [/home/u0020236/workspace/PullRequest-Sanity-JDK11-aix_ppc-64_cmprssptrs-OpenJDK11/build/aix-ppc64-normal-server-release/support/modules_libs/java.base/libjsig.so] Error 8
00:27:57.169 gmake[3]: *** Waiting for unfinished jobs....
00:27:57.169 ld: 0711-224 WARNING: Duplicate symbol: .jio_snprintf
00:27:57.169 ld: 0711-224 WARNING: Duplicate symbol: jio_snprintf
00:27:57.169 ld: 0711-224 WARNING: Duplicate symbol: .jio_fprintf
00:27:57.169 ld: 0711-224 WARNING: Duplicate symbol: .isnan
00:27:57.169 ld: 0711-224 WARNING: Duplicate symbol: jio_fprintf
00:27:57.169 ld: 0711-344 See the loadmap file /home/u0020236/workspace/PullRequest-Sanity-JDK11-aix_ppc-64_cmprssptrs-OpenJDK11/build/aix-ppc64-normal-server-release/support/native/java.base/libjava/libjava.loadmap for more information.
00:27:57.169 gmake[2]: *** [java.base-libs] Error 2

important bits (?) of libjsig.loadmap

...
ld: 0711-228 WARNING: Duplicate symbols were found while resolving symbols.
        The following duplicates were found:
 Symbol                    Source-File(Object) OR Import-File{Shared-object}
 ------------------------- -------------------------------------------------
 .sigaction                {/usr/lib/libpthread.a[shr_xpg5_64.o]}
    ** Duplicate **        /home/u0020236/workspace/PullRequest-Sanity-JDK11-aix_ppc-64_cmprssptrs-OpenJDK11/src/java.base/unix/native/libjsig/jsig.c(/home/u0020236/workspace/PullRequest-Sanity-JDK11-aix_ppc-64_cmprssptrs-OpenJDK11/build/aix-ppc64-normal-server-release/support/native/java.base/libjsig/jsig.o)
 sigaction                 {/usr/lib/libpthread.a[shr_xpg5_64.o]}
    ** Duplicate **        /home/u0020236/workspace/PullRequest-Sanity-JDK11-aix_ppc-64_cmprssptrs-OpenJDK11/src/java.base/unix/native/libjsig/jsig.c(/home/u0020236/workspace/PullRequest-Sanity-JDK11-aix_ppc-64_cmprssptrs-OpenJDK11/build/aix-ppc64-normal-server-release/support/native/java.base/libjsig/jsig.o)
...
ld: 0711-407 ERROR: Symbol .sigaction
        Visibility is not allowed on a reference to an imported symbol.
...
@pshipton
Copy link
Member

pshipton commented Aug 1, 2018

@keithc-ca you might look at this next

@keithc-ca
Copy link
Contributor

keithc-ca commented Aug 2, 2018

In JDK10, there are separate versions of jsig.c for aix and linux; in JDK11 the aix version was folded into a single unix source.

@sxa
Copy link
Contributor

sxa commented Aug 8, 2018

Seen this in the adoptopenjdk CI as well (HotSpot and OpenJ9 builds) ... Commenting here so I get any updates on this issue ;-)

@keithc-ca keithc-ca self-assigned this Aug 16, 2018
@andrew-m-leonard
Copy link
Contributor

@sxa555 Has anyone found reports of this on AIX in the openjdk maillist or bug reports at all? if it fails with Hotspot at Adopt presumably they would hit the issue too?

@sxa
Copy link
Contributor

sxa commented Aug 21, 2018

I would expect so, yes (unless it's toolchain specific) although I don't follow whichever list you're referring to closely and I don't see an easy way to search it ...

@keithc-ca
Copy link
Contributor

In JDK11 and JDK12, source files are compiled with -qvisibility=hidden when using xlc version other than 12.1. That doesn't seem to play well with link option -bexpall.

I'm investigating whether alternate definitions of JNIEXPORT and JNIIMPORT will fix this.

See also this open issue: https://bugs.openjdk.java.net/browse/JDK-8204541.

@keithc-ca
Copy link
Contributor

This should be fixed via ibmruntimes/openj9-openjdk-jdk11#15.

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

No branches or pull requests

5 participants