[asterisk-dev] Dahdi-tools cross-compiling problem

Raphael Amorim raphael.amorim at gmail.com
Mon Sep 28 12:13:11 CDT 2009


Hello,

I've used

./configure --host=$CFGHOST
--with-dahdi=/home/raphael/{...}/motherboard/fw/ltib/rpm/BUILD/dahdi-linux-2.2.0.2

But got the following output:


Processing: dahdi-tools
=========================
get_spec(dahdi-tools)
spec files: [
/home/raphael/devel/...motherboard/fw/ltib/dist/lfs-5.1/dahdi-tools/dahdi-tools.spec,
]
pfx=/opt/freescale/rootfs/i386
files=
%defattr(-,root,root)
/opt/freescale/rootfs/i386/*
prep=
%setup

group=Dahdi
sstart=0
buildroot=/opt/freescale/ltib/var/tmp/dahdi-tools
summary=Digium Asterisk Hardware Device Interface tools (DAHDI)
url=http://www.asterisk.org
pstart=0
install=rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT//opt/freescale/rootfs/i386

version=2.2.0
name=dahdi-tools
release=atmx
packager=Dahdi
build=./configure --host=$CFGHOST
--with-dahdi=/home/raphael/.../motherboard/fw/ltib/rpm/BUILD/dahdi-linux-2.2.0.2
make ARCH=ppc

license=LGPL
sources=dahdi-tools-2.2.0.tar.gz

pkg_dir_name=dahdi-tools-2.2.0
patches=
prefix=/opt/freescale/rootfs/i386
vendor=Digium
Build path taken because: build key set, no prebuilt rpm,

rpmbuild --dbpath /home/raphael/.../motherboard/fw/ltib/rootfs//var/lib/rpm
--target ppc --define '_unpackaged_files_terminate_build 0' --define
'_target_cpu ppc' --define '__strip strip' --define '_topdir
/home/raphael/.../motherboard/fw/ltib/rpm' --define '_prefix /usr' --define
'_tmppath /home/raphael/.../motherboard/fw/ltib/tmp' --define '_mandir
/usr/share/man' --define '_sysconfdir /etc' --define '_localstatedir /var'
-bc --short-circuit
/home/raphael/.../motherboard/fw/ltib/dist/lfs-5.1/dahdi-tools/dahdi-tools.spec
Building target platforms: ppc
Building for target ppc
Executing(%build): /bin/sh -e /home/raphael/
.../motherboard/fw/ltib/tmp/rpm-tmp.51541
+ umask 022
+ cd /home/raphael/.../motherboard/fw/ltib/rpm/BUILD
+ cd dahdi-tools-2.2.0
+ ./configure --host=powerpc-linux --with-dahdi=/home/raphael/...
/motherboard/fw/ltib/rpm/BUILD/dahdi-linux-2.2.0.2
configure: WARNING: If you wanted to set the --build type, don't use --host.
    If a cross compiler is detected then cross compile mode will be used.
checking for powerpc-linux-gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... yes
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking sys/soundcard.h usability... yes
checking sys/soundcard.h presence... yes
checking for sys/soundcard.h... yes
checking linux/soundcard.h usability... yes
checking linux/soundcard.h presence... yes
checking for linux/soundcard.h... yes
checking for powerpc-linux-gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking how to run the C preprocessor... gcc -E
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking for GNU make... make
checking for grep... (cached) /bin/grep
checking for sh... /bin/bash
checking for ln... /bin/ln
checking for wget... /opt/freescale/ltib/usr/bin/wget
checking for -Wdeclaration-after-statement support... yes
checking for DAHDI_CODE in dahdi/user.h... yes
checking for newtBell in -lnewt... no
checking for usb_init in -lusb... no
checking for GENERIC_HDLC_VERSION version 4 in linux/hdlc.h... no
checking for GENERIC_HDLC_VERSION version 4 in linux/hdlc/ioctl.h... yes
configure: creating ./config.status
config.status: creating build_tools/menuselect-deps
config.status: creating makeopts
config.status: creating autoconfig.h
config.status: autoconfig.h is unchanged
configure: *** dahdi-tools build successfully configured ***
+ make ARCH=ppc
CC="" CXX="g++" LD="" AR="" RANLIB="" CFLAGS="" make -C menuselect
CONFIGURE_SILENT="--silent" makeopts
make[1]: Entering directory `/home/raphael/...
/motherboard/fw/ltib/rpm/BUILD/dahdi-tools-2.2.0/menuselect'
configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details.
make[1]: *** [makeopts] Error 1
make[1]: Leaving directory `/home/raphael/...
/motherboard/fw/ltib/rpm/BUILD/dahdi-tools-2.2.0/menuselect'
make: *** [menuselect/makeopts] Error 2
error: Bad exit status from
/home/raphael/.../motherboard/fw/ltib/tmp/rpm-tmp.51541
(%build)


RPM build errors:
    Bad exit status from
/home/raphael/.../motherboard/fw/ltib/tmp/rpm-tmp.51541
(%build)
Build time for dahdi-tools: 2 seconds

Failed building dahdi-tools


f_scbuild() returned an error, exiting
traceback:
 main:501

Exiting on error or interrupt
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-dev/attachments/20090928/123a150d/attachment.htm 


More information about the asterisk-dev mailing list