Subject: | FTBFS (make test hangs) |
root@raspberrypi:/home/pi/Device-BCM2835-1.8# perl ./Makefile.PL
Checking if your kit is complete...
Looks good
Writing Makefile for Device::BCM2835
Writing MYMETA.yml
root@raspberrypi:/home/pi/Device-BCM2835-1.8# make
cp lib/Device/BCM2835.pm blib/lib/Device/BCM2835.pm
AutoSplitting blib/lib/Device/BCM2835.pm (blib/lib/auto/Device/BCM2835)
/usr/bin/perl /usr/share/perl5/ExtUtils/xsubpp -typemap /usr/share/perl/5.14/ExtUtils/typemap -typemap typemap BCM2835.xs > BCM2835.xsc && mv BCM2835.xsc BCM2835.c
Please specify prototyping behavior for BCM2835.xs (see perlxs manual)
cc -c -I/usr/local/projects/bcm2835/src -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fstack-protector -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g -DVERSION=\"1.8\" -DXS_VERSION=\"1.8\" -fPIC "-I/usr/lib/perl/5.14/CORE" BCM2835.c
Running Mkbootstrap for Device::BCM2835 ()
chmod 644 BCM2835.bs
rm -f blib/arch/auto/Device/BCM2835/BCM2835.so
cc -shared -L/usr/local/lib -fstack-protector BCM2835.o -o blib/arch/auto/Device/BCM2835/BCM2835.so \
-lbcm2835 -lrt \
chmod 755 blib/arch/auto/Device/BCM2835/BCM2835.so
cp BCM2835.bs blib/arch/auto/Device/BCM2835/BCM2835.bs
chmod 644 blib/arch/auto/Device/BCM2835/BCM2835.bs
Manifying blib/man3/Device::BCM2835.3pm
root@raspberrypi:/home/pi/Device-BCM2835-1.8# make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/Device-BCM2835.t .. 1/5
# And hangs forever, with high CPU usage (97.8%)
pi@raspberrypi ~/Device-BCM2835-1.8 $ ps aux|grep perl|grep MM|grep Devi
root 14576 97.8 1.3 10736 6724 pts/1 R+ 10:15 0:44 /usr/bin/perl -MExtUtils::Command::MM -e test_harness(0, 'blib/lib', 'blib/arch') t/Device-BCM2835.t
Env:
pi@raspberrypi ~ $ lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 7.0 (wheezy)
Release: 7.0
Codename: wheezy
pi@raspberrypi ~ $ uname -a
Linux raspberrypi 3.6.11+ #456 PREEMPT Mon May 20 17:42:15 BST 2013 armv6l GNU/Linux
root@raspberrypi:/home/pi/Device-BCM2835-1.8# perl -v
This is perl 5, version 14, subversion 2 (v5.14.2) built for arm-linux-gnueabihf-thread-multi-64int
(with 80 registered patches, see perl -V for more detail)
Copyright 1987-2011, Larry Wall
Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.
Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl". If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.
pi@raspberrypi ~ $ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/arm-linux-gnueabihf/4.6/lto-wrapper
Target: arm-linux-gnueabihf
Configured with: ../src/configure -v --with-pkgversion='Debian 4.6.3-14+rpi1' --with-bugurl=file:///usr/share/doc/gcc-4.6/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.6 --enable-shared --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.6 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --enable-plugin --enable-objc-gc --disable-sjlj-exceptions --with-arch=armv6 --with-fpu=vfp --with-float=hard --enable-checking=release --build=arm-linux-gnueabihf --host=arm-linux-gnueabihf --target=arm-linux-gnueabihf
Thread model: posix
gcc version 4.6.3 (Debian 4.6.3-14+rpi1)
pi@raspberrypi ~ $ dpkg -L bcm2835
/.
/usr
/usr/local
/usr/local/include
/usr/local/include/bcm2835.h
/usr/local/lib
/usr/local/lib/libbcm2835.a
/usr/share
/usr/share/doc
/usr/share/doc/bcm2835
/usr/share/doc/bcm2835/doc
/usr/share/doc/bcm2835/doc/Makefile.am
/usr/share/doc/bcm2835/doc/Makefile
/usr/share/doc/bcm2835/doc/Makefile.in
/usr/share/doc/bcm2835/doc/Doxyfile.in
/usr/share/doc/bcm2835/INSTALL
/usr/share/doc/bcm2835/COPYING
/usr/share/doc/bcm2835/README
/usr/share/doc/bcm2835/ChangeLog
/usr/share/doc/bcm2835/NEWS
/usr/share/doc/bcm2835/AUTHORS
# I installed your bcm2835 with checkinstall, so I can search it
Hope these info helps....
Best wishes,
BlueT