bug-gmp
[Top][All Lists]
Advanced

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

Re: Solaris and libgmp fails to work properly


From: Torbjorn Granlund
Subject: Re: Solaris and libgmp fails to work properly
Date: 29 May 2003 15:42:58 +0200
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2

Salman Sheikh <address@hidden> writes:

  I get the following error when trying to compile gmpbench.
  
  ***** GMPbench version 0.1 *****
  Using default CFLAGS = "-I/opt/sis/include -O3 -fomit-frame-pointer"
  Using default CC = "gcc"
  Using default LIBS = "-L/opt/sis/lib -static -lgmp"
  Using compilation command: gcc -I/opt/sis/include -O3 -fomit-frame-pointer
  foo.c -o foo -L/opt/sis/lib -static -lgmp
  You may want to override CC, CFLAGS, and LIBS
  ld: warning: file /opt/sis/lib/libgmp.a(version.o): wrong ELF class:
  ELFCLASS64
  Undefined                       first referenced
    symbol                             in file
  __gmp_version                       /var/tmp//cc0eJORn.o
  ld: fatal: Symbol referencing errors. No output written to a.out
  collect2: ld returned 1 exit status
  
  
  I get this error: wrong ELF class: ELFCLASS64 in another program that
  requires libgmp (genius).  What did I do wrong in compiling libgmp?
  
Judging from the error message, your libgmp.a was built for the
64-bit ABI.  For both gcc and the sun compilers, the 32-bit ABI
is the default.  Please seen the GMP manual ("ISA and ABI") for
additional information.

-- 
Torbjörn




reply via email to

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