This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: problems with i686->sparc64 cross build and test suite


"H . J . Lu" <hjl@lucon.org> writes:

> On Mon, Apr 30, 2001 at 01:47:22PM +0200, Andreas Jaeger wrote:
> > 
> > I've configured binutils for a cross build from i686 to sparc64 with:
> > 
> > ../binutils/configure --prefix=/opt/cross \
> > --target=sparc64-unknown-linux --host=i686-pc-linux-gnu
> > 
> > make runs fine but when I run the testsuite (I know, I can't execute
> > anything and therefore some tests will not work), I noticed the
> > following in the ld.sum file:
> > 
> > testcase /x86-64/cvs/binutils/ld/testsuite/ld-scripts/phdrs.exp completed in 0 seconds
> > Running /x86-64/cvs/binutils/ld/testsuite/ld-scripts/script.exp ...
> > /x86-64/cvs/build-sparc64/ld/../gas/as-new   -o tmpdir/script.o /x86-64/cvs/binutils/ld/testsuite/ld-scripts/script.s
> > /x86-64/cvs/build-sparc64/ld/ld-new  -o tmpdir/script  -T /x86-64/cvs/binutils/ld/testsuite/ld-scripts/script.t tmpdir/script.o
> > /x86-64/cvs/build-sparc64/ld/ld-new: warning: sparc:v9 architecture of input file `tmpdir/script.o' is incompatible with sparc output
> > FAIL: script
> 
> Something is wrong. Your output format IS NOT sparc64.

So what's wrong?  Do you have any ideas? Does it work for you?  

I can reproduce this with the current CVS version (mainline).

gromit:/builds/sourceware-src/cross/ld:[0]$ readelf -h tmpdir/def.o 
ELF Header:
  Magic:   7f 45 4c 46 02 02 01 00 00 00 00 00 00 00 00 00 
  Class:                             ELF64
  Data:                              2's complement, big endian
  Version:                           1 (current)
  OS/ABI:                            UNIX - System V
  ABI Version:                       0
  Type:                              REL (Relocatable file)
  Machine:                           Sparc v9
  Version:                           0x1
  Entry point address:               0x0
  Start of program headers:          0 (bytes into file)
  Start of section headers:          112 (bytes into file)
  Flags:                             0x2, rmo
  Size of this header:               64 (bytes)
  Size of program headers:           0 (bytes)
  Number of program headers:         0
  Size of section headers:           64 (bytes)
  Number of section headers:         7
  Section header string table index: 4


Andreas
-- 
 Andreas Jaeger
  SuSE Labs aj@suse.de
   private aj@arthur.inka.de
    http://www.suse.de/~aj


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]