[Dune] Linking with OS X 10.9 Mavericks
Benedikt Oswald
benedikt.oswald at lspr.ch
Wed Jan 29 14:40:34 CET 2014
here's the respective output when running make VERBOSE=1 in ./dune-grid-howto/build-cmake:
odysseus:build-cmake oswald$ make VERBOSE=1
/Users/oswald/extlib/cmake/2.8.11.2/gcc/4.8.1/bin/cmake -H/Users/oswald/gitwork/hades-cmake/dune-grid-howto -B/Users/oswald/gitwork/hades-cmake/dune-grid-howto/build-cmake --check-build-system CMakeFiles/Makefile.cmake 0
/Users/oswald/extlib/cmake/2.8.11.2/gcc/4.8.1/bin/cmake -E cmake_progress_start /Users/oswald/gitwork/hades-cmake/dune-grid-howto/build-cmake/CMakeFiles /Users/oswald/gitwork/hades-cmake/dune-grid-howto/build-cmake/CMakeFiles/progress.marks
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f CMakeFiles/Makefile2 all
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f CMakeFiles/adaptivefinitevolume.dir/build.make CMakeFiles/adaptivefinitevolume.dir/depend
cd /Users/oswald/gitwork/hades-cmake/dune-grid-howto/build-cmake && /Users/oswald/extlib/cmake/2.8.11.2/gcc/4.8.1/bin/cmake -E cmake_depends "Unix Makefiles" /Users/oswald/gitwork/hades-cmake/dune-grid-howto /Users/oswald/gitwork/hades-cmake/dune-grid-howto /Users/oswald/gitwork/hades-cmake/dune-grid-howto/build-cmake /Users/oswald/gitwork/hades-cmake/dune-grid-howto/build-cmake /Users/oswald/gitwork/hades-cmake/dune-grid-howto/build-cmake/CMakeFiles/adaptivefinitevolume.dir/DependInfo.cmake --color=
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f CMakeFiles/adaptivefinitevolume.dir/build.make CMakeFiles/adaptivefinitevolume.dir/build
Linking CXX executable adaptivefinitevolume
/Users/oswald/extlib/cmake/2.8.11.2/gcc/4.8.1/bin/cmake -E cmake_link_script CMakeFiles/adaptivefinitevolume.dir/link.txt --verbose=1
/Users/oswald/extlib/gcc/4.8.1/gcc/4.8.1/bin/g++ -std=c++11 -Wl,-search_paths_first -Wl,-headerpad_max_install_names CMakeFiles/adaptivefinitevolume.dir/adaptivefinitevolume.cc.o -o adaptivefinitevolume -L/Users/oswald/gitwork/hades-cmake/dune-grid-howto/lib /Users/oswald/gitwork/hades-cmake/dune-common/build-cmake/lib/libdunecommon.a /Users/oswald/gitwork/hades-cmake/dune-geometry/build-cmake/lib/libdunegeometry.a /Users/oswald/gitwork/hades-cmake/dune-grid/build-cmake/lib/libdunegrid.a /Users/oswald/gitwork/hades-cmake/dune-geometry/build-cmake/lib/libdunegeometry.a /Users/oswald/gitwork/hades-cmake/dune-common/build-cmake/lib/libdunecommon.a -framework Accelerate
ld: warning: directory not found for option '-L/Users/oswald/gitwork/hades-cmake/dune-grid-howto/lib'
Undefined symbols for architecture x86_64:
"toupper(int)", referenced from:
Dune::dgf::makeupcase(std::basic_string<char, std::char_traits<char>, std::allocator<char> >&) in libdunegrid.a(basic.cc.o)
Dune::dgf::makeupcase(std::basic_string<char, std::char_traits<char>, std::allocator<char> >&) in libdunegrid.a(gridparameter.cc.o)
ld: symbol(s) not found for architecture x86_64
collect2: error: ld returned 1 exit status
make[2]: *** [adaptivefinitevolume] Error 1
make[1]: *** [CMakeFiles/adaptivefinitevolume.dir/all] Error 2
make: *** [all] Error 2
Thanks, Benedikt
On 29 Jan 2014, at 12:06, Steffen Müthing <steffen.muething at iwr.uni-heidelberg.de> wrote:
> Does it work when you build with autotools?
>
> In that case, it would be helpful to have the two actual linker commands.
> I think you can force cmake to print the commands (like autotools)
> by running make VERBOSE=1.
>
>
> Am 29.01.2014 um 11:41 schrieb Christoph Grüninger <christoph.grueninger at iws.uni-stuttgart.de>:
>
>> Hi Benedikt,
>> might be helpful to change the used C++ library:
>> http://stackoverflow.com/q/16352833
>> http://stackoverflow.com/q/19621831
>>
>>> How and where exactly should I run make check ?
>>
>> Sorry, that's difficult to know without CMake background. I'll write a
>> short hands-on in the Dune User Wiki. Until then:
>> Go to the build directory, by default it is dune-common/build-cmake.
>> Execute "make test".
>>
>> Bye
>> Christoph
>>
>> --
>> Une science n'était vraiment développée que quand elle
>> pouvait utiliser les mathématiques. (Paul Lafargue)
>> *********************************************
>> CMWR 2014: 10th - 13th June 2014 in Stuttgart
>> Please visit www.cmwr14.de
>> *********************************************
>>
>> _______________________________________________
>> Dune mailing list
>> Dune at dune-project.org
>> http://lists.dune-project.org/mailman/listinfo/dune
>
> _______________________________________________
> Dune mailing list
> Dune at dune-project.org
> http://lists.dune-project.org/mailman/listinfo/dune
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.dune-project.org/pipermail/dune/attachments/20140129/5b718cc5/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 841 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <https://lists.dune-project.org/pipermail/dune/attachments/20140129/5b718cc5/attachment.sig>
More information about the Dune
mailing list