ascent icon indicating copy to clipboard operation
ascent copied to clipboard

template inst issue with DataWrapper<conduit::Node>

Open cyrush opened this issue 4 years ago • 1 comments

macOS gcc 10, this statement causes multiple symbols undermine static builds:

https://github.com/Alpine-DAV/ascent/blob/132bd6264e1e915ab1c4b8b4365ba1d2765d6fbc/src/flow/flow_data.hpp#L174

This was added when we switched to hide symbols to fix an error where python flow failed to detect types.

Ideally we shouldn't need this, but I wonder if there is an issue with symbol visibility in the client using ascent.

Haven't been able to duplicate, tried gcc 10 on ubuntu 20.10.

cyrush avatar May 03 '21 21:05 cyrush

Hi @cyrush , I actually just ran into this on latest develop branch on MacOS with gcc-12. Any idea for a workaround?

[2/123] Linking CXX shared library lib/libascent_flow.dylib
FAILED: lib/libascent_flow.dylib 
: && /opt/homebrew/bin/g++-12 -O3 -DNDEBUG -arch arm64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX14.0.sdk -mmacosx-version-min=13.6 -dynamiclib -Wl,-headerpad_max_install_names -Wl,-ld_classic -o lib/libascent_flow.dylib -install_name @rpath/libascent_flow.dylib libs/flow/CMakeFiles/ascent_flow.dir/flow_data.cpp.o libs/flow/CMakeFiles/ascent_flow.dir/flow_registry.cpp.o libs/flow/CMakeFiles/ascent_flow.dir/flow_filter.cpp.o libs/flow/CMakeFiles/ascent_flow.dir/flow_filters.cpp.o libs/flow/CMakeFiles/ascent_flow.dir/flow_graph.cpp.o libs/flow/CMakeFiles/ascent_flow.dir/flow_workspace.cpp.o libs/flow/CMakeFiles/ascent_flow.dir/flow_timer.cpp.o libs/flow/CMakeFiles/ascent_flow.dir/filters/flow_builtin_filters.cpp.o  -Wl,-rpath,/Users/mlohry/dev/in-situ-parallel-post/cmake-build-release/tpl_install/lib  /Users/mlohry/dev/in-situ-parallel-post/cmake-build-release/tpl_install/lib/libconduit_relay.dylib  /Users/mlohry/dev/in-situ-parallel-post/cmake-build-release/tpl_install/lib/libconduit_blueprint.dylib  /Users/mlohry/dev/in-situ-parallel-post/cmake-build-release/tpl_install/lib/libconduit.dylib  /Users/mlohry/dev/in-situ-parallel-post/cmake-build-release/tpl_install/lib/libhdf5.310.3.0.dylib  /Users/mlohry/usr/local/lib/libmpi.dylib && :
-macosx_version_min has been renamed to -macos_version_min
duplicate symbol '__ZTSN4flow11DataWrapperIN7conduit4NodeEEE' in:
    libs/flow/CMakeFiles/ascent_flow.dir/flow_data.cpp.o
    libs/flow/CMakeFiles/ascent_flow.dir/flow_registry.cpp.o

mlohry avatar Dec 01 '23 20:12 mlohry