-
Notifications
You must be signed in to change notification settings - Fork 37
HttpParser fails to build on recent ArchLinux and Julia Version 0.6.0 (2017-06-19 13:05 UTC) #75
Comments
What gcc version are you on? This might need to be reported upstream https://github.com/nodejs/http-parser |
Actually, the latest source at https://github.com/nodejs/http-parser builds without issue on the same Arch Linux box using gcc 7.1.1. (See abbreviated session below.) But the latest source differs significantly from that in my Namely Sorry to be so verbose, but version 2.7.1 does build with an older gcc on an ubuntu machine. (Ubuntu 4.8.4 vs latest stable release of 5.3.)
|
Thank you for the investigation, this is very helpful. Especially the verbosity! So the latest release of |
In particular, the commit that fixed this seems to be this one: nodejs/http-parser@0852bea |
Thanks, @aviks, that's a good plan. Let me educate myself about this gcc7 fallthrough issue a little more today. Then I'll open an issue at nodejs/http-parser as you suggest and link to it from here. We can close this issue or not as you think best. I can easily make the appropriate changes in my local environment. Thanks. |
Issue requesting new release opened at nodejs/http_parser. Shall we close here, or leave open until completely resolved? |
Leave it open. We'll upgrade to a new version once released and tested. |
Just in case anyone else needs a quick fix, there are just two lines to change in Line 1818 is blank. It should contain a
Line 2378 contains a comment misspelled as
Running |
This is still present on Arch with gcc 7.2.0, but the above fix still works. |
@christopher-dG, I should have mentioned that if So far, the nodejs project has not acted on my request for a new release. |
By the way I am still experiencing this very bug on ubuntu 17.10 on current master. |
@AShedko You can follow @WilCrofter instruction to modify .julia/v0.x/HttpParser/deps/src/http-parser-2.7.1/http_parser.c |
You can also comment out the -Werror switch on line 49 of the Makefile. This is my preference (despite my original comment,) but opinions differ. Http_parser is available as an |
Can we tag a new version for METADATA? Checking out master resolved my error On Pop_OS! (Ubuntu 17.10), so it seems like it's worth bumping the version for others. |
me 2 when building on Ubuntu 17.10 |
A fix which seems to have worked for me was to comment out the -Werror switch in
~/.julia/v0.6/HttpParser/deps/src/http-parser-2.7.1/Makefile
line 57:Otherwise, a warning which stems from a drop through in
case 2:
below (line 1817~/.julia/v0.6/HttpParser/deps/src/http-parser-2.7.1/http_parser.c
is treated as an error and aborts the build. However, the drop through (missing break statement) incase 2:
seems purposeful. I am guessing about that however.The text was updated successfully, but these errors were encountered: