Quantcast
Channel: Intel® C++ Compiler
Viewing all articles
Browse latest Browse all 1616

Error compililing qhull library with icc & icpc

$
0
0

I am trying to compile octave with intel compilers.I am facing trouble building downloaded qhull-2012.1-src.tgz dependency for octave.
now while trying to compile the qhull package (with cmake)
cmake .. -DCMAKE_CXX_COMPILER=icpc -DCMAKE_CC_COMPILER=icc
i get following error:
 

In file included from /usr/include/limits.h:125,
                 from /home/puneet/OCTAVE/qhull-2012.1/src/libqhull/qhull_a.h:42,
                 from /home/puneet/OCTAVE/qhull-2012.1/src/libqhull/global.c:19:
/opt/intel/include/limits.h:36:54: error: missing binary operator before token "("
/home/puneet/OCTAVE/qhull-2012.1/src/libqhull/global.c: In function ‘qh_clear_outputflags’:
/home/puneet/OCTAVE/qhull-2012.1/src/libqhull/global.c:182: error: ‘DBL_MAX’ undeclared (first use in this function)
/home/puneet/OCTAVE/qhull-2012.1/src/libqhull/global.c:182: error: (Each undeclared identifier is reported only once
/home/puneet/OCTAVE/qhull-2012.1/src/libqhull/global.c:182: error: for each function it appears in.)
/home/puneet/OCTAVE/qhull-2012.1/src/libqhull/global.c: In function ‘qh_initflags’:
/home/puneet/OCTAVE/qhull-2012.1/src/libqhull/global.c:1411: error: ‘DBL_MAX’ undeclared (first use in this function)
/home/puneet/OCTAVE/qhull-2012.1/src/libqhull/global.c: In function ‘qh_initqhull_buffers’:
/home/puneet/OCTAVE/qhull-2012.1/src/libqhull/global.c:1443: error: ‘DBL_MAX’ undeclared (first use in this function)
/home/puneet/OCTAVE/qhull-2012.1/src/libqhull/global.c: In function ‘qh_initqhull_globals’:
/home/puneet/OCTAVE/qhull-2012.1/src/libqhull/global.c:1495: error: ‘DBL_MAX’ undeclared (first use in this function)
/home/puneet/OCTAVE/qhull-2012.1/src/libqhull/global.c:1523: error: ‘DBL_EPSILON’ undeclared (first use in this function)
/home/puneet/OCTAVE/qhull-2012.1/src/libqhull/global.c: In function ‘qh_initqhull_outputflags’:
/home/puneet/OCTAVE/qhull-2012.1/src/libqhull/global.c:1714: error: ‘DBL_MAX’ undeclared (first use in this function)
/home/puneet/OCTAVE/qhull-2012.1/src/libqhull/global.c: In function ‘qh_initqhull_start2’:
/home/puneet/OCTAVE/qhull-2012.1/src/libqhull/global.c:1858: error: ‘DBL_MAX’ undeclared (first use in this function)
/home/puneet/OCTAVE/qhull-2012.1/src/libqhull/global.c:1869: error: ‘DBL_MIN’ undeclared (first use in this function)
/home/puneet/OCTAVE/qhull-2012.1/src/libqhull/global.c: In function ‘qh_initthresholds’:
/home/puneet/OCTAVE/qhull-2012.1/src/libqhull/global.c:2002: error: ‘DBL_MAX’ undeclared (first use in this function)
make[2]: *** [CMakeFiles/libqhull.dir/src/libqhull/global.c.o] Error 1
make[1]: *** [CMakeFiles/libqhull.dir/all] Error 2
make: *** [all] Error 2

But , the package builds suceeds once i unexport intel compiler paths, from my environment;

version=5.0.1.035
source /opt/intel/mkl/bin/mklvars.sh intel64
source /opt/intel/bin/compilervars.sh intel64
source /opt/intel/impi/$version/intel64/bin/mpivars.sh intel64

Where am i going wrong? Any help/hint will be very useful,
Eagerly awaiting your reply,

Regards,
Puneet Singh


Viewing all articles
Browse latest Browse all 1616

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>