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

Problem with ELF development suite



I recently made the big switch to ELF development. I had been running ELF
binaries for several weeks, but I was installing some new packages to support a
tape drive, so I made the plunge. Sorry about the length, but I figure that my
configuration is probably the problem so here are some excerpts from dpkg -l.

I have the following tools installed:
ii  bin86              0.1 11   Assembler and loader for kernel compilation.
ii  binutils           2.6 2    The GNU assembler and binary utilities (ELF
ii  gcc              2.7.2 5    The GNU C compiler (ELF version).
ii  ldso            1.7.14 1    The Linux dynamic linker, library and utilities
ii  make              3.74 11   GNU Make.

I am trying to compile the following source packages:
ii  source          1.2.13 7    Linux kernel source.
ii  ftape             2.03 1    QIC-117 (Floppy-tape) driver, in source code fo

I have the following library packages installed:
ii  aout-librl       2.0.3 4    GNU Readline shared and static libraries.
ii  ncurses-base    1.9.8a 4    Video terminal manipulation: Minimum set of ter
ii  ncurses-bin     1.9.8a 4    Video terminal manipulation: associated program
ii  ncurses3.0      1.9.8a 4    Video terminal manipulation: shared libraries
ii  libc4           4.6.27 11   The Linux C library (a.out version 4).
ii  libc5           5.2.18 1    The Linux C library version 5 (run-time librari
ii  libc5-dev       5.2.18 1    The Linux C library version 5 (development file
ii  libdb1          1.85.2 5    the Berkeley database routines (runtime version
ii  libgdbm1         1.7.3 8    GNU dbm database routines (runtime version).
ii  libreadline2       2.0 12   GNU readline and history libraries, runtime ver
ii  svgalib           1.25 4    Shared, non-x, graphics library used by Ghostsc
ii  xlib             3.1.2 4    XFree86 3.1.2 shared libraries

I have successfully made one ELF binary: xbench. However, I seem to be having a
problem with in-line assembly code that is present in asm/io.h.

Here are some example error messages that result from building ftape with the
ELF gcc:

[root]:/usr/src/ftape-2.03# make clean;make
rm -f a.out *.o core *~ gen_test tecc kernel-version.h .depend
./Configure
Building ftape for kernel version 1.2.13 (1002013)
cc -E -M kernel-interface.c fdc-io.c fdc-isr.c ftape-rw.c tracing.c
  ftape-read.c ftape-write.c ftape-io.c ftape-eof.c calibr.c ecc.c fc-10.c
  ftape-bsm.c ftape-c tl.c > .depend
cc  -Wall -Wstrict-prototypes -pipe -fomit-frame-pointer -m486 -O2 
  -DVERIFY_HEADERS -DNO_TRACE  -D__KERNEL__ -DKERNEL -DLINUX -c 
  kernel-interface.c
cc  -Wall -Wstrict-prototypes -pipe -fomit-frame-pointer -m486 -O2 
  -DVERIFY_HEADERS -DNO_TRACE  -D__KERNEL__ -DKERNEL -DLINUX -c fdc-io.c
/usr/include/asm/io.h: In function `setup_fdc_and_dma':
/usr/include/asm/io.h:82: inconsistent operand constraints in an `asm'
/usr/include/asm/io.h:82: inconsistent operand constraints in an `asm'
/usr/include/asm/io.h:82: inconsistent operand constraints in an `asm'
/usr/include/asm/io.h:82: inconsistent operand constraints in an `asm'
/usr/include/asm/io.h:82: inconsistent operand constraints in an `asm'
/usr/include/asm/io.h:82: inconsistent operand constraints in an `asm'
/usr/include/asm/io.h:82: inconsistent operand constraints in an `asm'
[.....]

The same sort of errors are spewed out of the kernel build early in the
process. 

I loaded the aout-* tools and successfully compiled the kernel and the ftape.o
module. Nonetheless, I'd like to solve this problem. Something simple?

-- 
Jeff Ebert
jebert@earthlink.net
ho-hum


Reply to: