On 3/28/2012 6:29 AM, Ratnaraj Mirgal wrote:
Hi All,
I'm trying to build a cross compiler for powerpc below are the version
details,
host=build=i686-pc-linux-gnu
target=powerpc-home-linux-gnu
binutils-2.22 gcc-4.6.2 glibc-2.14.1 gmp-5.0.4 linux-2.6.34
mpc-0.9 mpfr-3.1.0
(soft links created for gmp, mpc and mpfr in gcc)
(snip)
/home/ratnaraj/cross/objdir/libc_pic.os: In function `__GI___assert_fail':
/home/ratnaraj/cross/glibc-2.14.1/assert/assert.c:105: */undefined
reference/* to `__GI___dcgettext'
/home/ratnaraj/cross/objdir/libc_pic.os: In function
`__GI___assert_perror_fail':
/home/ratnaraj/cross/glibc-2.14.1/assert/assert-perr.c:37: */undefined
reference/* to `__GI___dcgettext'
/home/ratnaraj/cross/objdir/libc_pic.os: In function `get_output_charset':
/home/ratnaraj/cross/glibc-2.14.1/intl/dcigettext.c:1402: */undefined
reference/* to `__libc_tsd_LOCALE_data'
/home/ratnaraj/cross/objdir/libc_pic.os: In function `read_alias_file':
/home/ratnaraj/cross/glibc-2.14.1/intl/localealias.c:255: */undefined
reference/* to `__libc_tsd_CTYPE_B_data'
/home/ratnaraj/cross/objdir/libc_pic.os: In function `__ctype_b_loc':
/home/ratnaraj/cross/glibc-2.14.1/intl/../include/ctype.h:30:
*/undefined reference/* to `__libc_tsd_LOCALE_data'
/home/ratnaraj/cross/objdir/libc_pic.os: In function
`__gettext_extract_plural':
/home/ratnaraj/cross/glibc-2.14.1/intl/plural-exp.c:122: */undefined
reference/* to `__libc_tsd_CTYPE_B_data'
/home/ratnaraj/cross/objdir/libc_pic.os: In function `__ctype_b_loc':
/home/ratnaraj/cross/glibc-2.14.1/intl/../include/ctype.h:30:
*/undefined reference/* to `__libc_tsd_LOCALE_data'
/home/ratnaraj/cross/objdir/libc_pic.os: In function `psignal':
/home/ratnaraj/cross/glibc-2.14.1/stdio-common/psignal.c:52:
*/undefined reference/* to `__GI___dcgettext'
/home/ratnaraj/cross/glibc-2.14.1/stdio-common/psignal.c:51:
*/undefined reference/* to `__GI___dcgettext'
/home/ratnaraj/cross/objdir/libc_pic.os: In function `psiginfo':
/home/ratnaraj/cross/glibc-2.14.1/stdio-common/psiginfo.c:114:
*/undefined reference/* to `__GI___dcgettext'
/home/ratnaraj/cross/glibc-2.14.1/stdio-common/psiginfo.c:204:
*/undefined reference/* to `__GI___dcgettext'
/home/ratnaraj/cross/glibc-2.14.1/stdio-common/psiginfo.c:186:
*/undefined reference/* to `__GI___dcgettext'
/home/ratnaraj/cross/objdir/libc_pic.os:/home/ratnaraj/cross/glibc-2.14.1/malloc/mcheck.c:362:
more undefined references to `__GI___dcgettext' follow
/home/ratnaraj/cross/objdir/libc_pic.os:(.stab+0x14): */undefined
reference/* to `_free_mem'
(snip)
See all of those undefined references? You need to either get those
references defined, or you need to get rid of them entirely. Otherwise
it won't work. You might also make a cross-compiling toolchain
beforehand that supports the rather ridiculously over-guarded powerpc
architecture.
Elly
--
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page