Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 924767 - dev-lang/mercury-22.01.1 fails to compile: x86_64_regs.h:37:25: error: global register variable follows a function definition
Summary: dev-lang/mercury-22.01.1 fails to compile: x86_64_regs.h:37:25: error: global...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: lto
  Show dependency tree
 
Reported: 2024-02-17 11:56 UTC by Agostino Sarubbo
Modified: 2024-10-14 05:27 UTC (History)
1 user (show)

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


Attachments
build.log (build.log,641.54 KB, text/plain)
2024-02-17 11:56 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 2024-02-17 11:56:13 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: dev-lang/mercury-22.01.1 fails to compile.
Discovered on: amd64 (internal ref: lto_tinderbox)
System: LTO-SYSTEM (https://wiki.gentoo.org/wiki/Project:Tinderbox/Common_Issues_Helper#LTO)

Info about the issue:
https://wiki.gentoo.org/wiki/Project:Tinderbox/Common_Issues_Helper#CF0014
Comment 1 Agostino Sarubbo gentoo-dev 2024-02-17 11:56:15 UTC
Created attachment 885219 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2024-02-17 11:56:16 UTC
Error(s) that match a know pattern in addition to what has been reported in the summary:


../scripts/mmc: line 35: /usr/bin/mercury_compile: No such file or directory
configure: WARNING: /usr/lib/cgi-bin does not exist.
machdeps/x86_64_regs.h:37:25: error: global register variable follows a function definition
Comment 3 Eli Schwartz gentoo-dev 2024-10-11 05:21:25 UTC
global register variables and LTO don't mix.
Comment 4 Larry the Git Cow gentoo-dev 2024-10-14 05:27:59 UTC
The bug has been closed via the following commit(s):

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

commit c316d7e2bbe573c43b1ea26751da5a48f14a0c3c
Author:     Eli Schwartz <eschwartz@gentoo.org>
AuthorDate: 2024-10-11 05:22:44 +0000
Commit:     Eli Schwartz <eschwartz@gentoo.org>
CommitDate: 2024-10-14 05:27:11 +0000

    dev-lang/mercury: mark as LTO-unsafe
    
    It is using global register variables, and there's a GCC bug that makes
    this not work with lto.
    
    Closes: https://bugs.gentoo.org/924767
    Signed-off-by: Eli Schwartz <eschwartz@gentoo.org>

 dev-lang/mercury/mercury-22.01.1-r1.ebuild | 5 +++++
 1 file changed, 5 insertions(+)