[Trilinos-Users] Compiling Trilinos 10.0.1 on Mac.

Bartlett, Roscoe A rabartl at sandia.gov
Mon Dec 7 08:43:59 MST 2009


Andrew,

Yes, this is the problem.  It appears the fix was made after the Trilinos 10.0.2 release was put out as shown by:


$ eg log-oneline --name-only trilinos-release-10-0-2.. -- packages/stratimikos
5d3f7df "Adding missing ML and Belos adapter libraries in Stratimikos" <rabartl at sandia.gov> [Thu Oct 29 14:39:38 2009 +0000] (6 weeks ago)
packages/stratimikos/cmake/Dependencies.cmake
packages/stratimikos/src/CMakeLists.txt


Hopefully a new minor release will be put out soon.

- Ross


From: trilinos-users-bounces at software.sandia.gov [mailto:trilinos-users-bounces at software.sandia.gov] On Behalf Of Bartlett, Roscoe A
Sent: Monday, December 07, 2009 8:34 AM
To: Chris Baker; Andrew McBride; trilinos-users at software.sandia.gov
Subject: Re: [Trilinos-Users] Compiling Trilinos 10.0.1 on Mac.

This is what I suspected also, but I just wanted to see the detailed configure output (see my last email) to know for sure.

I will check to see if this patch is staged for the next minor release of Trilinos.

- Ross


From: Chris Baker [mailto:cgbaker at gmail.com]
Sent: Monday, December 07, 2009 8:26 AM
To: Andrew McBride; trilinos-users at software.sandia.gov; Bartlett, Roscoe A
Subject: Fwd: [Trilinos-Users] Compiling Trilinos 10.0.1 on Mac.

Andrew, It seems that this has already been addressed. Try the attached patch. I suppose this isn't reflected in the 10.0.2 branch (???)

Chris

cc: Ross
---------- Forwarded message ----------
From: Bartlett, Roscoe A <rabartl at sandia.gov<mailto:rabartl at sandia.gov>>
Date: Thu, Oct 29, 2009 at 09:30
Subject: RE: [Trilinos-Users] Compiling Trilinos 10.0.1 on Mac.
To: Ted Kord <teddy.kord at googlemail.com<mailto:teddy.kord at googlemail.com>>
Cc: Luca Heltai <luca.heltai at gmail.com<mailto:luca.heltai at gmail.com>>, "trilinos-users at software.sandia.gov<mailto:trilinos-users at software.sandia.gov>" <trilinos-users at software.sandia.gov<mailto:trilinos-users at software.sandia.gov>>, Chris Baker <cgbaker at gmail.com<mailto:cgbaker at gmail.com>>
Ted,

Chris Baker was able to reproduce the problem and found the cause.   Can you please apply the attached patch and see if it fixes this problem?  The fix will be in the next minor release of Trilinos 10.

What is happening here is that some of these Trilinos CMakeLists.txt files are missing explicit info about the interdependencies of some libraries.   This info should be needed by CMake for correctly creating shared libraries and linking the libraries in the right order.   The design of the Trilinos CMake build system makes sure that all the libraries will be listed on every link line but without the correct ordering info, CMake may not put them in the right order (or may not create the shared libraries correctly which might be the case here).  For some reason, these still linked just fine on all the Unix, Windows, and Mac machines on which we are testing.  It has only been these newer Macs that are showing the defects (and these are defects).   This is very frustrating.

The Trilinos project needs to get a hold of one of these newer Macs that can reproduce the problem and add it as a nightly test machine so that this never happens again.

Let me know if this does not work or if you have any other such link problems.

- Ross



From: Ted Kord [mailto:teddy.kord at googlemail.com<mailto:teddy.kord at googlemail.com>]
Sent: Wednesday, October 28, 2009 1:21 PM
To: Bartlett, Roscoe A
Cc: Luca Heltai; trilinos-users at software.sandia.gov<mailto:trilinos-users at software.sandia.gov>; Chris Baker

Subject: Re: [Trilinos-Users] Compiling Trilinos 10.0.1 on Mac.

I applied the patch, all optional dependencies turned on, reconfigured and then 'make' but I also still get the same errors in linking to Stratimikos:

Linking CXX shared library libstratimikos.dylib
Undefined symbols:
  "Thyra::MLPreconditionerFactory::MLPreconditionerFactory()", referenced from:
      Teuchos::AllocatorNew<Thyra::MLPreconditionerFactory>::allocate() const   in Stratimikos_DefaultLinearSolverBuilder.cpp.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make[2]: *** [packages/stratimikos/src/libstratimikos.dylib] Error 1
make[1]: *** [packages/stratimikos/src/CMakeFiles/stratimikos.dir/all] Error 2
make: *** [all] Error 2

Ted

-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://software.sandia.gov/pipermail/trilinos-users/attachments/20091207/46a7c162/attachment-0001.html 


More information about the Trilinos-Users mailing list