Hello all,<br><br>I&#39;m trying to cross-compile dahdi-linux on PPC (mpc8315erdb),<br>
I&#39;d included it to LTIB and I&#39;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 &#39;_unpackaged_files_terminate_build 0&#39; --define<br>
&#39;_target_cpu ppc&#39; --define &#39;__strip strip&#39; --define &#39;_topdir<br>
/home/raphael/devel/atmx/implementacao/motherboard/fw/ltib/rpm&#39; --define<br>
&#39;_prefix /usr&#39; --define &#39;_tmppath<br>
/home/raphael/devel/atmx/implementacao/motherboard/fw/ltib/tmp&#39; --define<br>
&#39;_mandir /usr/share/man&#39; --define &#39;_sysconfdir /etc&#39; --define<br>
&#39;_localstatedir /var&#39; -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&#39;<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&#39;<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=&quot; &quot; HOTPLUG_FIRMWARE=yes modules DAHDI_BUILD_ALL=m<br>
make[1]: Entering directory `/usr/src/linux-headers-2.6.28-15-generic&#39;<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 &quot;-mregparm=3&quot;<br>
cc1: error: unrecognized command line option &quot;-march=i586&quot;<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&#39;<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>