Skip to content

install error #82

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

Closed
gcxfd opened this issue Feb 5, 2021 · 1 comment
Closed

install error #82

gcxfd opened this issue Feb 5, 2021 · 1 comment

Comments

@gcxfd
Copy link

gcxfd commented Feb 5, 2021

Directory: /home/r/rmw/p2p/node_modules/utp-native
Output:
gyp info it worked if it ends with ok
gyp info using [email protected]
gyp info using [email protected] | linux | x64
gyp info find Python using Python version 3.7.8 found at "/home/r/.asdf/installs/python/3.7.8/bin/python3"
gyp info spawn /home/r/.asdf/installs/python/3.7.8/bin/python3
gyp info spawn args [
gyp info spawn args   '/home/r/.asdf/installs/nodejs/15.5.1/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
gyp info spawn args   'binding.gyp',
gyp info spawn args   '-f',
gyp info spawn args   'make',
gyp info spawn args   '-I',
gyp info spawn args   '/home/r/rmw/p2p/node_modules/utp-native/build/config.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '/home/r/.asdf/installs/nodejs/15.5.1/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
gyp info spawn args   '-I',
gyp info spawn args   '/home/r/.cache/node-gyp/15.5.1/include/node/common.gypi',
gyp info spawn args   '-Dlibrary=shared_library',
gyp info spawn args   '-Dvisibility=default',
gyp info spawn args   '-Dnode_root_dir=/home/r/.cache/node-gyp/15.5.1',
gyp info spawn args   '-Dnode_gyp_dir=/home/r/.asdf/installs/nodejs/15.5.1/lib/node_modules/npm/node_modules/node-gyp',
gyp info spawn args   '-Dnode_lib_file=/home/r/.cache/node-gyp/15.5.1/<(target_arch)/node.lib',
gyp info spawn args   '-Dmodule_root_dir=/home/r/rmw/p2p/node_modules/utp-native',
gyp info spawn args   '-Dnode_engine=v8',
gyp info spawn args   '--depth=.',
gyp info spawn args   '--no-parallel',
gyp info spawn args   '--generator-output',
gyp info spawn args   'build',
gyp info spawn args   '-Goutput_dir=.'
gyp info spawn args ]
gyp info spawn make
gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
make: 进入目录“/home/r/rmw/p2p/node_modules/utp-native/build”
  CXX(target) Release/obj.target/libutp/deps/libutp/utp_internal.o
In file included from ../deps/libutp/utp_internal.cpp:33:
../deps/libutp/utp_internal.h: In constructor ‘UTPSocketKey::UTPSocketKey(const PackedSockAddr&, uint32)’:
../deps/libutp/utp_internal.h:79:32: warning: ‘void* memset(void*, int, size_t)’ clearing an object of non-trivial type ‘struct UTPSocketKey’; use assignment instead [-Wclass-memaccess]
   79 |   memset(this, 0, sizeof(*this));
      |                                ^
../deps/libutp/utp_internal.h:74:8: note: ‘struct UTPSocketKey’ declared here
   74 | struct UTPSocketKey {
      |        ^~~~~~~~~~~~
../deps/libutp/utp_internal.cpp: In function ‘size_t utp_process_incoming(UTPSocket*, const byte*, size_t, bool)’:
../deps/libutp/utp_internal.cpp:1970:34: warning: comparison of integer expressions of different signedness: ‘int’ and ‘uint32’ {aka ‘unsigned int’} [-Wsign-compare]
 1970 |   if (conn->mtu_probe_seq && seq == conn->mtu_probe_seq) {
      |                              ~~~~^~~~~~~~~~~~~~~~~~~~~~
  CXX(target) Release/obj.target/libutp/deps/libutp/utp_utils.o
  CXX(target) Release/obj.target/libutp/deps/libutp/utp_hash.o
  CXX(target) Release/obj.target/libutp/deps/libutp/utp_callbacks.o
In file included from ../deps/libutp/utp_callbacks.h:27,
                 from ../deps/libutp/utp_callbacks.cpp:25:
../deps/libutp/utp_internal.h: In constructor ‘UTPSocketKey::UTPSocketKey(const PackedSockAddr&, uint32)’:
../deps/libutp/utp_internal.h:79:32: warning: ‘void* memset(void*, int, size_t)’ clearing an object of non-trivial type ‘struct UTPSocketKey’; use assignment instead [-Wclass-memaccess]
   79 |   memset(this, 0, sizeof(*this));
      |                                ^
../deps/libutp/utp_internal.h:74:8: note: ‘struct UTPSocketKey’ declared here
   74 | struct UTPSocketKey {
      |        ^~~~~~~~~~~~
  CXX(target) Release/obj.target/libutp/deps/libutp/utp_api.o
In file included from ../deps/libutp/utp_api.cpp:26:
../deps/libutp/utp_internal.h: In constructor ‘UTPSocketKey::UTPSocketKey(const PackedSockAddr&, uint32)’:
../deps/libutp/utp_internal.h:79:32: warning: ‘void* memset(void*, int, size_t)’ clearing an object of non-trivial type ‘struct UTPSocketKey’; use assignment instead [-Wclass-memaccess]
   79 |   memset(this, 0, sizeof(*this));
      |                                ^
../deps/libutp/utp_internal.h:74:8: note: ‘struct UTPSocketKey’ declared here
   74 | struct UTPSocketKey {
      |        ^~~~~~~~~~~~
  CXX(target) Release/obj.target/libutp/deps/libutp/utp_packedsockaddr.o
  AR(target) Release/obj.target/deps/utp.a
  COPY Release/utp.a
  CXX(target) Release/obj.target/utp/src/utp_uv.o
../src/utp_uv.cc:219:1: warning: ‘uint64 on_utp_schedule_ack(utp_callback_arguments*)’ defined but not used [-Wunused-function]
  219 | on_utp_schedule_ack (utp_callback_arguments *a) {
      | ^~~~~~~~~~~~~~~~~~~
@vasco-santos
Copy link
Member

Hello @gcxfd

Thanks for reaching out. I am sorry you spent time trying out this module, but it is currently not usable. Usable packages can be seen in https://github.com/libp2p/js-libp2p#packages

This is still in development as you can see in #81 but it is not currently a priority for the project. If you would like to get that PR to the finish line would be super cool.

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

3 participants