Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 915210 - net-misc/spice-gtk-0.42-r3 fails to link with clang-17: ld.lld: error: version script assignment of 'SPICEGTK_1' to symbol 'spice_display_get_grab_keys' failed: symbol not defined
Summary: net-misc/spice-gtk-0.42-r3 fails to link with clang-17: ld.lld: error: versio...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Virtualization Team
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks: LD-is-lld, systemwide-lld 912821
  Show dependency tree
 
Reported: 2023-10-05 11:58 UTC by ppw0
Modified: 2024-05-05 12:54 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build log (net-misc:spice-gtk-0.42-r3:20231005-113222.log,106.16 KB, text/x-log)
2023-10-05 11:58 UTC, ppw0
Details
emerge --info (emerge_info.log,7.38 KB, text/x-log)
2023-10-05 11:58 UTC, ppw0
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ppw0 2023-10-05 11:58:03 UTC
Created attachment 872174 [details]
build log

In a clang-17[default-libcxx] environment, net-misc/spice-gtk-0.42-r3 will fail to link during emerge with the following error message:
```
ld.lld: error: version script assignment of 'SPICEGTK_1' to symbol 'spice_display_get_grab_keys' failed: symbol not de
fined
ld.lld: error: version script assignment of 'SPICEGTK_1' to symbol 'spice_display_get_pixbuf' failed: symbol not defin
ed
ld.lld: error: version script assignment of 'SPICEGTK_1' to symbol 'spice_display_get_type' failed: symbol not defined
ld.lld: error: version script assignment of 'SPICEGTK_1' to symbol 'spice_display_key_event_get_type' failed: symbol not defined
ld.lld: error: version script assignment of 'SPICEGTK_1' to symbol 'spice_display_keyboard_ungrab' failed: symbol not defined
ld.lld: error: version script assignment of 'SPICEGTK_1' to symbol 'spice_display_mouse_ungrab' failed: symbol not defined
ld.lld: error: version script assignment of 'SPICEGTK_1' to symbol 'spice_display_new' failed: symbol not defined
ld.lld: error: version script assignment of 'SPICEGTK_1' to symbol 'spice_display_new_with_monitor' failed: symbol not defined
ld.lld: error: version script assignment of 'SPICEGTK_1' to symbol 'spice_display_send_keys' failed: symbol not defined
ld.lld: error: version script assignment of 'SPICEGTK_1' to symbol 'spice_display_set_grab_keys' failed: symbol not defined
ld.lld: error: version script assignment of 'SPICEGTK_1' to symbol 'spice_grab_sequence_as_string' failed: symbol not defined
ld.lld: error: version script assignment of 'SPICEGTK_1' to symbol 'spice_grab_sequence_copy' failed: symbol not defined
ld.lld: error: version script assignment of 'SPICEGTK_1' to symbol 'spice_grab_sequence_free' failed: symbol not defined
ld.lld: error: version script assignment of 'SPICEGTK_1' to symbol 'spice_grab_sequence_get_type' failed: symbol not defined
ld.lld: error: version script assignment of 'SPICEGTK_1' to symbol 'spice_grab_sequence_new' failed: symbol not defined
ld.lld: error: version script assignment of 'SPICEGTK_1' to symbol 'spice_grab_sequence_new_from_string' failed: symbol not defined
ld.lld: error: version script assignment of 'SPICEGTK_1' to symbol 'spice_gtk_session_copy_to_guest' failed: symbol not defined
ld.lld: error: version script assignment of 'SPICEGTK_1' to symbol 'spice_gtk_session_get' failed: symbol not defined
ld.lld: error: version script assignment of 'SPICEGTK_1' to symbol 'spice_gtk_session_get_type' failed: symbol not defined
ld.lld: error: version script assignment of 'SPICEGTK_1' to symbol 'spice_gtk_session_paste_from_guest' failed: symbol not defined
ld.lld: error: too many errors emitted, stopping now (use --error-limit=0 to see all errors)
clang: error: linker command failed with exit code 1 (use -v to see invocation)
ninja: build stopped: subcommand failed.
```

This can be avoided by passing "-Wl,--undefined-version" to LDFLAGS.

Attaching logs.
Comment 1 ppw0 2023-10-05 11:58:24 UTC
Created attachment 872175 [details]
emerge --info
Comment 2 Larry the Git Cow gentoo-dev 2024-05-05 12:54:05 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=330c8f61442cdeba8962c44c186fd0e8c908ac73

commit 330c8f61442cdeba8962c44c186fd0e8c908ac73
Author:     Kostadin Shishmanov <kocelfc@tutanota.com>
AuthorDate: 2024-05-05 12:37:03 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-05-05 12:53:45 +0000

    net-misc/spice-gtk: enable py3.12, backport lld 17 fix
    
    Closes: https://bugs.gentoo.org/915210
    Closes: https://bugs.gentoo.org/929731
    Signed-off-by: Kostadin Shishmanov <kocelfc@tutanota.com>
    Closes: https://github.com/gentoo/gentoo/pull/36566
    Signed-off-by: Sam James <sam@gentoo.org>

 .../spice-gtk/files/spice-gtk-0.42-lld17-fix.patch | 167 +++++++++++++++++++++
 net-misc/spice-gtk/spice-gtk-0.42-r4.ebuild        | 160 ++++++++++++++++++++
 net-misc/spice-gtk/spice-gtk-9999.ebuild           |   2 +-
 3 files changed, 328 insertions(+), 1 deletion(-)