CGAL build error on Solaris 10 (i386)

classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

CGAL build error on Solaris 10 (i386)

JKB-5
        Hello,

        I'm trying to build CGAL 3.3.1 on a Solaris 10 i386 system. I have
successfully built the same CGAL release on Solaris 10 (sparc) with gcc
4.3.0.

        Error I can see in install.log :

/usr/local/gcc-4.2/bin/g++  -O2 -fno-strict-aliasing -frounding-math
'-I/opt/routing/src/CGAL-3.3.1/include/CGAL/config/i386_SunOS-5.10_g++-4.2.4'
'-I/opt/routing/src/CGAL-3.3.1/include'
-I/opt/routing/include/boost-1_35 -DCGAL_USE_F2C  -c Geomview_stream.cpp
In file included from
/opt/routing/src/CGAL-3.3.1/include/CGAL/IO/Ostream_iterator.h:27,
                  from
/opt/routing/src/CGAL-3.3.1/include/CGAL/IO/Geomview_stream.h:31,
                  from Geomview_stream.cpp:38:
/opt/routing/src/CGAL-3.3.1/include/CGAL/circulator.h:992: erreur:
expected identifier before numeric constant
/opt/routing/src/CGAL-3.3.1/include/CGAL/circulator.h:992: erreur:
expected ~@~~X>~@~Y before numeric constant
/opt/routing/src/CGAL-3.3.1/include/CGAL/circulator.h:993: erreur: no
default argument for ~@~X<anonymous>~@~Y
/opt/routing/src/CGAL-3.3.1/include/CGAL/circulator.h:997: erreur:
~@~XDD~@~Y
was not declared in this scope
/opt/routing/src/CGAL-3.3.1/include/CGAL/circulator.h:997: erreur:
nombre erron�� d'arguments du patron (4 devrait être 3)
/opt/routing/src/CGAL-3.3.1/include/CGAL/circulator.h:993: erreur:
provided for ~@~Xtemplate<class I, class TT, int <anonymous> > class
CGAL::Circulator_from_iiterator~@~Y
/opt/routing/src/CGAL-3.3.1/include/CGAL/circulator.h:1045: erreur:
nombre erroné d'arguments du patron (4 devrait être 3)
/opt/routing/src/CGAL-3.3.1/include/CGAL/circulator.h:993: erreur:
provided for ~@~Xtemplate<class I, class TT, int <anonymous> > class
CGAL::Circulator_from_iiterator~@~Y

        On this system, I have installed :
- Sun Studio 12
- GCC 4.2.4
- GCC 4.3.1

        With all compilers, I obtain the same error.

        My install log is :

