Bug 379272

Summary: Unable to compile minuet on NixOS
Product: [Applications] minuet Reporter: Peter Hoeg <peter>
Component: generalAssignee: Sandro Andrade <sandroandrade>
Status: RESOLVED WORKSFORME    
Severity: major CC: andrius
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: CMakeOutput.log
attachment-23099-0.html

Description Peter Hoeg 2017-04-27 01:42:26 UTC
Created attachment 105214 [details]
CMakeOutput.log

I'm trying to package minuet for NixOS but the linking stage fails:

[ 94%] Building CXX object src/app/CMakeFiles/minuet.dir/exercisecontroller.cpp.o
[ 96%] Building CXX object src/app/CMakeFiles/minuet.dir/qrc_qml.cpp.o
[ 96%] Built target minuetfluidsynthsoundcontroller
[ 98%] Building CXX object src/app/CMakeFiles/minuet.dir/minuet_automoc.cpp.o
[100%] Linking CXX executable minuet
/nix/store/ykpcyj4f8mpjb0hjagrnnbxh0c7m3m3n-qtquickcontrols2-5.8.0/lib/libQt5QuickTemplates2.so.5:(*IND*+0x0): multiple definition of `_end'
/nix/store/ykpcyj4f8mpjb0hjagrnnbxh0c7m3m3n-qtquickcontrols2-5.8.0/lib/libQt5QuickTemplates2.so.5:(*IND*+0x0): multiple definition of `_edata'
/nix/store/ykpcyj4f8mpjb0hjagrnnbxh0c7m3m3n-qtquickcontrols2-5.8.0/lib/libQt5QuickTemplates2.so.5:(*IND*+0x0): multiple definition of `__bss_start'
collect2: error: ld returned 1 exit status
make[2]: *** [src/app/CMakeFiles/minuet.dir/build.make:296: src/app/minuet] Error 1
make[1]: *** [CMakeFiles/Makefile2:1466: src/app/CMakeFiles/minuet.dir/all] Error 2
make: *** [Makefile:128: all] Error 2
Comment 1 Andrius Štikonas 2017-10-23 19:40:16 UTC
I get similar error (just _bss_start) with Qt 5.9.2 on Gentoo.
Comment 2 Peter Hoeg 2017-10-24 03:16:06 UTC
Turns out it's not a minuet problem as such, but is caused by Qt being linked using the gold linker: https://github.com/NixOS/nixpkgs/pull/30305/files#diff-29285183ecf24ebb9256e396969e5c31
Comment 3 Andrius Štikonas 2017-10-24 03:17:56 UTC
Created attachment 108532 [details]
attachment-23099-0.html

I'm not using gold though...

On 24 October 2017 04:16:06 BST, Peter Hoeg <bugzilla_noreply@kde.org> wrote:
>https://bugs.kde.org/show_bug.cgi?id=379272
>
>--- Comment #2 from Peter Hoeg <peterhoeg@gmail.com> ---
>Turns out it's not a minuet problem as such, but is caused by Qt being
>linked
>using the gold linker:
>https://github.com/NixOS/nixpkgs/pull/30305/files#diff-29285183ecf24ebb9256e396969e5c31
>
>-- 
>You are receiving this mail because:
>You are on the CC list for the bug.
Comment 4 Peter Hoeg 2021-04-14 06:29:31 UTC
At least as of 20.12.2 and Qt 5.15.2 it's fine again.