← Back to team overview

yade-users team mailing list archive

Re: [Question #244322]: Compilation with Portland compiler

 

Question #244322 on Yade changed:
https://answers.launchpad.net/yade/+question/244322

    Status: Open => Answered

Anton Gladky proposed the following answer:
Well, difficult to say. It can be even weak support/bug in this
compiler, which does not work with boost. Can you compile
boost itself with pgcc?

I have found something similar here [1] with Intel-compiler. And
suggested workaround to use additional flags -gcc-name=gcc-4.2
-gxx-name=g++-4.2. You can try.

What is the reason of using this compiler? Did you try with clang?

[1] http://software.intel.com/en-us/forums/topic/297833

Anton


2014-03-03 8:06 GMT+01:00 Klaus Thoeni <question244322@xxxxxxxxxxxxxxxxxxxxx
>:

> Question #244322 on Yade changed:
> https://answers.launchpad.net/yade/+question/244322
>
>     Status: Answered => Open
>
> Klaus Thoeni is still having a problem:
> Hi Anton,
>
> it was still using c++ and not pgc++ and -tp=bulldozer-64 was passed to
> c++. I changed the cmake as follows:
>
> cmake -DINSTALL_PREFIX=~/YADE-git/master_AMD/install ~/YADE-
> git/master_AMD/trunk -DENABLE_GUI=OFF -DENABLE_CGAL=OFF
> -DENABLE_PFVFLOW=OFF
> -DCMAKE_C_COMPILER=/opt/pgi/linux86-64/13.3/bin/pgcc
> -DCMAKE_CXX_COMPILER=/opt/pgi/linux86-64/13.3/bin/pgc++
> -DCMAKE_CXX_FLAGS='-tp=bulldozer-64'
>
> I added as well -DENABLE_PFVFLOW=OFF and CGAL is now deactivated. The
> output shows that CGAl is deactivated but it doesn't show that PFVFLOW is
> deactivated:
> ...
> -- ===========================================================
> -- Yade configured with following features: Eigen3 VTK OpenMP GTS GL2PS
> -- Disabled features: GUI CGAL LinSolv
> -- Optimized build
> -- ===========================================================
> ...
>
> Well, the cmake works and pgcc and pgc++ are now used during compilation
> but copilation fails. There are plenty of warnings and one of the errors
> I get is:
>
> "/usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c++/4.4.7/cmath",
> line 519: error:
>           identifier "__builtin_isinf" is undefined
>         return __builtin_isinf(__type(__f));
>                ^
>           detected during:
>             instantiation of
>
> "__gnu_cxx::__enable_if<std::__is_arithmetic<_Tp>::__valu
>                       e, int>::__type std::isinf(_Tp) [with _Tp=double]" at
>                       line 385 of
>
> "/usr/include/boost/math/special_functions/fpclassify.hpp
>                       "
>             instantiation of "bool boost::math::detail::isinf_impl(T, const
>                       boost::math::detail::native_tag &) [with T=double]"
> at
>                       line 451 of
>
> "/usr/include/boost/math/special_functions/fpclassify.hpp
>                       "
>             instantiation of "bool boost::math::isinf(T) [with T=double]"
> at
>                       line 769 of "/usr/include/boost/lexical_cast.hpp"
>             instantiation of "bool boost::detail::put_inf_nan(CharT *,
> CharT
>                       *&, const T &) [with CharT=char, T=double]" at line
> 1183
>                       of "/usr/include/boost/lexical_cast.hpp"
>             instantiation of "bool
>                       boost::detail::lexical_stream_limited_src<CharT,
> Traits,
>                       RequiresStringbuffer>::shl_double(double, T *) [with
>                       CharT=char, Traits=std::char_traits<char>,
>                       RequiresStringbuffer=false, T=char]" at line 1299 of
>                       "/usr/include/boost/lexical_cast.hpp"
>             instantiation of "bool
>                       boost::detail::lexical_stream_limited_src<CharT,
> Traits,
>                       RequiresStringbuffer>::operator<<(double) [with
>                       CharT=char, Traits=std::char_traits<char>,
>                       RequiresStringbuffer=false]" at line 1757 of
>                       "/usr/include/boost/lexical_cast.hpp"
>             instantiation of "Target
>                       boost::detail::lexical_cast_do_cast<Target,
>                       Source>::lexical_cast_impl(const Source &) [with
>                       Target=std::string, Source=Real]" at line 1924 of
>                       "/usr/include/boost/lexical_cast.hpp"
>             instantiation of "Target
> boost::lexical_cast<Target,Source>(const
>                       Source &) [with Target=std::string, Source=Real]" at
>                       line 46 of
>
> "/home/kt748/YADE-git/master_AMD/trunk/py/mathWrap/miniEi
>                       gen.cpp"
>
> Stuck again..
>
> Thanks,
> Klaus
>
> You received this question notification because you are a member of
> yade-users, which is an answer contact for Yade.
>
> _______________________________________________
> Mailing list: https://launchpad.net/~yade-users
> Post to     : yade-users@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~yade-users
> More help   : https://help.launchpad.net/ListHelp
>

-- 
You received this question notification because you are a member of
yade-users, which is an answer contact for Yade.