<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On 17 June 2015 at 08:10, Iain Buclaw <span dir="ltr"><<a href="mailto:ibuclaw@gdcproject.org" target="_blank">ibuclaw@gdcproject.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5"><p dir="ltr">On 17 Jun 2015 02:50, "Peter Green via D.gnu" <<a href="mailto:d.gnu@puremagic.com" target="_blank">d.gnu@puremagic.com</a>> wrote:<br>
><br>
> I maintain raspbian, a project to rebuild Debian for the raspberry pi (and in principle other armv6 devices but the Pi seems to be the only armv6 device anyone cares about). We try to support as much of Debian as possible but as effectively a single person project do not have the resources to dig deeply into problems with minor languages.<br>
><br>
> In Raspbian jessie and stretch we have successfully built gdc-4.9 from the gcc-4.9 source package. However the same cannot be said for gcc-5 which has recented entered stretch. A log of our most recent attempt can be found at <a href="http://buildd.raspbian.org/status/fetch.php?pkg=gcc-5&arch=armhf&ver=5.1.1-9&stamp=1434096865" target="_blank">http://buildd.raspbian.org/status/fetch.php?pkg=gcc-5&arch=armhf&ver=5.1.1-9&stamp=1434096865</a> . An extract of potentially interesting lines from said log is bwlo.<br>
><br>
> tar -x -C /«PKGBUILDDIR»/src --strip-components=1 -f gdc-20150414.tar.xz<br>
> <---snip---><br>
> /«PKGBUILDDIR»/build/./prev-gcc/xg++ -B/«PKGBUILDDIR»/build/./prev-gcc/ -B/usr/arm-linux-gnueabihf/bin/ -nostdinc++ -B/«PKGBUILDDIR»/build/prev-arm-linux-gnueabihf/libstdc++-v3/src/.libs -B/«PKGBUILDDIR»/build/prev-arm-linux-gnueabihf/libstdc++-v3/libsupc++/.libs  -I/«PKGBUILDDIR»/build/prev-arm-linux-gnueabihf/libstdc++-v3/include/arm-linux-gnueabihf  -I/«PKGBUILDDIR»/build/prev-arm-linux-gnueabihf/libstdc++-v3/include  -I/«PKGBUILDDIR»/src/libstdc++-v3/libsupc++ -L/«PKGBUILDDIR»/build/prev-arm-linux-gnueabihf/libstdc++-v3/src/.libs -L/«PKGBUILDDIR»/build/prev-arm-linux-gnueabihf/libstdc++-v3/libsupc++/.libs -g -O2 -DIN_GCC -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -DHAVE_CONFIG_H -Wno-deprecated -Wstrict-aliasing -Wuninitialized -I. -Id -I../../src/gcc -I../../src/gcc/d -I../../src/gcc/../include -I../../src/gcc/../libcpp/include  -I../../src/gcc/../libdecnumber -I../../src/gcc/../libdecnumber/dpd -I../libdecnumber -I../../src/gcc/../libbacktrace   -Id -I../../src/gcc/d/dfrontend -I../../src/gcc/d  -o d/expression.dmd.o -c ../../src/gcc/d/dfrontend/expression.c<br>
> <----snip-------><br>
> cc1d: ../../src/gcc/d/dfrontend/expression.c:2619: IntegerExp::IntegerExp(Loc, dinteger_t, Type*): Assertion `type' failed.<br>
> cc1d: internal compiler error: Aborted<br>
> libtool: compile:  /«PKGBUILDDIR»/build/./gcc/gccgo -B/«PKGBUILDDIR»/build/./gcc/ -B/usr/arm-linux-gnueabihf/bin/ -B/usr/arm-linux-gnueabihf/lib/ -isystem /usr/arm-linux-gnueabihf/include -isystem /usr/arm-linux-gnueabihf/sys-include -isystem /«PKGBUILDDIR»/build/sys-include -O2 -g -ffp-contract=off -I . -c -fgo-pkgpath=math ../../../src/libgo/go/math/abs.go ../../../src/libgo/go/math/acosh.go ../../../src/libgo/go/math/asin.go ../../../src/libgo/go/math/asinh.go ../../../src/libgo/go/math/atan.go ../../../src/libgo/go/math/atanh.go ../../../src/libgo/go/math/atan2.go ../../../src/libgo/go/math/bits.go ../../../src/libgo/go/math/cbrt.go ../../../src/libgo/go/math/const.go ../../../src/libgo/go/math/copysign.go ../../../src/libgo/go/math/dim.go ../../../src/libgo/go/math/erf.go ../../../src/libgo/go/math/exp.go ../../../src/libgo/go/math/expm1.go ../../../src/libgo/go/math/floor.go ../../../src/libgo/go/math/frexp.go ../../../src/libgo/go/math/gamma.go ../../../src/libgo/go/math/hypot.go ../../../src/libgo/go/math/j0.go ../../../src/libgo/go/math/j1.go ../../../src/libgo/go/math/jn.go ../../../src/libgo/go/math/ldexp.go ../../../src/libgo/go/math/lgamma.go ../../../src/libgo/go/math/log.go ../../../src/libgo/go/math/log1p.go ../../../src/libgo/go/math/log10.go ../../../src/libgo/go/math/logb.go ../../../src/libgo/go/math/mod.go ../../../src/libgo/go/math/modf.go ../../../src/libgo/go/math/nextafter.go ../../../src/libgo/go/math/pow.go ../../../src/libgo/go/math/pow10.go ../../../src/libgo/go/math/remainder.go ../../../src/libgo/go/math/signbit.go ../../../src/libgo/go/math/sin.go ../../../src/libgo/go/math/sincos.go ../../../src/libgo/go/math/sinh.go ../../../src/libgo/go/math/sqrt.go ../../../src/libgo/go/math/tan.go ../../../src/libgo/go/math/tanh.go ../../../src/libgo/go/math/unsafe.go -o math.o >/dev/null 2>&1<br>
> if [ x"" != x ]; then \<br>
>   /«PKGBUILDDIR»/build/./gcc/xgcc -B/«PKGBUILDDIR»/build/./gcc/ -B/usr/arm-linux-gnueabihf/bin/ -B/usr/arm-linux-gnueabihf/lib/ -isystem /usr/arm-linux-gnueabihf/include -isystem /usr/arm-linux-gnueabihf/sys-include -isystem /«PKGBUILDDIR»/build/sys-include    -c -DHAVE_CONFIG_H -g -O2  -I. -I../../../src/libiberty/../include  -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic  -fPIC  ../../../src/libiberty/simple-object-elf.c -o noasan/simple-object-elf.o; \<br>
> else true; fi<br>
> /«PKGBUILDDIR»/build/./gcc/xgcc -B/«PKGBUILDDIR»/build/./gcc/ -B/usr/arm-linux-gnueabihf/bin/ -B/usr/arm-linux-gnueabihf/lib/ -isystem /usr/arm-linux-gnueabihf/include -isystem /usr/arm-linux-gnueabihf/sys-include -isystem /«PKGBUILDDIR»/build/sys-include    -c -DHAVE_CONFIG_H -g -O2  -I. -I../../../src/libiberty/../include  -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic  ../../../src/libiberty/simple-object-elf.c -o simple-object-elf.o<br>
> libtool: compile:  /«PKGBUILDDIR»/build/./gcc/xgcc -shared-libgcc -B/«PKGBUILDDIR»/build/./gcc -nostdinc++ -L/«PKGBUILDDIR»/build/arm-linux-gnueabihf/libstdc++-v3/src -L/«PKGBUILDDIR»/build/arm-linux-gnueabihf/libstdc++-v3/src/.libs -L/«PKGBUILDDIR»/build/arm-linux-gnueabihf/libstdc++-v3/libsupc++/.libs -B/usr/arm-linux-gnueabihf/bin/ -B/usr/arm-linux-gnueabihf/lib/ -isystem /usr/arm-linux-gnueabihf/include -isystem /usr/arm-linux-gnueabihf/sys-include -isystem /«PKGBUILDDIR»/build/sys-include -D_GNU_SOURCE -D_DEBUG -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -DHAVE_RPC_XDR_H=1 -DHAVE_TIRPC_RPC_XDR_H=0 -I. -I../../../../src/libsanitizer/sanitizer_common -I.. -I ../../../../src/libsanitizer/include -isystem ../../../../src/libsanitizer/include/system -Wall -W -Wno-unused-parameter -Wwrite-strings -pedantic -Wno-long-long -fPIC -fno-builtin -fno-exceptions -fno-rtti -fomit-frame-pointer -funwind-tables -fvisibility=hidden -Wno-variadic-macros -I../../libstdc++-v3/include -I../../libstdc++-v3/include/arm-linux-gnueabihf -I../../../../src/libsanitizer/../libstdc++-v3/libsupc++ -std=gnu++11 -DSANITIZER_LIBBACKTRACE -DSANITIZER_CP_DEMANGLE -I ../../../../src/libsanitizer/../libba!<br>
> cktrace -I ../libbacktrace -I ../../../../src/libsanitizer/../include -include ../../../../src/libsanitizer/libbacktrace/backtrace-rename.h -g -O2 -D_GNU_SOURCE -MT sanitizer_deadlock_detector1.lo -MD -MP -MF .deps/sanitizer_deadlock_detector1.Tpo -c ../../../../src/libsanitizer/sanitizer_common/sanitizer_deadlock_detector1.cc -o sanitizer_deadlock_detector1.o >/dev/null 2>&1<br>
> 0x6034ef crash_signal<br>
>         ../../src/gcc/toplev.c:383<br>
> Please submit a full bug report,<br>
> with preprocessed source if appropriate.<br>
> Please include the complete backtrace with any bug report.<br>
> See <file:///usr/share/doc/gcc-5/README.Bugs> for instructions.<br>
> The bug is not reproducible, so it is likely a hardware or OS problem.<br>
> Makefile:583: recipe for target 'core/thread.o' failed<br>
> make[6]: *** [core/thread.o] Error 1<br>
> make[6]: Leaving directory '/«PKGBUILDDIR»/build/arm-linux-gnueabihf/libphobos/libdruntime'<br>
> Makefile:395: recipe for target 'all-recursive' failed<br>
> make[5]: *** [all-recursive] Error 1<br>
> make[5]: Leaving directory '/«PKGBUILDDIR»/build/arm-linux-gnueabihf/libphobos'<br>
> Makefile:314: recipe for target 'all' failed<br>
> make[4]: *** [all] Error 2<br>
> make[4]: Leaving directory '/«PKGBUILDDIR»/build/arm-linux-gnueabihf/libphobos'<br>
> Makefile:18154: recipe for target 'all-target-libphobos' failed<br>
> make[3]: *** [all-target-libphobos] Error 2<br>
> make[3]: *** Waiting for unfinished jobs....<br>
><br>
> Despite the assertion in the error message that "The bug is not reproducible, so it is likely a hardware or OS problem." I have got substatailly the same error in a total of 5 build attempts across four versions of the Debian gcc-5 source.<br>
><br>
> Anyone seen anything like this before? anyone here care about gdc in raspbian and want to assist in finding a root cause and a patch for this?<br>
><br>
> To fix the immediate problem I disabled gdc in the gcc-5 source package and modified gcc-defaults to revert the default gdc version to 4.9 but I do not know how long it will be feasible to maintain that workaround for and so if no fix is forthcoming our only remaining option may be to remove gdc and it's reverse dependencies from Raspbian stretch.</p>
</div></div><p dir="ltr">Is it possible to get a backtrace on the particular crash?  The compiler frontend is aborting because the 'type' parameter in the IntegerExp constructor is a null pointer.   However, that does not make sense as all basic types and aliases should have been allocated before compilation began.</p>
</blockquote></div>I cannot reproduce this on upstream HEAD.  I will get in touch with Matthias and request to pull in updates for the next round of stable gcc version releases.  If you still exhibit the problem after updating, I can only conclude that there is something wrong either with your build environment, or the way that you have patched gcc and/or gdc in Debian.<br><br></div><div class="gmail_extra">Regards<br></div><div class="gmail_extra">Iain<br></div></div>