[asterisk-dev] Dahdi-linux embedded

Raphael Amorim raphael.amorim at gmail.com
Mon Sep 21 10:06:12 CDT 2009


Hello all,

I'm trying to cross-compile dahdi-linux on PPC (mpc8315erdb),
I'd included it to LTIB and I'm getting the following error:

sources=dahdi-linux-2.2.0.2.tar.gz

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

rpmbuild --dbpath
/home/raphael/devel/atmx/implementacao/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/devel/atmx/implementacao/motherboard/fw/ltib/rpm' --define
'_prefix /usr' --define '_tmppath
/home/raphael/devel/atmx/implementacao/motherboard/fw/ltib/tmp' --define
'_mandir /usr/share/man' --define '_sysconfdir /etc' --define
'_localstatedir /var' -bc --short-circuit
/home/raphael/devel/atmx/implementacao/motherboard/fw/ltib/dist/lfs-5.1/dahdi-linux/dahdi-linux.spec
Building target platforms: ppc
Building for target ppc
Executing(%build): /bin/sh -e
/home/raphael/devel/atmx/implementacao/motherboard/fw/ltib/tmp/rpm-tmp.58943
+ umask 022
+ cd /home/raphael/devel/atmx/implementacao/motherboard/fw/ltib/rpm/BUILD
+ cd dahdi-linux-2.2.0.2
+ make
make -C drivers/dahdi/firmware firmware-loaders
make[1]: Entering directory
`/home/raphael/devel/atmx/implementacao/motherboard/fw/ltib/rpm/BUILD/dahdi-linux-2.2.0.2/drivers/dahdi/firmware'
make[1]: Leaving directory
`/home/raphael/devel/atmx/implementacao/motherboard/fw/ltib/rpm/BUILD/dahdi-linux-2.2.0.2/drivers/dahdi/firmware'
make -C /lib/modules/2.6.28-15-generic/build
SUBDIRS=/home/raphael/devel/atmx/implementacao/motherboard/fw/ltib/rpm/BUILD/dahdi-linux-2.2.0.2/drivers/dahdi
DAHDI_INCLUDE=/home/raphael/devel/atmx/implementacao/motherboard/fw/ltib/rpm/BUILD/dahdi-linux-2.2.0.2/include
DAHDI_MODULES_EXTRA=" " HOTPLUG_FIRMWARE=yes modules DAHDI_BUILD_ALL=m
make[1]: Entering directory `/usr/src/linux-headers-2.6.28-15-generic'
 CC [M]
/home/raphael/devel/atmx/implementacao/motherboard/fw/ltib/rpm/BUILD/dahdi-linux-2.2.0.2/drivers/dahdi/dahdi-base.o
cc1: error: unrecognized command line option "-mregparm=3"
cc1: error: unrecognized command line option "-march=i586"
make[2]: ***
[/home/raphael/devel/atmx/implementacao/motherboard/fw/ltib/rpm/BUILD/dahdi-linux-2.2.0.2/drivers/dahdi/dahdi-base.o]
Error 1
make[1]: ***
[_module_/home/raphael/devel/atmx/implementacao/motherboard/fw/ltib/rpm/BUILD/dahdi-linux-2.2.0.2/drivers/dahdi]
Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.28-15-generic'
make: *** [modules] Error 2
error: Bad exit status from
/home/raphael/devel/atmx/implementacao/motherboard/fw/ltib/tmp/rpm-tmp.58943
(%build)


RPM build errors:
   Bad exit status from
/home/raphael/devel/atmx/implementacao/motherboard/fw/ltib/tmp/rpm-tmp.58943
(%build)
Build time for dahdi-linux: 0 seconds

Failed building dahdi-linux


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

Exiting on error or interrupt


Any tricks or hints?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-dev/attachments/20090921/6b35ef21/attachment.htm 


More information about the asterisk-dev mailing list