[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Problems with gmpxx.h and SUN Workshop-Compiler
From: |
Kevin Ryde |
Subject: |
Re: Problems with gmpxx.h and SUN Workshop-Compiler |
Date: |
Sat, 07 Sep 2002 09:06:57 +1000 |
User-agent: |
Gnus/5.090007 (Oort Gnus v0.07) Emacs/21.1 (i386-debian-linux-gnu) |
Heiko Falk <address@hidden> writes:
>
> In the configure script, I've modified line 2496, where the default
> command line options for cc are set. This line now contains the
> following options:
> "-fast -xtarget=ultra2i -xarch=v8plusa -xchip=ultra2i"
> This is due to the fact that configure automatically tries to
> generate 64 bit libraries. In my particular case, I need the 32 bit
> libraries, since the program that I'll link against GMP contains
> constructs that require 32 bits only.
The best way to get 32-bits is with ABI=32, that'll choose the right
asm code. See "ABI and ISA" in the manual.
For setting the flags you can pass CFLAGS="-whatever". In the future
we'll have -xchip=ultra2i selected automatically, but for now you need
to add it manually.
> In the section "Making check in cxx" the errors logged in the attached
> files occur. The SUN C++-compiler has problems when including gmpxx.h.
> ...
>
> "../../gmpxx.h", line 2966: Error: Could not find a match for
> __gmp_expr<__gmpq_value, __gmpq_value>::__gmp_expr(const
> __gmp_expr<__gmpz_value, __gmpq_value>&, const __gmp_expr<__gmpz_value,
> __gmpq_value>&).
Hmm. That file is mainly used with g++, I don't know how it ought to
go with sunpro. Gerardo?