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

Linker warnings about duplicate libraries #4300

Open
pwojcikdev opened this issue Sep 27, 2023 · 0 comments
Open

Linker warnings about duplicate libraries #4300

pwojcikdev opened this issue Sep 27, 2023 · 0 comments
Labels

Comments

@pwojcikdev
Copy link
Contributor

After upgrading to XCode 15, linker started complaining about duplicate libraries being linked with logs of the warnings below:

[57/65] Linking CXX executable ipc_flatbuffers_test_client
ld: warning: ignoring duplicate libraries: 'nano/lib/libnano_lib.a', 'nano/secure/libsecure.a', 'submodules/boost/libs/filesystem/libboost_filesystem.a', 'submodules/boost/libs/log/libboost_log.a', 'submodules/boost/libs/log/libboost_log_setup.a', 'submodules/boost/libs/program_options/libboost_program_options.a', 'submodules/boost/libs/thread/libboost_thread.a'
[60/65] Linking CXX executable nano_rpc
ld: warning: ignoring duplicate libraries: 'nano/lib/libnano_lib.a', 'nano/rpc/librpc.a', 'nano/secure/libsecure.a', 'submodules/boost/libs/filesystem/libboost_filesystem.a', 'submodules/boost/libs/log/libboost_log.a', 'submodules/boost/libs/log/libboost_log_setup.a', 'submodules/boost/libs/program_options/libboost_program_options.a', 'submodules/boost/libs/thread/libboost_thread.a'
[61/65] Linking CXX executable slow_test
ld: warning: ignoring duplicate libraries: 'nano/lib/libnano_lib.a', 'nano/node/libnode.a', 'nano/secure/libsecure.a', 'submodules/miniupnp/miniupnpc/libminiupnpc.a'
[62/65] Linking CXX executable rpc_test
ld: warning: ignoring duplicate libraries: 'nano/lib/libnano_lib.a', 'nano/node/libnode.a', 'nano/rpc/librpc.a', 'nano/secure/libsecure.a'
[63/65] Linking CXX executable load_test
ld: warning: ignoring duplicate libraries: 'nano/lib/libnano_lib.a', 'nano/node/libnode.a', 'nano/secure/libsecure.a'
[64/65] Linking CXX executable core_test
ld: warning: ignoring duplicate libraries: 'nano/lib/libnano_lib.a', 'nano/node/libnode.a', 'nano/secure/libsecure.a', 'submodules/boost/libs/log/libboost_log.a', 'submodules/boost/libs/log/libboost_log_setup.a', 'submodules/miniupnp/miniupnpc/libminiupnpc.a'
[65/65] Linking CXX executable nano_node
ld: warning: ignoring duplicate libraries: 'nano/lib/libnano_lib.a', 'nano/secure/libsecure.a'

An attempt to fix the issue by removing duplicate libraries from CMake files can be found here #4299, however it fails to compile on Linux. While not in any way critical, it would be nice to eliminate those warnings.

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

1 participant