Bug 104301 - lang/gnat-gcc34 does not build
Summary: lang/gnat-gcc34 does not build
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Boris Samorodov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-10-11 17:30 UTC by Václav Haisman
Modified: 2006-10-31 23:20 UTC (History)
0 users

See Also:


Attachments
patch_34 (4.55 KB, text/plain)
2006-10-30 04:36 UTC, Karel Miklav
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Václav Haisman 2006-10-11 17:30:25 UTC
Hi,
lang/gnat-gcc34 does not build. I is required as bootstrap tool for gnat-gcc41, that I wanted to install.

adagcc -c   -g  -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes     -DHAVE_CONFIG_H -I/usr/local/include   -I. -I. -I.././../gcc-3.4.6/gcc -I.././../gcc-3.4.6/gcc/. -I.././../gcc-3.4.6/gcc/../include  .././../gcc-3.4.6/gcc/dwarf2out.c -o dwarf2out.o
In file included from .././../gcc-3.4.6/gcc/dwarf2out.c:60:
./../gcc-3.4.6/gcc/../include/md5.h:92: warning: no semicolon at end of struct or union
./../gcc-3.4.6/gcc/../include/md5.h:92: parse error before `ATTRIBUTE_ALIGNED_ALIGNOF'
././../gcc-3.4.6/gcc/dwarf2out.c: In function `compute_section_prefix':
././../gcc-3.4.6/gcc/dwarf2out.c:5757: storage size of `ctx' isn't known
././../gcc-3.4.6/gcc/dwarf2out.c:5757: warning: unused variable `ctx'
gmake[2]: *** [dwarf2out.o] Error 1
gmake[2]: Leaving directory `/usr/ports/lang/gnat-gcc34/work/build/gcc'
gmake[1]: *** [stage1_build] Error 2
gmake[1]: Leaving directory `/usr/ports/lang/gnat-gcc34/work/build/gcc'
gmake: *** [bootstrap] Error 2
*** Error code 2

Stop in /usr/ports/lang/gnat-gcc34.
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2006-10-11 17:32:09 UTC
State Changed
From-To: open->feedback

Awaiting maintainers feedback
Comment 2 Karel Miklav 2006-10-12 18:26:38 UTC
Vaclav, I was not able to reproduce the error. Could
you please send me the whole build script?

--

Regards,
Karel miklav
Comment 3 Václav Haisman 2006-10-12 19:08:07 UTC
This is a multi-part message in MIME format.
Comment 4 Karel Miklav 2006-10-13 21:36:32 UTC
Yes, that's it. But it did not help, unfortunately. Please give me some 
more hints like:

setenv
pkg_version -v
find /usr/local/include -name ansidecl.h
Comment 5 Karel Miklav 2006-10-13 21:36:55 UTC
Yes, that's it. But it did not help, unfortunately. Please give me some 
more hints like:

setenv
pkg_version -v
find /usr/local/include -name ansidecl.h
Comment 6 Václav Haisman 2006-10-14 07:34:31 UTC

Karel Miklav wrote, On 13.10.2006 22:36:
> Yes, that's it. But it did not help, unfortunately. Please give me some
> more hints like:
> 
> setenv
> pkg_version -v
> find /usr/local/include -name ansidecl.h

logout::root:/usr/ports/lang/gnat-gcc34> pkg_which /usr/local/include/ansidecl.h
libbfd-2.16.1

Yup, this is it, I immediately realised this is the problem when I read your
email. It is a bug in GCC 2.8.x in how it searches include paths and it ends
up using wrong ansidecl.h. I have already seen it few years ago but I forgot
about it.

Maybe, the port should warn about it or have conflict with libbfd port.
Anyway, thanks hint :)

--
VH
Comment 7 Václav Haisman 2006-10-15 19:05:54 UTC
This is a multi-part message in MIME format.
Comment 8 Karel Miklav 2006-10-15 20:37:09 UTC
Great, but are you able to build the port now? I've
installed libbfd but could not reproduce the error.

I tried to thrash the ansidecl.h before that, but
couldn't break the build process where you did...
Comment 9 Václav Haisman 2006-10-15 22:31:33 UTC

Karel Miklav wrote, On 15.10.2006 21:37:
> Great, but are you able to build the port now? I've
> installed libbfd but could not reproduce the error.
> 
> I tried to thrash the ansidecl.h before that, but
> couldn't break the build process where you did...

Yes,
after uninstalling the port I was able to build it.

--
VH
Comment 10 Václav Haisman 2006-10-15 23:44:19 UTC

Václav Haisman wrote, On 15.10.2006 23:31:
> 
> Karel Miklav wrote, On 15.10.2006 21:37:
>> Great, but are you able to build the port now? I've
>> installed libbfd but could not reproduce the error.
>>
>> I tried to thrash the ansidecl.h before that, but
>> couldn't break the build process where you did...
> Yes,
> after uninstalling the port I was able to build it.

