bug-ncurses
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Ncurses for mips


From: Thomas Dickey
Subject: Re: Ncurses for mips
Date: Tue, 1 Feb 2005 20:06:00 -0500 (EST)

On Tue, 1 Feb 2005, Vivek wrote:

./configure --prefix=/home/dvivek/test/ncurses --target=mips-linux

The output of ncurses configure script is given below.

Configuring NCURSES 5.4 ABI 5 (Tue Feb  1 16:31:56 PST 2005)
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... mips-unknown-linux-gnu
Configuring for linux-gnu
checking for prefix... /home/dvivek/test/ncurses
checking for gcc... mips-linux-gcc
checking for C compiler default output... configure: error: C compiler
cannot create executables

As you see the ncurses configure is not identifying the target system type
correctly and reports error while checking compiler default output.

Any idea what may go wrong ?

The config.log file should show more detail.  I have a much simpler
script for testing djgpp cross-compile, and see I'm using --target
there.  You'll run into trouble by not specifying ---with-build-cc,
but I don't think it's a problem at this point in the script.

For reference, this is what I'm using (but bear in mind that the
directory layout of the cross-compiler is important):

#!/bin/sh
# $Id: cfg-djgpp,v 1.3 2004/01/20 23:32:19 tom Exp $
# configure to cross-compile ncurses for djgcc
#
# TODO: can I make it build with gnat?
TARGET=i586-pc-msdosdjgpp
TOOLS=/usr/local/compiler/cross/djgpp

# I should put $TOOLS/bin in the path (as does "with-djgpp"), but that's
# clutter.

# autoconf 2.5x AC_CHECK_TOOL looks for the "$TARGET-" prefix.
# autconf 2.13 does not.
export AR=$TOOLS/bin/$TARGET-ar
export RANLIB=$TOOLS/bin/$TARGET-ranlib
export LD=$TOOLS/bin/$TARGET-ld

# autoconf would not guess this:
export CC=djgcc
export CXX=djgpp

cfg-normal \
        --with-build-cc=gcc \
        --host=$TARGET \
        --target=$TARGET \
        $*

--
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net




reply via email to

[Prev in Thread] Current Thread [Next in Thread]