View previous topic :: View next topic |
Author |
Message |
mope Apprentice

Joined: 23 Feb 2003 Posts: 206
|
Posted: Wed Aug 20, 2003 6:19 am Post subject: |
|
|
robmoss2k wrote: | Grub does compile with the 3.3 series of GCC - you just need to edit the ebuild and apply the relevant patches. Check out this set of GCC 3.3 bugs. Most of them have fixes that just haven't found their way into portage yet. In particular, grub-0.92 and grub-0.93.20030118 both compile fine; many other previously broken things (such as the gentoo-sources kernel) have gcc-3.3 fixes that have found their way into portage. As long as you're prepared to mess about a little with /usr/local/portage, you can compile an entire system from bootstrap all the way up to fully functional using gcc-3.3 or gcc-3.3.1.
Good luck! |
I haven't been able to compile gentoo-sources. Do you have any tips or directions for me? I went to your link but didn't see a relevant patch. |
|
Back to top |
|
 |
pennedinil Tux's lil' helper

Joined: 08 Aug 2003 Posts: 95
|
Posted: Sat Aug 30, 2003 5:05 am Post subject: |
|
|
I've been able to build almost all of my system with gcc 3.3.1 with only minor hiccups along the way. I've used way too many optimization flags, partly for stress testing, main one being -msse2. Only 1-2 problems.
One problem was that some of the system packages initially tried to downgrade gcc 3.3.1. This is also true with some of the other packages - even with the -U flag in emerge, they don't seem to behave.
My way of fixing these has been to have a spare gentoo system on a spare partition. No special optimizations, no fancy stuff, no "~x86" used anywhere.
If ever I'm unable to build a package in gcc 3.3.1, I build it on Gentoo2/gcc3.2 and copy over the package. This way if compile fails in Gentoo2, I know it's a quirk in the package, not necessarilty in gcc 3.3.1.
More work perhaps, and perhaps having packages compiled by different versions of the compiler will cause trouble. But if Gentoo doesn't think that gcc 3.2/3.3 are similar enough that they don't need to have their own SLOTS, I'm sure the binaries ought to be portable.
BTW I didn't have any problems with grub or any other packages. I had a depoendency problem, but this was solved by marking a package at a lower version than what I had actually installed and it fixed things.
I wish I'd kept better documentation
DP |
|
Back to top |
|
 |
stefanwa Tux's lil' helper

Joined: 09 Dec 2002 Posts: 140
|
Posted: Mon Sep 01, 2003 8:53 am Post subject: |
|
|
Did anyone tried to compile K3B with gcc-3.3.(1) ? It always dies compiling k3bmaddecoder. Both k3b-0.9 and k3b-cvs. Any fixes? Didn't found anything in bugs.gentoo or the kde-devel mailinglist.  |
|
Back to top |
|
 |
asimon l33t


Joined: 27 Jun 2002 Posts: 979 Location: Germany, Old Europe
|
Posted: Mon Sep 01, 2003 9:05 am Post subject: |
|
|
stefanwa wrote: | Did anyone tried to compile K3B with gcc-3.3.(1) ? It always dies compiling k3bmaddecoder. Both k3b-0.9 and k3b-cvs. Any fixes? Didn't found anything in bugs.gentoo or the kde-devel mailinglist.  |
Here is a patch. Enjoy.
Code: |
Index: src/audiodecoding/mp3/k3bmaddecoder.cpp
===================================================================
RCS file: /home/kde/kdeextragear-1/k3b/src/audiodecoding/mp3/k3bmaddecoder.cpp,v
retrieving revision 1.1
diff -u -3 -p -b -B -r1.1 k3bmaddecoder.cpp
--- src/audiodecoding/mp3/k3bmaddecoder.cpp 14 Aug 2003 18:10:16 -0000 1.1
+++ src/audiodecoding/mp3/k3bmaddecoder.cpp 1 Sep 2003 09:05:13 -0000
@@ -584,7 +584,7 @@ unsigned int K3bMadDecoder::resampleBloc
while (step < MAD_F_ONE) {
*target++ = step ?
- last + mad_f_mul(*source - last, step)
+ last + __extension__ mad_f_mul(*source - last, step)
: last;
step += d->madResampledRatio;
@@ -601,7 +601,7 @@ unsigned int K3bMadDecoder::resampleBloc
step = mad_f_fracpart(step);
*target++ = step ?
- *source + mad_f_mul(source[1] - source[0], step)
+ *source + __extension__ mad_f_mul(source[1] - source[0], step)
: *source;
step += d->madResampledRatio;
|
BTW, the problem is not on k3b's side but non-iso conform code in the libmad header file. |
|
Back to top |
|
 |
stefanwa Tux's lil' helper

Joined: 09 Dec 2002 Posts: 140
|
Posted: Mon Sep 01, 2003 11:06 am Post subject: |
|
|
asimon wrote: |
Here is a patch. Enjoy.
BTW, the problem is not on k3b's side but non-iso conform code in the libmad header file. |
Thanks! Worked great! |
|
Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|