For the record, here is link to the PR from when I first seen this bug:
<http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17803>

--
wilx

Comment 11 Václav Haisman 2006-10-15 23:54:04 UTC

Václav Haisman wrote, On 16.10.2006 0:44:
> 
> Václav Haisman wrote, On 15.10.2006 23:31:
>> Karel Miklav wrote, On 15.10.2006 21:37:
>>> Great, but are you able to build the port now? I've
>>> installed libbfd but could not reproduce the error.
>>>
>>> I tried to thrash the ansidecl.h before that, but
>>> couldn't break the build process where you did...
>> Yes,
>> after uninstalling the port I was able to build it.
> For the record, here is link to the PR from when I first seen this bug:
> <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17803>

Final proof. If I make /usr/local/include/ansidecl.h that contains just
#error "Wrong ansidecl.h!!" then I do get this:

adagcc -c   -g  -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes     -DHAVE_CONFIG_H -DGENERATOR_FILE
-I/usr/local/include   -I. -I. -I.././../gcc-3.4.6/gcc
-I.././../gcc-3.4.6/gcc/. -I.././../gcc-3.4.6/gcc/../include
.././../gcc-3.4.6/gcc/genmodes.c -o genmodes.o
In file included from bconfig.h:5,
                 from .././../gcc-3.4.6/gcc/genmodes.c:22:
/usr/local/include/ansidecl.h:1: #error "Wrong ansidecl.h!!"
gmake[2]: *** [genmodes.o] Error 1


--
VH
Comment 12 Karel Miklav 2006-10-30 04:36:48 UTC
I've managed to reprodce the error and saw that the
poblem was not in excessive headers in ${PREFIX}/include
directory, but how include paths were handled in the
build process. Vaclav, I was not able to open the link
to the GCC bug report, but I found the issue in the
sources and backported the solution from GCC 4.1.

Fixes for lang/gnat-gcc34 in the attached patch:

  - improved handling of include paths in the GCC
    build process

  - proper care is taken that only the bootstrap
    compiler is used (silences core dump messages in
    configure)

Comment 13 Václav Haisman 2006-10-30 06:26:56 UTC

Karel Miklav wrote, On 30.10.2006 5:36:
> I've managed to reprodce the error and saw that the
> poblem was not in excessive headers in ${PREFIX}/include
> directory, but how include paths were handled in the
> build process. Vaclav, I was not able to open the link
> to the GCC bug report, but I found the issue in the
> sources and backported the solution from GCC 4.1.
> 
> Fixes for lang/gnat-gcc34 in the attached patch:
> 
>  - improved handling of include paths in the GCC
>    build process
> 
>  - proper care is taken that only the bootstrap
>    compiler is used (silences core dump messages in
>    configure)
> 
> 

[...]
Yay!! Thanks. :)

--
wilx
Comment 14 Boris Samorodov freebsd_committer freebsd_triage 2006-10-30 09:48:52 UTC
Responsible Changed
From-To: freebsd-ports-bugs->bsam

Take.
Comment 15 Boris B.Samorodov 2006-10-30 10:07:14 UTC
On Mon, 30 Oct 2006 05:36:48 +0100 Karel Miklav wrote:
> Fixes for lang/gnat-gcc34 in the attached patch:

>  - improved handling of include paths in the GCC
>    build process

>  - proper care is taken that only the bootstrap
>    compiler is used (silences core dump messages in
>    configure)

Thanks V=E1clav, thanks Karel!
I took the PR and I'll commit it after the ports freeze stops.


WBR
--=20
Boris Samorodov (bsam)
Research Engineer, http://www.ipt.ru Telephone & Internet SP
FreeBSD committer, http://www.FreeBSD.org The Power To Serve
Comment 16 dfilter service freebsd_committer freebsd_triage 2006-10-31 23:11:40 UTC
bsam        2006-10-31 23:11:33 UTC

  FreeBSD ports repository

  Modified files:
    lang/gnat-gcc34      Makefile 
  Added files:
    lang/gnat-gcc34/files patch-gcc-Makefile.in 
  Log:
  - improved handling of include paths in the GCC build process;   [1]
  - proper care is taken that only the bootstrap compiler is used  [1]
    (silences core dump messages in configure);
  - bump PORTREVISION.   [1]
  
  PR:             104301  [2]
  Submitted by:   Vaclav Haisman <v.haisman at sh.cvut.cz>  [2]
                  Karel Miklav <karel at lovetemple.net> (maintainer)  [1]
  
  Revision  Changes    Path
  1.5       +21 -14    ports/lang/gnat-gcc34/Makefile
  1.1       +20 -0     ports/lang/gnat-gcc34/files/patch-gcc-Makefile.in (new)
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 17 Boris Samorodov freebsd_committer freebsd_triage 2006-10-31 23:12:31 UTC
State Changed
From-To: feedback->closed

Committed, thanks!