bug-ncurses
[Top][All Lists]
Advanced

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

RE: Ncurses for mips


From: Vivek
Subject: RE: Ncurses for mips
Date: Wed, 2 Feb 2005 13:02:46 -0800

Hi

Now can run configure successfully. Few of the initial messages spit by
configure are listed below

Configuring NCURSES 5.4 ABI 5 (Wed Feb  2 12:46:23 PST 2005)
checking build system type... i686-pc-linux-gnu
checking host system type... mips-unknown-linux-gnu
checking target system type... mips-unknown-linux-gnu
Configuring for linux-gnu
checking for prefix... /home/dvivek/test/ncurses
checking for mips-linux-gcc... mips-linux-gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... yes
checking for executable suffix...
checking for object suffix... o
checking whether we are using the GNU C compiler... yes
checking whether mips-linux-gcc accepts -g... yes
checking version of mips-linux-gcc... 2.95.3
checking how to run the C preprocessor... mips-linux-gcc -E
checking whether mips-linux-gcc needs -traditional... no
checking for POSIXized ISC... no
checking for mips-linux-gcc option to accept ANSI C... -DCC_HAS_PROTOS
checking if you want to ensure bool is consistent with C++... yes
checking for mips-linux-g++... mips-linux-g++
checking whether we are using the GNU C++ compiler... yes
checking whether mips-linux-g++ accepts -g... yes
checking version of g++... 2.95.3
checking for mips-linux-ranlib... mips-linux-ranlib
checking for mips-linux-ld... mips-linux-ld
checking for mips-linux-ar... mips-linux-ar
checking for archiver options (symbol AR_OPTS)... Rv

However the compilation fails with the following message.

address@hidden ncurses-5.4]$ make
cd man && make DESTDIR="" all
make[1]: Entering directory `/home/dvivek/test/ncurses-5.4/man'
sh ./MKterminfo.sh ./terminfo.head ./../include/Caps ./terminfo.tail
>terminfo.5
make[1]: Leaving directory `/home/dvivek/test/ncurses-5.4/man'
cd include && make DESTDIR="" all
make[1]: Entering directory `/home/dvivek/test/ncurses-5.4/include'
cat curses.head >curses.h
AWK=gawk sh ./MKkey_defs.sh ./Caps >>curses.h
sh -c 'if test "chtype" = "cchar_t" ; then cat ./curses.wide >>curses.h ;
fi'
cat ./curses.tail >>curses.h
sh ./MKhashsize.sh ./Caps >hashsize.h
AWK=gawk sh ./MKncurses_def.sh ./ncurses_defs >ncurses_def.h
AWK=gawk sh ./MKparametrized.sh ./Caps >parametrized.h
gawk -f MKterm.h.awk ./Caps > term.h
sh ./edit_cfg.sh ../include/ncurses_cfg.h term.h
** edit: HAVE_TCGETATTR 1
** edit: HAVE_TERMIOS_H 1
** edit: HAVE_TERMIO_H 1
** edit: BROKEN_LINKER 0
make[1]: Leaving directory `/home/dvivek/test/ncurses-5.4/include'
cd ncurses && make DESTDIR="" all
make[1]: Entering directory `/home/dvivek/test/ncurses-5.4/ncurses'
sh ./base/MKlib_gen.sh "mips-linux-gcc -E -DHAVE_CONFIG_H -I../ncurses -I.
-I. -I../include  -D_GNU_SOURCE -DNDEBUG
-I/home/dvivek/test/ncurses/include/ncurses" "gawk" generated
<../include/curses.h | \
 fgrep undef >../include/nomacros.h
gawk -f ./tinfo/MKnames.awk ./../include/Caps
cat namehdr boolnames boolfnames numnames numfnames strnames strfnames
nameftr >names.c
cat namehdr boolcodes numcodes strcodes codeftr >codes.c
rm -f namehdr nameftr codeftr boolnames boolfnames boolcodes numnames
numfnames numcodes strnames strfnames strcodes
gcc -o make_hash -DHAVE_CONFIG_H -I../ncurses -I. -DHAVE_CONFIG_H
-I../ncurses -I. -I. -I../include  -D_GNU_SOURCE -DNDEBUG
-I/home/dvivek/test/ncurses/include/ncurses -O3 -fomit-frame-pointer -Dlinux
-D__linux__ -Dunix -D__uClinux__ -DEMBED -fno-builtin
-specs=/home/dvivek/mipsdevelop/usbkbd/fusiv_linux/specs -static
-mcpu=lx4189 -D__ELF__ -msoft-mult-div
-I/home/dvivek/mipsdevelop/usbkbd/fusiv_linux/uClibc/include
-I/home/dvivek/mipsdevelop/usbkbd/fusiv_linux
-I/home/dvivek/mipsdevelop/usbkbd/fusiv_linux/linux/include -DMAIN_PROGRAM
./tinfo/comp_hash.c -O3 -fomit-frame-pointer -Dlinux -D__linux__ -Dunix
-D__uClinux__ -DEMBED -fno-builtin
-specs=/home/dvivek/mipsdevelop/usbkbd/fusiv_linux/specs -static
-mcpu=lx4189 -D__ELF__ -msoft-mult-div
-I/home/dvivek/mipsdevelop/usbkbd/fusiv_linux/uClibc/include
-I/home/dvivek/mipsdevelop/usbkbd/fusiv_linux
-I/home/dvivek/mipsdevelop/usbkbd/fusiv_linux/linux/include
-CRT0=/home/dvivek/mipsdevelop/usbkbd/fusiv_linux/uClibc/lib/crt0.o
-L/home/dvivek/mipsdevelop/usbkbd/fusiv_linux/uClibc/lib -lc    -lgcc
cc1: invalid option `soft-mult-div'
cc1: invalid option `soft-mult-div'
make[1]: *** [make_hash] Error 1
make[1]: Leaving directory `/home/dvivek/test/ncurses-5.4/ncurses'
make: *** [all] Error 2

Soft-mult-div is one of the flags used my cross-compiler and is required. I
don't know why the cross compiler flags are passed to host compiler gcc. I
suppose all the source file should be compiled using my cross compiler.

What may go wrong ? 

Thanks.

Regards
Vivek

-----Original Message-----
From: Thomas Dickey [mailto:address@hidden 
Sent: Tuesday, February 01, 2005 5:06 PM
To: Vivek
Cc: address@hidden
Subject: Re: Ncurses for mips

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]