build following the published instruction for Ubuntu18.04 fails #347

Closed
opened 2022-04-18 19:12:32 +00:00 by bobinson · 7 comments
bobinson commented 2022-04-18 19:12:32 +00:00 (Migrated from gitlab.com)
  1. Followed instructions at https://infra.peerplays.tech/witnesses/installation-guides/manual-install
  2. used tag 1.5.17
  3. build fails
  4. OS version Ubuntu 18.04
 72%] Building CXX object libraries/plugins/peerplays_sidechain/CMakeFiles/peerplays_sidechain.dir/sidechain_net_manager.cpp.o
[ 73%] Building CXX object libraries/plugins/peerplays_sidechain/CMakeFiles/peerplays_sidechain.dir/sidechain_net_handler_bitcoin.cpp.o
In file included from /home/bkb/src/peerplays/libraries/plugins/peerplays_sidechain/sidechain_net_handler_bitcoin.cpp:1:0:
/home/bkb/src/peerplays/libraries/plugins/peerplays_sidechain/include/graphene/peerplays_sidechain/sidechain_net_handler_bitcoin.hpp:6:10: fatal error: zmq_addon.hpp: No such file or directory
 #include <zmq_addon.hpp>
          ^~~~~~~~~~~~~~~
compilation terminated.
libraries/plugins/peerplays_sidechain/CMakeFiles/peerplays_sidechain.dir/build.make:158: recipe for target 'libraries/plugins/peerplays_sidechain/CMakeFiles/peerplays_sidechain.dir/sidechain_net_handler_bitcoin.cpp.o' failed
make[2]: *** [libraries/plugins/peerplays_sidechain/CMakeFiles/peerplays_sidechain.dir/sidechain_net_handler_bitcoin.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
In file included from /home/bkb/src/peerplays/libraries/plugins/peerplays_sidechain/sidechain_net_manager.cpp:5:0:
/home/bkb/src/peerplays/libraries/plugins/peerplays_sidechain/include/graphene/peerplays_sidechain/sidechain_net_handler_bitcoin.hpp:6:10: fatal error: zmq_addon.hpp: No such file or directory
 #include <zmq_addon.hpp>
          ^~~~~~~~~~~~~~~
compilation terminated.
libraries/plugins/peerplays_sidechain/CMakeFiles/peerplays_sidechain.dir/build.make:110: recipe for target 'libraries/plugins/peerplays_sidechain/CMakeFiles/peerplays_sidechain.dir/sidechain_net_manager.cpp.o' failed
make[2]: *** [libraries/plugins/peerplays_sidechain/CMakeFiles/peerplays_sidechain.dir/sidechain_net_manager.cpp.o] Error 1
CMakeFiles/Makefile2:2016: recipe for target 'libraries/plugins/peerplays_sidechain/CMakeFiles/peerplays_sidechain.dir/all' failed
make[1]: *** [libraries/plugins/peerplays_sidechain/CMakeFiles/peerplays_sidechain.dir/all] Error 2
Makefile:129: recipe for target 'all' failed
make: *** [all] Error 2

Additional details:

Packages installed are same. Both the packages from the official instructions and the Peerplays QA environment's Dockerfile are installed.

Searching for zmq_addon.hpp

Ubuntu 18.04:

(base) bkb@bkb-dev-server1:~$ find / -name zmq*.hpp 2>/dev/null
/usr/include/zmqpp/zmqpp.hpp
/usr/include/zmq.hpp
(base) bkb@bkb-dev-server1:~$

Ubuntu 20.04

root@027f0209c448:~/src/peerplays# find / -name zmq*.hpp
/usr/include/zmq_addon.hpp
/usr/include/zmq.hpp
root@027f0209c448:~/src/peerplays#
1. Followed instructions at https://infra.peerplays.tech/witnesses/installation-guides/manual-install 2. used tag 1.5.17 3. build fails 4. OS version Ubuntu 18.04 ``` 72%] Building CXX object libraries/plugins/peerplays_sidechain/CMakeFiles/peerplays_sidechain.dir/sidechain_net_manager.cpp.o [ 73%] Building CXX object libraries/plugins/peerplays_sidechain/CMakeFiles/peerplays_sidechain.dir/sidechain_net_handler_bitcoin.cpp.o In file included from /home/bkb/src/peerplays/libraries/plugins/peerplays_sidechain/sidechain_net_handler_bitcoin.cpp:1:0: /home/bkb/src/peerplays/libraries/plugins/peerplays_sidechain/include/graphene/peerplays_sidechain/sidechain_net_handler_bitcoin.hpp:6:10: fatal error: zmq_addon.hpp: No such file or directory #include <zmq_addon.hpp> ^~~~~~~~~~~~~~~ compilation terminated. libraries/plugins/peerplays_sidechain/CMakeFiles/peerplays_sidechain.dir/build.make:158: recipe for target 'libraries/plugins/peerplays_sidechain/CMakeFiles/peerplays_sidechain.dir/sidechain_net_handler_bitcoin.cpp.o' failed make[2]: *** [libraries/plugins/peerplays_sidechain/CMakeFiles/peerplays_sidechain.dir/sidechain_net_handler_bitcoin.cpp.o] Error 1 make[2]: *** Waiting for unfinished jobs.... In file included from /home/bkb/src/peerplays/libraries/plugins/peerplays_sidechain/sidechain_net_manager.cpp:5:0: /home/bkb/src/peerplays/libraries/plugins/peerplays_sidechain/include/graphene/peerplays_sidechain/sidechain_net_handler_bitcoin.hpp:6:10: fatal error: zmq_addon.hpp: No such file or directory #include <zmq_addon.hpp> ^~~~~~~~~~~~~~~ compilation terminated. libraries/plugins/peerplays_sidechain/CMakeFiles/peerplays_sidechain.dir/build.make:110: recipe for target 'libraries/plugins/peerplays_sidechain/CMakeFiles/peerplays_sidechain.dir/sidechain_net_manager.cpp.o' failed make[2]: *** [libraries/plugins/peerplays_sidechain/CMakeFiles/peerplays_sidechain.dir/sidechain_net_manager.cpp.o] Error 1 CMakeFiles/Makefile2:2016: recipe for target 'libraries/plugins/peerplays_sidechain/CMakeFiles/peerplays_sidechain.dir/all' failed make[1]: *** [libraries/plugins/peerplays_sidechain/CMakeFiles/peerplays_sidechain.dir/all] Error 2 Makefile:129: recipe for target 'all' failed make: *** [all] Error 2 ``` ---- Additional details: Packages installed are same. Both the packages from the official instructions and the Peerplays QA environment's [Dockerfile](https://gitlab.com/PBSA/tools-libs/peerplays-utils/-/blob/master/peerplays-qa-environment/ubuntu/Dockerfile) are installed. _Searching for zmq_addon.hpp_ **Ubuntu 18.04:** ``` (base) bkb@bkb-dev-server1:~$ find / -name zmq*.hpp 2>/dev/null /usr/include/zmqpp/zmqpp.hpp /usr/include/zmq.hpp (base) bkb@bkb-dev-server1:~$ ``` **Ubuntu 20.04** ``` root@027f0209c448:~/src/peerplays# find / -name zmq*.hpp /usr/include/zmq_addon.hpp /usr/include/zmq.hpp root@027f0209c448:~/src/peerplays# ```
bobinson commented 2022-04-18 19:24:29 +00:00 (Migrated from gitlab.com)

Note: We haven't discussed about eliminating support for Ubuntu 18.04 but we will be adding support for Ubuntu 20.04 while maintaining backward compatibility with Ubuntu 18.04

It will be difficult for many operators to upgrade to newer OS versions with a short notice. The Ubuntu LTS is expected to maintain for a very long time and we should provide reasonable notice for operators before completely removing a given OS support.

LTS roadmap for Ubuntu https://wiki.ubuntu.com/Releases

Note: We haven't discussed about eliminating support for Ubuntu 18.04 but we will be adding support for Ubuntu 20.04 while maintaining backward compatibility with Ubuntu 18.04 It will be difficult for many operators to upgrade to newer OS versions with a short notice. The Ubuntu LTS is expected to maintain for a very long time and we should provide reasonable notice for operators before completely removing a given OS support. LTS roadmap for Ubuntu https://wiki.ubuntu.com/Releases
bobinson commented 2022-04-19 06:19:50 +00:00 (Migrated from gitlab.com)

changed title from build following the published instruction for Ubuntu1804 fails to build following the published instruction for Ubuntu18{+.+}04 fails

changed title from **build following the published instruction for Ubuntu1804 fails** to **build following the published instruction for Ubuntu18{+.+}04 fails**
bobinson commented 2022-04-19 08:30:36 +00:00 (Migrated from gitlab.com)

changed the description

changed the description
bobinson commented 2022-04-25 08:27:46 +00:00 (Migrated from gitlab.com)

assigned to @pavel.baykov

assigned to @pavel.baykov
bobinson commented 2022-04-25 08:28:36 +00:00 (Migrated from gitlab.com)

Quoting @pavel.baykov

ubuntu-version-detection branch have Ubuntu 18.04 and Ubuntu 20.04 support

Quoting @pavel.baykov [ubuntu-version-detection](https://gitlab.com/PBSA/peerplays/-/tree/ubuntu-version-detection) branch have Ubuntu 18.04 and Ubuntu 20.04 support
pavel.baykov commented 2022-04-27 19:35:52 +00:00 (Migrated from gitlab.com)

@bobinson based on discussion with Surgeon, i removed header files of ZMQ libs from Peerplays code
and created another branch:
https://gitlab.com/PBSA/peerplays/-/commits/ubuntu18.04
it’s not aligned with latest develop, because latest develop have problems with syncing Mainnet ubuntu18.04 branch works fine both with 18.04 and 20.04 and a bit behind from develop

Build instructions should be taken from Dockerfile.18.04

@bobinson based on discussion with Surgeon, i removed header files of ZMQ libs from Peerplays code and created another branch: https://gitlab.com/PBSA/peerplays/-/commits/ubuntu18.04 it’s not aligned with latest develop, because latest develop have problems with syncing Mainnet ubuntu18.04 branch works fine both with 18.04 and 20.04 and a bit behind from develop Build instructions should be taken from Dockerfile.18.04
bobinson commented 2022-04-28 09:15:03 +00:00 (Migrated from gitlab.com)

thanks @pavel.baykov. Looking into this.

thanks @pavel.baykov. Looking into this.
serkixenos (Migrated from gitlab.com) closed this issue 2022-05-04 16:47:27 +00:00
Sign in to join this conversation.
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: Peerplays_Blockchain/peerplays_migrated#347
No description provided.