----------------------------------------------------------
log of ./install_cgal --prefix=/opt/routing
called by bertrand on vendredi 13 juin 2008 16 h 32 CEST
CGAL_DIR is /opt/routing/src/CGAL-3.3.1
----------------------------------------------------------
This is install_cgal version 39460.
Looking for POSIX utilities...
getconf is /bin/getconf.
Path for Posix utilities: /usr/xpg4/bin /usr/ccs/bin /usr/bin
/opt/SUNWspro/bin
basename is /usr/xpg4/bin/basename.
dirname is /usr/bin/dirname.
uname is /usr/bin/uname.
cat is /usr/bin/cat.
touch is /usr/bin/touch.
cp is /usr/xpg4/bin/cp.
mv is /usr/xpg4/bin/mv.
rm is /usr/xpg4/bin/rm.
ln is /usr/xpg4/bin/ln.
ls is /usr/xpg4/bin/ls.
chmod is /usr/bin/chmod.
mkdir is /usr/bin/mkdir.
sed is /usr/xpg4/bin/sed.
grep is /usr/xpg4/bin/grep.
tr is /usr/xpg4/bin/tr.
awk is /usr/xpg4/bin/awk.
tee is /usr/bin/tee.
find is /usr/xpg4/bin/find.
tar is /usr/bin/tar.
sed respects newline.
CUSTOM_CXXFLAGS is
Parsing support specfiles for 3rd party libraries:
BOOST
BOOST_PROGRAM_OPTIONS
MS_BOOST_PROGRAM_OPTIONS
BOOST_PROGRAM_OPTIONS_GCC
BOOST_BIMAP
X11
GMP
GMPXX
MPFR
ZLIB
ZLIBMS
APPLEVECLIB
SUNPERFORMANCECC
SUNPERFORMANCEGCC
SGICOMPLIB
MKL64
MKL32
MKLWIN64
MKLWIN32
ACML
ACMLWIN
BLASIFORTATLAS
BLASGCCATLAS
BLASWINATLAS
REFBLASGCC
REFBLASLINUXGCC
REFBLASSHARED
REFBLASWIN
CBLASWIN
LEDA
LEDA5X
LEDAMS
LEDA5XMS
LEDAWIN
LEDAWINMS
OPENGL
OPENGL_W32
DEFAULTLAPACK
DEFAULTLAPACKWIN
REFLAPACKLINUXGCC
REFLAPACKWIN
CLAPACKWIN
QT3MT
QT3ST
QT3MSMT
QT3MSST
TAUCSWINLAPACK
TAUCSWINATLAS
TAUCSLAPACK
TAUCSATLAS
TAUCSFREEBSDLAPACK
TAUCSFREEBSDATLAS
TAUCSDARWIN
TAUCSIRIXCC32
TAUCSIRIXCC64
   CGAL version is 3.3.1.
   Looking for GNU/make...
   gmake is /usr/sfw/bin/gmake.
   GNU Make found in standard directories.
   expr is /usr/xpg4/bin/expr.
   use _expr_expr() for evaluating arithmetic expressions.
   OS is i386_SunOS-5.10.
   Cached  COMPILER...  CC@SUNPRO@/bin/cc@/bin/CC@5.90@
   Found compiler SUNPRO 5.90.
   Cached  COMPILER...  g++@GNU@/usr/local/bin/gcc@/usr/local/bin/g++@4.3.1@
   Found compiler GNU 4.3.1.
   g++ is /usr/local/gcc-4.2/bin/g++.
   gcc is /usr/local/gcc-4.2/bin/gcc.
   Compiler version test compiled.
   Found compiler GNU 4.2.4.
   CC is /bin/CC.
   cc is /bin/cc.
   Compiler version test compiled.
   Cached  COMPILER...  CC@SUNPRO@/bin/cc@/bin/CC@5.90@
   i386_SunOS-5.10_CC-5.90 has already been registered.
   Choosing SUNPRO 5.90 as compiler.
   Cached  CGAL_INSTALL_VERSION...  39460
   Cached  BOOST_INCL_DIR...
   Cached  BOOST_LIB_DIR...
   Cached  BOOST_VERSION...  1.35.0
   Cached  BOOST_PROGRAM_OPTIONS_INCL_DIR...
   Cached  BOOST_PROGRAM_OPTIONS_LIB_DIR...
   Cached  BOOST_PROGRAM_OPTIONS_VERSION...
   Cached  BOOST_BIMAP_INCL_DIR...
   Cached  BOOST_BIMAP_LIB_DIR...
   Cached  BOOST_BIMAP_VERSION...
   Cached  X11_INCL_DIR...
   Cached  X11_LIB_DIR...
   Cached  X11_VERSION...  11.0
   Cached  GMP_INCL_DIR...
   Cached  GMP_LIB_DIR...
   Cached  GMP_VERSION...
   Cached  GMPXX_INCL_DIR...
   Cached  GMPXX_LIB_DIR...
   Cached  GMPXX_VERSION...
   Cached  MPFR_INCL_DIR...
   Cached  MPFR_LIB_DIR...
   Cached  MPFR_VERSION...
   Cached  ZLIB_INCL_DIR...
   Cached  ZLIB_LIB_DIR...
   Cached  ZLIB_VERSION...  1.2.3
   Cached  BLAS_INCL_DIR...
   Cached  BLAS_LIB_DIR...
   Cached  BLAS_VERSION...  0
   Cached  LAPACK_INCL_DIR...
   Cached  LAPACK_LIB_DIR...
   Cached  LAPACK_VERSION...  0
   Cached  ATLAS_INCL_DIR...
   Cached  ATLAS_LIB_DIR...
   Cached  ATLAS_VERSION...
   Cached  LEDA_INCL_DIR...
   Cached  LEDA_LIB_DIR...
   Cached  LEDA_VERSION...
   Cached  LEDAWIN_INCL_DIR...
   Cached  LEDAWIN_LIB_DIR...
   Cached  LEDAWIN_VERSION...
   Cached  OPENGL_INCL_DIR...
   Cached  OPENGL_LIB_DIR...
   Cached  OPENGL_VERSION...  2.1
   Cached  QT_INCL_DIR...
   Cached  QT_LIB_DIR...
   Cached  QT_VERSION...
   Cached  TAUCS_INCL_DIR...
   Cached  TAUCS_LIB_DIR...
   Cached  TAUCS_VERSION...
   Cached  BOOST_SUPPORT...  y
   Cached  BOOST_PROGRAM_OPTIONS_SUPPORT...
   Cached  MS_BOOST_PROGRAM_OPTIONS_SUPPORT...
   Cached  BOOST_PROGRAM_OPTIONS_GCC_SUPPORT...
   Cached  BOOST_BIMAP_SUPPORT...
   Cached  X11_SUPPORT...  y
   Cached  GMP_SUPPORT...
   Cached  GMPXX_SUPPORT...
   Cached  MPFR_SUPPORT...
   Cached  ZLIB_SUPPORT...  y
   Cached  ZLIBMS_SUPPORT...
   Cached  APPLEVECLIB_SUPPORT...
   Cached  SUNPERFORMANCECC_SUPPORT...  y
   Cached  SUNPERFORMANCEGCC_SUPPORT...
   Cached  SGICOMPLIB_SUPPORT...
   Cached  MKL64_SUPPORT...
   Cached  MKL32_SUPPORT...
   Cached  MKLWIN64_SUPPORT...
   Cached  MKLWIN32_SUPPORT...
   Cached  ACML_SUPPORT...
   Cached  ACMLWIN_SUPPORT...
   Cached  BLASGCCATLAS_SUPPORT...
   Cached  BLASWINATLAS_SUPPORT...
   Cached  REFBLASGCC_SUPPORT...
   Cached  REFBLASLINUXGCC_SUPPORT...
   Cached  REFBLASSHARED_SUPPORT...
   Cached  REFBLASWIN_SUPPORT...
   Cached  CBLASWIN_SUPPORT...
   Cached  LEDA_SUPPORT...
   Cached  LEDA5X_SUPPORT...
   Cached  LEDAMS_SUPPORT...
   Cached  LEDA5XMS_SUPPORT...
   Cached  LEDAWIN_SUPPORT...
   Cached  LEDAWINMS_SUPPORT...
   Cached  OPENGL_SUPPORT...  y
   Cached  OPENGL_W32_SUPPORT...
   Cached  DEFAULTLAPACK_SUPPORT...
   Cached  DEFAULTLAPACKWIN_SUPPORT...
   Cached  REFLAPACKLINUXGCC_SUPPORT...
   Cached  REFLAPACKWIN_SUPPORT...
   Cached  CLAPACKWIN_SUPPORT...
   Cached  QT3MT_SUPPORT...
   Cached  QT3ST_SUPPORT...
   Cached  QT3MSMT_SUPPORT...
   Cached  QT3MSST_SUPPORT...
   Cached  TAUCSWINLAPACK_SUPPORT...
   Cached  TAUCSWINATLAS_SUPPORT...
   Cached  TAUCSLAPACK_SUPPORT...
   Cached  TAUCSATLAS_SUPPORT...
   Cached  TAUCSFREEBSDLAPACK_SUPPORT...
   Cached  TAUCSFREEBSDATLAS_SUPPORT...
   Cached  TAUCSDARWIN_SUPPORT...
   Cached  TAUCSIRIXCC32_SUPPORT...
   Cached  TAUCSIRIXCC64_SUPPORT...
   Cached  CUSTOM_CXXFLAGS...  -I/opt/routing/include/boost-1_35
   Cached  CUSTOM_LDFLAGS...  -L/opt/routing/lib
   Cached  LONG_NAME_PROBLEM...
   Cached  ENABLE_SHARED...  y
   Cached  ENABLE_STATIC...  y
   Choosing GNU 4.2.4 as compiler.
