-
-
Notifications
You must be signed in to change notification settings - Fork 144
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
aarch64-linux-gnu-g++ version 7.5.0 crash with segmentation fault #197
Comments
Can you include the error logs as actual text, instead of an image? |
sure
|
Ah yup, I've had trouble with other older versions of GCC with over-alignment in the past, looks like more of the same. Should be easy to address, thanks for the report :) |
Thank you for the quick response, currently I can't upgrade the compiler version that I use on that platform so a fix will be very helpful |
@sagi-ottopia I've just realized that I mis-read the error log and this isn't actually to do with over-alignment at all, but the template machinery that makes |
Yes, |
Ah, OK, I see. Well I'll try to come up with a workaround but it might ultimately be the case that GCC 7 is a bit too broken - the lowest I'm able to easily test with these days is GCC 8. |
Hi @marzer |
@damirbarr are you also experiencing the same issue? If so, which specific version of GCC and target environment, the same one as @sagi-ottopia? |
@marzer yes, the same one. I applied the following patch and was able to work around this issue. Now I'm compiling both with gcc-7 and gcc-10. All my unit tests pass and I'm able to compile everything. |
Hmmn, interesting. A worrying factor - a If I can't modify
Looks like I am missing tests to ensure |
@damirbarr In 2414d90 I have added some additional tests to check for the above |
Sagi. |
Alright folks, sorry it took me so long to get back to this. I wasn't able to come up a workaround that preserved the same API (returning
|
Environment
toml++ version and/or commit hash: 7eb2ffc v3.3.0
Compiler: aarch64-linux-gnu-g++ (Linaro GCC 7.5-2019.12) 7.5.0
C++ standard mode: c++17
Target arch: aarch64
Library configuration overrides:
Relevant compilation flags:
Describe the bug
While trying to build the examples with the following commands:
compiler crashed with segmentation fault
Steps to reproduce (or a small repro code sample)
Additional information
The text was updated successfully, but these errors were encountered: