[Trilinos-Users] [EXTERNAL] help compiling shared libraries

Roger Ghanem ghanem at usc.edu
Mon Jun 29 22:09:23 EDT 2015


Andrew,
Whenever I recompile, I always delete the build directory and make from 
scratch.
Again: thank you.
Roger

On 6/29/15 4:43 PM, Bradley, Andrew Michael wrote:
>
> Hi Roger,
>
>
> It might be helpful if you send the list the output of the Trilinos 
> configuration stage. Do this in the build directory:
>
>
>     rm -rf CMake*
>
>
> Then run the Trilinos cmake line and send the full output to the list. 
> It's possible that fully clearing the CMake cache and files will do 
> something helpful. Perhaps a make clean is also in order.
>
>
> Thanks,
> Andrew
>
>
> ------------------------------------------------------------------------
> *From:* Trilinos-Users <trilinos-users-bounces at trilinos.org> on behalf 
> of Bradley, Andrew Michael <ambradl at sandia.gov>
> *Sent:* Monday, June 29, 2015 5:23 PM
> *To:* Roger Ghanem; trilinos-users at trilinos.org
> *Subject:* Re: [Trilinos-Users] [EXTERNAL] help compiling shared 
> libraries
>
> Hi list,
>
>
> Any OS X experts out there? These build failures have nothing to do 
> with Albany; they have the form
>
>
> Linking CXX shared library libthyracore.dylib
> Undefined symbols for architecture x86_64:
>   "virtual thunk to Thyra::VectorSpaceDefaultBase<std::complex<double> 
> >::createMembers(int) const", referenced from:
>       construction vtable for 
> Thyra::VectorSpaceDefaultBase<std::complex<double> 
> >-in-Thyra::DefaultMultiVectorProductVectorSpace<std::complex<double> 
> > in Thyra_DefaultMultiVectorProductVectorSpace.cpp.o
>       construction vtable for 
> Thyra::VectorSpaceDefaultBase<std::complex<double> 
> >-in-Thyra::DefaultProductVectorSpace<std::complex<double> > in 
> Thyra_DefaultProductVectorSpace.cpp.o
>       construction vtable for 
> Thyra::VectorSpaceDefaultBase<std::complex<double> 
> >-in-Thyra::DefaultClusteredSpmdProductVectorSpace<std::complex<double> > 
> in Thyra_DefaultClusteredSpmdProductVectorSpace.cpp.o
>       construction vtable for 
> Thyra::VectorSpaceDefaultBase<std::complex<double> 
> >-in-Thyra::DefaultSpmdVectorSpace<std::complex<double> > in 
> Thyra_DefaultSpmdVectorSpace.cpp.o
>       construction vtable for 
> Thyra::ScalarProdVectorSpaceBase<std::complex<double> 
> >-in-Thyra::DefaultSpmdVectorSpace<std::complex<double> > in 
> Thyra_DefaultSpmdVectorSpace.cpp.o
>       construction vtable for 
> Thyra::SpmdVectorSpaceDefaultBase<std::complex<double> 
> >-in-Thyra::DefaultSpmdVectorSpace<std::complex<double> > in 
> Thyra_DefaultSpmdVectorSpace.cpp.o
>       construction vtable for 
> Thyra::VectorSpaceDefaultBase<std::complex<double> 
> >-in-Thyra::SpmdVectorSpaceDefaultBase<std::complex<double> > in 
> Thyra_SpmdVectorSpaceDefaultBase.cpp.o
>
>
> I don't know what to make of these.
>
>
> Thanks,
>
> Andrew
>
>
> ------------------------------------------------------------------------
> *From:* Roger Ghanem <ghanem at usc.edu>
> *Sent:* Monday, June 29, 2015 5:12 PM
> *To:* Bradley, Andrew Michael; trilinos-users at trilinos.org
> *Subject:* Re: [EXTERNAL] [Trilinos-Users] help compiling shared 
> libraries
> Hi Andrew,
>
> I finally got around to another compile attempt.
> I am attaching the script (which is very similar to the one from
> https://github.com/gahansen/Albany/wiki/Albany:-Building-Trilinos
>
> I am also attaching the errors I am still getting.
>
> Any suggestion on what I may still be doing wrong ?
>
> BTW:
> On most previous attempts to compile Albany (with Trilinos 11.*)
> under OSX I have had to modify slightly the source code (some variables
> were apparently invoked without specifying a namespace).
> gcc compilers under linux-*  did not complain.
>
> Thanks
> Roger
>
>
>
> On 6/10/15 12:08 PM, Bradley, Andrew Michael wrote:
>>
>> Hi Roger,
>>
>>
>> When was the previous time you updated Albany? Albany underwent three 
>> large transitions, one in about Aug or Sep 2014 (STKClassic -> STK), 
>> one on 6 Nov 2014 (Tpetra merge), and one on 24 Feb 2015 (Kokkos 
>> merge). In each transition, the build configuration changed.
>>
>>
>> Andrew
>>
>>
>> ------------------------------------------------------------------------
>> *From:* Roger Ghanem <ghanem at usc.edu>
>> *Sent:* Wednesday, June 10, 2015 1:06 PM
>> *To:* Bradley, Andrew Michael; trilinos-users at trilinos.org
>> *Subject:* Re: [EXTERNAL] [Trilinos-Users] help compiling shared 
>> libraries
>> Anderw,
>> I updated Albany a couple of weeks ago. I have not been able to 
>> compile it since (against Trilinos12).
>> I have assumed these are troubles with Trilinos.
>> Roger
>>
>>
>> On 6/10/15 12:04 PM, Bradley, Andrew Michael wrote:
>>>
>>> Hi Roger,
>>>
>>>
>>> May I ask when you last updated Albany?
>>>
>>>
>>> Otherwise, I agree: this might be an issue for the PyTrilinos experts.
>>>
>>>
>>> Thanks,
>>>
>>> Andrew
>>>
>>>
>>> ------------------------------------------------------------------------
>>> *From:* Roger Ghanem <ghanem at usc.edu>
>>> *Sent:* Wednesday, June 10, 2015 1:01 PM
>>> *To:* Bradley, Andrew Michael; trilinos-users at trilinos.org
>>> *Subject:* Re: [EXTERNAL] [Trilinos-Users] help compiling shared 
>>> libraries
>>> Andrew,
>>>
>>> All was good with Trilinos 11.14.  Albany was compiling fine
>>> with:
>>>           -D Trilinos_ENABLE_STKUtil:BOOL=OFF \
>>>           -D Trilinos_ENABLE_STKClassic:BOOL=ON \
>>>
>>>
>>> The static libraries with Trilinos12. are building fine.
>>> I have not tried compiling Albany yet.
>>>
>>> I was compiling the shared library version of Trilinos
>>> to add python functionality, which we found to be quite
>>> useful also.  The make.log file  I sent you was for this
>>> configuration.
>>>
>>> Thanks
>>> Roger
>>>
>>>
>>> On 6/10/15 11:53 AM, Bradley, Andrew Michael wrote:
>>>>
>>>> Hi Roger,
>>>>
>>>>
>>>> We may need multiple people to chime in. I'm seeing some 
>>>> errors having to do with multiple packages.
>>>>
>>>>
>>>> I see at the end of your email that you want to build Albany. I 
>>>> recommend following the guidance here:
>>>>
>>>> https://github.com/gahansen/Albany/wiki/Albany:-Building-Trilinos
>>>>
>>>> In particular, you'll see that Albany uses STK rather than 
>>>> STKClassic. Building Trilinos with both STK and STKClassic is not 
>>>> possible, I'm fairly sure, so you'll want to use the STK flags 
>>>> provided in the link.
>>>>
>>>>
>>>> Cheers,
>>>>
>>>> Andrew
>>>>
>>>>
>>>> ------------------------------------------------------------------------
>>>> *From:* Trilinos-Users <trilinos-users-bounces at trilinos.org> on 
>>>> behalf of Roger G. Ghanem <ghanem at usc.edu>
>>>> *Sent:* Wednesday, June 10, 2015 12:02 PM
>>>> *To:* trilinos-users at trilinos.org
>>>> *Subject:* [EXTERNAL] [Trilinos-Users] help compiling shared libraries
>>>> Dear Trilinos users,
>>>>
>>>> I have attached the cmake configuration file and the make.log file from
>>>> a compilation attempt.
>>>>
>>>> I am compiling on  OSX Yosemite.
>>>> I get the same error whether I am on mac pro or macbook air.
>>>> My environment is as follows:
>>>>
>>>> gcc49 4.9.2_2
>>>> g++-mp-4.9
>>>> boost1.55
>>>> Python 2.7.10
>>>> cmake  3.2.2
>>>> Darwin Kernel Version 14.3.0
>>>> xnu-2782.20.48~5/RELEASE_X86_64 x86_64
>>>>
>>>> *ALSO:
>>>>
>>>> **1.* I compiled the static version successfully (clearly it lacks 
>>>> Python functionality).
>>>>
>>>> *2.* In the shared version, I have to manually edit the two link files:
>>>>
>>>> packages/stk/stk_classic/stk_util/stk_util/environment/CMakeFiles/stkclassic_util_env.dir/link.txt
>>>>
>>>> adding: ../parallel/libstkclassic_util_parallel.dylib
>>>>
>>>> and
>>>>
>>>> packages/stk/stk_classic//stk_util/stk_util/unit_test_support/CMakeFiles/stkclassic_util_unit_test_support.dir/link.txt
>>>>
>>>> adding: ../util/libstkclassic_util_util.dylib
>>>>
>>>>
>>>> *ALSO:*
>>>> when including MeshingGenie, it compiled properly.  But when I 
>>>> tried to compile
>>>> Albany, I was informed that MeshingGenieConfig.cmake      could not 
>>>> be found.
>>>> Indeed I could not find that file in the build or install directories.
>>>>
>>>>
>>>> Thank you for your help.
>>>> Roger
>>>> -- 
>>>> ---------------------------------
>>>> Roger Ghanem
>>>> 210 KAP Hall
>>>> University of Southern California
>>>> Los Angeles, CA 90089
>>>> Tel: 213 740 9528
>>>
>>> -- 
>>> Roger Ghanem
>>> 210 KAP Hall
>>> University of Southern California
>>> Los Angeles, CA 90089
>>
>> -- 
>> Roger Ghanem
>> 210 KAP Hall
>> University of Southern California
>> Los Angeles, CA 90089
>
> -- 
> ---------------------------------
> Roger Ghanem
> 210 KAP Hall
> University of Southern California
> Los Angeles, CA 90089
> Tel: 213 740 9528

-- 
---------------------------------
Roger Ghanem
210 KAP Hall
University of Southern California
Los Angeles, CA 90089
Tel: 213 740 9528

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://trilinos.org/pipermail/trilinos-users/attachments/20150629/090da1f8/attachment.html>


More information about the Trilinos-Users mailing list