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

Linking failure on big endian (s390x) #93

Closed
wants to merge 1 commit into from

Conversation

ellert
Copy link

@ellert ellert commented Jul 10, 2024

/usr/bin/ld: umac128.o (symbol from plugin): in function umac_put_u32_le': (.text+0x0): multiple definition of umac_put_u32_le'; umac.o (symbol from plugin):(.text+0x0): first defined here
collect2: error: ld returned 1 exit status

This function (umac_put_u32_le) has been enclosed in a

#if (! __LITTLE_ENDIAN__) /* compile time warning thrown otherwise */

block in order to fix this issue for little endian architectures. Since the function is not used on big endian architectures either, this can be fixed by changing the above to

#if 0 /* compile time warning thrown otherwise */

/usr/bin/ld: umac128.o (symbol from plugin): in function `umac_put_u32_le':
(.text+0x0): multiple definition of `umac_put_u32_le'; umac.o (symbol from plugin):(.text+0x0): first defined here
collect2: error: ld returned 1 exit status

This function (umac_put_u32_le) has been enclosed in a

 #if (! __LITTLE_ENDIAN__) /* compile time warning thrown otherwise */

block in order to fix this issue for little endian architectures.
Since the function is not used on big endian architectures either,
this can be fixed by changing the above to

 #if 0 /* compile time warning thrown otherwise */
@rapier1
Copy link
Owner

rapier1 commented Jul 11, 2024

I need to review this entire patch as I am not sure it's actually providing the performance benefit I think it is providing. If it isn't then I need to revert this entire patch. One way or the other this will be resolved in the next release.

@rapier1
Copy link
Owner

rapier1 commented Sep 27, 2024

This will be available in HPN-SSH 18.6.0. However, we don't use the master branch for development so things that impact functionality have to go into a sub-branch that we then merge in. So while this PR looks like it's getting rejected it absolutely isn't. I just wanted to let you know.

rapier1 added a commit that referenced this pull request Sep 27, 2024
…an architectures.

A one line fix provided by Mattias Ellert.
See #93 for the PR.
@rapier1
Copy link
Owner

rapier1 commented Oct 2, 2024

This change has been added to 18.6.0.

Thanks for submitting this PR!

@rapier1 rapier1 closed this Oct 2, 2024
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.

2 participants