Hello all,<br><br>I'm trying to cross-compile dahdi-linux on PPC (mpc8315erdb),<br>
I'd included it to LTIB and I'm getting the following error:<br>
<br>
sources=dahdi-linux-2.2.0.2.<div>tar.gz<br>
<br>
pkg_dir_name=dahdi-linux-2.2.0.2<br>
patches=<br>
prefix=/opt/freescale/rootfs/i386<br>
vendor=Digium<br>
Build path taken because: build key set, no prebuilt rpm,<br>
<br>
rpmbuild --dbpath<br>
/home/raphael/devel/atmx/implementacao/motherboard/fw/ltib/rootfs//var/lib/rpm<br>
--target ppc --define '_unpackaged_files_terminate_build 0' --define<br>
'_target_cpu ppc' --define '__strip strip' --define '_topdir<br>
/home/raphael/devel/atmx/implementacao/motherboard/fw/ltib/rpm' --define<br>
'_prefix /usr' --define '_tmppath<br>
/home/raphael/devel/atmx/implementacao/motherboard/fw/ltib/tmp' --define<br>
'_mandir /usr/share/man' --define '_sysconfdir /etc' --define<br>
'_localstatedir /var' -bc --short-circuit<br>
/home/raphael/devel/atmx/implementacao/motherboard/fw/ltib/dist/lfs-5.1/dahdi-linux/dahdi-linux.spec<br>
Building target platforms: ppc<br>
Building for target ppc<br>
Executing(%build): /bin/sh -e<br>
/home/raphael/devel/atmx/implementacao/motherboard/fw/ltib/tmp/rpm-tmp.58943<br>
+ umask 022<br>
+ cd /home/raphael/devel/atmx/implementacao/motherboard/fw/ltib/rpm/BUILD<br>
+ cd dahdi-linux-2.2.0.2<br>
+ make<br>
make -C drivers/dahdi/firmware firmware-loaders<br>
make[1]: Entering directory<br>
`/home/raphael/devel/atmx/implementacao/motherboard/fw/ltib/rpm/BUILD/dahdi-linux-2.2.0.2/drivers/dahdi/firmware'<br>
make[1]: Leaving directory<br>
`/home/raphael/devel/atmx/implementacao/motherboard/fw/ltib/rpm/BUILD/dahdi-linux-2.2.0.2/drivers/dahdi/firmware'<br>
make -C /lib/modules/2.6.28-15-generic/build<br>
SUBDIRS=/home/raphael/devel/atmx/implementacao/motherboard/fw/ltib/rpm/BUILD/dahdi-linux-2.2.0.2/drivers/dahdi<br>
DAHDI_INCLUDE=/home/raphael/devel/atmx/implementacao/motherboard/fw/ltib/rpm/BUILD/dahdi-linux-2.2.0.2/include<br>
DAHDI_MODULES_EXTRA=" " HOTPLUG_FIRMWARE=yes modules DAHDI_BUILD_ALL=m<br>
make[1]: Entering directory `/usr/src/linux-headers-2.6.28-15-generic'<br>
CC [M]<br>
/home/raphael/devel/atmx/implementacao/motherboard/fw/ltib/rpm/BUILD/dahdi-linux-2.2.0.2/drivers/dahdi/dahdi-base.o<br>
cc1: error: unrecognized command line option "-mregparm=3"<br>
cc1: error: unrecognized command line option "-march=i586"<br>
make[2]: ***<br>
[/home/raphael/devel/atmx/implementacao/motherboard/fw/ltib/rpm/BUILD/dahdi-linux-2.2.0.2/drivers/dahdi/dahdi-base.o]<br>
Error 1<br>
make[1]: ***<br>
[_module_/home/raphael/devel/atmx/implementacao/motherboard/fw/ltib/rpm/BUILD/dahdi-linux-2.2.0.2/drivers/dahdi]<br>
Error 2<br>
make[1]: Leaving directory `/usr/src/linux-headers-2.6.28-15-generic'<br>
make: *** [modules] Error 2<br>
error: Bad exit status from<br>
/home/raphael/devel/atmx/implementacao/motherboard/fw/ltib/tmp/rpm-tmp.58943<br>
(%build)<br>
<br>
<br>
RPM build errors:<br>
Bad exit status from<br>
/home/raphael/devel/atmx/implementacao/motherboard/fw/ltib/tmp/rpm-tmp.58943<br>
(%build)<br>
Build time for dahdi-linux: 0 seconds<br>
<br>
Failed building dahdi-linux<br>
<br>
<br>
f_scbuild() returned an error, exiting<br>
traceback:<br>
main:501<br>
<br>
Exiting on error or interrupt<br>
<br>
<br>
Any tricks or hints?</div>