pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: i386-current ICE/Bus error building wxGTK30?



On Wed, 2020-01-22 at 08:40 -0500, David H. Gutteridge wrote:
> On Sun, 19 Jan 2020 at 07:19:10 -0600, John D. Baker wrote:
> > Building wxGTK30 (pkgsrc-2019Q4) on i386-current (9.99.38) fails with
> > an internal compiler error/Bus error:
> > 
> > [...]
> > /d0/build/pkgsrc/x11/wxGTK30/work/wxWidgets-3.0.4/bk-make-pch
> > ./.pch/wxprec_xmldll/wx/wxprec.h.gch wx/wxprec.h c++
> > -I./.pch/wxprec_xmldll -D__WXGTK__        -DWXBUILDING       -
> > I./src/regex   -DwxUSE_GUI=0 -DWXUSINGDLL -DWXMAKINGDLL_XML -fPIC
> > -DPIC  -Wall -Wundef -Wunused-parameter -Wno-ctor-dtor-privacy
> > -Woverloaded-virtual -D_FILE_OFFSET_BITS=64
> > -I/d0/build/pkgsrc/x11/wxGTK30/work/wxWidgets-
> > 3.0.4/lib/wx/include/gtk3-unicode-3.0 -I./include
> > -I/usr/pkg/include/gtk-3.0 -I/usr/pkg/include/pango-1.0
> > -I/usr/pkg/include -I/usr/pkg/include/glib-2.0 -I/usr/pkg/lib/glib-
> > 2.0/include -I/usr/pkg/include/harfbuzz -I/usr/pkg/include/fribidi
> > -I/usr/X11R7/include -I/usr/X11R7/include/freetype2
> > -I/usr/pkg/include/cairo -I/usr/X11R7/include/pixman-1
> > -I/usr/pkg/include/libpng16 -I/usr/pkg/include/gdk-pixbuf-2.0
> > -D_REENTRANT -I/usr/pkg/include/gio-unix-2.0 -D_REENTRANT
> > -I/usr/pkg/include/atk-1.0 -I/usr/pkg/include/at-spi2-atk/2.0
> > -I/usr/pkg/include/at-spi-2.0 -I/usr/pkg/include/dbus-1.0
> > -I/usr/pkg/lib/dbus-1.0/include -D_REENTRANT -pthread
> > -I/usr/pkg/include/gstreamer-1.0 -I/usr/pkg/include/glib-2.0
> > -I/usr/pkg/lib/glib-2.0/include -I/usr/pkg/include -pthread
> > -I/usr/pkg/include/orc-0.4 -D_NETBSD_SOURCE -D_LIBC -I/usr/pkg/include
> > -I/usr/include -I/usr/pkg/include/glib-2.0 -I/usr/pkg/include/gio-
> > unix-2.0 -I/usr/pkg/lib/glib-2.0/include -I/usr/X11R7/include
> > -I/usr/X11R7/include/freetype2 -I/usr/X11R7/include/libdrm
> > -DWX_PRECOMP -pthread -I/usr/pkg/include/gtk-3.0/unix-print
> > -I/usr/pkg/include/gtk-3.0 -I/usr/pkg/include/pango-1.0
> > -I/usr/pkg/include -I/usr/pkg/include/glib-2.0 -I/usr/pkg/lib/glib-
> > 2.0/include -I/usr/pkg/include/harfbuzz -I/usr/pkg/include/fribidi
> > -I/usr/X11R7/include -I/usr/X11R7/include/freetype2
> > -I/usr/pkg/include/cairo -I/usr/X11R7/include/pixman-1
> > -I/usr/pkg/include/libpng16 -I/usr/pkg/include/gdk-pixbuf-2.0
> > -D_REENTRANT -I/usr/pkg/include/gio-unix-2.0 -D_REENTRANT
> > -I/usr/pkg/include/atk-1.0 -I/usr/pkg/include/at-spi2-atk/2.0
> > -I/usr/pkg/include/at-spi-2.0 -I/usr/pkg/include/dbus-1.0
> > -I/usr/pkg/lib/dbus-1.0/include -D_REENTRANT -D_REENTRANT -pthread -O2
> > -D_FORTIFY_SOURCE=2 -I/usr/pkg/include -I/usr/include
> > -I/usr/pkg/include/glib-2.0 -I/usr/pkg/include/gio-unix-2.0
> > -I/usr/pkg/lib/glib-2.0/include -I/usr/X11R7/include
> > -I/usr/X11R7/include/freetype2 -I/usr/X11R7/include/libdrm
> > g++: internal compiler error: Bus error signal terminated program
> > cc1plus
> > Please submit a full bug report,
> > with preprocessed source if appropriate.
> > See <http://www.NetBSD.org/support/send-pr.html> for instructions.
> > *** [./.pch/wxprec_xmldll/wx/wxprec.h.gch] Error code 4
> > 
> > make: stopped in /d0/build/pkgsrc/x11/wxGTK30/work/wxWidgets-3.0.4
> > 1 error
> > 
> > make: stopped in /d0/build/pkgsrc/x11/wxGTK30/work/wxWidgets-3.0.4
> > *** Error code 2
> > 
> > Stop.
> > make[1]: stopped in /x/pkgsrc/x11/wxGTK30
> > *** Error code 1
> > 
> > Stop.
> > make: stopped in /x/pkgsrc/x11/wxGTK30
> > 
> > 
> > The substring "pch" in the above sounds like "pre-compiled headers"
> > which
> > seems to be a persistent problem with GCC on i386 although usually
> > only
> > an issue with "boost-libs".
> > 
> > There was no issue with the same machine building wxGTK30 under
> > 9.0_RC1.
> > 
> > I haven't seen any bulk builds using i386-current for comparison.
> 
> I can reproduce this example with a similar state of -current on i386.
> I've also seen other, probably related examples with other packages. In
> one case (with libfilezilla, IIRC), it also happened with a much older
> state of -current that still had GCC 7.4, so the general issue may
> predate the current compiler version. The commonality I've seen is that
> it's always C++ code that triggers it.
> 
> Regards,
> 
> Dave

