Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DavidPfander-UniStuttgart/531a55f78e102bc00fdde6ba53f2e290 to your computer and use it in GitHub Desktop.
Save DavidPfander-UniStuttgart/531a55f78e102bc00fdde6ba53f2e290 to your computer and use it in GitHub Desktop.
OctoTiger with static linking
Linking CXX executable octotiger
/users/pfandedd/cmake-3.2.3/bin/cmake -E cmake_link_script CMakeFiles/octotiger_exe.dir/link.txt --verbose=1
/opt/cray/pe/craype/2.5.9/bin/CC -fPIC -Wno-ignored-attributes -Wno-attributes -Wno-deprecated-declarations -fPIC -march=knl -O3 -DNDEBUG -fPIC CMakeFiles/octotiger_exe.dir/src/physcon.cpp.o CMakeFiles/octotiger_exe.dir/src/rad_grid.cpp.o CMakeFiles/octotiger_exe.dir/src/eos.cpp.o CMakeFiles/octotiger_exe.dir/src/node_server_actions_1.cpp.o CMakeFiles/octotiger_exe.dir/src/node_server_actions_2.cpp.o CMakeFiles/octotiger_exe.dir/src/node_server_actions_3.cpp.o CMakeFiles/octotiger_exe.dir/src/scf_data.cpp.o CMakeFiles/octotiger_exe.dir/src/exact_sod.cpp.o CMakeFiles/octotiger_exe.dir/src/profiler.cpp.o CMakeFiles/octotiger_exe.dir/src/geometry.cpp.o CMakeFiles/octotiger_exe.dir/src/grid.cpp.o CMakeFiles/octotiger_exe.dir/src/grid_fmm.cpp.o CMakeFiles/octotiger_exe.dir/src/grid_fmm_compute_interactions.cpp.o CMakeFiles/octotiger_exe.dir/src/grid_fmm_compute_interactions_boundary.cpp.o CMakeFiles/octotiger_exe.dir/src/grid_fmm_compute_interactions_leaf.cpp.o CMakeFiles/octotiger_exe.dir/src/grid_output.cpp.o CMakeFiles/octotiger_exe.dir/src/grid_scf.cpp.o CMakeFiles/octotiger_exe.dir/src/lane_emden.cpp.o CMakeFiles/octotiger_exe.dir/src/main.cpp.o CMakeFiles/octotiger_exe.dir/src/new.cpp.o CMakeFiles/octotiger_exe.dir/src/node_client.cpp.o CMakeFiles/octotiger_exe.dir/src/node_location.cpp.o CMakeFiles/octotiger_exe.dir/src/node_server.cpp.o CMakeFiles/octotiger_exe.dir/src/options.cpp.o CMakeFiles/octotiger_exe.dir/src/problem.cpp.o CMakeFiles/octotiger_exe.dir/src/real.cpp.o CMakeFiles/octotiger_exe.dir/src/roe.cpp.o CMakeFiles/octotiger_exe.dir/src/stack_trace.cpp.o CMakeFiles/octotiger_exe.dir/src/taylor.cpp.o CMakeFiles/octotiger_exe.dir/src/util.cpp.o CMakeFiles/octotiger_exe.dir/src/compute_factor.cpp.o CMakeFiles/octotiger_exe.dir/src/compute_ilist.cpp.o CMakeFiles/octotiger_exe.dir/src/kernels/m2m_interactions.cpp.o CMakeFiles/octotiger_exe.dir/src/kernels/multiindex.cpp.o CMakeFiles/octotiger_exe.dir/src/kernels/calculate_stencil.cpp.o CMakeFiles/octotiger_exe.dir/src/kernels/m2m_kernel.cpp.o CMakeFiles/octotiger_exe.dir/src/kernels/compare_interaction_lists.cpp.o CMakeFiles/octotiger_exe.dir/src/kernels/interactions_iterators.cpp.o -o octotiger -rdynamic /users/pfandedd/scratch/tave/mic-knl-gcc-build/hpx-jemalloc-Release/lib/libhpx.a /users/pfandedd/scratch/tave/mic-knl-gcc-build/hpx-jemalloc-Release/lib/libhpx.a -ldl -lrt /users/pfandedd/scratch/tave/mic-knl-gcc-build/boost_1_63/lib/libboost_date_time.a /users/pfandedd/scratch/tave/mic-knl-gcc-build/boost_1_63/lib/libboost_filesystem.a /users/pfandedd/scratch/tave/mic-knl-gcc-build/boost_1_63/lib/libboost_program_options.a /users/pfandedd/scratch/tave/mic-knl-gcc-build/boost_1_63/lib/libboost_regex.a /users/pfandedd/scratch/tave/mic-knl-gcc-build/boost_1_63/lib/libboost_system.a -Wl,-Bstatic -lpthread -Wl,-Bdynamic /users/pfandedd/scratch/tave/mic-knl-gcc-build/boost_1_63/lib/libboost_date_time.a /users/pfandedd/scratch/tave/mic-knl-gcc-build/boost_1_63/lib/libboost_filesystem.a /users/pfandedd/scratch/tave/mic-knl-gcc-build/boost_1_63/lib/libboost_program_options.a /users/pfandedd/scratch/tave/mic-knl-gcc-build/boost_1_63/lib/libboost_regex.a /users/pfandedd/scratch/tave/mic-knl-gcc-build/boost_1_63/lib/libboost_system.a /users/pfandedd/scratch/tave/mic-knl-gcc-build/boost_1_63/lib/libboost_random.a /users/pfandedd/scratch/tave/mic-knl-gcc-build/boost_1_63/lib/libboost_atomic.a /users/pfandedd/scratch/tave/mic-knl-gcc-build/contrib/lib/libjemalloc.a /users/pfandedd/scratch/tave/mic-knl-gcc-build/contrib/lib/libhwloc.a -Wl,-Bstatic -lpthread -Wl,-Bdynamic /users/pfandedd/scratch/tave/mic-knl-gcc-build/boost_1_63/lib/libboost_random.a /users/pfandedd/scratch/tave/mic-knl-gcc-build/boost_1_63/lib/libboost_atomic.a /users/pfandedd/scratch/tave/mic-knl-gcc-build/contrib/lib/libjemalloc.a /users/pfandedd/scratch/tave/mic-knl-gcc-build/contrib/lib/libhwloc.a
/users/pfandedd/scratch/tave/mic-knl-gcc-build/hpx-jemalloc-Release/lib/libhpx.a(runtime_support_server.cpp.o): In function `hpx::util::plugin::dll::LoadLibrary(hpx::error_code&, bool) [clone .constprop.2919]':
runtime_support_server.cpp:(.text+0x1714): warning: Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/lib/../lib64/libdl.a(dlopen.o): In function `dlopen':
/home/abuild/rpmbuild/BUILD/glibc-2.19/dlfcn/dlopen.c:30: undefined reference to `__dlopen'
/usr/lib/../lib64/libdl.a(dlclose.o): In function `dlclose':
/home/abuild/rpmbuild/BUILD/glibc-2.19/dlfcn/dlclose.c:27: undefined reference to `__dlclose'
/usr/lib/../lib64/libdl.a(dlsym.o): In function `dlsym':
/home/abuild/rpmbuild/BUILD/glibc-2.19/dlfcn/dlsym.c:29: undefined reference to `__dlsym'
/usr/lib/../lib64/libdl.a(dlerror.o): In function `dlerror':
/home/abuild/rpmbuild/BUILD/glibc-2.19/dlfcn/dlerror.c:33: undefined reference to `__dlerror'
/usr/lib/../lib64/libdl.a(dladdr.o): In function `dladdr':
/home/abuild/rpmbuild/BUILD/glibc-2.19/dlfcn/dladdr.c:26: undefined reference to `__dladdr'
/usr/lib/../lib64/libdl.a(dlinfo.o): In function `dlinfo':
/home/abuild/rpmbuild/BUILD/glibc-2.19/dlfcn/dlinfo.c:29: undefined reference to `__dlinfo'
/usr/lib/../lib64/libpthread.a(pthread_create.o): In function `allocate_stack':
/home/abuild/rpmbuild/BUILD/glibc-2.19/nptl/allocatestack.c:466: undefined reference to `_dl_stack_flags'
/home/abuild/rpmbuild/BUILD/glibc-2.19/nptl/allocatestack.c:605: undefined reference to `_dl_stack_flags'
/usr/lib/../lib64/libpthread.a(ptw-write.o): In function `__write_nocancel':
/home/abuild/rpmbuild/BUILD/glibc-2.19/nptl/../sysdeps/unix/syscall-template.S:81: undefined reference to `__syscall_error'
/home/abuild/rpmbuild/BUILD/glibc-2.19/nptl/../sysdeps/unix/syscall-template.S:81: undefined reference to `__syscall_error'
/usr/lib/../lib64/libpthread.a(ptw-read.o): In function `__read_nocancel':
/home/abuild/rpmbuild/BUILD/glibc-2.19/nptl/../sysdeps/unix/syscall-template.S:81: undefined reference to `__syscall_error'
/home/abuild/rpmbuild/BUILD/glibc-2.19/nptl/../sysdeps/unix/syscall-template.S:81: undefined reference to `__syscall_error'
/usr/lib/../lib64/libpthread.a(ptw-close.o): In function `__close_nocancel':
/home/abuild/rpmbuild/BUILD/glibc-2.19/nptl/../sysdeps/unix/syscall-template.S:81: undefined reference to `__syscall_error'
/usr/lib/../lib64/libpthread.a(ptw-close.o):/home/abuild/rpmbuild/BUILD/glibc-2.19/nptl/../sysdeps/unix/syscall-template.S:81: more undefined references to `__syscall_error' follow
/usr/lib/../lib64/libpthread.a(nptl-init.o): In function `__pthread_initialize_minimal_internal':
/home/abuild/rpmbuild/BUILD/glibc-2.19/nptl/nptl-init.c:285: undefined reference to `__libc_setup_tls'
/home/abuild/rpmbuild/BUILD/glibc-2.19/nptl/nptl-init.c:303: undefined reference to `_dl_cpuclock_offset'
/home/abuild/rpmbuild/BUILD/glibc-2.19/nptl/nptl-init.c:419: undefined reference to `_dl_pagesize'
/home/abuild/rpmbuild/BUILD/glibc-2.19/nptl/nptl-init.c:428: undefined reference to `_dl_pagesize'
/home/abuild/rpmbuild/BUILD/glibc-2.19/nptl/nptl-init.c:448: undefined reference to `_dl_init_static_tls'
/home/abuild/rpmbuild/BUILD/glibc-2.19/nptl/nptl-init.c:450: undefined reference to `_dl_wait_lookup_done'
/usr/lib/../lib64/libpthread.a(nptl-init.o): In function `__pthread_get_minstack':
/home/abuild/rpmbuild/BUILD/glibc-2.19/nptl/nptl-init.c:471: undefined reference to `_dl_pagesize'
collect2: error: ld returned 1 exit status
CMakeFiles/octotiger_exe.dir/build.make:1032: recipe for target 'octotiger' failed
make[2]: *** [octotiger] Error 1
make[2]: Leaving directory '/scratch/snx2000/pfandedd/tave/mic-knl-gcc-build/octotiger-jemalloc-Release'
CMakeFiles/Makefile2:60: recipe for target 'CMakeFiles/octotiger_exe.dir/all' failed
make[1]: *** [CMakeFiles/octotiger_exe.dir/all] Error 2
make[1]: Leaving directory '/scratch/snx2000/pfandedd/tave/mic-knl-gcc-build/octotiger-jemalloc-Release'
Makefile:116: recipe for target 'all' failed
make: *** [all] Error 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment