[Trilinos-Users] Trilinos build failure with pgi

John R Cary cary at colorado.edu
Sat Jul 24 10:24:58 MDT 2010


Hi Mike,

Followed up and fixed.  Here is a patch.  Now builds.

Best........John


On 7/23/10 8:46 PM, Heroux, Michael A wrote:
> John,
>
> If you replace abs() with fabs() does it work?
>
> I looked around a bit for this issue (which appears to be common).  Here is
> one link that talks about it:
>
> http://www.velocityreviews.com/forums/t281597-c-abs-function.html
>
> Mike
>
>
> On 7/23/10 5:19 PM, "John R. Cary"<cary at colorado.edu>  wrote:
>
>> cd
>> /project/projectdirs/vorpal/cary/vpall-hopper/builds-pgi/trilinos-10.4.0/par/p
>> ackages/epetra/src
>> &&  /opt/cray/xt-asyncpe/3.8/bin/CC   -DEPETRA_LIB_EXPORTS_MODE
>> -DMPICH_IGNORE_CXX_SEEK -fPIC -fast -O3 -Mipa=fast -DNDEBUG
>> -I/project/projectdirs/vorpal/cary/vpall-hopper/builds-pgi/trilinos-10.4.0/par
>> -I/project/projectdirs/vorpal/cary/vpall-hopper/builds-pgi/trilinos-10.4.0/par
>> /packages/epetra/src
>> -I/project/projectdirs/vorpal/cary/vpall-hopper/builds-pgi/trilinos-10.4.0/pac
>> kages/epetra/src
>> -o CMakeFiles/epetra.dir/Epetra_BasicDirectory.cpp.o -c
>> /project/projectdirs/vorpal/cary/vpall-hopper/builds-pgi/trilinos-10.4.0/packa
>> ges/epetra/src/Epetra_BasicDirectory.cpp
>> /opt/cray/xt-asyncpe/3.8/bin/CC: INFO: linux target is being used
>> "/project/projectdirs/vorpal/cary/vpall-hopper/builds-pgi/trilinos-10.4.0/pack
>> ages/epetra/src/Epetra_Util.h",
>> line 164: error:
>>             more than one instance of overloaded function "std::abs"
>> matches the
>>             argument list:
>>               function "abs(int)"
>>               function "std::abs(long)"
>>               function "std::abs(long double)"
>>               argument types are: (const double)
>>         if (std::abs(Value)<  chopVal_) return 0;
>>
>>
>> Is there a flag I can give this?
>>
>> Same failure with 10.2.0.
>>
>>
>>
>> Thx...John
>>
>> _______________________________________________
>> Trilinos-Users mailing list
>> Trilinos-Users at software.sandia.gov
>> http://software.sandia.gov/mailman/listinfo/trilinos-users
>
>

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: trilinos-10.2.0.patch
Url: https://software.sandia.gov/pipermail/trilinos-users/attachments/20100724/636f8f6e/attachment.pl 


More information about the Trilinos-Users mailing list