On Thu, May 06, 2010 at 10:12:27AM +0900, Zaya Kh wrote:
> Hi , all
> 
> I want to create uClinux with Asterisk PBX, I'm using Petalinux tool chain
> and Spartan3e Starter kit board
> We can* "make menuconfig"*,
> check Asterisk PBX, and libSSL, ncurses
> 
> While we compiling kernel, I saw this error:
> 
> ......
> checking whether the C compiler (ucfront-gcc microblaze-uclinux-gcc  -Os -g
> -fomit-frame-pointer -pipe -fno-common -fno-builtin -Wall  -mno-xl-soft-mul
> -mno-xl-soft-div -mxl-barrel-shift -mcpu=v6.00.b   -DEMBED -Dlinux
> -D__linux__ -Dunix -D__uClinux__ -DLINUX -pipe  -Wall -Wstrict-prototypes
> -Wmissing-prototypes -Wmissing-declarations -g  -Iinclude -I../include
> -D_REENTRANT -D_GNU_SOURCE  -O6
> -I/opt/petalinux-v0.40-final/software/petalinux-dist/user/asterisk/tinytcap
> -DASTERISK_VERSION="1.0.7" -DASTETCDIR="/etc/config/asterisk"
> -DASTLIBDIR="/lib/asterisk" -DASTVARLIBDIR="/var/lib/asterisk"
> -DASTVARRUNDIR="/var/run" -DASTSPOOLDIR="/var/spool/asterisk"
> -DASTLOGDIR="/var/log/asterisk"
> -DASTCONFPATH="/etc/config/asterisk/asterisk.conf"
> -DASTMODDIR="/lib/asterisk/modules" -DASTAGIDIR="/agi-bin"
> -DBUSYDETECT_MARTIN        -mno-xl-soft-mul -mno-xl-soft-div
> -mxl-barrel-shift -mcpu=v6.00.b  -Wl,-elf2flt -L../tinytcap) works... no
> configure: error: installation or configuration problem: C compiler cannot
> create executables.
> make[2]: *** [editline/libedit.a] Error 1
> make[2]: Leaving directory
> `/opt/petalinux-v0.40-final/software/petalinux-dist/user/asterisk'
> make[1]: *** [all] Error 2
> make[1]: Leaving directory
> `/opt/petalinux-v0.40-final/software/petalinux-dist/user'
> make: *** [subdirs] Error 1
> [r...@localhost petalinux-dist]#
> 
> 
> What can I do? Help me?

Things using configure tend to hate cross compiling since they often
believe they can create a test program and run it to find out some
setting.  If you cross compile then you can't run the executable and
hence the test can't run.  That might not be what is happening here,
but it could be part of the problem.

autoconf is simply evil when you are trying to cross compile.  A terrible
horrible mess.

config.log often has useful info in it of course.

-- 
Len Sorensen
_______________________________________________
uClinux-dev mailing list
uClinux-dev@uclinux.org
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by uclinux-dev@uclinux.org
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev

Reply via email to