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

Compiler warnings in macOS build (cross-build in Linux) #2340

Open
abitmore opened this issue Jan 24, 2021 · 0 comments
Open

Compiler warnings in macOS build (cross-build in Linux) #2340

abitmore opened this issue Jan 24, 2021 · 0 comments

Comments

@abitmore
Copy link
Member

abitmore commented Jan 24, 2021

Target bitshares-core 5.1.0

file: libfc.a(non_preemptable_scope_check.cpp.o) has no symbols

ld: warning: direct access in function ... from file '../../libraries/fc/libfc.a(websocket.cpp.o)' to global weak symbol ... means the weak symbol cannot be overridden at runtime. This was likely caused by different translation units being compiled with different visibility settings.

ld: warning: object file (/home/ubuntu/build/lib/lib/libcurl.a(libcurl_la-easy.o)) was built for newer OSX version (10.13) than being linked (10.9)

(^^ this is actually a bitshares-gitian issue, should be fixed by bitshares/bitshares-gitian#66)

Target bitshares-core 6.0.0

static_variant.hpp:91:13: warning: destructor called on non-final 'graphene::protocol::credit_offer_accept_operation' that has virtual functions but non-virtual destructor [-Wdelete-non-virtual-dtor]
reinterpret_cast<T*>(data)->~T();
^

/home/ubuntu/build/bitshares/libraries/fc/include/fc/static_variant.hpp:91:13: warning: destructor called on non-final 'graphene::custom_operations::account_storage_map' that has virtual functions but non-virtual destructor [-Wdelete-non-virtual-dtor]
reinterpret_cast<T*>(data)->~T();
^

and etc (see also #2501, fixed by #2566).

/home/ubuntu/build/bitshares/libraries/chain/db_maint.cpp:530:27: warning: lambda capture 'witness_budget' is not used [-Wunused-lambda-capture]
modify(core, [&rec,&witness_budget,&worker_budget,&leftover_worker_funds,&dpo]
^
/home/ubuntu/build/bitshares/libraries/chain/db_maint.cpp:530:43: warning: lambda capture 'worker_budget' is not used [-Wunused-lambda-capture]
modify(core, [&rec,&witness_budget,&worker_budget,&leftover_worker_funds,&dpo]
^
/home/ubuntu/build/bitshares/libraries/chain/db_maint.cpp:530:58: warning: lambda capture 'leftover_worker_funds' is not used [-Wunused-lambda-capture]
modify(core, [&rec,&witness_budget,&worker_budget,&leftover_worker_funds,&dpo]
^
/home/ubuntu/build/bitshares/libraries/chain/db_maint.cpp:530:81: warning: lambda capture 'dpo' is not used [-Wunused-lambda-capture]
modify(core, [&rec,&witness_budget,&worker_budget,&leftover_worker_funds,&dpo]
^

(should be fixed by #2660)

@abitmore abitmore changed the title Compiler warnings in macOS build Compiler warnings in macOS build (cross-build in Linux) Jan 25, 2021
@abitmore abitmore transferred this issue from bitshares/bitshares-gitian Jan 25, 2021
@abitmore abitmore added this to the 5.2.0 - Feature Release milestone Jan 25, 2021
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

1 participant