[Bug 4219] New: can't complie microperl with error undefined reference to `__ctype_b'
bugzilla at busybox.net
bugzilla at busybox.net
Wed Sep 21 09:19:51 UTC 2011
https://bugs.busybox.net/show_bug.cgi?id=4219
Summary: can't complie microperl with error undefined reference
to `__ctype_b'
Product: uClibc
Version: 0.9.30.3
Platform: PC
OS/Version: Linux
Status: NEW
Severity: minor
Priority: P5
Component: Standard Compliance
AssignedTo: unassigned at uclibc.org
ReportedBy: xiaxiaojin at safefw.com
CC: uclibc-cvs at uclibc.org
Estimated Hours: 0.0
I have a uclibc tool-chain.(0.9.30.3) and build it with buildroot .
root [ perl-5.14.0 ]# make -f Makefile.micro CC=i686-linux-gcc
i686-linux-ld -o microperl uav.o udeb.o udoio.o udoop.o udump.o uglobals.o
ugv.o uhv.o umro.o umg.o uperlmain.o uop.o ureentr.o upad.o uperl.o uperlio.o
uperly.o upp.o upp_ctl.o upp_hot.o upp_sys.o upp_pack.o upp_sort.o uregcomp.o
uregexec.o urun.o uscope.o usv.o utaint.o utoke.o unumeric.o ulocale.o
umathoms.o uuniversal.o uutf8.o uutil.o uperlapi.o ukeywords.o -lm
i686-linux-ld: warning: cannot find entry symbol _start; defaulting to 08049720
upp.o: In function `Perl_pp_split':
pp.c:(.text+0x14294): undefined reference to `__ctype_b'
pp.c:(.text+0x1446b): undefined reference to `__ctype_b'
pp.c:(.text+0x14696): undefined reference to `__ctype_b'
uregexec.o: In function `S_find_byclass':
regexec.c:(.text+0x2983): undefined reference to `__ctype_b'
regexec.c:(.text+0x2a6a): undefined reference to `__ctype_b'
uregexec.o:regexec.c:(.text+0x2bb5): more undefined references to `__ctype_b'
follow
make: *** [microperl] 错误 1
root [ perl-5.14.0 ]# i686-linux-gcc -v
使用内建 specs。
COLLECT_GCC=i686-linux-gcc
COLLECT_LTO_WRAPPER=/mnt/lfs/tmp/buildroot-2011.05/output/host/usr/libexec/gcc/i686-unknown-linux-uclibc/4.6.0/lto-wrapper
目标:i686-unknown-linux-uclibc
配置为:/mnt/lfs/tmp/buildroot-2011.05/output/toolchain/gcc-4.6.0/configure
--prefix=/mnt/lfs/tmp/buildroot-2011.05/output/host/usr
--build=i686-pc-linux-gnu --host=i686-pc-linux-gnu
--target=i686-unknown-linux-uclibc --enable-languages=c,c++
--with-sysroot=/mnt/lfs/tmp/buildroot-2011.05/output/host/usr/i686-unknown-linux-uclibc/sysroot
--with-build-time-tools=/mnt/lfs/tmp/buildroot-2011.05/output/host/usr/i686-unknown-linux-uclibc/bin
--disable-__cxa_atexit --enable-target-optspace --disable-libgomp --with-gnu-ld
--disable-libssp --disable-multilib --disable-tls --enable-shared
--with-gmp=/mnt/lfs/tmp/buildroot-2011.05/output/host/usr
--with-mpfr=/mnt/lfs/tmp/buildroot-2011.05/output/host/usr
--with-mpc=/mnt/lfs/tmp/buildroot-2011.05/output/host/usr --enable-threads
--disable-decimal-float --with-arch=i686 --with-tune=i686
--with-pkgversion='Buildroot 2011.05' --with-bugurl=http://bugs.buildroot.net/
线程模型:posix
gcc 版本 4.6.0 (Buildroot 2011.05)
root [ perl-5.14.0 ]# i686-linux-ld --version
GNU ld (GNU Binutils) 2.20.1.20100303
Copyright 2009 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License version 3 or (at your option) a later version.
This program has absolutely no warranty.
root [ perl-5.14.0 ]#
--
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the uClibc-cvs
mailing list