[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Problems with gmpxx.h and SUN Workshop-Compiler
From: |
Heiko Falk |
Subject: |
Problems with gmpxx.h and SUN Workshop-Compiler |
Date: |
Fri, 6 Sep 2002 14:27:43 +0200 |
Dear GMP people,
I have problems when trying to compile a program which includes gmpxx.h
using the SUN Workshop C++-Compiler.
Here some necessary information about my build systen and GMP version:
- GMP version 4.1, obtained via your link
"Download the lates release of GMP"
- SUN WorkshopPRO compiler 6.2:
~> cc -V
cc: Sun WorkShop 6 update 2 C 5.3 Patch 111679-08 2002/05/09
- ~> uname -a
SunOS ls12sn 5.8 Generic_108528-11 sun4u sparc
SUNW,UltraSPARC-IIi-Engine
- ~> ./config.guess
ultrasparc2i-sun-solaris2.8
- configure options:
Environment variables CC, CFLAGS and LDFLAGS are unset.
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. Therefore, I've particularly
modified the -xarch option, so that v9* is not used.
configure has then been called as follows:
configure --prefix=/app/unido-i12/libgmp/4.1_32 --disable-static
--enable-cxx --build=ultrasparc2i-sun-solaris2.6
The compilation and installation of the library using the environment
described above works fine.
The problems begin when doing a 'make check'. The first non-C++ tests
all terminate sucessfully:
All 5 tests passed
All 5 tests passed
All 52 tests passed
All 11 tests passed
All 15 tests passed
All 1 tests passed
All 3 tests passed
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.
This header file requires that the features "member templates", "partial
specialization of templates" and "namespaces" have to be supported by
the C++-compiler. In the documentation of our compiler (File
SUNWspro/READMEs/c++), I found:
3. Sun WorkShop 6 New Features
[...]
Partial A template can be partially specialized, meaning
Specialization that only some of the template parameters are
specified or that one or more parameters are
limited to certain categories of type.
[...]
Member Templates In standard mode, classes and class templates can
have templates as members.
Namespaces are supported by the compiler, too. I think that the compiler
should be able to "understand" the header file.
Has anyoune of you guys encountered similar problems? Is there a
solution? Any help is appreciated!
Thanks for your effort, cheers
Heiko
_______________________________________________________________________
Heiko Falk
University of Dortmund
Department of Computer Science 12 (Embedded Systems Group)
Otto-Hahn-Strasse 16
44221 Dortmund
Germany
Phone: +49 (231) 755 6124
Fax : +49 (231) 755 6116
Mail : address@hidden
WWW : http://ls12-www.cs.uni-dortmund.de/~falk/
_______________________________________________________________________
GMP-errors.txt
Description: Binary data
- Problems with gmpxx.h and SUN Workshop-Compiler,
Heiko Falk <=