public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] GCC 3.1/binutils 2.12 and glibc compile problems
@ 2002-05-27 19:18 Webmaster Refstart.NL
  2002-05-27 21:50 ` Lars Pechan
  2002-05-27 22:37 ` Bill Kenworthy
  0 siblings, 2 replies; 8+ messages in thread
From: Webmaster Refstart.NL @ 2002-05-27 19:18 UTC (permalink / raw
  To: gentoo-dev

Hi all,

I try to set up a GCC 3.1 based Gentoo system with binutils 2.12. When I try to run ./scripts/bootstrap in the directory /usr/portage, I get errors when compiling glibc (sorry, I can't c/p the output). I've the following compile flags in /etc/make.conf:

CHOST = i686-pc-linux-gnu 
CXXFLAGS = -march=athlon-xp -m3dnow -msse -mfpmath=sse -mmmx -O3 -pipe 
CFLAGS = -march=athlon-xp -m3dnow -msse -mfpmath=sse -mmmx -O3 -pipe

Is this a bug in glibc or should I use binutils 2.11 (without the combreloc tweak)?

Thanks in advance,

Niek.


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-dev] GCC 3.1/binutils 2.12 and glibc compile problems
  2002-05-27 19:18 [gentoo-dev] GCC 3.1/binutils 2.12 and glibc compile problems Webmaster Refstart.NL
@ 2002-05-27 21:50 ` Lars Pechan
  2002-05-28  8:46   ` Webmaster Refstart.NL
  2002-05-27 22:37 ` Bill Kenworthy
  1 sibling, 1 reply; 8+ messages in thread
From: Lars Pechan @ 2002-05-27 21:50 UTC (permalink / raw
  To: gentoo-dev

What's your starting point? A raw system straight from a tar-ball off a CD or 
have you already bootstrapped once and are trying again to make use of the 
athlon-specific optimization flags?

If the answer is 1) then it's odd since it seems quite a few people (including 
myself) have been able to bootstrap with gcc-3.1 You may want to review your 
optimization flags, however since the sse-stuff will change the abi and could 
lead to various problems in the future.

If the answer is 2) then that's a known problem: search the list archives at 
http://fireserver.ath.cx/gentoo/search/index.html for more info.

Oh, and I did bootstrap w. binutils 2.12.

/Lasse


On Tue, 28 May 2002 07:18, Webmaster Refstart.NL wrote:
> Hi all,
>
> I try to set up a GCC 3.1 based Gentoo system with binutils 2.12. When I
> try to run ./scripts/bootstrap in the directory /usr/portage, I get errors
> when compiling glibc (sorry, I can't c/p the output). I've the following
> compile flags in /etc/make.conf:
>
> CHOST = i686-pc-linux-gnu
> CXXFLAGS = -march=athlon-xp -m3dnow -msse -mfpmath=sse -mmmx -O3 -pipe
> CFLAGS = -march=athlon-xp -m3dnow -msse -mfpmath=sse -mmmx -O3 -pipe
>
> Is this a bug in glibc or should I use binutils 2.11 (without the combreloc
> tweak)?
>
> Thanks in advance,
>
> Niek.
> _______________________________________________
> gentoo-dev mailing list
> gentoo-dev@gentoo.org
> http://lists.gentoo.org/mailman/listinfo/gentoo-dev



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-dev] GCC 3.1/binutils 2.12 and glibc compile problems
  2002-05-27 19:18 [gentoo-dev] GCC 3.1/binutils 2.12 and glibc compile problems Webmaster Refstart.NL
  2002-05-27 21:50 ` Lars Pechan
@ 2002-05-27 22:37 ` Bill Kenworthy
  2002-05-27 22:45   ` Lars Pechan
  1 sibling, 1 reply; 8+ messages in thread
From: Bill Kenworthy @ 2002-05-27 22:37 UTC (permalink / raw
  To: gentoo-dev List

I see an occaisional message with "odd" make flags like this one with
3dnow.  Is there a comprehensive list hidden somewhere?  I am
particularly interested in athlon ones, for gcc-2.95, at least until
gcc3 builds become feasable.

BillK

On Tue, 2002-05-28 at 03:18, Webmaster Refstart.NL wrote:
> Hi all,
> 
> I try to set up a GCC 3.1 based Gentoo system with binutils 2.12. When I try to run ./scripts/bootstrap in the directory /usr/portage, I get errors when compiling glibc (sorry, I can't c/p the output). I've the following compile flags in /etc/make.conf:
> 
> CHOST = i686-pc-linux-gnu 
> CXXFLAGS = -march=athlon-xp -m3dnow -msse -mfpmath=sse -mmmx -O3 -pipe 
> CFLAGS = -march=athlon-xp -m3dnow -msse -mfpmath=sse -mmmx -O3 -pipe
> 
> Is this a bug in glibc or should I use binutils 2.11 (without the combreloc tweak)?
> 
> Thanks in advance,
> 
> Niek.
> _______________________________________________
> gentoo-dev mailing list
> gentoo-dev@gentoo.org
> http://lists.gentoo.org/mailman/listinfo/gentoo-dev



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-dev] GCC 3.1/binutils 2.12 and glibc compile problems
  2002-05-27 22:37 ` Bill Kenworthy
@ 2002-05-27 22:45   ` Lars Pechan
  0 siblings, 0 replies; 8+ messages in thread
From: Lars Pechan @ 2002-05-27 22:45 UTC (permalink / raw
  To: gentoo-dev

The gcc manual is the place to look. If you do a google earch you should find 
some good links too If you're after athlon specifics it has to be a gcc-3.x 
manual athlon optimizations weren't introduced until then.

On Tue, 28 May 2002 10:37, Bill Kenworthy wrote:
> I see an occaisional message with "odd" make flags like this one with
> 3dnow.  Is there a comprehensive list hidden somewhere?  I am
> particularly interested in athlon ones, for gcc-2.95, at least until
> gcc3 builds become feasable.
>
> BillK
>
> On Tue, 2002-05-28 at 03:18, Webmaster Refstart.NL wrote:
> > Hi all,
> >
> > I try to set up a GCC 3.1 based Gentoo system with binutils 2.12. When I
> > try to run ./scripts/bootstrap in the directory /usr/portage, I get
> > errors when compiling glibc (sorry, I can't c/p the output). I've the
> > following compile flags in /etc/make.conf:
> >
> > CHOST = i686-pc-linux-gnu
> > CXXFLAGS = -march=athlon-xp -m3dnow -msse -mfpmath=sse -mmmx -O3 -pipe
> > CFLAGS = -march=athlon-xp -m3dnow -msse -mfpmath=sse -mmmx -O3 -pipe
> >
> > Is this a bug in glibc or should I use binutils 2.11 (without the
> > combreloc tweak)?
> >
> > Thanks in advance,
> >
> > Niek.
> > _______________________________________________
> > gentoo-dev mailing list
> > gentoo-dev@gentoo.org
> > http://lists.gentoo.org/mailman/listinfo/gentoo-dev
>
> _______________________________________________
> gentoo-dev mailing list
> gentoo-dev@gentoo.org
> http://lists.gentoo.org/mailman/listinfo/gentoo-dev



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-dev] GCC 3.1/binutils 2.12 and glibc compile problems
  2002-05-27 21:50 ` Lars Pechan
@ 2002-05-28  8:46   ` Webmaster Refstart.NL
  2002-05-28  8:59     ` Spider
  2002-06-06  3:07     ` Matthew Kennedy
  0 siblings, 2 replies; 8+ messages in thread
From: Webmaster Refstart.NL @ 2002-05-28  8:46 UTC (permalink / raw
  To: gentoo-dev

On Tue, 28 May 2002 09:50:09 +1200
Lars Pechan <lars.pechan@paradise.net.nz> wrote:

> What's your starting point? A raw system straight from a tar-ball off a CD or 
> have you already bootstrapped once and are trying again to make use of the 
> athlon-specific optimization flags?

I'm buiding a raw system from a Gentoo 1.1a stage 1 tarball.

> If the answer is 1) then it's odd since it seems quite a few people (including 
> myself) have been able to bootstrap with gcc-3.1 You may want to review your 
> optimization flags, however since the sse-stuff will change the abi and could 
> lead to various problems in the future.

I tested this and removed all sse, mmx and 3dnow flags, but it won't help. I get the same error, this is what happens:


gawk: scripts/versions.awk:68: (FILENAME=- FNR=3) fatal: printf to "sort -n > /v
ar/tmp/portage/glibc-2.2.5-r2/work/glibc-2.2.5/buildhere/Versions.tmp" failed (B
roken pipe)
sed: couldn't write 69 items to {standard output}: Broken pipe
stdout: Broken pipe
make[1]: *** [/var/tmp/portage/glibc-2.2.5-r2/work/glibc-2.2.5/buildhere/sysd-ve
rsions] Error 2
make[1]: Leaving directory '/var/tmp/portage/glibc-2.2.5-r2/work/glibc-2.2.5'
make: *** [all] Error 2

!!! ERROR: The ebuild did not complete succesfully.
!!! Function src_compile, Line 14, Exitcode 2
!!! (no error message)

!!! emerge aborting on  /usr/portage/sys-libs/glibc/glibc-2.2.5-r2.ebuild .


I think this is a bug in glibc, is it easy to solve?

Thanks a lot for your help,

Niek.


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-dev] GCC 3.1/binutils 2.12 and glibc compile problems
  2002-05-28  8:46   ` Webmaster Refstart.NL
@ 2002-05-28  8:59     ` Spider
  2002-05-28 16:23       ` Webmaster Refstart.NL
  2002-06-06  3:07     ` Matthew Kennedy
  1 sibling, 1 reply; 8+ messages in thread
