bug-ncurses
[Top][All Lists]
Advanced

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

Re: Error while crosscompiling ncurses to ARM


From: Joyce Tan
Subject: Re: Error while crosscompiling ncurses to ARM
Date: Tue, 29 Oct 2002 17:44:57 -0800 (PST)

Hi,

I changed 

address@hidden@%arm-linux-gcc%g
address@hidden@%arm-linux-gcc%g

to

address@hidden@%gcc%g
address@hidden@%gcc%g

in config.status but make_keys stills seems to be
compiled with arm-linux-gcc.  I'm using i686 machine
to cross compile into ARM machine.  ahhm, what am i
missing here?

thanks
joyce

here is the compiling error.

DIR="" all
make[1]: Entering directory
`/root/ncurses/ncurses-5.2/man'
sh ./MKterminfo.sh ./terminfo.head ./../include/Caps
./terminfo.tail >terminfo.5
make[1]: Leaving directory
`/root/ncurses/ncurses-5.2/man'
cd include && make DESTDIR="" all
make[1]: Entering directory
`/root/ncurses/ncurses-5.2/include'
sh ./MKhashsize.sh ./Caps >hashsize.h
AWK=mawk sh ./MKncurses_def.sh ./ncurses_defs
>ncurses_def.h
AWK=mawk sh ./MKparametrized.sh ./Caps >parametrized.h
mawk -f MKterm.h.awk ./Caps > term.h
sh ./edit_cfg.sh ../include/ncurses_cfg.h term.h
** edit: HAVE_TCGETATTR
** edit: HAVE_TERMIOS_H
** edit: HAVE_TERMIO_H
** edit: BROKEN_LINKER
make[1]: Leaving directory
`/root/ncurses/ncurses-5.2/include'
cd ncurses && make DESTDIR="" all
make[1]: Entering directory
`/root/ncurses/ncurses-5.2/ncurses'
sh ./base/MKlib_gen.sh "arm-linux-gcc -E" "mawk"
<../include/curses.h | \
        fgrep undef >../include/nomacros.h
arm-linux-gcc -o make_hash -O2  -I../ncurses -I. 
-DNDEBUG -I. -I../include
-I/root/ncurses/ncurses-5.3/output/include
-DHAVE_CONFIG_H -DMAIN_PROGRAM ./tinfo/comp_hash.c
sh ./tinfo/MKcaptab.awk mawk ./../include/Caps >
comp_captab.c
./tinfo/MKcaptab.awk: ./make_hash: cannot execute
binary file
./tinfo/MKcaptab.awk: ./make_hash: cannot execute
binary file
sh ./tty/MKexpanded.sh "arm-linux-gcc -E" -I../ncurses
-I.  -DNDEBUG -I. -I../include
-I/root/ncurses/ncurses-5.3/output/include
-DHAVE_CONFIG_H > expanded.c
sh ./tinfo/MKfallback.sh  >fallback.c
mawk -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
arm-linux-gcc -o make_keys -O2  -I../ncurses -I. 
-DNDEBUG -I. -I../include
-I/root/ncurses/ncurses-5.3/output/include
-DHAVE_CONFIG_H ./tinfo/make_keys.c
./make_keys ./tinfo/keys.list > init_keytry.h
/bin/sh: ./make_keys: cannot execute binary file
make[1]: *** [init_keytry.h] Error 126
make[1]: Leaving directory
`/root/ncurses/ncurses-5.2/ncurses'
make: *** [all] Error 2


> ncurses 5.2 uses an autoconf 2.13 script
> ncurses 5.3 uses an autoconf 2.52 script.
> 
> One thing that we have to take into account is that
> autoconf 2.5x (incorrectly)
> reverses the sense of the host/build options (and
> that I haven't done anything
> with cross-compiles).  Only the ncurses library's
> makefile contains any support
> for cross-compiling, since that's apparently all
> that anyone used.
> 
> However - it seems that the problem lies here (see
> config.status):
> 
> address@hidden@%arm-linux-gcc%g
> address@hidden@%arm-linux-gcc%g
> 
> Since they're both the same, the places where it
> compiles/links/runs make_hash
> and make_keys will fail, since those are compiled
> for the target environment
> rather than the host. Speaking of which, there's the
> reversal again:  the
> "host" is properly the platform on which you're
> building, not the target...
> 
> -- 
> Thomas E. Dickey <address@hidden>
> http://invisible-island.net
> ftp://invisible-island.net
> 
> 
> _______________________________________________
> Bug-ncurses mailing list
> address@hidden
> http://mail.gnu.org/mailman/listinfo/bug-ncurses

__________________________________________________
Do you Yahoo!?
Y! Web Hosting - Let the expert host your web site
http://webhosting.yahoo.com/




reply via email to

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