I thought I'd hit an ICE (not just a failure to compile code, which was
also occurring) with libfilezilla, but maybe I'm misremembering. I
can't duplicate that now. I can duplicate an ICE building the filezilla
client, perhaps because it uses wxGTK30. These both include PCH, so it
appears that's indeed the general issue. (PCH plus C++, or just PCH?)

wxGTK30:

/home/disciple/pkgsrc/x11/wxGTK30/work/wxWidgets-3.0.4/bk-make-pch ./.pch/wxprec_advdll/wx/wxprec.h.gch wx/wxprec.h c++ -I./.pch/wxprec_advdll -D__WXGTK__        -DWXBUILDING       -I./src/regex   -DWXUSINGDLL -DWXMAKINGDLL_ADV -fPIC -DPIC -Wall -Wundef -Wunused-parameter -Wno-ctor-dtor-privacy -Woverloaded-virtual  -D_FILE_OFFSET_BITS=64 -I/home/disciple/pkgsrc/x11/wxGTK30/work/wxWidgets-3.0.4/lib/wx/include/gtk3-unicode-3.0 -I./include -I/usr/pkg/include/gtk-3.0 -I/usr/pkg/include/pango-1.0 -I/usr/pkg/include/glib-2.0 -I/usr/pkg/lib/glib-2.0/include -I/usr/pkg/include -I/usr/pkg/include/fribidi -I/usr/pkg/include/cairo -I/usr/X11R7/include/pixman-1 -I/usr/X11R7/include -I/usr/X11R7/include/freetype2 -I/usr/pkg/include/libpng16 -I/usr/pkg/include/harfbuzz -I/usr/pkg/include/gdk-pixbuf-2.0 -D_REENTRANT -I/usr/pkg/include/gio-unix-2.0 -D_REENTRANT -I/usr/pkg/include/atk-1.0 -I/usr/pkg/include/at-spi2-atk/2.0 -I/usr/pkg/include/at-spi-2.0 -I/usr/pkg/include/dbus-1.0 -I/usr/pkg/lib/dbus-1.0/include -D_REENTRANT -pthread -I/usr/pkg/include/gstreamer-1.0 -I/usr/pkg/include/glib-2.0 -I/usr/pkg/lib/glib-2.0/include -I/usr/pkg/include -pthread -I/usr/pkg/include/orc-0.4 -D_NETBSD_SOURCE -D_LIBC -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/glib-2.0 -I/usr/pkg/include/gio-unix-2.0 -I/usr/pkg/lib/glib-2.0/include -I/usr/X11R7/include -I/usr/X11R7/include/freetype2 -I/usr/X11R7/include/libdrm -DWX_PRECOMP -pthread -I/usr/pkg/include/gtk-3.0/unix-print -I/usr/pkg/include/gtk-3.0 -I/usr/pkg/include/pango-1.0 -I/usr/pkg/include/glib-2.0 -I/usr/pkg/lib/glib-2.0/include -I/usr/pkg/include -I/usr/pkg/include/fribidi -I/usr/pkg/include/cairo -I/usr/X11R7/include/pixman-1 -I/usr/X11R7/include -I/usr/X11R7/include/freetype2 -I/usr/pkg/include/libpng16 -I/usr/pkg/include/harfbuzz -I/usr/pkg/include/gdk-pixbuf-2.0 -D_REENTRANT -I/usr/pkg/include/gio-unix-2.0 -D_REENTRANT -I/usr/pkg/include/atk-1.0 -I/usr/pkg/include/at-spi2-atk/2.0 -I/usr/pkg/include/at-spi-2.0 -I/usr/pkg/include/dbus-1.0 -I/usr/pkg/lib/dbus-1.0/include -D_REENTRANT -D_REENTRANT -pthread -O2 -D_FORTIFY_SOURCE=2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/glib-2.0 -I/usr/pkg/include/gio-unix-2.0 -I/usr/pkg/lib/glib-2.0/include -I/usr/X11R7/include -I/usr/X11R7/include/freetype2 -I/usr/X11R7/include/libdrm
In file included from ./include/wx/filedlg.h:235,
                 from ./include/wx/wx.h:93,
                 from ./include/wx/wxprec.h:58:
