RFR : 8202322: AIX: symbol visibility flags not support on xlc 12.1 (original) (raw)

Baesken, Matthias matthias.baesken at sap.com
Thu Apr 26 14:37:17 UTC 2018


Its right in time. I am facing "Undefined Symbol" errors with XLC 13.1 due to "-qvisibility=hidden" which hides all symbols by default. I workaround that by removing this flag

Hello, so it seems that I better remove the "-qvisibility=" completely for xlc (and not only for xlc12.1) ?

(we currently compile only with XLC 12.1 , there might be more issues with 13.1 )

Best regards, Matthias

-----Original Message----- From: Bhaktavatsal R Maram [mailto:bhamaram at in.ibm.com] Sent: Donnerstag, 26. April 2018 16:32 To: Baesken, Matthias <matthias.baesken at sap.com> Cc: 'build-dev at openjdk.java.net' <build-dev at openjdk.java.net>; ppc-aix- port-dev at openjdk.java.net; core-libs-dev at openjdk.java.net; Simonis, Volker <volker.simonis at sap.com> Subject: Re: RFR : 8202322: AIX: symbol visibility flags not support on xlc 12.1

Hi Matthias, Its right in time. I am facing "Undefined Symbol" errors with XLC 13.1 due to "-qvisibility=hidden" which hides all symbols by default. I workaround that by removing this flag -bash-4.4$ xlC -qversion IBM XL C/C++ for AIX, V13.1.3 (5725-C72, 5765-J07) Version: 13.01.0003.0000 Looks like there are many function declarations that require changes to make function visible. Thanks, Bhaktavatsal Reddy

-----"core-libs-dev" <core-libs-dev-bounces at openjdk.java.net> wrote: ----- To: "'build-dev at openjdk.java.net'" <build-dev at openjdk.java.net>, "ppc- aix-port-dev at openjdk.java.net" <ppc-aix-port-dev at openjdk.java.net>, "core-libs-dev at openjdk.java.net" <core-libs-dev at openjdk.java.net> From: "Baesken, Matthias" Sent by: "core-libs-dev" Date: 04/26/2018 07:45PM Cc: "Simonis, Volker" <volker.simonis at sap.com> Subject: RFR : 8202322: AIX: symbol visibility flags not support on xlc 12.1 Hello , could you please review this small adjustment to the symbol visibility compilation settings on AIX ? Currently we use XLC 12.1 to compile JDK on AIX . However XLC 12.1 does not support the "-qvisibility=hidden" setting currently set on AIX. It was introduced with XLC 13.1 . Christoph found some info about it here : https://www.ibm.com/developerworks/aix/library/au-aix-symbol-visibility- part2/index.html Setting it only generates hundreds of warnings in the build log , warnings look like this : XlC12.1 bash-4.4$ xlC -qversion IBM XL C/C++ for AIX, V12.1 (5765-J02, 5725-C72) Version: 12.01.0000.0019 bash-4.4$ xlC -qvisibility=hidden sizeof.c -o sizeofaixxlc 1506-173 (W) Option visibility=hidden is not valid. Enter xlC for list of valid options. Compare to XLC13.1 bash-3.00$ xlC -qversion IBM XL C/C++ for AIX, V13.1 (5725-C72, 5765-J07) Version: 13.01.0000.0008 bash-3.00$ xlC -qvisibility=default sizeof.c -o sizeofaixxlc bash-3.00$ xlC -qvisibility=hidden sizeof.c -o sizeofaixxlc So it is better to avoid setting these flags when using xlc12.1 . Please review : Bug : https://urldefense.proofpoint.com/v2/url?u=https- 3A_bugs.openjdk.java.netbrowseJDK- 2D8202322&d=DwIFAg&c=jfiaSHvJObTbx- siA1ZOg&r=KUVGEwJiRVpNtQ9wUhGP6BKqzSTV1OWX31WWPdQMmqg&m =F6aATE7bsRWZG5lPZhJUESHNGqST5MNbkULllIH8l4&s=M4IJ- YdB3dfN7lj0DEWozQbipDXmgKtSu3pEyMcJFE&e= Change : https://urldefense.proofpoint.com/v2/url?u=http- 3A_cr.openjdk.java.net- 7Embaeskenwebrevs8202322&d=DwIFAg&c=jfiaSHvJObTbx- siA1ZOg&r=KUVGEwJiRVpNtQ9wUhGP6BKqzSTV1OWX31WWPdQMmqg&m =F6aATE7bsRWZG5lPZhJUESHNGqST5MNbkULllIH8l4&s=gb0OP9fQTAWWJb BZDK6L0gTKf1pwna8aXaYruVv8Q&e= Best regards, Matthias



More information about the build-dev mailing list