Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 185476 - cross-compiling multilib glibc-2.6 may lead to failure (regen C-translit.h w/perl)
Summary: cross-compiling multilib glibc-2.6 may lead to failure (regen C-translit.h w/...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL: http://sources.redhat.com/bugzilla/sh...
Whiteboard:
Keywords:
: 209493 218003 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-07-15 23:15 UTC by SpanKY
Modified: 2008-12-08 01:36 UTC (History)
5 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 SpanKY gentoo-dev 2007-07-15 23:15:00 UTC
some setups may fail like this:
In file included from C-ctype.c:23:
C-translit.h:7: error: expected expression before ';' token
C-translit.h:13: error: expected expression before ';' token
C-translit.h:13: error: invalid initializer
C-ctype.c:551: error: '_nl_C_LC_CTYPE_class' undeclared here (not in a function)
C-ctype.c:551: error: initializer element is not constant
C-ctype.c:551: error: (near initialization for '_nl_C_LC_CTYPE.values[0].string')
C-ctype.c:657: error: 'translit_to_idx' undeclared here (not in a function)
C-ctype.c:657: error: initializer element is not constant
C-ctype.c:657: error: (near initialization for '_nl_C_LC_CTYPE.values[64].wstr')

this is because of locale/gen-translit.pl, it invokes:
"cat C-translit.h.in | gcc -E - |"

and in these multilib setups, the transparent env vars for forcing ABI cflags causes problems:
cc1: error: unknown ABI specified: '64'
cc1: error: unrecognized command line option "-mabi=64"

thus leaving C-translit.h broken
Comment 1 SpanKY gentoo-dev 2008-02-11 06:42:52 UTC
*** Bug 209493 has been marked as a duplicate of this bug. ***
Comment 2 Ryan Hill (RETIRED) gentoo-dev 2008-02-12 00:10:53 UTC
yuck.
Comment 3 SpanKY gentoo-dev 2008-12-08 01:23:53 UTC
*** Bug 218003 has been marked as a duplicate of this bug. ***
Comment 4 SpanKY gentoo-dev 2008-12-08 01:30:29 UTC
locale/C-translit.h is supposed to be generated with every release, but for some reason the timestamps are wrong in recent tarballs

workaround by just doing `touch` in the ebuild
http://sources.gentoo.org/sys-libs/glibc/files/eblits/src_unpack.eblit?r1=1.6&r2=1.7

-rw-rw-r-- jakub/jakub   60864 2007-04-28 01:46 glibc-2.6.1/locale/C-translit.h
-rw-rw-r-- jakub/jakub   82789 2007-04-28 01:50 glibc-2.6.1/locale/C-translit.h.in

-rw-rw-r-- jakub/jakub   60864 2007-04-28 01:46 glibc-2.7/locale/C-translit.h
-rw-rw-r-- jakub/jakub   82789 2007-04-28 01:50 glibc-2.7/locale/C-translit.h.in

-rw-r--r-- roland/glibc   60864 2007-04-28 01:46 glibc-2.9-20081201/locale/C-translit.h
-rw-r--r-- roland/glibc   82789 2007-04-28 01:50 glibc-2.9-20081201/locale/C-translit.h.in