You are not logged in.

#1 2010-06-30 00:00:52

synthead
Member
Registered: 2006-05-09
Posts: 1,337

glibc fails when using -Os option

This is with the latest PKGBUILD from abs.  This is directly related to http://sourceware.org/ml/glibc-bugs/200 … 00121.html but I can't use the -O2 flag; my CPU doesn't support it (read http://en.gentoo-wiki.com/wiki/Safe_Cflags/Transmeta).  What would you guys do?

Offline

#2 2010-06-30 00:18:24

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,427
Website

Re: glibc fails when using -Os option

-Os will not particularly save you anymore...  glibc forces -mtune=i686 when -march=i686 so you are going to get alignment instructions anyway.

I'd just build for i586...

Offline

#3 2010-06-30 02:36:46

synthead
Member
Registered: 2006-05-09
Posts: 1,337

Re: glibc fails when using -Os option

Oh.  Funky.  Are there any other packages that might force this compile flag too?  That's bad news if this is the case.  When you say i586, do you mean the entire system, or could I get away with glibc built for i586 by itself?

Also, I can compile i586 code with the -O2 flag too (although I can't), so will glibc force -O2 for i586 also?  Or does -O2 work differently under i586?

Last edited by synthead (2010-06-30 02:46:40)

Offline

#4 2010-07-04 00:51:03

synthead
Member
Registered: 2006-05-09
Posts: 1,337

Re: glibc fails when using -Os option

I tried building for i586, but I still am not able to build a proper glibc.  Could I completely substitute glibc with something like dietlibc for my purpose?  if I can get it to boot, that's all I need at this point.

Offline

#5 2010-07-04 00:59:21

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,427
Website

Re: glibc fails when using -Os option

You can also patch it to remove this commit:
http://sourceware.org/git/?p=glibc.git; … h=01f1f5ee

But there is no guarantee that any other package does not get optimised to use that instruction..,   Here is our (closed) bug report about this with some relevant links for you: http://bugs.archlinux.org/task/19733

Offline

#6 2010-07-04 17:56:46

str1ngs
Member
Registered: 2010-07-02
Posts: 7

Re: glibc fails when using -Os option

Ya I'm pretty sure that glibc wont compile with -Os these days.  If you cant find away around it with with a patch or older version. maybe try eglibc it might take abit of work but it should be a drop in replacement for glibc. I know for a fact uclibc will build with -Os but its not binary compatible like eglibc and you will run into alot more problems, but could serve as  last resort though.

Last edited by str1ngs (2010-07-04 17:57:28)

Offline

Board footer

Powered by FluxBB