WARNING: Directory
/opt/routing/src/CGAL-3.3.1/lib/i386_SunOS-5.10_g++-4.2.4 does not
exist, it will be created.
WARNING: Directory
/opt/routing/src/CGAL-3.3.1/include/CGAL/config/i386_SunOS-5.10_g++-4.2.4
does not exist, it will be created.
WARNING: Directory
/opt/routing/src/CGAL-3.3.1/include/CGAL/config/i386_SunOS-5.10_g++-4.2.4/CGAL
does not exist, it will be created.
Running configuration tests...
     CCTYPE_MACRO_BUG test compiled.
     CCTYPE_MACRO_BUG test linking succeeded.
     CCTYPE_MACRO_BUG test execution succeeded.
     COMMA_BUG test compiled.
     COMMA_BUG test linking succeeded.
     COMMA_BUG test execution succeeded.
     CONVERSION_OPERATOR_BUG test compiled.
     CONVERSION_OPERATOR_BUG test linking succeeded.
     CONVERSION_OPERATOR_BUG test execution succeeded.
     DEDUCABLE_CONTEXT_BUG test compiled.
     DEDUCABLE_CONTEXT_BUG test linking succeeded.
     DEDUCABLE_CONTEXT_BUG test execution succeeded.
     DEEP_DEPENDENT_TEMPLATE_BUG test compiled.
     DEEP_DEPENDENT_TEMPLATE_BUG test linking succeeded.
     DEEP_DEPENDENT_TEMPLATE_BUG test execution succeeded.
     DENORMALS_COMPILE_BUG test compiled.
     DENORMALS_COMPILE_BUG test linking succeeded.
     DENORMALS_COMPILE_BUG test execution succeeded.
     IEEE_754_BUG test compiled.
     IEEE_754_BUG test linking succeeded.
     IEEE_754_BUG test execution succeeded.
     ISTREAM_INT_BUG test compiled.
     ISTREAM_INT_BUG test linking succeeded.
     ISTREAM_INT_BUG test execution succeeded.
     LONGNAME_BUG test compiled.
     LONGNAME_BUG test linking succeeded.
     LONGNAME_BUG test execution succeeded.
     LONG_LONG_IO_BUG test compiled.
     LONG_LONG_IO_BUG test linking succeeded.
     LONG_LONG_IO_BUG test execution succeeded.
     MATCHING_BUG_4 test compiled.
     MATCHING_BUG_4 test linking succeeded.
     MATCHING_BUG_4 test execution succeeded.
     MATCHING_BUG_5 test compiled.
     MATCHING_BUG_5 test linking succeeded.
     MATCHING_BUG_5 test execution succeeded.
     MATCHING_BUG_6 test compiled.
     MATCHING_BUG_6 test linking succeeded.
     MATCHING_BUG_6 test execution succeeded.
     MISSING_TEMPLATE_VECTOR_CONSTRUCTORS_BUG test compiled.
     MISSING_TEMPLATE_VECTOR_CONSTRUCTORS_BUG test linking succeeded.
     MISSING_TEMPLATE_VECTOR_CONSTRUCTORS_BUG test execution succeeded.
     NESTED_CLASS_FRIEND_DECLARATION_BUG test compiled.
     NESTED_CLASS_FRIEND_DECLARATION_BUG test linking succeeded.
     NESTED_CLASS_FRIEND_DECLARATION_BUG test execution succeeded.
     NET2003_MATCHING_BUG test compiled.
     NET2003_MATCHING_BUG test linking succeeded.
     NET2003_MATCHING_BUG test execution succeeded.
     LIMITS test compiled.
     LIMITS test linking succeeded.
     LIMITS test execution succeeded.
     LOCALE test compiled.
     LOCALE test linking succeeded.
     LOCALE test execution succeeded.
     LONG_DOUBLE_IO test compiled.
     LONG_DOUBLE_IO test linking succeeded.
     LONG_DOUBLE_IO test execution succeeded.
     LONG_LONG test compiled.
     LONG_LONG test linking succeeded.
     LONG_LONG test execution succeeded.
     NEXTAFTER test compiled.
     NEXTAFTER test linking succeeded.
     NEXTAFTER test execution succeeded.
     STDC_NAMESPACE test compiled.
     STDC_NAMESPACE test linking succeeded.
     STDC_NAMESPACE test execution succeeded.
     STL test compiled.
     STL test linking succeeded.
     STL test execution succeeded.
     TMPL_IN_TMPL_DEPENDING_FUNCTION_PARAM test compiled.
     TMPL_IN_TMPL_DEPENDING_FUNCTION_PARAM test linking succeeded.
     TMPL_IN_TMPL_DEPENDING_FUNCTION_PARAM test execution succeeded.
     TMPL_IN_TMPL_PARAM test compiled.
     TMPL_IN_TMPL_PARAM test linking succeeded.
     TMPL_IN_TMPL_PARAM test execution succeeded.
     NUMERIC_LIMITS_BUG test compiled.
     NUMERIC_LIMITS_BUG test linking succeeded.
     NUMERIC_LIMITS_BUG test execution succeeded.
     OUTOFLINE_MEMBER_DEFINITION_BUG test compiled.
     OUTOFLINE_MEMBER_DEFINITION_BUG test linking succeeded.
     OUTOFLINE_MEMBER_DEFINITION_BUG test execution succeeded.
     OUTOFLINE_TEMPLATE_MEMBER_DEFINITION_BUG test compiled.
     OUTOFLINE_TEMPLATE_MEMBER_DEFINITION_BUG test linking succeeded.
     OUTOFLINE_TEMPLATE_MEMBER_DEFINITION_BUG_2 test compiled.
     OUTOFLINE_TEMPLATE_MEMBER_DEFINITION_BUG_2 test linking succeeded.
     OUTOFLINE_TEMPLATE_MEMBER_DEFINITION_BUG_2 test execution succeeded.
     SUNPRO_RWSTD test compiled.
     SUNPRO_RWSTD test linking succeeded.
     SUNPRO_RWSTD test execution succeeded.
     TYPENAME_BEFORE_DEFAULT_ARGUMENT_BUG test compiled.
     TYPENAME_BEFORE_DEFAULT_ARGUMENT_BUG test linking succeeded.
     TYPENAME_BEFORE_DEFAULT_ARGUMENT_BUG test execution succeeded.
     USING_BASE_MEMBER_BUG test compiled.
     USING_BASE_MEMBER_BUG test linking succeeded.
     USING_BASE_MEMBER_BUG test execution succeeded.
     USING_BASE_MEMBER_BUG_2 test compiled.
     USING_BASE_MEMBER_BUG_2 test linking succeeded.
     USING_BASE_MEMBER_BUG_2 test execution succeeded.
     USING_BASE_MEMBER_BUG_3 test compiled.
     USING_BASE_MEMBER_BUG_3 test linking succeeded.
     USING_BASE_MEMBER_BUG_3 test execution succeeded.
