Compile problem

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

Compile problem

pederzani
Hello all,
 
I'm having installing CGAL on the linux Cluster I run my simulation on.
The problem I'm having is that the install script does not recognize were I've
installed my boost file.
 
In the interactive interface I go in the Boost menu and setup both the INC and
DIR path correctly, but when I test the configuration I get the following
error:
 
  Testing for BOOST ...
  ****************************************************************
  ** **
  ** Compilation failed **
  ** ================== **
  ** **
  **  You will be shown a log now ... **
  ** Please press <ENTER> to continue. **
  ****************************************************************
Compiler call:
--------------
icc -mp
-I/work/00981/pederzan/CGAL-3.3.1/include/CGAL/config/x86-64_Linux-2.6_icc-9.1
-I/work/00981/pederzan/boost/install/include/boost-1_36/boost/
-I/work/00981/pederzan/boost/install/include/boost-1_36/boost/ -c
'./tmp_test.cpp'
Got the following error messages:
---------------------------------
./tmp_test.cpp(27): catastrophic error: could not open source file
"boost/version.hpp"
  #include <boost/version.hpp>
                              ^
compilation aborted for ./tmp_test.cpp (code 4)
 
What I did next is that I changed the include statement in test_BOOST.cpp
 
from #include <boost/version.hpp>
 
to #include
</work/00981/pederzan/boost/install/include/boost-1_36/boost/version.hpp>
 
At this point I no longer get the compilation error for temp_test.cpp, but for
tuple.hpp
 
I guess I could go and change the include statement in tuple.hpp as well, but I
don't think this is the correct way to go.
Am I doing something wrong? What?
 
Thank you for your help
 
Jean-Noel Pederzani
--
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: Compile problem

Fernando Cacciola-3
Hello Jean-Noel,

 > Hello all,
 >
 > I'm having installing CGAL on the linux Cluster I run my simulation
 > on. The problem I'm having is that the install script does not
 > recognize were I've installed my boost file.
 >
 > In the interactive interface I go in the Boost menu and setup both
the > INC and


It is this the path you entered?

/work/00981/pederzan/boost/install/include/boost-1_36/


that is, without the trailing /boost?

HTH

Fernando Cacciola
GeometryFactory
--
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: Re: Compile problem

pederzani
the path I enter includes the trailing boost

/work/00981/pederzan/boost/install/include/boost-1_36/boost/

Jean-Noel
--
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: Compile problem

Joachim Reichel
In reply to this post by pederzani
Hi,

> Compiler call:
> --------------
> icc -mp
> -I/work/00981/pederzan/CGAL-3.3.1/include/CGAL/config/x86-64_Linux-2.6_icc-9.1
> -I/work/00981/pederzan/boost/install/include/boost-1_36/boost/
> -I/work/00981/pederzan/boost/install/include/boost-1_36/boost/ -c
> './tmp_test.cpp'
> Got the following error messages:
> ---------------------------------
> ./tmp_test.cpp(27): catastrophic error: could not open source file
> "boost/version.hpp"
>   #include <boost/version.hpp>
>      ^
> compilation aborted for ./tmp_test.cpp (code 4)
>  
> What I did next is that I changed the include statement in test_BOOST.cpp
>  
> from #include <boost/version.hpp>
>  
> to #include
> </work/00981/pederzan/boost/install/include/boost-1_36/boost/version.hpp>

the "/boost" part at the end of the include directory is wrong. It should work
without that part.

Joachim
--
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: Re: Compile problem

pederzani
It does work without the work!!

now I'm getting a new error....

Linker call:
--------------
icc -o ./tmp_test ./tmp_test.o -L/work/00981/pederzan/boost/install/lib
-L/work/00981/pederzan/boost/install/lib
-Wl,-R/work/00981/pederzan/boost/install/lib:/work/00981/pederzan/boost/install/lib
   -lm

