Skip to content

Conversation

@bluca
Copy link
Contributor

@bluca bluca commented Sep 22, 2025

There is a spurious failure on powerpc64:

$ gcc -nostdlib -Lsrc/.libs -ltpms
/usr/bin/ld: src/.libs/libtpms.so: ABI version 1 is not compatible with ABI version 0 output
/usr/bin/ld: failed to merge target specific data of file src/.libs/libtpms.so
/usr/bin/ld: warning: cannot find entry symbol _start; defaulting to 00000000000000d8
collect2: error: ld returned 1 exit status

This is likely a linker bug, which has been reported, but
even if it is fixed, it will take a long time before it is available:

https://sourceware.org/bugzilla/show_bug.cgi?id=17742#c7

Signed-off-by: Luca Boccassi <luca.boccassi@gmail.com>
There is a spurious failure on powerpc64:

$ gcc -nostdlib -Lsrc/.libs -ltpms
/usr/bin/ld: src/.libs/libtpms.so: ABI version 1 is not compatible with ABI version 0 output
/usr/bin/ld: failed to merge target specific data of file src/.libs/libtpms.so
/usr/bin/ld: warning: cannot find entry symbol _start; defaulting to 00000000000000d8
collect2: error: ld returned 1 exit status

This is likely a linker bug, which has been reported, but
even if it is fixed, it will take a long time before it is available:

https://sourceware.org/bugzilla/show_bug.cgi?id=17742#c7

Signed-off-by: Luca Boccassi <luca.boccassi@gmail.com>
@stefanberger
Copy link
Owner

Can you please also describe in which distro and version you are encountering this error? I am running tests also on ppc64 but not across a whole lot of distros. I haven't encountered this issue so far on ppc64. Also, if it's a linker issue I would expect that it will be patched rather quickly. Also, the distro encountering this issue should carry this patch until the linker is fixed.

Also, in your error report to sourceware.org you picked up on a bug originally from 2015, which I would expect that it has been fixed a long time ago.

@bluca
Copy link
Contributor Author

bluca commented Sep 22, 2025

Can you please also describe in which distro and version you are encountering this error? I am running tests also on ppc64 but not across a whole lot of distros. I haven't encountered this issue so far on ppc64. Also, if it's a linker issue I would expect that it will be patched rather quickly. Also, the distro encountering this issue should carry this patch until the linker is fixed.

Latest version building in Debian testing/unstable, and it has been reported on Ubuntu too. I assumed others would run in the same issue and hence I sent the PR.

Also, in your error report to sourceware.org you picked up on a bug originally from 2015, which I would expect that it has been fixed a long time ago.

Yes I found that by googling for the error, and it's the only hit. Given the message and the affected architecture is the same, it looked too much to be a concidence, so I reported it there. It's not exactly the same, as the original issue was solved, so it's likely a slightly different but related corner case - but I am not a compiler expert, so just speculating.

@stefanberger
Copy link
Owner

Latest version building in Debian testing/unstable, and it has been reported on Ubuntu too. I assumed others would run in the same issue and hence I sent the PR.

The issue I have with this patch is that I will never know when to remove it from the repo and I would think sooner or later it should be removed. Also, linker issues would probably be detected by other packages as well and shouldn't stick around for long.

@bluca
Copy link
Contributor Author

bluca commented Sep 23, 2025

I am not a compiler expert, let alone a ppc expert, so there's not much else I can do unfortunately. This has been broken since forever, and the only report I can find that is remotely related is the one already linked.

@stefanberger
Copy link
Owner

On Fedora 41 ppc64 with an older version of gcc:

$ uname -m
ppc64le
$ gcc -nostdlib -Lsrc/.libs -ltpms
/usr/bin/ld: warning: cannot find entry symbol _start; defaulting to 0000000010000248
$ gcc --version
gcc (GCC) 14.3.1 20250808 (Red Hat 14.3.1-3)
Copyright (C) 2024 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

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