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

Bug 947758

Summary: dev-lisp/gcl-2.6.15_pre3 fails to compile: checking for required object alignment.. configure: error: Cannot find object alignent
Product: Gentoo Linux Reporter: Agostino Sarubbo <ago>
Component: Current packagesAssignee: Common Lisp Bugs <common-lisp>
Status: CONFIRMED ---    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 880545    
Attachments: build.log
1-config.log

Description Agostino Sarubbo gentoo-dev 2025-01-09 07:44:04 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: dev-lisp/gcl-2.6.15_pre3 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#CF0014
Comment 1 Agostino Sarubbo gentoo-dev 2025-01-09 07:44:05 UTC
Created attachment 916168 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2025-01-09 07:44:06 UTC
Created attachment 916169 [details]
1-config.log

1-config.log
Comment 3 Agostino Sarubbo gentoo-dev 2025-01-09 07:44:07 UTC
Error(s) that match a know pattern in addition to what has been reported in the summary:


checking for required object alignment... configure: error: Cannot find object alignent
checking for required object alignment... configure: error: Cannot find object alignent
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2025-01-09 07:55:17 UTC
Nice! A C23 issue:
```
configure:6712: result: 12
configure:6719: checking for required object alignment
configure:6758: x86_64-pc-linux-gnu-gcc -o conftest -march=x86-64 -fpermissive -pipe -pipe -frecord-gcc-switches -fno-diagnostics-color -fmessage-length=0 -fno-stack-protector -fsigned-char -pipe -fcommon -fno-builtin-malloc -fno-builtin-free -fno-PIE -fno-pie -fno-PIC -fno-pic -Wall -Wno-empty-body -Wno-unused-but-set-variable   -Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,--defsym=__gentoo_check_ldflags__=0 -no-pie conftest.c  >&5
In file included from conftest.c:36:
./h/lu.h:4:13: error: 'bool' cannot be defined via 'typedef'
    4 | typedef int bool;
      |             ^~~~
./h/lu.h:4:13: note: 'bool' is a keyword with '-std=c23' onwards
./h/lu.h:4:1: warning: useless type name in empty declaration
    4 | typedef int bool;
      | ^~~~~~~
conftest.c: In function 'main':
conftest.c:45:17: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
   45 |                 for (i=1;i && NOT_OBJECT_ALIGNED(i); i<<=1);
      |                 ^~~
conftest.c:46:21: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
   46 |                     if (!i) return -1;
      |                     ^~
configure:6758: $? = 1
```