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

Bug 371322

Summary: dev-lang/gnat-gcc-4.3.2 - work/gcc-4.3.2/libgcc/../gcc/unwind-pe.h:136: error: expected declaration specifiers or ‘...’ before ‘_uleb128_t’
Product: Gentoo Linux Reporter: Jabby <jab.canu>
Component: EclassesAssignee: ada team [OBSOLETE] <ada+disabled>
Status: RESOLVED TEST-REQUEST    
Severity: normal CC: esigra, hiyuh.root, jab.canu, jackhill, pacho
Priority: Normal    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 317971    
Attachments: complete build log
Output of emerge --info =dev-lang/gnat-gcc-4.3.2
build.log for 4.3.3 on ~ppc

Description Jabby 2011-06-12 22:03:01 UTC
dev-lang/gnat-gcc-4.3.2 fails to build with the following error:
unwind-pe.h:136: error: expected declaration specifiers or ‘...’ before ‘_uleb128_t’
[...]


Reproducible: Always

Steps to Reproduce:
1.# MAKEOPTS="-j1" emerge -1 gnat-gcc
2.
3.
Actual Results:  
Compilation fails

Expected Results:  
Compilation succeeds
Comment 1 Jabby 2011-06-12 22:05:13 UTC
Created attachment 276848 [details]
complete build log
Comment 2 Jabby 2011-06-12 22:07:45 UTC
Created attachment 276854 [details]
Output of emerge --info =dev-lang/gnat-gcc-4.3.2
Comment 3 Jabby 2011-06-15 00:32:54 UTC
I think the problem comes from the last commit of gnatbuild.eclass (1.52)

CPATH is set to "${GNATLIB}/include" and this directory contains unwind.h

So the preprocessor take into account unwind.h from this directory while it should take into account build/gcc/include/unwind.h
Comment 4 hiyuh 2011-06-22 03:56:10 UTC
Created attachment 277729 [details]
build.log for 4.3.3 on ~ppc

same here for 4.3.3 on ~ppc.
Comment 5 Jabby 2011-06-22 07:34:24 UTC
commenting export CPATH="${GNATLIB}/include" in gnatbuild.eclass works for me.
You should try it.
Comment 6 George Shapovalov (RETIRED) gentoo-dev 2011-06-22 08:15:04 UTC
So, this is a ppc issue? I don't get that on amd64 or x86. Also, does this happen on 4.4 too? (that one has a new bootstrap and ~ppc in KEYWORDS again) I can pull the unwind.h and repackage the bootstrap, but I would like to know whether this is 4.3 specific and what is the situation with 4.4.

And, how come this was not triggered before? Old bootstraps used that wrapper  that was pulling in -I${libdir}/include for ages already. I must be missing some difference about ppc arch..
Comment 7 Jabby 2011-06-22 10:02:47 UTC
George,
1.
I get the bug on my x86 gentoo (with only stable packages)

2.
I cannot test this issue with unstable gnat-gcc-4.4 because
because:
gnat-gcc-4.4.3 fails with configure: error: C compiler cannot create executables
gnat-gcc-4.4.5 fails with configure: error: GNAT is required to build ada

Let me know if you need any other information.
Comment 8 George Shapovalov (RETIRED) gentoo-dev 2011-06-22 10:38:11 UTC
(In reply to comment #7)
> I get the bug on my x86 gentoo (with only stable packages)
Yea, sorry, new bootstrap for 4.3 x86 (and amd64) is in the works, should fix this. 4.4 is already fine, so you may try that one meanwhile.

> 
> 2.
> I cannot test this issue with unstable gnat-gcc-4.4 because
> because:
> gnat-gcc-4.4.3 fails with configure: error: C compiler cannot create
> executables
> gnat-gcc-4.4.5 fails with configure: error: GNAT is required to build ada
Ah, that was sparc, not ppc, that has been updated in 4.4. So, indeed, I may ask for your help little bit later (I will need a tbz2 created by portage). First, though, I need to sort out the issue with ppc in 4.3 then.
Comment 9 hiyuh 2011-06-23 04:16:50 UTC
(In reply to comment #8)
> First, though, I need to sort out the issue with ppc in 4.3 then.

please let me know if you'd like to test something on ~ppc.
Comment 10 hiyuh 2011-07-19 05:54:23 UTC
(In reply to comment #5)
> commenting export CPATH="${GNATLIB}/include" in gnatbuild.eclass works for me.
> You should try it.

FYI, i tried this on ~ppc and it works.
Comment 11 Erik 2014-12-26 13:28:36 UTC
The versions 4.3.2 and 4.3.3 do not exist in portage. Is this bug obsolete?
Comment 12 Pacho Ramos gentoo-dev 2014-12-28 15:13:39 UTC
Have anybody tried with any other 4.3.x version?
Comment 13 Pacho Ramos gentoo-dev 2015-05-13 20:49:48 UTC
(In reply to Pacho Ramos from comment #12)
> Have anybody tried with any other 4.3.x version?