-
Notifications
You must be signed in to change notification settings - Fork 635
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
Compile Error GCC 4.9.4 (stream.hpp) #1801
Comments
It says it right in the error message:
The problem is in the compiler, or the environment. Maybe you don't have enough RAM? |
@vinniefalco lol, yes. thank you. Here I thought it was
;) But, yeah, I guess that is my question/concern. I am not sure why the compiler would barf when it should be compatible. The RAM aspect is interesting due to the template aspect of the compile. I monitored the RAM of the build and it didn't seem to spike prior to the failure. For safety I will try another box and see if I get a different result. (will report back tomorrow) If that doesn't work, do you have other thoughts? Are my assumptions correct that boost/beast/your_samples should be 4.9.4 gcc compatible? Also, it's a pleasure to meet you. I watched all of your videos and really enjoyed them. |
Yes. they should compile. gcc 4.8.4 is tested. Make sure you're using an official release and not a beta.
Check your swap space? |
I tested this with 12cpu, 16Gig mem. Still fails compilation.
So I am concerned that 4.9.4 might not be compatible. Do you have the ability to compile your sample in 4.9.4 to confirm if we are doing something wrong? |
Confirmed. This is a bug in gcc-4.9
but not in 4.8
|
Well at least I am not going insane but this is very unfortunate to hear. Do we know of any modifications to the template structure/declaration that might allow the compiler to not barf? I am not sure if other areas of asio have encountered this and have restructured accordingly. UPDATE
|
@jameschicca |
@madmongo1 My place of work is currently locked to that version. I have been trying to get them to upgrade but it is like steering the titanic with a fork... We were actually 4.9.1 and I had us bumped to 4.9.4 since boost (1.72) states that they are compatible with that version (https://www.boost.org/users/history/version_1_72_0.html). I was hoping that would resolve our compilation issue. |
The error above initiates on line 879:
This surfaces two uncomfortable truths:
It might be interesting to note that getting gcc-4.9 installed on my ubuntu trusty container involved a number of google searches. 4.9 only made it as far as the ubuntu test repository. It was never released. I don't doubt this will be in part due to its unreliability as a compiler tool. I wish I had better news. |
@madmongo1 Yes, I discovered the location of I have a meeting setup tomorrow to discuss this further with our group. Thanks again for your time and consideration in this matter. The sanity check was very helpful as the boost documentation listing 4.9.4 was extremely misleading. "It builds" is very different than "template instantiation tested" :) I will update the ticket tomorrow after the meeting with the direction we would like to pursue. Thanks again |
@jameschicca Of course I can understand being misled by the possible ambiguity of the wording. I've made a report of that in the #boost cpplang slack channel (which is well work joining if you work with c++). If I can help you in your meeting tomorrow, I'd like to draw your attention to the boost beast documentation:
gcc-4.9 has by no means "robust" support for c++11. |
@jameschicca I have received confirmation that the Boost documentation will be updated to be clearer as a direct result of you raising this issue. On behalf of the whole team, thank you. |
This issue has been open for a while with no activity, has it been resolved? |
It looks like this issue has either been abandoned or resolved so I will go ahead and close it. Feel free to re-open this issue if you feel it needs attention, or open new issues as needed. Thanks! |
Ubuntu 14.04
GCC 4.9.4
Boost 1.72
I have taken your sample and built it against boost 1.72 with gcc 4.9.4. According to boost documentation, I believe this should compile but I am receiving an error. The sample I am using is https://github.com/boostorg/beast/tree/develop/example/websocket/server/chat-multi
Thoughts on why it doesn't compile? Thanks in advance.
The text was updated successfully, but these errors were encountered: