Bug 231355 - Compiler assert error when compiling lang/qt5-qml
Summary: Compiler assert error when compiling lang/qt5-qml
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: CURRENT
Hardware: Any Any
: --- Affects Only Me
Assignee: Dimitry Andric
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-09-14 03:58 UTC by Piotr Kubaj
Modified: 2018-10-31 18:49 UTC (History)
2 users (show)

See Also:
koobs: mfc-stable11+


Attachments
diagnostic files (468.76 KB, application/x-xz)
2018-09-14 03:58 UTC, Piotr Kubaj
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Piotr Kubaj freebsd_committer freebsd_triage 2018-09-14 03:58:57 UTC
Created attachment 197086 [details]
diagnostic files

When I compile this port, I'm getting:
c++: note: diagnostic msg:
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
c++: note: diagnostic msg: /tmp/qv4jit-ecd9fe.cpp
c++: note: diagnostic msg: /tmp/qv4jit-ecd9fe.sh
c++: note: diagnostic msg:

********************
*** [.obj/qv4jit.o] Error code 254

Those files are attached here. My make.conf is:
BOOT_COMCONSOLE_SPEED=115200
BOOT_COMCONSOLE_PORT="0x2f8"
CPUTYPE?=native
DEVELOPER=yes
DISTDIR=/tmp
DEFAULT_VERSIONS=  mysql=102m php=72 linux=c7_64 pgsql=10 ruby=2.5 python=3.6 ssl=libressl-devel
DWM_CONF=/usr/ports/x11-wm/dwm/files/config.h
ST_CONF=/usr/ports/x11/sterm/files/config.h
WRKDIRPREFIX=/tmp
RANDOMIZE_MASTER_SITES=yes

It happens also if I disable CPUTYPE.
Comment 1 Dimitry Andric freebsd_committer freebsd_triage 2018-09-14 17:43:01 UTC
I could not reproduce this by rebuilding the qt5-qml port, but with your tarball it did reproduce.

This turns out to be solved by https://reviews.llvm.org/rL335365, which I will import into head once it is approved by the Release Engineering team, and merge to stable/11 after a few days.
Comment 2 commit-hook freebsd_committer freebsd_triage 2018-09-14 19:25:29 UTC
A commit references this bug:

Author: dim
Date: Fri Sep 14 19:25:23 UTC 2018
New revision: 338689
URL: https://svnweb.freebsd.org/changeset/base/338689

Log:
  Pull in r335365 from upstream llvm trunk (by Krzysztof Parzyszek):

    Initialize LiveRegs once in BranchFolder::mergeCommonTails

  This should fix '(TRI && "LivePhysRegs is not initialized."' assertions
  when building the lang/qt5-qml port in certain configurations.

  Approved by:	re (kib)
  Reported by:	Piotr Kubaj <pkubaj@anongoth.pl>
  PR:		231355
  MFC after:	3 days

Changes:
  head/contrib/llvm/lib/CodeGen/BranchFolding.cpp
Comment 3 commit-hook freebsd_committer freebsd_triage 2018-09-17 14:54:04 UTC
A commit references this bug:

Author: dim
Date: Mon Sep 17 14:53:04 UTC 2018
New revision: 338710
URL: https://svnweb.freebsd.org/changeset/base/338710

Log:
  MFC r338689:

  Pull in r335365 from upstream llvm trunk (by Krzysztof Parzyszek):

    Initialize LiveRegs once in BranchFolder::mergeCommonTails

  This should fix '(TRI && "LivePhysRegs is not initialized."' assertions
  when building the lang/qt5-qml port in certain configurations.

  Reported by:	Piotr Kubaj <pkubaj@anongoth.pl>
  PR:		231355

Changes:
_U  stable/11/
  stable/11/contrib/llvm/lib/CodeGen/BranchFolding.cpp
Comment 4 commit-hook freebsd_committer freebsd_triage 2018-10-26 21:20:35 UTC
A commit references this bug:

Author: dim
Date: Fri Oct 26 21:20:07 UTC 2018
New revision: 483054
URL: https://svnweb.freebsd.org/changeset/ports/483054

Log:
  Add all patches from base llvm/clang/lld/lldb 6.0 to devel/llvm60

  This adds all the patches that were applied in the past to head, under
  contrib/llvm.  After these, there only minimal diffs left between the
  port sources and the base sources.

  Most of these remaining diffs are due to #ifdef shortcuts in the base
  sources, because we don't compile certain features in.  Other diffs are
  because the port has applied a few changes that we don't have in base.

  While here, use Makefile.LICENSE from the devel/llvm-devel port.

  Approved by:	brooks (maintainer)
  Reviewed by:	brooks
  PR:		212343, 225128, 225471, 226388, 226658, 226872, 229050, 230444, 230604, 231355
  MFH:		2018Q4
  Differential Revision: https://reviews.freebsd.org/D17702

