0.2.1.0 pre-release failed to compile on NixOS #62

Closed
opened 6 years ago by fuwa0529 · 1 comments
fuwa0529 commented 6 years ago (Migrated from github.com)
Owner

Trying to compile 0.2.1.0 inside the same environment that works for monero, got this error:

[ 78%] Building CXX object src/wallet/api/CMakeFiles/obj_wallet_api.dir/wallet.cpp.o
In file included from /build/wownero/src/cryptonote_basic/cryptonote_basic.h:46:0,
                 from /build/wownero/src/cryptonote_basic/account.h:33,
                 from /build/wownero/src/wallet/wallet2.h:43,
                 from /build/wownero/src/wallet/api/wallet.h:35,
                 from /build/wownero/src/wallet/api/wallet.cpp:32:
/build/wownero/src/cryptonote_config.h:138:49: error: expected unqualified-id before numeric constant
 #define DEFAULT_MIXIN                           9 // ring size 10
                                                 ^
/build/wownero/src/wallet/api/wallet.cpp:63:25: note: in expansion of macro 'DEFAULT_MIXIN'
     static const size_t DEFAULT_MIXIN = 9;
                         ^
/build/wownero/src/wallet/api/wallet.cpp: In member function 'virtual uint32_t Monero::WalletImpl::defaultMixin() const':                                                                                          
/build/wownero/src/wallet/api/wallet.cpp:1411:22: error: 'class tools::wallet2' has no member named 'default_mixin'; did you mean 'adjust_mixin'?                                                                  
     return m_wallet->default_mixin();
                      ^~~~~~~~~~~~~
                      adjust_mixin
/build/wownero/src/wallet/api/wallet.cpp: In member function 'virtual void Monero::WalletImpl::setDefaultMixin(uint32_t)':                                                                                         
/build/wownero/src/wallet/api/wallet.cpp:1416:15: error: 'class tools::wallet2' has no member named 'default_mixin'; did you mean 'adjust_mixin'?                                                                  
     m_wallet->default_mixin(arg);
               ^~~~~~~~~~~~~
               adjust_mixin
make[2]: *** [src/wallet/api/CMakeFiles/obj_wallet_api.dir/build.make:63: src/wallet/api/CMakeFiles/obj_wallet_api.dir/wallet.cpp.o] Error 1                                                                       
make[1]: *** [CMakeFiles/Makefile2:2451: src/wallet/api/CMakeFiles/obj_wallet_api.dir/all] Error 2
make: *** [Makefile:141: all] Error 2
builder for '/nix/store/5wrf6x1zfn7wx8jnpiqghnjql7c3dixz-wownero-0.2.1.0.drv' failed with exit code 2
cannot build derivation '/nix/store/6624h8lrki10499rhawsjg0ndzbipl03-system-path.drv': 1 dependencies couldn't be built                    
Trying to compile 0.2.1.0 inside the same environment that works for monero, got this error: ``` [ 78%] Building CXX object src/wallet/api/CMakeFiles/obj_wallet_api.dir/wallet.cpp.o In file included from /build/wownero/src/cryptonote_basic/cryptonote_basic.h:46:0, from /build/wownero/src/cryptonote_basic/account.h:33, from /build/wownero/src/wallet/wallet2.h:43, from /build/wownero/src/wallet/api/wallet.h:35, from /build/wownero/src/wallet/api/wallet.cpp:32: /build/wownero/src/cryptonote_config.h:138:49: error: expected unqualified-id before numeric constant #define DEFAULT_MIXIN 9 // ring size 10 ^ /build/wownero/src/wallet/api/wallet.cpp:63:25: note: in expansion of macro 'DEFAULT_MIXIN' static const size_t DEFAULT_MIXIN = 9; ^ /build/wownero/src/wallet/api/wallet.cpp: In member function 'virtual uint32_t Monero::WalletImpl::defaultMixin() const': /build/wownero/src/wallet/api/wallet.cpp:1411:22: error: 'class tools::wallet2' has no member named 'default_mixin'; did you mean 'adjust_mixin'? return m_wallet->default_mixin(); ^~~~~~~~~~~~~ adjust_mixin /build/wownero/src/wallet/api/wallet.cpp: In member function 'virtual void Monero::WalletImpl::setDefaultMixin(uint32_t)': /build/wownero/src/wallet/api/wallet.cpp:1416:15: error: 'class tools::wallet2' has no member named 'default_mixin'; did you mean 'adjust_mixin'? m_wallet->default_mixin(arg); ^~~~~~~~~~~~~ adjust_mixin make[2]: *** [src/wallet/api/CMakeFiles/obj_wallet_api.dir/build.make:63: src/wallet/api/CMakeFiles/obj_wallet_api.dir/wallet.cpp.o] Error 1 make[1]: *** [CMakeFiles/Makefile2:2451: src/wallet/api/CMakeFiles/obj_wallet_api.dir/all] Error 2 make: *** [Makefile:141: all] Error 2 builder for '/nix/store/5wrf6x1zfn7wx8jnpiqghnjql7c3dixz-wownero-0.2.1.0.drv' failed with exit code 2 cannot build derivation '/nix/store/6624h8lrki10499rhawsjg0ndzbipl03-system-path.drv': 1 dependencies couldn't be built ```
jwinterm commented 6 years ago (Migrated from github.com)
Owner

@wowario can you confirm that this variable is not being used anymore and is breaking build?

@wowario can you confirm that this variable is not being used anymore and is breaking build?
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date

No due date set.

Dependencies

No dependencies set.

Reference: wownero/wownero#62
Loading…
There is no content yet.