Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 860861 - media-sound/guitarix-0.44.1 fails to compile (lto): task in guitarix failed with exit status 1
Summary: media-sound/guitarix-0.44.1 fails to compile (lto): task in guitarix failed w...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Miroslav Šulc
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks: lto
  Show dependency tree
 
Reported: 2022-07-25 06:53 UTC by Agostino Sarubbo
Modified: 2024-03-04 10:32 UTC (History)
3 users (show)

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


Attachments
build.log (build.log,534.60 KB, text/plain)
2022-07-25 06:53 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2022-07-25 06:53:11 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: media-sound/guitarix-0.44.1 fails to compile (lto).
Discovered on: amd64 (internal ref: lto_tinderbox)

NOTE:
This machine uses lto with CFLAGS=-flto -Werror=odr -Werror=lto-type-mismatch -Werror=strict-aliasing
Comment 1 Agostino Sarubbo gentoo-dev 2022-07-25 06:53:14 UTC
Created attachment 794153 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2022-07-25 06:53:16 UTC
Error(s) that match a know pattern in addition to what has been reported in the summary:


Checking for 'jackd1'                    : not found 
collect2: error: ld returned 1 exit status
Comment 3 mrwizardwizard 2024-01-01 23:15:16 UTC
Getting the same compile error, guitarix seems to build with flto on by default (-flto=auto) with fuse-linker-plugin

/usr/lib/gcc/x86_64-pc-linux-gnu/13.2.1/../../../../x86_64-pc-linux-gnu/bin/ld: src/gx_head/gui/gx_main.cpp.1.o: plugin needed to handle lto object
/usr/lib/gcc/x86_64-pc-linux-gnu/13.2.1/../../../../x86_64-pc-linux-gnu/bin/ld:../src/gx_head/guitarix.lds:1: undefined section `.rt.text' referenced in expression
collect2: error: ld returned 1 exit status
Comment 4 Larry the Git Cow gentoo-dev 2024-01-03 08:43:52 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4590f31ae7dabc26a98483768c051ea216f4466e

commit 4590f31ae7dabc26a98483768c051ea216f4466e
Author:     Alexander Tsoy <alexander@tsoy.me>
AuthorDate: 2024-01-02 00:17:49 +0000
Commit:     Miroslav Šulc <fordfrog@gentoo.org>
CommitDate: 2024-01-03 08:43:37 +0000

    media-sound/guitarix: fix LTO build
    
    Pass --cxxflags to waf configure. This allows waf to do some magic and
    append -ffat-lto-objects to CXXFLAGS.
    
    Also unexport CXXFLAGS and LDFLAGS before waf configure to prevent duplicating
    flags.
    
    Closes: https://bugs.gentoo.org/860861
    Signed-off-by: Alexander Tsoy <alexander@tsoy.me>
    Closes: https://github.com/gentoo/gentoo/pull/34597
    Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>

 media-sound/guitarix/guitarix-0.44.1.ebuild | 5 ++++-
 media-sound/guitarix/guitarix-9999.ebuild   | 5 ++++-
 2 files changed, 8 insertions(+), 2 deletions(-)
Comment 5 Andrew Udvare 2024-03-04 08:44:13 UTC
Still getting an LTO-related error for this one. Should I open a new ticket?

Output shows a number of these kinds of messages:

/usr/lib/gcc/x86_64-pc-linux-gnu/13/../../../../x86_64-pc-linux-gnu/bin/ld: src/gx_head/engine/ladspaplugin.cpp.1.o: plugin needed to handle lto object

And:

/usr/lib/gcc/x86_64-pc-linux-gnu/13/../../../../x86_64-pc-linux-gnu/bin/ld:../src/gx_head/guitarix.lds:1: undefined section `.rt.text' referenced in expression
collect2: error: ld returned 1 exit status
Comment 6 Alexander Tsoy 2024-03-04 10:32:33 UTC
(In reply to Andrew Udvare from comment #5)
> Still getting an LTO-related error for this one. Should I open a new ticket?
Yes, please. This is probably a different issue. I tested with the same *FLAGS as @ago end everything worked fine on my system.