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

Install warnings on Ubuntu-18.04 #199

Open
chainhead opened this issue Oct 2, 2018 · 1 comment
Open

Install warnings on Ubuntu-18.04 #199

chainhead opened this issue Oct 2, 2018 · 1 comment
Labels

Comments

@chainhead
Copy link

When installing on Ubuntu-18.04 on AWS, I get the following error messages. Installation is done by

npm install nanomsg
In file included from ../deps/nanomsg/src/transports/ipc/sipc.c:26:0:
../deps/nanomsg/src/transports/ipc/sipc.c: In function ‘nn_sipc_handler’:
../deps/nanomsg/src/transports/ipc/../../utils/err.h:48:12: warning: this statement may fall through [-Wimplicit-fallthrough=]
         if (nn_slow (!(x))) {\
            ^
../deps/nanomsg/src/transports/ipc/sipc.c:377:21: note: in expansion of macro ‘nn_assert’
                     nn_assert (0);
                     ^~~~~~~~~
../deps/nanomsg/src/transports/ipc/sipc.c:380:13: note: here
             case NN_USOCK_SHUTDOWN:
             ^~~~
  CC(target) Release/obj.target/nanomsg/deps/nanomsg/src/transports/tcp/atcp.o
  CC(target) Release/obj.target/nanomsg/deps/nanomsg/src/transports/tcp/btcp.o
  CC(target) Release/obj.target/nanomsg/deps/nanomsg/src/transports/tcp/ctcp.o
  CC(target) Release/obj.target/nanomsg/deps/nanomsg/src/transports/tcp/stcp.o
  CC(target) Release/obj.target/nanomsg/deps/nanomsg/src/transports/tcp/tcp.o
  CC(target) Release/obj.target/nanomsg/deps/nanomsg/src/transports/utils/backoff.o
  CC(target) Release/obj.target/nanomsg/deps/nanomsg/src/transports/utils/base64.o
  CC(target) Release/obj.target/nanomsg/deps/nanomsg/src/transports/utils/dns.o
  CC(target) Release/obj.target/nanomsg/deps/nanomsg/src/transports/utils/iface.o
  CC(target) Release/obj.target/nanomsg/deps/nanomsg/src/transports/utils/literal.o
  CC(target) Release/obj.target/nanomsg/deps/nanomsg/src/transports/utils/port.o
  CC(target) Release/obj.target/nanomsg/deps/nanomsg/src/transports/utils/streamhdr.o
In file included from ../deps/nanomsg/src/transports/utils/streamhdr.c:28:0:
../deps/nanomsg/src/transports/utils/streamhdr.c: In function ‘nn_streamhdr_handler’:
../deps/nanomsg/src/transports/utils/../../utils/err.h:48:12: warning: this statement may fall through [-Wimplicit-fallthrough=]
         if (nn_slow (!(x))) {\
            ^
../deps/nanomsg/src/transports/utils/streamhdr.c:239:17: note: in expansion of macro ‘nn_assert’
                 nn_assert (0);
                 ^~~~~~~~~
../deps/nanomsg/src/transports/utils/streamhdr.c:242:9: note: here
         case NN_STREAMHDR_SRC_TIMER:
         ^~~~

BTW, why does installation not go through with a sudo npm i nanomsg -g? I get errors on accessing gyp.

@reqshark
Copy link
Collaborator

reqshark commented Oct 2, 2018

you getting errors or just warnings?

are you able to install node-nanomsg?

AWS beanstalk? or is that just a standard ubuntu ec2 AMI on AWS?

why does installation not go through with a sudo npm i nanomsg -g

no reason to use -g, this module is not intended for that eclectic node global option

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

2 participants