Trying to autofind 3rd party libraries...
Testing support for BOOST ...
     OK: requirements and incompatibilities.
     Testing with default flags.
     BOOST test compiled.
     BOOST test linking succeeded.
     BOOST test execution succeeded.
OK: BOOST test program.
...

        Regards,

        JKB
--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://lists-sop.inria.fr/wws/info/cgal-discuss
Reply | Threaded
Open this post in threaded view
|

Re: CGAL build error on Solaris 10 (i386)

Sylvain Pion
Administrator
BERTRAND Joël a écrit :

>     Hello,
>
>     I'm trying to build CGAL 3.3.1 on a Solaris 10 i386 system. I have
> successfully built the same CGAL release on Solaris 10 (sparc) with gcc
> 4.3.0.
>
>     Error I can see in install.log :
>
> /usr/local/gcc-4.2/bin/g++  -O2 -fno-strict-aliasing -frounding-math
> '-I/opt/routing/src/CGAL-3.3.1/include/CGAL/config/i386_SunOS-5.10_g++-4.2.4'
> '-I/opt/routing/src/CGAL-3.3.1/include'
> -I/opt/routing/include/boost-1_35 -DCGAL_USE_F2C  -c Geomview_stream.cpp
> In file included from
> /opt/routing/src/CGAL-3.3.1/include/CGAL/IO/Ostream_iterator.h:27,
>                  from
> /opt/routing/src/CGAL-3.3.1/include/CGAL/IO/Geomview_stream.h:31,
>                  from Geomview_stream.cpp:38:
> /opt/routing/src/CGAL-3.3.1/include/CGAL/circulator.h:992: erreur:
> expected identifier before numeric constant
> /opt/routing/src/CGAL-3.3.1/include/CGAL/circulator.h:992: erreur:
> expected ~@~~X>~@~Y before numeric constant
> /opt/routing/src/CGAL-3.3.1/include/CGAL/circulator.h:993: erreur: no
> default argument for ~@~X<anonymous>~@~Y
> /opt/routing/src/CGAL-3.3.1/include/CGAL/circulator.h:997: erreur:
> ~@~XDD~@~Y
> was not declared in this scope
> /opt/routing/src/CGAL-3.3.1/include/CGAL/circulator.h:997: erreur:
> nombre erron�� d'arguments du patron (4 devrait être 3)
> /opt/routing/src/CGAL-3.3.1/include/CGAL/circulator.h:993: erreur:
> provided for ~@~Xtemplate<class I, class TT, int <anonymous> > class
> CGAL::Circulator_from_iiterator~@~Y
> /opt/routing/src/CGAL-3.3.1/include/CGAL/circulator.h:1045: erreur:
> nombre erroné d'arguments du patron (4 devrait être 3)
> /opt/routing/src/CGAL-3.3.1/include/CGAL/circulator.h:993: erreur:
> provided for ~@~Xtemplate<class I, class TT, int <anonymous> > class
> CGAL::Circulator_from_iiterator~@~Y
>
>     On this system, I have installed :
> - Sun Studio 12
> - GCC 4.2.4
> - GCC 4.3.1
>
>     With all compilers, I obtain the same error.
Sounds like some header file is defining a macro with the same name
as one of the template arguments used at the line 992 of circulator.h
(SS? DD ?).

