bug-ncurses
[Top][All Lists]
Advanced

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

cross-compilation trouble


From: Maksim A. Nikulin
Subject: cross-compilation trouble
Date: Thu, 27 Jun 2002 19:15:19 +0700

Hi

I compiled ncurses-5.2 for the Motorola ColdFire processor but there was a
number of problems.

First of all, configure options and environment:
<--->
CM=<the directory with cross-compilation tools, libs and headers>

CC="$CM/tools/m68k-elf-gcc" \
CPP="$CM/tools/m68k-elf-cpp" \
AR="$CM/tools/m68k-elf-ar" \
RANLIB="$CM/tools/m68k-elf-ranlib" \
LDFLAGS="-B$CM/tools/m68k-elf- -r -nostdlib -L$CM/lib
         -Wl,-T,$CM/work/user.ld,$CM/lib/crt0.o" \
LIBS="-Wl,--start-group,-lc,-lmf,-lnet,-lgcc,--end-group" \
CPPFLAGS="-I$CM/include-gcc -I$CM/include-libc
         -I$CM/include-libm -I$CM/include-libnet
         -DCONFIG_COLDFIRE -D__linux__ -DEMBED" \
CFLAGS="-B$CM/tools/m68k-elf-
         -Wa,-m5200 -m5200 -O2 -msoft-float -fno-builtin" \
./configure \
        --host=m68k-bdm-elf \
        --build=i686 \
        --without-cxx \
        --without-cxx-binding \
        --disable-database \
        --without-ada \
        --without-cxx-binding \
        --disable-termcap \
        --with-fallbacks="vt100 linux xterm screen" \
        --program-suffix=".elf" \
        --prefix="<directory>"

</--->

Now let's enumerate the problems

System headers precede ncurses ones in ncurses/Makefile, etc. Thus
term.h includes from system directories and conflicts with library
headers.

Another problem occurs with the menu library.

/tmp/ccMZcGoN.s: Assembler messages:
/tmp/ccMZcGoN.s:124: Error: invalid index size for ColdFire -- statement
`move.b %d2,(%a0,%a1.w)' ignored
make[1]: *** [../objects/m_driver.o] Error 1

It disappears when I alter type of MENU.pindex in menu/menu.h from short
to int.

Also I try newer version, more exactly 2002/01/12 snapshot. There are
wonderful options of the configure like --with-build-cc but I haven't
found one for build cpp flags. 

Maksim Nikulin <address@hidden>




reply via email to

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