Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 10786 - festival ebuild is hard coded for i686 w/ gcc3.2
Summary: festival ebuild is hard coded for i686 w/ gcc3.2
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Matt Keadle
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-11-15 12:17 UTC by J Robert Ray
Modified: 2003-02-04 19:42 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
festival-1.4.2-r3.ebuild (festival-1.4.2-r2.ebuild,6.22 KB, text/plain)
2002-11-26 19:06 UTC, J Robert Ray
Details

Note You need to log in before you can comment on or make changes to this bug.
Description J Robert Ray 2002-11-15 12:17:27 UTC
This bit here:

        if [ ${GCCPV} != "2.95.3" ] ; then
                echo
"COMPILERLIBS=/usr/lib/gcc-lib/i686-pc-linux-gnu/${GCCPV}/libstdc++.a
/usr/lib/gcc-lib/i686-pc-linux-gnu/${GCCPV}/libgcc_s.so.1" >> ${T}/config/config
        fi


Fails to compile on my i586 box because there is no .../i686-pc-linux-gnu/...
library.
Comment 1 Matt Keadle 2002-11-15 14:13:11 UTC
YAR! You're right it seems. Ought to be able to pull that from a var somewhere
though. Thanks for the heads up!
Comment 2 Matt Keadle 2002-11-15 16:04:19 UTC
On your box, I'm guessing that directory is called:

/usr/lib/gcc-lib/i586-pc-linux-gnu ?
Comment 3 J Robert Ray 2002-11-15 17:12:52 UTC
Yeppers.  But what about ppc?
Comment 4 Matt Keadle 2002-11-15 17:43:31 UTC
I'm testing replacing the i586,i686,etc.. with the output of `uname -m`. Can you
think of a better way?
Comment 5 J Robert Ray 2002-11-15 17:59:59 UTC
`uname -m` may not work because on ppc that would yield 'ppc-pc-linux-gnu' and
that is unlikely to be correct.  Looking at the gcc ebuild, it probably uses
$CHOST when it places that library and so using $CHOST here would be better.
Comment 6 Matt Keadle 2002-11-16 06:23:59 UTC
Done. -r2 is commited. Also, with the help of Sascha (cybersystem), we've got it
compiling on ppc as well. Woohoo! I can sleep now.
Comment 7 J Robert Ray 2002-11-26 06:45:29 UTC
-r2 still doesn't work for me.

My kernel is configured as 'CyrixIII/VIA-C3/VIA-C5'.
uname -r emits "i686" so -r2 still looks for i686-pc-linux-gnu.

My CHOST is set to "i586-pc-linux-gnu".  i686 binaries do not run on my system.
 I really don't know where uname gets off calling my cpu a i686.

Another reason not to use `uname -r`: a situation similar to mine could come up
if someone has decided to not optimize for their CPU and is using
i386-pc-linux-gnu for their CHOST.

I believe CHOST determines the name of the library produced by gcc, it is only
in parity with uname -r in most but not all cases.  The CHOST in the ppc profile
is set to "powerpc-unknown-linux-gnu" which is exactly what you are setting
ARCHTYPE to in -r2 on ppc.

I propose:

        if [ ${GCCPV} != "2.95.3" ] ; then
-    [ `uname -m` = "ppc" ] \
-               && ARCHTYPE="powerpc-unknown" \
-               || ARCHTYPE="`uname -m`-pc"
-       echo
"COMPILERLIBS=/usr/lib/gcc-lib/${ARCHTYPE}-linux-gnu/${GCCPV}/libstdc++.a
/usr/lib/gcc-lib/${ARCHTYPE}-linux-gnu/${GCCPV}/libgcc_s.so.1" >> ${T}/config/config
+               echo
"COMPILERLIBS=/usr/lib/gcc-lib/${CHOST}/${GCCPV}/libstdc++.a
/usr/lib/gcc-lib/${CHOST}/${GCCPV}/libgcc_s.so.1" >> ${T}/config/config
        fi

Excuse the word-wrap.
Comment 8 Matt Keadle 2002-11-26 14:27:21 UTC
Please post your modified ebuild.
Comment 9 J Robert Ray 2002-11-26 19:06:25 UTC
Created attachment 5981 [details]
festival-1.4.2-r3.ebuild

Uses $CHOST.  WFM
Comment 10 Matt Keadle 2002-12-01 00:32:42 UTC
Thanks jrray. Changes are in and commited. What will reopen this bug next?