qtbase failed to build on arm64 on utopic

Bug #1318635 reported by Timo Jyrinki
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gcc-defaults (Ubuntu)
Invalid
Undecided
Unassigned
qtbase-opensource-src (Ubuntu)
Fix Released
Undecided
Timo Jyrinki

Bug Description

The latest qtbase upload:
https://launchpad.net/ubuntu/utopic/+source/qtbase-opensource-src/5.2.1+dfsg-1ubuntu16

failed to build on arm64:
---
gcc -c -include .pch/Qt5Core -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -O2 -fvisibility=hidden -Wall -W -D_REENTRANT -fPIC -DQT_NO_MTDEV -DQT_NO_USING_NAMESPACE -DQT_BUILD_CORE_LIB -DQT_BUILDING_QT -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x050000 -DELF_INTERPRETER=\"/lib/ld-linux-aarch64.so.1\" -DQT_USE_ICU -DPCRE_HAVE_CONFIG_H -DQT_CORE_LIB -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DQT_NO_DEBUG -I../../mkspecs/linux-g++ -I. -I../../include -I../../include/QtCore -I../../include/QtCore/5.2.1 -I../../include/QtCore/5.2.1/QtCore -Iglobal -I../3rdparty/pcre -I../3rdparty/harfbuzz/src -I../3rdparty/md5 -I../3rdparty/md4 -I../3rdparty/sha3 -I.moc -o .obj/pcre16_jit_compile.o ../3rdparty/pcre/pcre16_jit_compile.c
gcc: internal compiler error: Segmentation fault (program cc1)
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.8/README.Bugs> for instructions.
Makefile:19974: recipe for target '.obj/pcre16_fullinfo.o' failed
---

The previous build on utopic was fine, and a trusty build with the same patch as ubuntu16 built ok.

Revision history for this message
Matthias Klose (doko) wrote :

apparently an issue with precompiled headers. so please disable as done on other architectures.

Also please check, why the package is built using the embedded pcre sources, and not the system libs? are there other local sources used besides pcre?

affects: gcc (Ubuntu) → gcc-defaults (Ubuntu)
Changed in gcc-defaults (Ubuntu):
status: New → Confirmed
Revision history for this message
Dmitry Shachnev (mitya57) wrote :

I can confirm that adding arm64 to no_pch_architectures fixes the issue, in qt4-x11 case.

Still, it would be nice if gcc didn't segfault, but printed some informative error message instead.

Revision history for this message
Matthias Klose (doko) wrote :

> it would be nice if gcc didn't segfault, but printed some informative error message instead

sure, please provide information how to *reliably* reproduce.

Revision history for this message
Dmitry Shachnev (mitya57) wrote :

Trying to build qt4-x11 when arm64 is not in no_pch_architectures seems to be a reliable way to reproduce the crash (it failed 2*2 times on buildds), though it's of course far from a minimal example.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package qtbase-opensource-src - 5.2.1+dfsg-1ubuntu17

---------------
qtbase-opensource-src (5.2.1+dfsg-1ubuntu17) utopic; urgency=medium

  * Disable PCH also on arm64 in addition to armel/armhf (LP: #1318635)
 -- Timo Jyrinki <email address hidden> Tue, 13 May 2014 04:37:13 +0000

Changed in qtbase-opensource-src (Ubuntu):
status: New → Fix Released
Revision history for this message
Timo Jyrinki (timo-jyrinki) wrote :

Regarding pcre, it seems it's just an oversight and not something that has been tried. Debian will try to enable it at some point, and we can either follow at that point or if wanted take a lead.

Dmitry: Matthias mentioned that when PCH is enabled it's hard to debug compiler crashes, so I guess what he's after would be a test case with PCH disabled.

Revision history for this message
Maxim Kuvyrkov (maxim-kuvyrkov) wrote :

We can debug a compiler crash with PCH enabled.

Please attach a tarball that has all the files to reproduce the crash and, ideally, a Makefile with command line.

Thank you.

Revision history for this message
Matthias Klose (doko) wrote : Re: [Bug 1318635] Re: qtbase failed to build on arm64 on utopic

Am 16.05.2014 07:41, schrieb Maxim Kuvyrkov:
> We can debug a compiler crash with PCH enabled.
>
> Please attach a tarball that has all the files to reproduce the crash
> and, ideally, a Makefile with command line.

yes, tried. However it crashes every time in a different source file, and
retrying the just failed one succeeds.

Revision history for this message
Matthias Klose (doko) wrote :

please re-enable this with 4.9 again

Changed in qtbase-opensource-src (Ubuntu):
status: Fix Released → Confirmed
Revision history for this message
Dmitry Shachnev (mitya57) wrote :

@Matthias:
> please re-enable this with 4.9 again

Does this apply to only arm64 or other architectures as well (the list for qt4-x11 is "arm64 armhf ia64 powerpc ppc64 ppc64el")?

Revision history for this message
Matthias Klose (doko) wrote :

Am 18.06.2014 19:39, schrieb Dmitry Shachnev:
> @Matthias:
>> please re-enable this with 4.9 again
>
> Does this apply to only arm64 or other architectures as well (the list
> for qt4-x11 is "arm64 armhf ia64 powerpc ppc64 ppc64el")?

all architectures. see at least for one upload (and possible give-backs) if this
works.

Changed in qtbase-opensource-src (Ubuntu):
assignee: nobody → Timo Jyrinki (timo-jyrinki)
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package qtbase-opensource-src - 5.3.2+dfsg-4ubuntu2

---------------
qtbase-opensource-src (5.3.2+dfsg-4ubuntu2) vivid; urgency=medium

  * Fix gles symbols (LP: #1391556)
 -- Timo Jyrinki <email address hidden> Tue, 11 Nov 2014 15:46:27 +0000

Changed in qtbase-opensource-src (Ubuntu):
status: Confirmed → Fix Released
Revision history for this message
Matthias Klose (doko) wrote :

utopic is EOL, closing the issue

Changed in gcc-defaults (Ubuntu):
status: Confirmed → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.