[Bug target/65251] sh4: internal compiler error: Bus error when compiling cpp-netlib
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65251 --- Comment #10 from John Paul Adrian Glaubitz --- It builds fine at least on qemu-sh4: > https://buildd.debian.org/status/fetch.php?pkg=cpp-netlib=sh4=0.11.2%2Bdfsg1-2=1451483950 Adrian
[Bug target/65251] sh4: internal compiler error: Bus error when compiling cpp-netlib
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65251 Oleg Endo changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|--- |WORKSFORME --- Comment #11 from Oleg Endo --- Let's assume it works...
[Bug target/65251] sh4: internal compiler error: Bus error when compiling cpp-netlib
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65251 --- Comment #9 from Oleg Endo --- I've just committed a fix for PR 69713, which was a latent issue and GCC 4.9 was affected by it, too. The problem there was a resulting unguarded memory access which could result in a segfault or bus error. Adrian, do you have any updates regarding this PR here?
[Bug target/65251] sh4: internal compiler error: Bus error when compiling cpp-netlib
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65251 --- Comment #7 from Oleg Endo --- Ping?
[Bug target/65251] sh4: internal compiler error: Bus error when compiling cpp-netlib
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65251 --- Comment #8 from John Paul Adrian Glaubitz --- (In reply to Oleg Endo from comment #7) > Ping? Please wait a few more days. I'm currently trying a new approach with qemu-sh4 as you have probably seen on the debian-superh mailing list. This will hopefully allow me to reduce compile time by large margin (first benchmarks showed a 100% performance increase), so I will be able to report back more quickly and actually don't have to abuse the buildds for the tests. I am currently test-building gtk+3.0, then I'll gcc-5 a shot. Once I have verified that these work without issues, I will help with the remaining issues in the SH backend. Adrian
[Bug target/65251] sh4: internal compiler error: Bus error when compiling cpp-netlib
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65251 --- Comment #6 from Oleg Endo --- (In reply to John Paul Adrian Glaubitz from comment #5) > Hmm, the build now failed due to "out of memory" apparently [1]: > > [ 7%] Building CXX object > libs/network/src/CMakeFiles/cppnetlib-uri.dir/uri/uri.cpp.o > cd /<>/cpp-netlib-0.11.2+dfsg1/obj-sh4-linux-gnu/libs/network/src > && /usr/bin/c++ -DBOOST_NETWORK_ENABLE_HTTPS -DBOOST_TEST_DYN_LINK > -Dcppnetlib_uri_EXPORTS -g -O2 -fstack-protector-strong -Wformat > -Werror=format-security -D_FORTIFY_SOURCE=2 -Wall -fPIC > -I/<>/cpp-netlib-0.11.2+dfsg1-o > CMakeFiles/cppnetlib-uri.dir/uri/uri.cpp.o -c > /<>/cpp-netlib-0.11.2+dfsg1/libs/network/src/uri/uri.cpp > virtual memory exhausted: Cannot allocate memory > > Any ideas? Could be something in the compiler running in a loop. Can you get the preprocessed source?
[Bug target/65251] sh4: internal compiler error: Bus error when compiling cpp-netlib
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65251 --- Comment #5 from John Paul Adrian Glaubitz --- Hmm, the build now failed due to "out of memory" apparently [1]: [ 7%] Building CXX object libs/network/src/CMakeFiles/cppnetlib-uri.dir/uri/uri.cpp.o cd /<>/cpp-netlib-0.11.2+dfsg1/obj-sh4-linux-gnu/libs/network/src && /usr/bin/c++ -DBOOST_NETWORK_ENABLE_HTTPS -DBOOST_TEST_DYN_LINK -Dcppnetlib_uri_EXPORTS -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -Wall -fPIC -I/<>/cpp-netlib-0.11.2+dfsg1-o CMakeFiles/cppnetlib-uri.dir/uri/uri.cpp.o -c /<>/cpp-netlib-0.11.2+dfsg1/libs/network/src/uri/uri.cpp virtual memory exhausted: Cannot allocate memory Any ideas? Adrian > [1] > https://buildd.debian.org/status/fetch.php?pkg=cpp-netlib=sh4=0.11.2%2Bdfsg1-2=1446307196
[Bug target/65251] sh4: internal compiler error: Bus error when compiling cpp-netlib
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65251 --- Comment #3 from Oleg Endo --- Adrian, any updates on this issue?
[Bug target/65251] sh4: internal compiler error: Bus error when compiling cpp-netlib
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65251 --- Comment #4 from John Paul Adrian Glaubitz --- (In reply to Oleg Endo from comment #3) > Adrian, any updates on this issue? One of the buildds is currently building a fresh gcc-5 snapshot. We'll just have to wait another 2 days, then I'll report back. Same goes for PR target/66312. Adrian
[Bug target/65251] sh4: internal compiler error: Bus error when compiling cpp-netlib
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65251 Oleg Endo olegendo at gcc dot gnu.org changed: What|Removed |Added CC||kkojima at gcc dot gnu.org, ||olegendo at gcc dot gnu.org --- Comment #1 from Oleg Endo olegendo at gcc dot gnu.org --- attachment 34899 doesn't compile on sh-elf out of the box. I had to remove all lines starting with #: sed '/^#/ d' ccw3pP9A.out ccw3pP9A_1.out Other than that, I wasn't able to reproduce the error with an sh-elf xgcc running on i686. The Bus error could be some buggy misaligned mem access, which is in the native sh4 gcc. This means that probably the compiler that was used to compile the current native sh4 gcc produced buggy code.
[Bug target/65251] sh4: internal compiler error: Bus error when compiling cpp-netlib
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65251 --- Comment #2 from Kazumoto Kojima kkojima at gcc dot gnu.org --- FYI, I can't reproduce the problem on i686-gcc cross sh4-unknown-linux-gnu 4.9/5 compilers, though the preprocessed source can be compiled as is.