Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 7611 - babel ebuild does not compile on gentoo-ppc
Summary: babel ebuild does not compile on gentoo-ppc
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: PPC Linux
: High normal (vote)
Assignee: Mark Guertin
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-09-07 06:46 UTC by Stefan Boresch
Modified: 2006-02-04 06:03 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Boresch 2002-09-07 06:46:51 UTC
The babel ebuild does not compile on ppc (Gentoo 1.4beta),
although it compiles (works) fine on Gentoo Intel, both 1.2/1.4; it is
therefore NOT a gcc 3.2 problem per se!

[I use babel on a number of platforms indirectly, i.e., as an
auxiliary program called automagically from other programs.  I don't
know whether it makes sense to report this problem upstream;
the best e-mail I can find is babel@mercury.aichem.arizona.edu,
babel 1.6 is, however, copyrighted 1996]

The file block.c contains assignments of the form

<snip>
va_list ap,initap;
<snip>
initap=ap;

and gcc (on ppc) complains about the initap=ap line.  The problem is
addressed in the glibc documentation [info libc, Node: Variadic Functions->
How Variadic -> Argument Macros] There it is suggested to handle
problems of this type as follows; gcc seems to set #define __va_copy
automatically.

     {
       va_list ap, save;
       ...
     #ifdef __va_copy
       __va_copy (save, ap);
     #else
       save = ap;
     #endif
       ...
     }

Changing the two offending lines in block.c of babel in this manner
makes the code compile. Seems straightforward to me, though I'd love
to understand why the same compiler accepts the original code on intel,
but not on ppc..
Comment 1 Mark Guertin 2002-09-12 09:52:13 UTC
Mat:

have you had a chance to look at this yet?  If no response i will toss this back
to bug-wranglers
Comment 2 Matthew Kennedy (RETIRED) gentoo-dev 2002-09-12 10:33:45 UTC
gerk,

yeah. better pass this onto a ppc dev. the fix looks straight forward, but i
don't have a ppc.
Comment 3 Owen Stampflee (RETIRED) gentoo-dev 2002-09-15 15:15:13 UTC
I just commited the fix. Please test and if it works (I have no clue how babel works) I'll keyword it.  Owen 
Comment 4 Mark Guertin 2002-10-17 13:21:06 UTC
I've set this as KWYORD ~ppc for testing, will close this bug now