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:50:17 -0800

  
Hi

After over-riding the cflagsm the config.log reports following entry

$ ./configure --prefix=/home/dvivek/test/ncurses --with-build-cc=gcc
--host=mips-linux --target=mips-linux --with-build-cflags=-O3 

However compilation still failed as the cross compiler flags are passed to
host compiler as is shown below. I thought only the flags specfied in
--with-build-cflags will be passed to host compiler.

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
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
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 -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'
make[1]: *** [make_hash] Error 1
make[1]: Leaving directory `/home/dvivek/test/ncurses-5.4/ncurses'

What may go wrong ?

Thanks.

Regards
Vivek

-----Original Message-----
From: Thomas Dickey [mailto:address@hidden 
Sent: Wednesday, February 02, 2005 1:10 PM
To: Vivek
Cc: address@hidden
Subject: RE: Ncurses for mips

On Wed, 2 Feb 2005, Vivek wrote:

> 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 ?

You need to override the configure script using --with-build-cflags.
>From "INSTALL":

     --with-build-cc=XXX
         If cross-compiling, specify a host C compiler, which is needed to
         compile a few utilities which generate source modules for ncurses.
         If you do not give this option, the configure script checks if the
         $BUILD_CC variable is set, and otherwise defaults to gcc or cc.

     --with-build-cflags=XXX
         If cross-compiling, specify the host C compiler-flags.  You might
need
         to do this if the target compiler has unusual flags which confuse
the
         host compiler.

     --with-build-cppflags=XXX
         If cross-compiling, specify the host C preprocessor-flags.  You
might
         need to do this if the target compiler has unusual flags which
confuse
         the host compiler.

     --with-build-ldflags=XXX
         If cross-compiling, specify the host linker-flags.  You might need
to
         do this if the target linker has unusual flags which confuse the
host
         compiler.

     --with-build-libs=XXX
         If cross-compiling, the host libraries.  You might need to do this
if
         the target environment requires unusual libraries.

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





reply via email to

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