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

Bug 640322

Summary: dev-lisp/gcl-2.6.10 - main.c: In function 'main': main.c:451:32: error: storage size of 'estack' isn't known
Product: Gentoo Linux Reporter: Vincent-Xavier JUMEL <endymion+gentoo>
Component: Current packagesAssignee: Common Lisp Bugs <common-lisp>
Status: CONFIRMED ---    
Severity: normal CC: kaikaikai, lssndrbarbieri
Priority: Normal    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 612382    
Attachments: build.log
build.log
build.log.gz
emerge --info
emerge-info.txt
dev-lisp:gcl-2.6.10:20180414-225321.log
emerge-history.txt
environment
etc.portage.tbz2
logs.tbz2
temp.tbz2
Change struct sigaltstack to stack_t in main.c
gcl-2.6.10 ebuild update

Description Vincent-Xavier JUMEL 2017-12-08 19:34:32 UTC
All in tree version of gcl fails with gcc-7.2.0 and profile 17.0
Comment 1 Vincent-Xavier JUMEL 2017-12-08 19:35:02 UTC
Created attachment 508974 [details]
build.log
Comment 2 Vincent-Xavier JUMEL 2017-12-08 19:44:50 UTC
Created attachment 508976 [details]
build.log
Comment 3 Vincent-Xavier JUMEL 2017-12-08 19:45:23 UTC
Created attachment 508978 [details]
build.log.gz
Comment 4 Vincent-Xavier JUMEL 2017-12-08 19:45:40 UTC
Created attachment 508980 [details]
emerge --info
Comment 5 Toralf Förster gentoo-dev 2018-04-15 08:18:56 UTC
appeared recently at the tinderbox image 17.0-desktop-gnome_libressl_20180405-174043
Comment 6 Toralf Förster gentoo-dev 2018-04-15 08:18:59 UTC
Created attachment 527420 [details]
emerge-info.txt
Comment 7 Toralf Förster gentoo-dev 2018-04-15 08:19:03 UTC
Created attachment 527422 [details]
dev-lisp:gcl-2.6.10:20180414-225321.log
Comment 8 Toralf Förster gentoo-dev 2018-04-15 08:19:07 UTC
Created attachment 527424 [details]
emerge-history.txt
Comment 9 Toralf Förster gentoo-dev 2018-04-15 08:19:10 UTC
Created attachment 527426 [details]
environment
Comment 10 Toralf Förster gentoo-dev 2018-04-15 08:19:13 UTC
Created attachment 527428 [details]
etc.portage.tbz2
Comment 11 Toralf Förster gentoo-dev 2018-04-15 08:19:16 UTC
Created attachment 527430 [details]
logs.tbz2
Comment 12 Toralf Förster gentoo-dev 2018-04-15 08:19:20 UTC
Created attachment 527432 [details]
temp.tbz2
Comment 13 Cyprien Nicolas (fulax) 2019-09-14 12:53:39 UTC
This seems related to glibc 2.25.90 which has removed the `struct sigaltstack` type. According to `sigaltstack(2)` the type annotation to use is `stack_t`.

I have a patch to solve the type error, but then we encounter a linking error due to function inlining, reported in bug #632014

The inlining issue has been fixed in gcl-2.6.12 ebuild by adding 

  append-cflags $(test-flags-CC -fgnu89-inline)

during the configure phase.

With both the stack_t patch and the CC flags patch, we then encounter the same issue as gcl-2.6.12 described in bug #622120.
Comment 14 Cyprien Nicolas (fulax) 2019-09-14 12:56:41 UTC
Created attachment 589800 [details, diff]
Change struct sigaltstack to stack_t in main.c
Comment 15 Cyprien Nicolas (fulax) 2019-09-14 12:58:40 UTC
Created attachment 589802 [details, diff]
gcl-2.6.10 ebuild update