[Bug debug/46704] [4.6 Regression] Ada compiler fails to build itself

2011-01-11 Thread ebotcazou at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46704

--- Comment #13 from Eric Botcazou  2011-01-12 
07:47:09 UTC ---
> It looks like the fix came after the first gcc was built, so I should rebuild
> it with Jan 9 snapshot using --disable-bootstrap, install it, and then rebuild
> it again with disable snapshot?

Yes, the problem is in the build compiler, not in the to-be-built compiler. 
I'd suggest selecting a good compiler as build compiler (preferably a released
one) and sticking to it, the mainline is too moving a target for this.


[Bug debug/46704] [4.6 Regression] Ada compiler fails to build itself

2011-01-11 Thread gnugcc at marino dot st
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46704

John Marino  changed:

   What|Removed |Added

 CC||gnugcc at marino dot st

--- Comment #12 from John Marino  2011-01-12 07:27:40 
UTC ---
I'm now seeing this on NetBSD AMD64.  I always used --disable-bootstrap and
never saw it, but when I removed that configuration option I'm getting the
exact error.  This is with gcc build on 5 Jan 2011 and a source snapshot of 9
Jan.

I can't confirm the same on NetBSD32 because when I remove --disable-bootstrap
libiberty can't compile during the first stage (bad assembly, thinks %sil
register is selected which doesn't exist on x86)

It looks like the fix came after the first gcc was built, so I should rebuild
it with Jan 9 snapshot using --disable-bootstrap, install it, and then rebuild
it again with disable snapshot?

Thanks,
John


Using built-in specs.
COLLECT_GCC=gnatgcc
COLLECT_LTO_WRAPPER=/usr/pkg/libexec/gcc/x86_64-aux-netbsd5.1_RC4/4.6.0/lto-wrapper
Target: x86_64-aux-netbsd5.1_RC4
Configured with: /usr/pkgsrc/lang/gnat-aux/work/gcc-4.6-20110104/configure
--enable-languages=c,ada --build=x86_64-aux-netbsd5.1_RC4 --program-prefix=gnat
--prefix=/usr/pkg --with-system-zlib --with-gmp=/usr/pkg --with-mpfr=/usr/pkg
--with-mpc=/usr/pkg --with-libiconv-prefix=/usr/pkg --enable-shared
--enable-threads=posix --disable-bootstrap --disable-libgomp --disable-libssp
--disable-nls
Thread model: posix
gcc version 4.6.0 20110105 (experimental) -=> GNAT AUX [NetBSD64] (GCC)


[Bug debug/46704] [4.6 Regression] Ada compiler fails to build itself

2011-01-10 Thread ebotcazou at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46704

--- Comment #11 from Eric Botcazou  2011-01-11 
06:54:41 UTC ---
> I am at 168616 and seeing this. I am on Fedora 14 64 bit with this native gcc:
> 
> $ gcc --version
> gcc (GCC) 4.4.5 20101112 (Red Hat 4.4.5-2)
> 
> I am trying to use that to build a native C,C++,Ada toolset from the head but
> getting this error.  How do you get a new compiler from the head?

Use a recent tree with the fix and rebuild everything from it.


[Bug debug/46704] [4.6 Regression] Ada compiler fails to build itself

2011-01-10 Thread doko at ubuntu dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46704

--- Comment #10 from Matthias Klose  2011-01-11 
00:54:10 UTC ---
works for me.

Joel, either use a build before 2010-11-13, or a fixed build. I put a recent
gcc-snapshot build for armel on 
http://people.canonical.com/~doko/tmp/gcc-snapshot_20110106-1ubuntu1_armel.deb

unpack with ar, if you don't have a dpkg available.

I only did see this on arm-linux-gnueabi.


[Bug debug/46704] [4.6 Regression] Ada compiler fails to build itself

2011-01-10 Thread joel at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46704

Joel Sherrill  changed:

   What|Removed |Added

 CC||joel at gcc dot gnu.org

--- Comment #9 from Joel Sherrill  2011-01-10 23:13:53 
UTC ---
(In reply to comment #8)
> > I still see this with r168558.
> 
> Note that you need to reinstall gnatgcc, the problem is there.

I am at 168616 and seeing this. I am on Fedora 14 64 bit with this native gcc:

$ gcc --version
gcc (GCC) 4.4.5 20101112 (Red Hat 4.4.5-2)

I am trying to use that to build a native C,C++,Ada toolset from the head but
getting this error.  How do you get a new compiler from the head?


[Bug debug/46704] [4.6 Regression] Ada compiler fails to build itself

2011-01-07 Thread ebotcazou at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46704

--- Comment #8 from Eric Botcazou  2011-01-07 
08:43:35 UTC ---
> I still see this with r168558.

Note that you need to reinstall gnatgcc, the problem is there.


[Bug debug/46704] [4.6 Regression] Ada compiler fails to build itself

2011-01-07 Thread doko at ubuntu dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46704

--- Comment #7 from Matthias Klose  2011-01-07 08:33:03 
UTC ---
I still see this with r168558.


[Bug debug/46704] [4.6 Regression] Ada compiler fails to build itself

2011-01-06 Thread ebotcazou at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46704

Eric Botcazou  changed:

   What|Removed |Added

 Status|ASSIGNED|RESOLVED
URL||http://gcc.gnu.org/ml/gcc-p
   ||atches/2011-01/msg00335.htm
   ||l
 CC|ebotcazou at gcc dot|
   |gnu.org |
 Resolution||FIXED

--- Comment #6 from Eric Botcazou  2011-01-06 
23:38:01 UTC ---
This should work again.


[Bug debug/46704] [4.6 Regression] Ada compiler fails to build itself

2011-01-06 Thread ebotcazou at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46704

--- Comment #5 from Eric Botcazou  2011-01-06 
23:36:28 UTC ---
Author: ebotcazou
Date: Thu Jan  6 23:36:25 2011
New Revision: 168557

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=168557
Log:
PR debug/46704
* dwarf2out.c (dwarf2out_finish): Output the debug_aranges section
only when it is not empty.

Modified:
trunk/gcc/ChangeLog
trunk/gcc/dwarf2out.c