[Home]

Summary:DAHLIN-00144: Can't build dahdi-linux for
Reporter:Raphael Amorim (raphael)Labels:
Date Opened:2009-09-18 16:42:16Date Closed:2009-09-21 09:43:28
Priority:MajorRegression?No
Status:Closed/CompleteComponents:General
Versions:2.2.0.2 Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description: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?
Comments:By: Leif Madsen (lmadsen) 2009-09-21 09:43:28

I'd suggest you take this to the asterisk-dev mailing list as this feels like a support issue at the point that you are at. If you determine via the mailing list that this is a bug, then please reference the mailing list discussion, and any patches that you may be able to develop after the discussion. Thanks!