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

template inst issue with DataWrapper<conduit::Node> #730

Open
cyrush opened this issue May 3, 2021 · 1 comment
Open

template inst issue with DataWrapper<conduit::Node> #730

cyrush opened this issue May 3, 2021 · 1 comment
Labels

Comments

@cyrush
Copy link
Member

cyrush commented May 3, 2021

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

template class FLOW_API DataWrapper<conduit::Node>;

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.

@mlohry
Copy link

mlohry commented Dec 1, 2023

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

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

No branches or pull requests

2 participants