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

Re: Bug#322724: ncurses doesn't build with gcc -m64 on i386



On Fri, Aug 12, 2005 at 08:32:59PM +0200, Matthias Klose wrote:
> Daniel Jacobowitz writes:
> > On Fri, Aug 12, 2005 at 03:55:52PM +0200, Matthias Klose wrote:
> > Content-Description: message body text
> > > Package: ncurses
> > > 
> > > Trying to build ncurses on i386 with -m64
> > > 
> > > gcc -m64 -DHAVE_CONFIG_H -I../ncurses -I/home/doko/src/gcc/ncurses-5.4/ncurses -I/home/doko/src/gcc/ncurses-5.4/ncurses/../include -I. -I../include  -D_GNU_SOURCE -DNDEBUG -DCPP_HAS_STATIC_CAST -O2 -g -D_REENTRANT -fPIC -c /home/doko/src/gcc/ncurses-5.4/ncurses/tty/tty_update.c -o ../obj_s/tty_update.o
> > > /tmp/ccizyCnQ.s: Assembler messages:
> > > /tmp/ccizyCnQ.s:65: Error: Incorrect register `%rax' used with `l' suffix
> > > make[2]: *** [../obj_s/tty_update.o] Error 1
> > > make[2]: Leaving directory `/home/doko/src/gcc/ncurses-5.4/obj-64/ncurses'
> > 
> > Why is this ncurses' fault?
> > 
> > Do you have biarch glibc headers installed?  That comes from FD_SET. 
> > If you had amd64-libs-dev, you'd have gotten a non-asm-using version.
> 
> yes. trying to build the packages from amd64-libs for biarch.

Then you've got glibc messed up, not ncurses.  You can't install the
i386 headers and expect things to work; you might be able to just
install the x86_64 headers, though.  That'd be simpler than installing
both sets and generating wrappers.

-- 
Daniel Jacobowitz
CodeSourcery, LLC



Reply to: