Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 943904 - sys-block/mtx-1.3.12 fails to compile: mtx.h:225:16: error: expected identifier before false
Summary: sys-block/mtx-1.3.12 fails to compile: mtx.h:225:16: error: expected identifi...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: c23-porting
  Show dependency tree
 
Reported: 2024-11-19 08:26 UTC by Agostino Sarubbo
Modified: 2025-02-12 06:46 UTC (History)
1 user (show)

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


Attachments
build.log (build.log,56.99 KB, text/plain)
2024-11-19 08:26 UTC, Agostino Sarubbo
Details
emerge --info (tdr-emerge--info.txt,6.15 KB, text/plain)
2025-02-12 06:45 UTC, tdr
Details
build fail log 12 feb 2025 (mtx-1.3.12:20250212-064250.log,11.30 KB, text/plain)
2025-02-12 06:46 UTC, tdr
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2024-11-19 08:26:45 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: sys-block/mtx-1.3.12 fails to compile.
Discovered on: amd64 (internal ref: gcc15_tinderbox)
System: GCC-15-SYSTEM (https://wiki.gentoo.org/wiki/Project:Tinderbox/Common_Issues_Helper#GCC-15)

Info about the issue:
https://wiki.gentoo.org/wiki/Project:Tinderbox/Common_Issues_Helper#CF0003
Comment 1 Agostino Sarubbo gentoo-dev 2024-11-19 08:26:46 UTC
Created attachment 909712 [details]
build.log

build log and emerge --info
Comment 2 tdr 2025-02-12 06:44:47 UTC
I ran into this today using gcc-15.0.1_pre20250209; the error is slightly different but probably the same:


In file included from mtxl.c:29:
mtx.h:225:16: error: cannot use keyword ‘false’ as enumeration constant
  225 | typedef enum { false, true } boolean;
      |                ^~~~~
mtx.h:225:16: note: ‘false’ is a keyword with ‘-std=c23’ onwards
In file included from scsitape.c:42:
mtx.h:225:16: error: cannot use keyword ‘false’ as enumeration constant
  225 | typedef enum { false, true } boolean;
      |                ^~~~~
In file included from tapeinfo.c:51:
mtx.h:225:16: error: cannot use keyword ‘false’ as enumeration constant
  225 | typedef enum { false, true } boolean;
      |                ^~~~~
mtx.h:225:16: note: ‘false’ is a keyword with ‘-std=c23’ onwards
mtx.h:225:16: note: ‘false’ is a keyword with ‘-std=c23’ onwards
In file included from mtx.c:39:
mtx.h:225:16: error: cannot use keyword ‘false’ as enumeration constant
  225 | typedef enum { false, true } boolean;
      |                ^~~~~
mtx.h:225:16: note: ‘false’ is a keyword with ‘-std=c23’ onwards
In file included from loaderinfo.c:40:
mtx.h:225:16: error: cannot use keyword ‘false’ as enumeration constant
  225 | typedef enum { false, true } boolean;
      |                ^~~~~
mtx.h:225:16: note: ‘false’ is a keyword with ‘-std=c23’ onwards
In file included from scsieject.c:25:
mtx.h:225:16: error: cannot use keyword ‘false’ as enumeration constant
  225 | typedef enum { false, true } boolean;
      |                ^~~~~
mtx.h:225:16: note: ‘false’ is a keyword with ‘-std=c23’ onwards
Comment 3 tdr 2025-02-12 06:45:08 UTC
Created attachment 918803 [details]
emerge --info
Comment 4 tdr 2025-02-12 06:46:32 UTC
Created attachment 918804 [details]
build fail log 12 feb 2025