./include/wx/gtk/filedlg.h:81:2: internal compiler error: Segmentation fault
 };

filezilla (built after repeatedly re-trying wxGTK30 builds until they
completed; the seg faults aren't consistent):

gmake[2]: Entering directory '/home/disciple/pkgsrc/net/filezilla/work/filezilla-3.46.3/src/engine'
if c++ -std=c++17 -DHAVE_CONFIG_H -I. -I../../src/include  -I./../include -I/usr/pkg/include -I/usr/pkg/include/p11-kit-1  -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/wx-3.0 -I/usr/X11R7/include -I/usr/X11R7/include/libdrm -I/usr/pkg/include/glib-2.0 -I/usr/pkg/include/gio-unix-2.0 -I/usr/pkg/lib/glib-2.0/include -I/usr/X11R7/include/freetype2 -fpch-preprocess  -O2 -D_FORTIFY_SOURCE=2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/wx-3.0 -I/usr/X11R7/include -I/usr/X11R7/include/libdrm -I/usr/pkg/include/glib-2.0 -I/usr/pkg/include/gio-unix-2.0 -I/usr/pkg/lib/glib-2.0/include -I/usr/X11R7/include/freetype2 -march=i586 -Wall -g -MT filezilla.h.gch -MD -MP -MF ".deps/filezilla.Tpo" -c -o filezilla.h.gch filezilla.h; \
then mv -f ".deps/filezilla.Tpo" ".deps/filezilla.Po"; else rm -f ".deps/filezilla.Tpo"; exit 1; fi
In file included from filezilla.h:3:
/home/disciple/pkgsrc/net/filezilla/work/.buildlink/include/libfilezilla/translate.hpp:28:1: internal compiler error: Segmentation fault
 }
 ^

Regards,

Dave




Home | Main Index | Thread Index | Old Index