Skip to content

Fix Linux build issues#25

Merged
n-marion merged 5 commits into
IBM:mainfrom
Andreas-Krebbel:linux-buildfix
Nov 22, 2024
Merged

Fix Linux build issues#25
n-marion merged 5 commits into
IBM:mainfrom
Andreas-Krebbel:linux-buildfix

Conversation

@Andreas-Krebbel

Copy link
Copy Markdown
Member

The current version of libzdnn does not build on Linux with recent GCCs (>=14). Unfortunately the data types of a few intrinsics changed in way which triggers compile errors when compiling without -flax-vector-conversions. Since using that option for building the entire library would probably paper over other potential errors as well, I rather went with a GCC version check for that particular macro. Clang was already using the GCC 14 intrinsics, so no change required here.

I've tried to keep the z/OS could unchanged, but could not test it. Please verify that it still works there. Thanks!

Comment thread zdnn/zdnn_private.h Outdated
Signed-off-by: Andreas Krebbel <krebbel@linux.ibm.com>
Signed-off-by: Andreas Krebbel <krebbel@linux.ibm.com>
Signed-off-by: Andreas Krebbel <krebbel@linux.ibm.com>
Signed-off-by: Andreas Krebbel <krebbel@linux.ibm.com>
Signed-off-by: Nicholas Marion <nmarion@us.ibm.com>

@n-marion n-marion left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Confirmed runs well on zOS and internal tests.

@stbjones stbjones left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

approved

@n-marion n-marion merged commit 8823d82 into IBM:main Nov 22, 2024
n-marion added a commit that referenced this pull request Nov 22, 2024
* Fix Linux build issues
* Add missing prototypes to testsupport.h
* Get rid of type-aliasing warning
* Go down to z14 to support older distros
* Resolve CPPCheck errors.

---------

Signed-off-by: Andreas Krebbel <krebbel@linux.ibm.com>
Co-authored-by: Nicholas Marion <nmarion@us.ibm.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants