Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 788298

Summary: dev-haskell/alsa-mixer-0.3.0 fails to compile
Product: Gentoo Linux Reporter: Agostino Sarubbo <ago>
Component: Current packagesAssignee: Gentoo's Haskell Language team <haskell>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: https://github.com/visq/language-c/issues/74
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 732706    
Attachments: build.log

Description Agostino Sarubbo gentoo-dev 2021-05-05 06:54:14 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: dev-haskell/alsa-mixer-0.3.0 fails to compile.
Discovered on: amd64 (internal ref: tinderbox)

NOTE:
This machine uses GCC-11: https://gcc.gnu.org/gcc-11/porting_to.html
If you think this is a GCC-11 related issue, please block bug 732706.
Comment 1 Agostino Sarubbo gentoo-dev 2021-05-05 06:54:16 UTC
Created attachment 706134 [details]
build.log

build log and emerge --info
Comment 2 Sergei Trofimovich (RETIRED) gentoo-dev 2021-05-05 07:58:38 UTC
"""
dist/build/Sound/ALSA/Mixer/Internal.i:1: (column 1) [ERROR]  >>> Lexical error !
  The character '#' does not fit here.
"""

It's a side effect of gcc-11's linue number changes.
Comment 3 Larry the Git Cow gentoo-dev 2021-05-05 08:05:02 UTC
The bug has been closed via the following commit(s):

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

commit 294d3baca2c4c837a45324b2dcedcc4ca654ecc1
Author:     Sergei Trofimovich <slyfox@gentoo.org>
AuthorDate: 2021-05-05 08:02:50 +0000
Commit:     Sergei Trofimovich <slyfox@gentoo.org>
CommitDate: 2021-05-05 08:04:58 +0000

    dev-haskell/language-c: handle gcc-11's #line 0 macros
    
    Reported-by: Agostino Sarubbo
    Closes: https://bugs.gentoo.org/788298
    Package-Manager: Portage-3.0.18, Repoman-3.0.3
    Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>

 .../language-c/files/language-c-0.8.3-gcc-11.patch | 41 ++++++++++++++++++++++
 dev-haskell/language-c/language-c-0.8.3-r1.ebuild  | 41 ++++++++++++++++++++++
 2 files changed, 82 insertions(+)