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
Created attachment 276848 [details] complete build log
Created attachment 276854 [details] Output of emerge --info =dev-lang/gnat-gcc-4.3.2
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
Created attachment 277729 [details] build.log for 4.3.3 on ~ppc same here for 4.3.3 on ~ppc.
commenting export CPATH="${GNATLIB}/include" in gnatbuild.eclass works for me. You should try it.
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..
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.
(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.
(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.
(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.
The versions 4.3.2 and 4.3.3 do not exist in portage. Is this bug obsolete?
Have anybody tried with any other 4.3.x version?
(In reply to Pacho Ramos from comment #12) > Have anybody tried with any other 4.3.x version?