perl fails to cross-build
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
perl (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
perl fails to cross-build with a lot of undefined references to pthread*
cc -fstack-protector -L/usr/local/lib -o miniperl \
gv.o toke.o perly.o pad.o regcomp.o dump.o util.o mg.o reentr.o mro.o hv.o av.o run.o pp_hot.o sv.o pp.o scope.o pp_ctl.o pp_sys.o doop.o doio.o regexec.o utf8.o taint.o deb.o universal.o xsutils.o globals.o perlio.o perlapi.o numeric.o mathoms.o locale.o pp_pack.o pp_sort.o \
miniperlmain.o opmini.o perlmini.o
util.o: In function `Perl_safesysma
/home/wookey/
util.o: In function `Perl_safesysre
/home/wookey/
util.o: In function `Perl_croak_
/home/wookey/
util.o: In function `Perl_safesysca
/home/wookey/
util.o: In function `Perl_die_
/home/wookey/
Background:
The build command is:
xdeb --only-explicit -a armel --prefer-apt --apt-source --debug --force-rebuild perl
The actual build command xdeb issues is:
debuild --no-lintian -eUSER -eCONFIG_
To easily reproduce the build environment in which this bug was discovered follow the HOWTO here:
https:/
With a large cross building patch applied it gets much further, and instead dies trying to link wrong-arch libbz2:
arm-linux- gnueabi- gcc -shared -O2 -g -fstack-protector Bzip2.o -o /home/wookey/ testing/ build/build/ xdeb/perl- 5.10.1/ lib/arm- linux-gnueabi/ auto/Compress/ Raw/Bzip2/ Bzip2.so \
-L/usr/lib -lbz2 \
/usr/lib/libbz2.so: file not recognized: File format not recognized
Patched version of perl is in https:/ /launchpad. net/~linaro- foundations/ +archive/ cross-alip
Build-log attached.