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.
State Changed From-To: open->feedback Awaiting maintainers feedback
Vaclav, I was not able to reproduce the error. Could you please send me the whole build script? -- Regards, Karel miklav
This is a multi-part message in MIME format.
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
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
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...
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
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
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
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)
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
Responsible Changed From-To: freebsd-ports-bugs->bsam Take.
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
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"
State Changed From-To: feedback->closed Committed, thanks!