From: Spider @ 2002-05-28  8:59 UTC (permalink / raw
  To: gentoo-dev

[-- Attachment #1: Type: text/plain, Size: 512 bytes --]

begin  quote
On Tue, 28 May 2002 10:46:38 +0200
Webmaster Refstart.NL <webmaster@refstart.nl> wrote:

> 
> I tested this and removed all sse, mmx and 3dnow flags, but it won't

I've had this, it went away magically after starting over (From scratch)
and dropping all trhe fancy optimization options when bootstrapping,
after that you can experiment again.

//Spider

--
begin  .signature
This is a .signature virus! Please copy me into your .signature!
See Microsoft KB Article Q265230 for more information.
end

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-dev] GCC 3.1/binutils 2.12 and glibc compile problems
  2002-05-28  8:59     ` Spider
@ 2002-05-28 16:23       ` Webmaster Refstart.NL
  0 siblings, 0 replies; 8+ messages in thread
From: Webmaster Refstart.NL @ 2002-05-28 16:23 UTC (permalink / raw
  To: gentoo-dev

I removed the athlon compile flags and set the standard i686 flags, but if I try to bootstrap, I get the same error.

Any ideas?

Thanks,

Niek.

On Tue, 28 May 2002 10:59:31 +0200
Spider <spider@gentoo.org> wrote:

> begin  quote
> On Tue, 28 May 2002 10:46:38 +0200
> Webmaster Refstart.NL <webmaster@refstart.nl> wrote:
> 
> > 
> > I tested this and removed all sse, mmx and 3dnow flags, but it won't
> 
> I've had this, it went away magically after starting over (From scratch)
> and dropping all trhe fancy optimization options when bootstrapping,
> after that you can experiment again.
> 
> //Spider
> 
> --
> begin  .signature
> This is a .signature virus! Please copy me into your .signature!
> See Microsoft KB Article Q265230 for more information.
> end


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-dev] GCC 3.1/binutils 2.12 and glibc compile problems
  2002-05-28  8:46   ` Webmaster Refstart.NL
  2002-05-28  8:59     ` Spider
@ 2002-06-06  3:07     ` Matthew Kennedy
  1 sibling, 0 replies; 8+ messages in thread
From: Matthew Kennedy @ 2002-06-06  3:07 UTC (permalink / raw
  To: gentoo-dev

On Tue, 2002-05-28 at 03:46, Webmaster Refstart.NL wrote:

> gawk: scripts/versions.awk:68: (FILENAME=- FNR=3) fatal: printf to "sort -n > /v
> ar/tmp/portage/glibc-2.2.5-r2/work/glibc-2.2.5/buildhere/Versions.tmp" failed (B
> roken pipe)
> sed: couldn't write 69 items to {standard output}: Broken pipe
> stdout: Broken pipe
> make[1]: *** [/var/tmp/portage/glibc-2.2.5-r2/work/glibc-2.2.5/buildhere/sysd-ve
> rsions] Error 2
> make[1]: Leaving directory '/var/tmp/portage/glibc-2.2.5-r2/work/glibc-2.2.5'
> make: *** [all] Error 2

That is symptomatic of a portage (ie. sandbox) built with a gcc3.1. See
the m4/autoconf bug. You might try unpacking the rescue portage (which
afaik, is bot built with gcc3.1) to get around this.

Matt

-- 
Matthew Kennedy
Gentoo Linux Developer



^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2002-06-06  3:01 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-05-27 19:18 [gentoo-dev] GCC 3.1/binutils 2.12 and glibc compile problems Webmaster Refstart.NL
2002-05-27 21:50 ` Lars Pechan
2002-05-28  8:46   ` Webmaster Refstart.NL
2002-05-28  8:59     ` Spider
2002-05-28 16:23       ` Webmaster Refstart.NL
2002-06-06  3:07     ` Matthew Kennedy
2002-05-27 22:37 ` Bill Kenworthy
2002-05-27 22:45   ` Lars Pechan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox