[Trilinos-Users] [EXTERNAL] Re: Compilation fails on OSX with clang

Phipps, Eric T etphipp at sandia.gov
Sun Nov 9 09:41:02 MST 2014


Ross,

This is issue is impacting a number of users, so disabling the Sacado tests is not an acceptable solution.  Your changes to Tribits are the source of these linking problems, so I would like you to cherry pick into the release branch whatever changes are necessary to fix it so that a new release can be generated.

-Eric

On Nov 9, 2014, at 5:04 AM, Bartlett, Roscoe A. <bartlettra at ornl.gov<mailto:bartlettra at ornl.gov>> wrote:

Eric,

I don’t think this was merged to the 11.12 branch.

To merge this in to the release branch, the commits to TriBITS and Sacado from the master branch would need to be cherry-picked into the release branch.

Dominique,

I think if you just turn the Sacado tests off, you should not see this link failure as I think this only effects the tests.  Just configure with:

    -DSacado_ENABLE_TESTS=OFF

Cheers,

-Ross

P.S.  Note that if we would pull the trigger on adding ‘-Wl,--no-undefined’ to the default development builds, then this type of defect would never get into the master branch in the first place (and therefore never get into a release branch).  See:

    https://software.sandia.gov/bugzilla/show_bug.cgi?id=6147
   https://github.com/TriBITSPub/TriBITS/issues/42

I think there are still some issues with either SEACAS and/or STK stopping this but we would have to check.  Otherwise, this would be super easy to add to TriBITS and therefore Trilinos.






From: Phipps, Eric T [mailto:etphipp at sandia.gov]
Sent: Sunday, November 09, 2014 12:06 AM
To: Dominique Orban; Bartlett, Roscoe A.
Cc: Weston Ortiz; trilinos-users
Subject: Re: [EXTERNAL] Re: [Trilinos-Users] Compilation fails on OSX with clang

I think this was due to changes in Tribits and was fixed in at least the development branch.

Ross:  did your DEPLIBS fix for Sacado get applied to the 11.12 release branch?
-Eric

On Nov 8, 2014, at 5:41 PM, Dominique Orban <dominique.orban at gmail.com<mailto:dominique.orban at gmail.com>> wrote:
Thanks for the information. When building 11.12.1 with both clang and gcc 4.9.1 I get the error described here:

https://github.com/Homebrew/homebrew-science/issues/887#issuecomment-61812917



Dominique

On Fri, Nov 7, 2014 at 3:18 PM, Weston Ortiz <weston at wortiz.com<mailto:weston at wortiz.com>> wrote:
I think this was fixed in the newest release see: https://groups.google.com/forum/#!searchin/trilinos/sacado$20cmath/trilinos/tlNTq3qALXM/9k-OpHfCEUoJ



On November 7, 2014 at 6:22:54 AM, Dominique Orban (dominique.orban at gmail.com<mailto:dominique.orban at gmail.com>) wrote:
Hello,

Over at https://github.com/Homebrew/homebrew-science/issues/887 we're trying to write a solid Homebrew (https://brew.sh) formula for users to install Trilinos on OSX.

We haven't been able to build 11.12.1 so far and thought it might be safer to focus on 11.10.2. The build goes through with gcc 4.9 but it fails with clang with the following error:


[ 46%] Building CXX object packages/sacado/test/tradoptest/CMakeFiles/Sacado_hesopcheck_ADC.dir/hesopcheck_ADC.cpp.o

cd /tmp/trilinos-ij94Bt/trilinos-11.10.2-Source/build/packages/sacado/test/tradoptest && /usr/local/bin/mpicxx    -DRAD_AUTO_AD_Const -I/tmp/trilinos-ij94Bt/trilinos-11.10.2-Source/build -I/tmp/trilinos-ij94Bt/trilinos-11.10.2-Source/build/packages/sacado/src -I/tmp/trilinos-ij94Bt/trilinos-11.10.2-Source/packages/sacado/src -I/tmp/trilinos-ij94Bt/trilinos-11.10.2-Source/packages/sacado/src/template -I/tmp/trilinos-ij94Bt/trilinos-11.10.2-Source/packages/sacado/src/parameter -I/tmp/trilinos-ij94Bt/trilinos-11.10.2-Source/packages/sacado/src/mpl -I/tmp/trilinos-ij94Bt/trilinos-11.10.2-Source/packages/teuchos/remainder/src -I/tmp/trilinos-ij94Bt/trilinos-11.10.2-Source/build/packages/teuchos/core/src -I/tmp/trilinos-ij94Bt/trilinos-11.10.2-Source/packages/teuchos/core/src -I/usr/local/include -I/tmp/trilinos-ij94Bt/trilinos-11.10.2-Source/packages/teuchos/numerics/src -I/tmp/trilinos-ij94Bt/trilinos-11.10.2-Source/packages/teuchos/comm/src -I/tmp/trilinos-ij94Bt/trilinos-11.10.2-Source/packages/teuchos/parameterlist/src    -o CMakeFiles/Sacado_hesopcheck_ADC.dir/hesopcheck_ADC.cpp.o -c /tmp/trilinos-ij94Bt/trilinos-11.10.2-Source/build/packages/sacado/test/tradoptest/hesopcheck_ADC.cpp

In file included from /tmp/trilinos-ij94Bt/trilinos-11.10.2-Source/packages/sacado/test/tradoptest/hesopcheck.cpp:36:

In file included from /tmp/trilinos-ij94Bt/trilinos-11.10.2-Source/packages/sacado/src/Sacado_trad.hpp:39:

In file included from /tmp/trilinos-ij94Bt/trilinos-11.10.2-Source/packages/sacado/src/Sacado_trad_Traits.hpp:35:

In file included from /tmp/trilinos-ij94Bt/trilinos-11.10.2-Source/packages/sacado/src/Sacado_Traits.hpp:56:

In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/complex:246:

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cmath:664:35: error: no matching function

      for call to 'fabs'

abs(double __x) _NOEXCEPT {return fabs(__x);}

                                  ^~~~

/tmp/trilinos-ij94Bt/trilinos-11.10.2-Source/packages/sacado/src/Sacado_MathFunctions.hpp:124:17: note: candidate template ignored: could not

      match 'Expr<type-parameter-0-0>' against 'double'

UNARYFUNC_MACRO(fabs, FAbsOp)

                ^

/tmp/trilinos-ij94Bt/trilinos-11.10.2-Source/packages/sacado/src/Sacado_MathFunctions.hpp:43:30: note: expanded from macro 'UNARYFUNC_MACRO'

    Expr< FADOP< Expr<T> > > OP (const Expr<T>&);
It would be great if seasoned Trilinos users/devs chimed in on the thread above to comment on the formula and perhaps help us resolve build errors. This would make Trilinos widely available to OSX users.

Cheers,

Dominique
_______________________________________________
Trilinos-Users mailing list
Trilinos-Users at software.sandia.gov<mailto:Trilinos-Users at software.sandia.gov>
https://software.sandia.gov/mailman/listinfo/trilinos-users

_______________________________________________
Trilinos-Users mailing list
Trilinos-Users at software.sandia.gov<mailto:Trilinos-Users at software.sandia.gov>
https://software.sandia.gov/mailman/listinfo/trilinos-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://software.sandia.gov/pipermail/trilinos-users/attachments/20141109/24dd993d/attachment.html>


More information about the Trilinos-Users mailing list