Changes:
  head/devel/llvm60/Makefile
  head/devel/llvm60/files/clang/patch-head-r331066.diff
  head/devel/llvm60/files/clang/patch-head-r336227.diff
  head/devel/llvm60/files/clang/patch-head-r338697.diff
  head/devel/llvm60/files/clang/patch-head-r339019.diff
  head/devel/llvm60/files/lld/
  head/devel/llvm60/files/lld/patch-head-r331731.diff
  head/devel/llvm60/files/lld/patch-head-r333401.diff
  head/devel/llvm60/files/lld/patch-head-r336664.diff
  head/devel/llvm60/files/lld/patch-head-r336972.diff
  head/devel/llvm60/files/lld/patch-head-r337282.diff
  head/devel/llvm60/files/lld/patch-head-r338251.diff
  head/devel/llvm60/files/lld/patch-head-r338682.diff
  head/devel/llvm60/files/lld/patch-head-r339013.diff
  head/devel/llvm60/files/lld/patch-head-r339304.diff
  head/devel/llvm60/files/lldb/
  head/devel/llvm60/files/lldb/patch-head-r332849.diff
  head/devel/llvm60/files/lldb/patch-head-r332965.diff
  head/devel/llvm60/files/patch-head-r308867.diff
  head/devel/llvm60/files/patch-head-r330686.diff
  head/devel/llvm60/files/patch-head-r331065.diff
  head/devel/llvm60/files/patch-head-r331366.diff
  head/devel/llvm60/files/patch-head-r336969.diff
  head/devel/llvm60/files/patch-head-r336970.diff
  head/devel/llvm60/files/patch-head-r337615.diff
  head/devel/llvm60/files/patch-head-r338689.diff
Comment 5 commit-hook freebsd_committer freebsd_triage 2018-10-31 18:49:51 UTC
A commit references this bug:

Author: dim
Date: Wed Oct 31 18:49:08 UTC 2018
New revision: 483602
URL: https://svnweb.freebsd.org/changeset/ports/483602

Log:
  MFH: r481120

  Update to a new snapshot.

  Update LICENSE data per mailing list feedback and move to a seperate
  Makefile.LICENSE for use by other llvm ports.

  MFH: r483054

  Add all patches from base llvm/clang/lld/lldb 6.0 to devel/llvm60

  This adds all the patches that were applied in the past to head, under
  contrib/llvm.  After these, there only minimal diffs left between the
  port sources and the base sources.

  Most of these remaining diffs are due to #ifdef shortcuts in the base
  sources, because we don't compile certain features in.  Other diffs are
  because the port has applied a few changes that we don't have in base.

  While here, use Makefile.LICENSE from the devel/llvm-devel port.

  Approved by:	portmgr (miwi)
  Reviewed by:	brooks
  PR:		212343, 225128, 225471, 226388, 226658, 226872, 229050, 230444, 230604, 231355
  Differential Revision: https://reviews.freebsd.org/D17702

Changes:
_U  branches/2018Q4/
  branches/2018Q4/devel/llvm-devel/Makefile
  branches/2018Q4/devel/llvm-devel/Makefile.LICENSE
  branches/2018Q4/devel/llvm-devel/Makefile.snapshot
  branches/2018Q4/devel/llvm-devel/distinfo
  branches/2018Q4/devel/llvm-devel/files/lldb-patch-tools_lldb_source_Plugins_Process_FreeBSD_ProcessFreeBSD.cpp
  branches/2018Q4/devel/llvm-devel/pkg-plist
  branches/2018Q4/devel/llvm60/Makefile
  branches/2018Q4/devel/llvm60/files/clang/patch-head-r331066.diff
  branches/2018Q4/devel/llvm60/files/clang/patch-head-r336227.diff
  branches/2018Q4/devel/llvm60/files/clang/patch-head-r338697.diff
  branches/2018Q4/devel/llvm60/files/clang/patch-head-r339019.diff
  branches/2018Q4/devel/llvm60/files/lld/
  branches/2018Q4/devel/llvm60/files/lldb/
  branches/2018Q4/devel/llvm60/files/patch-head-r308867.diff
  branches/2018Q4/devel/llvm60/files/patch-head-r330686.diff
  branches/2018Q4/devel/llvm60/files/patch-head-r331065.diff
  branches/2018Q4/devel/llvm60/files/patch-head-r331366.diff
  branches/2018Q4/devel/llvm60/files/patch-head-r336969.diff
  branches/2018Q4/devel/llvm60/files/patch-head-r336970.diff
  branches/2018Q4/devel/llvm60/files/patch-head-r337615.diff
  branches/2018Q4/devel/llvm60/files/patch-head-r338689.diff