Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linking error on OS X #252

Open
jon-torodash opened this issue Aug 3, 2013 · 1 comment
Open

Linking error on OS X #252

jon-torodash opened this issue Aug 3, 2013 · 1 comment

Comments

@jon-torodash
Copy link

I searched the closed and outstanding issues concerning the build process and didn't find anything related, but my apologies in advance if this is a known error.

I'm trying to compile on Darwin (10.6) and running into trouble at the linking phase, with a segmentation fault on ld (as called from collect2) at utest-neumann. Here is the output (for the sake of readability, CF3 == path to CF3):

/usr/libexec/gcc/i686-apple-darwin10/4.2.1/ld -dynamic -arch x86_64 -macosx_version_min 10.6.8 -weak_reference_mismatches non-weak -o utest-neumann -lcrt1.10.6.o -L/usr/lib/gcc/i686-apple-darwin10/4.2.1/x86_64 -L/usr/lib/gcc/i686-apple-darwin10/4.2.1/x86_64 -L/usr/lib/i686-apple-darwin10/4.2.1 -L/usr/lib/gcc/i686-apple-darwin10/4.2.1 -L/usr/lib/gcc/i686-apple-darwin10/4.2.1 -L/usr/lib/gcc/i686-apple-darwin10/4.2.1/../../../i686-apple-darwin10/4.2.1 -L/usr/lib/gcc/i686-apple-darwin10/4.2.1/../../.. -search_paths_first -v -t -warn_stabs -warn_commons -whatsloaded -why_load -headerpad_max_install_names CMakeFiles/utest-neumann.dir/utest-neumann.cpp.o ../../../dso/libcoolfluid_mesh.dylib ../../../dso/libcoolfluid_solver_actions.dylib ../../../dso/libcoolfluid_mesh_lagrangep1.dylib ../../../dso/libcoolfluid_mesh_lagrangep2.dylib ../../../dso/libcoolfluid_mesh_lagrangep3.dylib ../../../dso/libcoolfluid_mesh_generation.dylib ../../../dso/libcoolfluid_solver.dylib ../../../dso/libcoolfluid_ufem.dylib CF3/deps/lib/libboost_unit_test_framework.dylib ../../../dso/libcoolfluid_mesh_blockmesh.dylib ../../../dso/libcoolfluid_solver_actions.dylib ../../../dso/libcoolfluid_solver.dylib ../../../dso/libcoolfluid_mesh_gmsh.dylib ../../../dso/libcoolfluid_mesh_neu.dylib ../../../dso/libcoolfluid_mesh_cgns.dylib ../../../dso/libcoolfluid_mesh_actions.dylib CF3/deps/lib/libcgns.dylib CF3/deps/lib/libhdf5.dylib ../../../dso/libcoolfluid_math_lss.dylib CF3/deps/lib/libteko.dylib CF3/deps/lib/libstratimikos.dylib CF3/deps/lib/libstratimikosbelos.dylib CF3/deps/lib/libstratimikosaztecoo.dylib CF3/deps/lib/libstratimikosamesos.dylib CF3/deps/lib/libstratimikosml.dylib CF3/deps/lib/libstratimikosifpack.dylib CF3/deps/lib/libshylu.dylib CF3/deps/lib/libanasazitpetra.dylib CF3/deps/lib/libModeLaplace.dylib CF3/deps/lib/libanasaziepetra.dylib CF3/deps/lib/libanasazi.dylib CF3/deps/lib/libbelostpetra.dylib CF3/deps/lib/libbelosepetra.dylib CF3/deps/lib/libbelos.dylib CF3/deps/lib/libml.dylib CF3/deps/lib/libifpack.dylib CF3/deps/lib/libamesos.dylib CF3/deps/lib/libgaleri-xpetra.dylib CF3/deps/lib/libgaleri.dylib CF3/deps/lib/libaztecoo.dylib CF3/deps/lib/libisorropia.dylib CF3/deps/lib/libthyratpetra.dylib CF3/deps/lib/libthyraepetraext.dylib CF3/deps/lib/libthyraepetra.dylib CF3/deps/lib/libthyracore.dylib CF3/deps/lib/libthyratpetra.dylib CF3/deps/lib/libthyraepetraext.dylib CF3/deps/lib/libthyraepetra.dylib CF3/deps/lib/libthyracore.dylib CF3/deps/lib/libepetraext.dylib CF3/deps/lib/libtpetraext.dylib CF3/deps/lib/libtpetrainout.dylib CF3/deps/lib/libtpetra.dylib CF3/deps/lib/libtriutils.dylib CF3/deps/lib/libzoltan.dylib CF3/deps/lib/libepetra.dylib CF3/deps/lib/libkokkosdisttsqr.dylib CF3/deps/lib/libkokkosnodetsqr.dylib CF3/deps/lib/libkokkoslinalg.dylib CF3/deps/lib/libkokkosnodeapi.dylib CF3/deps/lib/libkokkos.dylib CF3/deps/lib/libkokkosdisttsqr.dylib CF3/deps/lib/libkokkosnodetsqr.dylib CF3/deps/lib/libkokkoslinalg.dylib CF3/deps/lib/libkokkosnodeapi.dylib CF3/deps/lib/libkokkos.dylib CF3/deps/lib/librtop.dylib CF3/deps/lib/libtpi.dylib CF3/deps/lib/libteuchos.dylib CF3/deps/lib/libparmetis.a CF3/deps/lib/libmetis.a /usr/lib/liblapack.dylib /usr/lib/libblas.dylib /usr/lib/libpthread.dylib ../../../dso/libcoolfluid_mesh_lagrangep2.dylib ../../../dso/libcoolfluid_mesh_lagrangep1.dylib ../../../dso/libcoolfluid_mesh_lagrangep0.dylib ../../../dso/libcoolfluid_mesh.dylib ../../../dso/libcoolfluid_physics.dylib ../../../dso/libcoolfluid_math.dylib ../../../dso/libcoolfluid_common.dylib -ldl CF3/deps/lib/libboost_thread.dylib CF3/deps/lib/libboost_iostreams.dylib CF3/deps/lib/libboost_filesystem.dylib CF3/deps/lib/libboost_system.dylib CF3/deps/lib/libboost_regex.dylib CF3/deps/lib/libboost_date_time.dylib CF3/deps/lib/libboost_program_options.dylib ../../../dso/libcoolfluid_fparser.dylib /usr/lib/libm.dylib CF3/deps/lib/libmpi_cxx.dylib CF3/deps/lib/libmpi.dylib CF3/deps/lib/libopen-rte.dylib CF3/deps/lib/libopen-pal.dylib /usr/lib/libutil.dylib -lstdc++ -lSystem -lgcc -lSystem
collect2: ld terminated with signal 11 [Segmentation fault]
@(#)PROGRAM:ld  PROJECT:ld64-97.17
Library search paths:
    /usr/lib/gcc/i686-apple-darwin10/4.2.1/x86_64
    /usr/lib/gcc/i686-apple-darwin10/4.2.1/x86_64
    /usr/lib/i686-apple-darwin10/4.2.1
    /usr/lib/gcc/i686-apple-darwin10/4.2.1
    /usr/lib/gcc/i686-apple-darwin10/4.2.1
    /usr/lib/i686-apple-darwin10/4.2.1
    /usr/lib
    /usr/lib
    /usr/local/lib
Framework search paths:
    /Library/Frameworks/
    /System/Library/Frameworks/
make[2]: *** [plugins/UFEM/test/utest-neumann] Error 1
make[1]: *** [plugins/UFEM/test/CMakeFiles/utest-neumann.dir/all] Error 2
make: *** [all] Error 2

This is as verbose as I can reproduce the error so far.
The core dump file is a hefty 326MB and not much help.
I did not see any OS X build-specific information in the docs. Is there any known issue?

@barche
Copy link
Member

barche commented Aug 5, 2013

This being a segfault of the linker, it is clearly a bug there. That said, I think this might be caused by linking in too many trilinos libraries, you might try with a more limited configuration as in the install-deps script:
https://github.com/coolfluid/coolfluid3/blob/master/tools/install-deps.pl#L1000

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants