| |
 |
|
|
Linux Forum Index » Linux - Gentoo Forum » GCC 4.3...
Page 1 of 2 Goto page 1, 2 Next
|
| Author |
Message |
| João Jerónimo... |
Posted: Fri Aug 29, 2008 12:22 pm |
|
|
|
Guest
|
Hello,
I'm gonna install GCC 4.3 now (hope it makes a new slot...) cause I've just
installed an AMD Phenom (and corresponding motherboard), and want to
optimize the system with -march=amdfam10.
Are there any big problems with using this version on Gentoo to which I have
to pay special atention?
Thanks.
--
João Jerónimo
"Computer are composed of software, hardware, and other stuff terminated
in "ware", like firmware, tupperware, (...)" - by JJ. |
|
|
| Back to top |
|
| Darin McBride... |
Posted: Fri Aug 29, 2008 1:04 pm |
|
|
|
Guest
|
João Jerónimo wrote:
Quote: Hello,
I'm gonna install GCC 4.3 now (hope it makes a new slot...) cause I've
just installed an AMD Phenom (and corresponding motherboard), and want to
optimize the system with -march=amdfam10.
Are there any big problems with using this version on Gentoo to which I
have to pay special atention?
Don't tell me I've been wasting my phenom by using the stable gcc...
Even if no one else responds, please come back and tell us how it works out! |
|
|
| Back to top |
|
| João Jerónimo... |
Posted: Fri Aug 29, 2008 1:27 pm |
|
|
|
Guest
|
Darin McBride escreveu:
Quote: Don't tell me I've been wasting my phenom by using the stable gcc...
It's not about *wasting*, but about using available features.
--
João Jerónimo
"Computer are composed of software, hardware, and other stuff terminated
in "ware", like firmware, tupperware, (...)" - by JJ. |
|
|
| Back to top |
|
| Michał Górny... |
Posted: Fri Aug 29, 2008 4:27 pm |
|
|
|
Guest
|
On Fri, 29 Aug 2008 19:22:19 +0200, João Jerónimo
<j_j_b_o_j at (no spam) yahoo.com.br.nospam> wrote:
Quote: I'm gonna install GCC 4.3 now (hope it makes a new slot...) cause I've
Yes, it installs in '4.3' slot.
Quote: Are there any big problems with using this version on Gentoo to which I
have
to pay special atention?
Using 4.3 since Wed Jun 11 13:44:08 2008 >>> sys-devel/gcc-4.3.1
EKG2 needed few fixes, no other problems noticed.
--
Best regards,
Michał Górny
<http://mailnull.com/w?au=f6744c6f5e097cc9816a562802f331c2>
<xmpp:mgorny at (no spam) jabster.pl> |
|
|
| Back to top |
|
| Jerry McBride... |
Posted: Fri Aug 29, 2008 7:47 pm |
|
|
|
Guest
|
João Jerónimo wrote:
Quote: Hello,
I'm gonna install GCC 4.3 now (hope it makes a new slot...) cause I've
just installed an AMD Phenom (and corresponding motherboard), and want to
optimize the system with -march=amdfam10.
Are there any big problems with using this version on Gentoo to which I
have to pay special atention?
Thanks.
I've been running 4.3.1 for a while now, no problems.... However... :')
you'll most likely have to unmask or keyword a few ebuilds to get the
recent ones that need or require patching for the 4.3.x compiler.
That said, kde 3.5.9 compiles fine as does everything else that I use or
depend upon.
That said, the performance boost isn't noticeable at all.
--
Jerry McBride (jmcbride at (no spam) mail-on.us) |
|
|
| Back to top |
|
| João Jerónimo... |
Posted: Fri Aug 29, 2008 8:13 pm |
|
|
|
Guest
|
Jerry McBride escreveu:
Quote: I've been running 4.3.1 for a while now, no problems.... However... :')
you'll most likely have to unmask or keyword a few ebuilds to get the
recent ones that need or require patching for the 4.3.x compiler.
There's a 4.3.x GCC that is not hard-masked. It only needs some keywords.
--
João Jerónimo
"Computer are composed of software, hardware, and other stuff terminated
in "ware", like firmware, tupperware, (...)" - by JJ. |
|
|
| Back to top |
|
| Nikos Chantziaras... |
Posted: Sun Aug 31, 2008 3:20 am |
|
|
|
Guest
|
João Jerónimo wrote:
Quote: Hello,
I'm gonna install GCC 4.3 now (hope it makes a new slot...) cause I've just
installed an AMD Phenom (and corresponding motherboard), and want to
optimize the system with -march=amdfam10.
Are there any big problems with using this version on Gentoo to which I have
to pay special atention?
First the obvious: you'll need to rebuild GCC right after you emerge it
since you need to put "-march=amdfam10" in make.conf *after* it has been
build with the previous GCC (which doesn't support "-march=amdfam10").
Only then you should rebuild system and world.
You'll need a recent glibc. The stable one doesn't work with GCC 4.3.
I use glibc-2.8_p20080602.
I'm on Gentoo stable, but some packages don't build with 4.3. You'll
need to keyword the few that don't compile. From the major packages,
the kernel, Open Office, KDE and Firefox 3 don't have a problem.
Thunderbird does have a major one: it's compiled without optimizations
(-O0) and becomes slow as hell. I had to modify the ebuild to force the
use of -O2 since the optimize-bug doesn't seem to affect me.
Other than that, I'm using GCC 4.3 ever since I first installed Gentoo
(For "-march=core2".) |
|
|
| Back to top |
|
| João Jerónimo... |
Posted: Sun Aug 31, 2008 10:48 am |
|
|
|
Guest
|
Nikos Chantziaras escreveu:
Quote: You'll need a recent glibc. The stable one doesn't work with GCC 4.3.
I use glibc-2.8_p20080602.
Cof cof. Ok, forget everything, then!
I've just hard-masked sys-libs/glibc-2.6.1 because it's giving me a strange
compile error...
-------------------------------------------------------------
/var/tmp/portage/sys-libs/glibc-2.6.1/work/build-default-i686-pc-linux-gnu-nptl/nptl/libpthread_pic.a:
member /var/tmp/portage/sys-libs/glibc-2.6.1/work/build-default-i686-pc-linux-gnu-nptl/nptl/libpthread_pic.a(pthread_create.os)
in archive is not an object
collect2: ld returned 1 exit status
make[2]: ***
[/var/tmp/portage/sys-libs/glibc-2.6.1/work/build-default-i686-pc-linux-gnu-nptl/nptl/libpthread.so]
Error 1
make[2]: Leaving directory
`/var/tmp/portage/sys-libs/glibc-2.6.1/work/glibc-2.6.1/nptl'
make[1]: *** [nptl/others] Error 2
make[1]: Leaving directory
`/var/tmp/portage/sys-libs/glibc-2.6.1/work/glibc-2.6.1'
make: *** [all] Error 2
-------------------------------------------------------------
Any hint? I've not saved the rest f the output and it has already
disappeared in konsole's scroll-back buffer... If you can't, don't worry.
Quote: Other than that, I'm using GCC 4.3 ever since I first installed Gentoo
 (For "-march=core2".)
:-)
--
João Jerónimo
"Computer are composed of software, hardware, and other stuff terminated
in "ware", like firmware, tupperware, (...)" - by JJ. |
|
|
| Back to top |
|
| Nikos Chantziaras... |
Posted: Sun Aug 31, 2008 1:21 pm |
|
|
|
Guest
|
João Jerónimo wrote:
Quote: Nikos Chantziaras escreveu:
You'll need a recent glibc. The stable one doesn't work with GCC 4.3.
I use glibc-2.8_p20080602.
Cof cof. Ok, forget everything, then!
Note that when I say "stable", I mean *portage* stable. The newest
upstream stable version is glibc-2.7-r2. But it's not marked stable in
portage yet. For GCC 4.3 you need *at least* glibc-2.7-r2. |
|
|
| Back to top |
|
| J.O. Aho... |
Posted: Sun Aug 31, 2008 2:22 pm |
|
|
|
Guest
|
João Jerónimo wrote:
Quote: Nikos Chantziaras escreveu:
You'll need a recent glibc. The stable one doesn't work with GCC 4.3.
I use glibc-2.8_p20080602.
Cof cof. Ok, forget everything, then!
I've just hard-masked sys-libs/glibc-2.6.1 because it's giving me a strange
compile error...
You need at least glibc 2.7, all you need to do is to add it to your
package.keywords
echo "=sys-libs/glibc-2.7-r2 ~amd64" >> /etc/portage.package.keywords
or you can use any "unstable" version
echo "sys-libs/glibc ~amd64" >> /etc/portage.package.keywords
I did this today on my new quad AMD and rebuilt everything afterwards, seems
to work well.
--
//Aho |
|
|
| Back to top |
|
| Nikos Chantziaras... |
Posted: Sun Aug 31, 2008 3:29 pm |
|
|
|
Guest
|
J.O. Aho wrote:
Quote: João Jerónimo wrote:
Nikos Chantziaras escreveu:
You'll need a recent glibc. The stable one doesn't work with GCC 4.3.
I use glibc-2.8_p20080602.
Cof cof. Ok, forget everything, then!
I've just hard-masked sys-libs/glibc-2.6.1 because it's giving me a
strange
compile error...
You need at least glibc 2.7, all you need to do is to add it to your
package.keywords
echo "=sys-libs/glibc-2.7-r2 ~amd64" >> /etc/portage.package.keywords
"=sys-libs/glibc-2.7-r2" is enough ("~amd64" is not really needed.) |
|
|
| Back to top |
|
| João Jerónimo... |
Posted: Sun Aug 31, 2008 6:24 pm |
|
|
|
Guest
|
J.O. Aho escreveu:
Quote: You need at least glibc 2.7, all you need to do is to add it to your
package.keywords
And pray for it to compile ok.
Quote: echo "=sys-libs/glibc-2.7-r2 ~amd64" >> /etc/portage.package.keywords
~x86
I'm still running 32-bit...
--
João Jerónimo
"Computer are composed of software, hardware, and other stuff terminated
in "ware", like firmware, tupperware, (...)" - by JJ. |
|
|
| Back to top |
|
| Nikos Chantziaras... |
Posted: Sun Aug 31, 2008 11:26 pm |
|
|
|
Guest
|
João Jerónimo wrote:
Quote: J.O. Aho escreveu:
You need at least glibc 2.7, all you need to do is to add it to your
package.keywords
And pray for it to compile ok.
It should. And don't forget that nothing in your system is touched if
it does not compile OK.
But as always, this is glibc, the most crucial library there is, so... |
|
|
| Back to top |
|
| J.O. Aho... |
Posted: Sun Aug 31, 2008 11:49 pm |
|
|
|
Guest
|
Nikos Chantziaras wrote:
Quote: João Jerónimo wrote:
J.O. Aho escreveu:
You need at least glibc 2.7, all you need to do is to add it to your
package.keywords
And pray for it to compile ok.
It should. And don't forget that nothing in your system is touched if
it does not compile OK.
But as always, this is glibc, the most crucial library there is, so...
There is ways to recover from a bad glibc, a good thing to do, before starting
to build it, make a binary tarball with quickpkg. If the new glibc fails to
work as it should ater installed (in 99.999% of the cases it will work if it
installs), then use an install media, unpack the tarball to your gentoo
installation, then chroot to it and install it through portage, this way you
get rid of the files that differs between the versions and you have a working
glibc again.
Myself, I have had some bad experience of glibc compiling badly on a RedHat
7.3 system and used a bit more trickier way to reinstall glibc.
--
//Aho |
|
|
| Back to top |
|
| pk... |
Posted: Mon Sep 01, 2008 3:06 am |
|
|
|
Guest
|
On Monday 1 September 2008 06:49, J.O. Aho wrote:
Quote: But as always, this is glibc, the most crucial library there is, so...
There is ways to recover from a bad glibc, a good thing to do, before
starting to build it, make a binary tarball with quickpkg.
Or, if you have enough space, just use FEATURES="buildpkg" and you'll be
able to recover from almost all kinds of fscked situations. |
|
|
| Back to top |
|
| |
Page 1 of 2 Goto page 1, 2 Next
All times are GMT - 5 Hours
The time now is Wed Dec 03, 2008 6:46 pm
|
|