--
Sylvain Pion
INRIA Sophia-Antipolis
Geometrica Project-Team
CGAL, http://cgal.org/


smime.p7s (5K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: CGAL build error on Solaris 10 (i386)

JKB-5
Sylvain Pion a écrit :

> BERTRAND Joël a écrit :
>
>>     Hello,
>>
>>     I'm trying to build CGAL 3.3.1 on a Solaris 10 i386 system. I have
>> successfully built the same CGAL release on Solaris 10 (sparc) with
>> gcc 4.3.0.
>>
>>     Error I can see in install.log :
>>
>> /usr/local/gcc-4.2/bin/g++  -O2 -fno-strict-aliasing -frounding-math
>> '-I/opt/routing/src/CGAL-3.3.1/include/CGAL/config/i386_SunOS-5.10_g++-4.2.4'
>> '-I/opt/routing/src/CGAL-3.3.1/include'
>> -I/opt/routing/include/boost-1_35 -DCGAL_USE_F2C  -c Geomview_stream.cpp
>> In file included from
>> /opt/routing/src/CGAL-3.3.1/include/CGAL/IO/Ostream_iterator.h:27,
>>                  from
>> /opt/routing/src/CGAL-3.3.1/include/CGAL/IO/Geomview_stream.h:31,
>>                  from Geomview_stream.cpp:38:
>> /opt/routing/src/CGAL-3.3.1/include/CGAL/circulator.h:992: erreur:
>> expected identifier before numeric constant
>> /opt/routing/src/CGAL-3.3.1/include/CGAL/circulator.h:992: erreur:
>> expected ~@~~X>~@~Y before numeric constant
>> /opt/routing/src/CGAL-3.3.1/include/CGAL/circulator.h:993: erreur: no
>> default argument for ~@~X<anonymous>~@~Y
>> /opt/routing/src/CGAL-3.3.1/include/CGAL/circulator.h:997: erreur:
>> ~@~XDD~@~Y
>> was not declared in this scope
>> /opt/routing/src/CGAL-3.3.1/include/CGAL/circulator.h:997: erreur:
>> nombre erron�� d'arguments du patron (4 devrait être 3)
>> /opt/routing/src/CGAL-3.3.1/include/CGAL/circulator.h:993: erreur:
>> provided for ~@~Xtemplate<class I, class TT, int <anonymous> > class
>> CGAL::Circulator_from_iiterator~@~Y
>> /opt/routing/src/CGAL-3.3.1/include/CGAL/circulator.h:1045: erreur:
>> nombre erroné d'arguments du patron (4 devrait être 3)
>> /opt/routing/src/CGAL-3.3.1/include/CGAL/circulator.h:993: erreur:
>> provided for ~@~Xtemplate<class I, class TT, int <anonymous> > class
>> CGAL::Circulator_from_iiterator~@~Y
>>
>>     On this system, I have installed :
>> - Sun Studio 12
>> - GCC 4.2.4
>> - GCC 4.3.1
>>
>>     With all compilers, I obtain the same error.
>
>
> Sounds like some header file is defining a macro with the same name
> as one of the template arguments used at the line 992 of circulator.h
> (SS? DD ?).

        Yes, maybe. But I don't understand why CGAL can be built on Solaris
10/Sparc and not on Solaris 10/i386 with the same compiler.

        I have tried to debug, but I don't speak C++ enough...

        Regards,

        JKB

--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://lists-sop.inria.fr/wws/info/cgal-discuss
Reply | Threaded
Open this post in threaded view
|

Re: CGAL build error on Solaris 10 (i386)

Sylvain Pion
Administrator
BERTRAND Joël a écrit :

> Sylvain Pion a écrit :
>> BERTRAND Joël a écrit :
>>
>>>     Hello,
>>>
>>>     I'm trying to build CGAL 3.3.1 on a Solaris 10 i386 system. I
>>> have successfully built the same CGAL release on Solaris 10 (sparc)
>>> with gcc 4.3.0.
>>>
>>>     Error I can see in install.log :
>>>
>>> /usr/local/gcc-4.2/bin/g++  -O2 -fno-strict-aliasing -frounding-math
>>> '-I/opt/routing/src/CGAL-3.3.1/include/CGAL/config/i386_SunOS-5.10_g++-4.2.4'
>>> '-I/opt/routing/src/CGAL-3.3.1/include'
>>> -I/opt/routing/include/boost-1_35 -DCGAL_USE_F2C  -c Geomview_stream.cpp
>>> In file included from
>>> /opt/routing/src/CGAL-3.3.1/include/CGAL/IO/Ostream_iterator.h:27,
>>>                  from
>>> /opt/routing/src/CGAL-3.3.1/include/CGAL/IO/Geomview_stream.h:31,
>>>                  from Geomview_stream.cpp:38:
>>> /opt/routing/src/CGAL-3.3.1/include/CGAL/circulator.h:992: erreur:
>>> expected identifier before numeric constant
>>> /opt/routing/src/CGAL-3.3.1/include/CGAL/circulator.h:992: erreur:
>>> expected ~@~~X>~@~Y before numeric constant
>>> /opt/routing/src/CGAL-3.3.1/include/CGAL/circulator.h:993: erreur: no
>>> default argument for ~@~X<anonymous>~@~Y
>>> /opt/routing/src/CGAL-3.3.1/include/CGAL/circulator.h:997: erreur:
>>> ~@~XDD~@~Y
>>> was not declared in this scope
>>> /opt/routing/src/CGAL-3.3.1/include/CGAL/circulator.h:997: erreur:
>>> nombre erron�� d'arguments du patron (4 devrait être 3)
>>> /opt/routing/src/CGAL-3.3.1/include/CGAL/circulator.h:993: erreur:
>>> provided for ~@~Xtemplate<class I, class TT, int <anonymous> > class
>>> CGAL::Circulator_from_iiterator~@~Y
>>> /opt/routing/src/CGAL-3.3.1/include/CGAL/circulator.h:1045: erreur:
>>> nombre erroné d'arguments du patron (4 devrait être 3)
>>> /opt/routing/src/CGAL-3.3.1/include/CGAL/circulator.h:993: erreur:
>>> provided for ~@~Xtemplate<class I, class TT, int <anonymous> > class
>>> CGAL::Circulator_from_iiterator~@~Y
>>>
>>>     On this system, I have installed :
>>> - Sun Studio 12
>>> - GCC 4.2.4
>>> - GCC 4.3.1
>>>
>>>     With all compilers, I obtain the same error.
>>
>>
>> Sounds like some header file is defining a macro with the same name
>> as one of the template arguments used at the line 992 of circulator.h
>> (SS? DD ?).
>
>     Yes, maybe. But I don't understand why CGAL can be built on Solaris
> 10/Sparc and not on Solaris 10/i386 with the same compiler.
Header files may differ between the two.

>     I have tried to debug, but I don't speak C++ enough...

Find the compiler option that dumps the preprocessed output, and inspect it.

--
Sylvain Pion
INRIA Sophia-Antipolis
Geometrica Project-Team
CGAL, http://cgal.org/


smime.p7s (5K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: CGAL build error on Solaris 10 (i386)

JKB-5
> Header files may differ between the two.
>
>>     I have tried to debug, but I don't speak C++ enough...
>
>
> Find the compiler option that dumps the preprocessed output, and inspect
> it.

        OK. I have found in preprocessed file :

template < class I, class TT = int, class 18 = int, class DD = int>
class Circulator_from_iterator {
public:


     typedef Circulator_from_iterator<I,TT,18,DD> Self;
     typedef I iterator;
     typedef std::iterator_traits<iterator> Traits;

     typedef typename Traits::value_type value_type;
     typedef std::size_t size_type;
     typedef typename Traits::difference_type difference_type;
     typedef typename Traits::reference reference;
     typedef typename Traits::pointer pointer;

     typedef typename Traits::iterator_category Icategory;
     typedef I_Circulator_from_iterator_traits<Icategory> CTraits;
     typedef typename CTraits::iterator_category iterator_category;

private:
     I m_begin;
     I m_end;
     I current;

        I suppose that my problem is "class 18 = int", but I don't know how
this SS is defined.

        Regards,

        JKB
--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://lists-sop.inria.fr/wws/info/cgal-discuss
Reply | Threaded
Open this post in threaded view
|

Re: CGAL build error on Solaris 10 (i386)

JKB-5
BERTRAND Joël a écrit :

>> Header files may differ between the two.
>>
>>>     I have tried to debug, but I don't speak C++ enough...
>>
>>
>>
>> Find the compiler option that dumps the preprocessed output, and
>> inspect it.
>
>
>     OK. I have found in preprocessed file :
>
> template < class I, class TT = int, class 18 = int, class DD = int>
> class Circulator_from_iterator {
> public:
>
>
>      typedef Circulator_from_iterator<I,TT,18,DD> Self;
>      typedef I iterator;
>      typedef std::iterator_traits<iterator> Traits;
>
>      typedef typename Traits::value_type value_type;
>      typedef std::size_t size_type;
>      typedef typename Traits::difference_type difference_type;
>      typedef typename Traits::reference reference;
>      typedef typename Traits::pointer pointer;
>
>      typedef typename Traits::iterator_category Icategory;
>      typedef I_Circulator_from_iterator_traits<Icategory> CTraits;
>      typedef typename CTraits::iterator_category iterator_category;
>
> private:
>      I m_begin;
>      I m_end;
>      I current;
>
>     I suppose that my problem is "class 18 = int", but I don't know how
> this SS is defined.

        I have replaced SS by SS1 and CGAL can be built...

        JKB
--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://lists-sop.inria.fr/wws/info/cgal-discuss
Reply | Threaded
Open this post in threaded view
|

Re: CGAL build error on Solaris 10 (i386)

Sylvain Pion
Administrator
BERTRAND Joël a écrit :

> BERTRAND Joël a écrit :
>>> Header files may differ between the two.
>>>
>>>>     I have tried to debug, but I don't speak C++ enough...
>>>
>>>
>>>
>>> Find the compiler option that dumps the preprocessed output, and
>>> inspect it.
>>
>>
>>     OK. I have found in preprocessed file :
>>
>> template < class I, class TT = int, class 18 = int, class DD = int>
>> class Circulator_from_iterator {
>> public:
>>
>>
>>      typedef Circulator_from_iterator<I,TT,18,DD> Self;
>>      typedef I iterator;
>>      typedef std::iterator_traits<iterator> Traits;
>>
>>      typedef typename Traits::value_type value_type;
>>      typedef std::size_t size_type;
>>      typedef typename Traits::difference_type difference_type;
>>      typedef typename Traits::reference reference;
>>      typedef typename Traits::pointer pointer;
>>
>>      typedef typename Traits::iterator_category Icategory;
>>      typedef I_Circulator_from_iterator_traits<Icategory> CTraits;
>>      typedef typename CTraits::iterator_category iterator_category;
>>
>> private:
>>      I m_begin;
>>      I m_end;
>>      I current;
>>
>>     I suppose that my problem is "class 18 = int", but I don't know
>> how this SS is defined.
>
>     I have replaced SS by SS1 and CGAL can be built...

Can you please still investigate which file defines it?
grep for it under /usr/include, maybe, or other places.

--
Sylvain Pion
INRIA Sophia-Antipolis
Geometrica Project-Team
CGAL, http://cgal.org/
--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://lists-sop.inria.fr/wws/info/cgal-discuss
Reply | Threaded
Open this post in threaded view
|

Re: CGAL build error on Solaris 10 (i386)

JKB-5
Sylvain Pion a écrit :

> BERTRAND Joël a écrit :
>
>> BERTRAND Joël a écrit :
>>
>>>> Header files may differ between the two.
>>>>
>>>>>     I have tried to debug, but I don't speak C++ enough...
>>>>
>>>>
>>>>
>>>>
>>>> Find the compiler option that dumps the preprocessed output, and
>>>> inspect it.
>>>
>>>
>>>
>>>     OK. I have found in preprocessed file :
>>>
>>> template < class I, class TT = int, class 18 = int, class DD = int>
>>> class Circulator_from_iterator {
>>> public:
>>>
>>>
>>>      typedef Circulator_from_iterator<I,TT,18,DD> Self;
>>>      typedef I iterator;
>>>      typedef std::iterator_traits<iterator> Traits;
>>>
>>>      typedef typename Traits::value_type value_type;
>>>      typedef std::size_t size_type;
>>>      typedef typename Traits::difference_type difference_type;
>>>      typedef typename Traits::reference reference;
>>>      typedef typename Traits::pointer pointer;
>>>
>>>      typedef typename Traits::iterator_category Icategory;
>>>      typedef I_Circulator_from_iterator_traits<Icategory> CTraits;
>>>      typedef typename CTraits::iterator_category iterator_category;
>>>
>>> private:
>>>      I m_begin;
>>>      I m_end;
>>>      I current;
>>>
>>>     I suppose that my problem is "class 18 = int", but I don't know
>>> how this SS is defined.
>>
>>
>>     I have replaced SS by SS1 and CGAL can be built...
>
>
> Can you please still investigate which file defines it?
> grep for it under /usr/include, maybe, or other places.

        I have found in /usr/include/sys/regset.h :


/*
  * The names and offsets defined here are specified by i386 ABI suppl.
  */

#define SS              18      /* only stored on a privilege transition */
#define UESP            17      /* only stored on a privilege transition */
#define EFL             16
#define CS              15
#define EIP             14
#define ERR             13
#define TRAPNO          12
#define EAX             11
#define ECX             10
#define EDX             9
#define EBX             8
#define ESP             7

        Seem to be i386 (maybe amd64) Solaris 10 specific...

        Regards,

        JKB
--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://lists-sop.inria.fr/wws/info/cgal-discuss