Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 925347 - app-emulation/virtualbox-7.0.14-r2 has invisible linking issues with sys-devel/mold-2.4.0
Summary: app-emulation/virtualbox-7.0.14-r2 has invisible linking issues with sys-deve...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Viorel Munteanu
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: systemwide-mold
  Show dependency tree
 
Reported: 2024-02-23 21:08 UTC by Alex Buell
Modified: 2024-09-15 13:02 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alex Buell 2024-02-23 21:08:50 UTC
Building app-emulation/virtualbox-7.0.14-r2 with sys-devel/mold-2.4.0 is successful but running VirtualBoxVM results in this:

code]
alex@cobalt ~/.VirtualBox $ VirtualBoxVM --startvm "MS-DOS 6.22"
VirtualBoxVM: supR3HardenedMainGetTrustedMain: dlopen("/usr/lib64/virtualbox/VirtualBoxVM.so",) failed: /usr/lib64/virtualbox/UICommon.so: undefined symbol: _ZN8QPrinterC1ENS_11PrinterModeE
alex@cobalt ~/.VirtualBox $ c++filt
_ZN8QPrinterC1ENS_11PrinterModeE
QPrinter::QPrinter(QPrinter::PrinterMode)
[/code]

Please add this as a blocker for bug #830404 (https://bugs.gentoo.org/show_bug.cgi?id=830404)
Comment 1 Vasilis Lourdas 2024-06-12 16:44:35 UTC
Version 7.0.18-r1 still suffers with the current stable mold version (2.30.0).
Comment 3 Alex Buell 2024-08-18 11:19:12 UTC
As I understand this, you now disallow use of the mold linker if it is in use with this package? Isn't that like using a sticky plaster to hide the issue when it is mold that needs fixing?
Comment 4 Viorel Munteanu gentoo-dev 2024-08-18 11:51:14 UTC
Yes.  This is not really a fix, it's only avoiding the issue.  I'll change its status to WONTFIX.
Comment 5 Larry the Git Cow gentoo-dev 2024-08-18 13:32:36 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3d29494e273481027c03ce37785895241e21c6fd

commit 3d29494e273481027c03ce37785895241e21c6fd
Author:     Viorel Munteanu <ceamac@gentoo.org>
AuthorDate: 2024-08-18 13:30:56 +0000
Commit:     Viorel Munteanu <ceamac@gentoo.org>
CommitDate: 2024-08-18 13:32:19 +0000

    app-emulation/virtualbox: fix linking with mold
    
    Bug: https://bugs.gentoo.org/925347
    Signed-off-by: Viorel Munteanu <ceamac@gentoo.org>

 .../files/virtualbox-7.1.0_beta1-link-with-mold.patch       | 13 +++++++++++++
 app-emulation/virtualbox/virtualbox-7.1.0_beta1.ebuild      |  5 +++--
 2 files changed, 16 insertions(+), 2 deletions(-)
Comment 6 Viorel Munteanu gentoo-dev 2024-08-18 13:36:19 UTC
I think I found the cause, I've added a patch for virtualbox 7.1.0.

I won't test it with 7.0.20 now (and it's due for stabilization anyway), but chances are it works.  You can test it if you want (you'll have to remove tc-ld-force-bfd from the ebuild).

I'll test and apply the patch when upstream releases the next version.
Comment 7 Larry the Git Cow gentoo-dev 2024-09-15 13:02:31 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2498b1e8704286041627b759f818bf120b3b09be

commit 2498b1e8704286041627b759f818bf120b3b09be
Author:     Viorel Munteanu <ceamac@gentoo.org>
AuthorDate: 2024-09-15 11:26:40 +0000
Commit:     Viorel Munteanu <ceamac@gentoo.org>
CommitDate: 2024-09-15 13:01:51 +0000

    app-emulation/virtualbox: add 7.1.0
    
    This is the new 7.1 branch.
    I will not stabilize this version, let's wait for 7.1.1.
    
    Closes: https://bugs.gentoo.org/925347
    Signed-off-by: Viorel Munteanu <ceamac@gentoo.org>

 app-emulation/virtualbox/Manifest                  |   4 +-
 ...tualbox-7.1.0-disable-rebuild-iPxeBiosBin.patch |  18 +
 app-emulation/virtualbox/virtualbox-7.1.0.ebuild   | 744 +++++++++++++++++++++
 3 files changed, 765 insertions(+), 1 deletion(-)