[asterisk-bugs] [DAHDI-linux 0015919]: Can't build dahdi-linux for

Asterisk Bug Tracker noreply at bugs.digium.com
Fri Sep 18 16:42:16 CDT 2009


The following issue has been SUBMITTED. 
====================================================================== 
https://issues.asterisk.org/view.php?id=15919 
====================================================================== 
Reported By:                raphael
Assigned To:                
====================================================================== 
Project:                    DAHDI-linux
Issue ID:                   15919
Category:                   General
Reproducibility:            have not tried
Severity:                   major
Priority:                   normal
Status:                     new
JIRA:                        
====================================================================== 
Date Submitted:             2009-09-18 16:42 CDT
Last Modified:              2009-09-18 16:42 CDT
====================================================================== 
Summary:                    Can't build dahdi-linux for
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?
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-09-18 16:42 raphael        New Issue                                    
======================================================================




More information about the asterisk-bugs mailing list