Got the following error messages:
---------------------------------
./tmp_test.o: In function `main':
./tmp_test.cpp:(.text+0x4f): undefined reference to `std::cout'
./tmp_test.cpp:(.text+0xd8): undefined reference to `std::basic_ostream<char,
std::char_traits<char> >& std::operator<< <std::char_traits<char>
>(std::basic_ostream<char, std::char_traits<char> >&, char const*)'
./tmp_test.cpp:(.text+0xe5): undefined reference to
`std::ostream::operator<<(int)'
./tmp_test.cpp:(.text+0xf2): undefined reference to `std::basic_ostream<char,
std::char_traits<char> >& std::operator<< <std::char_traits<char>
>(std::basic_ostream<char, std::char_traits<char> >&, char const*)'
./tmp_test.cpp:(.text+0xff): undefined reference to
`std::ostream::operator<<(int)'
./tmp_test.cpp:(.text+0x10c): undefined reference to `std::basic_ostream<char,
std::char_traits<char> >& std::operator<< <std::char_traits<char>
>(std::basic_ostream<char, std::char_traits<char> >&, char const*)'
./tmp_test.cpp:(.text+0x116): undefined reference to
`std::ostream::operator<<(int)'
./tmp_test.cpp:(.text+0x11e): undefined reference to `std::basic_ostream<char,
std::char_traits<char> >& std::endl<char, std::char_traits<char>
>(std::basic_ostream<char, std::char_traits<char> >&)'
./tmp_test.cpp:(.text+0x123): undefined reference to
`std::ostream::operator<<(std::ostream& (*)(std::ostream&))'
./tmp_test.o: In function `__sti__$E':
./tmp_test.cpp:(.text+0x139): undefined reference to
`std::ios_base::Init::Init()'
./tmp_test.cpp:(.text+0x13e): undefined reference to
`std::ios_base::Init::~Init()'
./tmp_test.o:(.eh_frame+0x12): undefined reference to `__gxx_personality_v0'


Off to fix this one!

Jean-Noel
--
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: Compile problem

Joachim Reichel
Hi,

> Linker call:
> --------------
> icc -o ./tmp_test ./tmp_test.o -L/work/00981/pederzan/boost/install/lib
^^^^^^
> -L/work/00981/pederzan/boost/install/lib
> -Wl,-R/work/00981/pederzan/boost/install/lib:/work/00981/pederzan/boost/install/lib
>    -lm
>
> Got the following error messages:
> ---------------------------------
> ./tmp_test.o: In function `main':
[...]
> ./tmp_test.o:(.eh_frame+0x12): undefined reference to `__gxx_personality_v0'
                                                         ^^^^^^^^^^^^^^^^^^^^

it seems that you're using icc to link with something compiled with g++. Most
probably this is not going to work.

Note that icc 9.0 is supported under Windows only, not Linux.

Joachim
--
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: Re: Compile problem

pederzani
I added -lstdc++ to the icc flags and that solved that issue

now I get (as usual) another error









  ****************************************************************
  ** **
  ** Compiling CGAL 3.3.1 **
  ** ==================== **
  ** **
  ****************************************************************

  OS: x86-64_Linux-2.6
  COMPILER: Intel 9.1
  BOOST: supported (1.36.0)
  BOOST_PROGRAM_OPTIONS: not supported
  BOOST_BIMAP: not supported
  X11: supported (11.0)
  GMP: not supported
  GMPXX: not supported
  MPFR: not supported
  ZLIB: supported (1.2.1.2)
  BLAS: not supported
  LAPACK: not supported
  ATLAS: not supported
  LEDA: not supported
  LEDAWIN: not supported
  OPENGL: supported (1.5)
  QT: not supported
  TAUCS: not supported

  Generating Makefiles ... done.
  Building libCGAL static ...
  Compilation of libCGAL static failed.
  You will be shown a log now ...
  ****************************************************************
  ** Please press <ENTER> to continue. **
  ****************************************************************

icc  -O2 -mp
'-I/work/00981/pederzan/CGAL-3.3.1/include/CGAL/config/x86-64_Linux-2.6_icc-9.1'
'-I/work/00981/pederzan/CGAL-3.3.1/include'
-I/work/00981/pederzan/boost/install/include/boost-1_36/ -I/usr/X11R6/include
-c assertions.cpp
icc  -O2 -mp
'-I/work/00981/pederzan/CGAL-3.3.1/include/CGAL/config/x86-64_Linux-2.6_icc-9.1'
'-I/work/00981/pederzan/CGAL-3.3.1/include'
-I/work/00981/pederzan/boost/install/include/boost-1_36/ -I/usr/X11R6/include
-c Bbox_2_intersections.cpp
/work/00981/pederzan/CGAL-3.3.1/include/CGAL/Point_2.h(80): error: expected an
identifier
           (const T1 &x, const T2 &y)
            ^

/work/00981/pederzan/CGAL-3.3.1/include/CGAL/Point_2.h(80): error: expected a
")"
           (const T1 &x, const T2 &y)
                       ^

/work/00981/pederzan/CGAL-3.3.1/include/CGAL/Point_2.h(76): error: not a valid
member class or function template declaration
       Self
       ^

/work/00981/pederzan/CGAL-3.3.1/include/CGAL/Point_2.h(80): error: expected a
";"
           (const T1 &x, const T2 &y)

Any idea what causes this?

Thanks

Jean-Noel
--
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: Compile problem

Sylvain Pion
Administrator
[hidden email] a écrit :
> I added -lstdc++ to the icc flags and that solved that issue

icc is the C compiler.  Use icpc instead, which is the C++ compiler.

--
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