bug-gmp
[Top][All Lists]
Advanced

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

Re: gmp-4.1 make fails


From: A.E. Brouwer
Subject: Re: gmp-4.1 make fails
Date: Tue, 9 Jul 2002 13:30:40 +0200 (MET DST)

    From address@hidden Fri Jul  5 23:14:17 2002
    Cc: address@hidden
    Subject: Re: gmp-4.1 make fails

    > ld: fatal: file /usr/lib/libc.so: wrong ELF class: ELFCLASS32

    I guess you're doing an ABI=64 build (the default) but it's hit the
    32-bit libraries.  What's the ld command being run?  Does it look
    right?  Also is this with gcc or the system cc?

> What's the ld command being run?

/usr/ucb/ld -G -h libgmp.so.3 -o .libs/libgmp.so.3.3.0  .libs/assert.o ...
... several more screenfuls ... scanf/.libs/vsscanf.o  -lc

% which ld
/usr/ucb/ld
% ld -V
ld: Software Generation Utilities - Solaris-ELF (4.0)
% which cc
/usr/tuelocal/bin/cc
% cc -V
cc: WorkShop Compilers 5.0 98/12/15 C 5.0
usage: cc [ options] files.  Use 'cc -flags' for details
% cc -flags
...
For more information, please browse http://www.sun.com/workshop/
% which gcc
/usr/tuelocal/bin/gcc
% gcc --version
2.95.2
% grep CC Makefile
CC = cc
...

Looks like this old Sun cc is used.



Without fiddling with PATH I get:
checking build system type... ultrasparc2i-sun-solaris2.7
checking host system type... ultrasparc2i-sun-solaris2.7
using ABI="64"
      CC="cc"
      CFLAGS="-fast -fns=no -fsimple=1 -xarch=v9"
      CPPFLAGS=""
      MPN_PATH=" sparc64 generic"

With PATH=/usr/bin:/usr/ccs/bin:/usr/xpg4/bin:/usr/ucb I get:
configure: error: could not find a working compiler

With PATH=/usr/bin:/usr/ccs/bin:/usr/xpg4/bin:/usr/ucb:$HOME/bin
where $HOME/bin has a link to gcc I get:
using ABI="32"
      CC="gcc"
      CFLAGS="-g -O2 -Wa,-xarch=v8plus -mcpu=ultrasparc"
      CPPFLAGS=""
      MPN_PATH=" sparc32/v9 sparc32/v8 sparc32 generic"

and now "make" ends with

...
ar cq .libs/libgmp.a  assert.o compat.o ... very long line
ranlib .libs/libgmp.a
creating libgmp.la
Output line too long.
(cd .libs && rm -f libgmp.la && ln -s ../libgmp.la libgmp.la)
%

All seems to work fine.

Andries



reply via email to

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