Bug 236568 - devel/xwpe: clang 8 crashes during build on armv7
Summary: devel/xwpe: clang 8 crashes during build on armv7
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: arm Any
: --- Affects Some People
Assignee: freebsd-toolchain (Nobody)
URL:
Keywords:
Depends on:
Blocks: 236062
  Show dependency treegraph
 
Reported: 2019-03-16 04:29 UTC by Jan Beich
Modified: 2019-05-09 19:13 UTC (History)
1 user (show)

See Also:


Attachments
we_menue.c (preprocessed, compressed) (69.13 KB, application/x-xz)
2019-03-16 04:31 UTC, Jan Beich
no flags Details
command line args (for clang 8) (2.77 KB, text/plain)
2019-03-16 04:31 UTC, Jan Beich
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Beich freebsd_committer freebsd_triage 2019-03-16 04:29:20 UTC
$ poudriere jail -cj head-armv7 -x -a arm.armv7 -v head -m svn+https
$ poudriere testport -j head-armv7 devel/xwpe
[...]
/usr/bin/cc -O2 -pipe  -fno-strict-aliasing   -I/usr/local/include -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DCC_HAS_PROTOS=1 -DHAVE_LIBZ=1 -DHAVE_MKDTEMP=1 -DRANDLIB=1 -DPRNTCMD=\"lpr\"  -DLIBRARY_DIR=\"/usr/local/share/xwpe\" -DX_INC=\"@X_INC@\" -c we_menue.c
Assertion failed: (LiveCPSR && "CPSR liveness tracking is wrong!"), function UpdateCPSRUse, file /usr/src/contrib/llvm/lib/Target/ARM/Thumb2SizeReduction.cpp, line 995.
cc: error: unable to execute command: Abort trap (core dumped)
cc: error: clang frontend command failed due to signal (use -v to see invocation)
FreeBSD clang version 8.0.0 (branches/release_80 355677) (based on LLVM 8.0.0)
Target: armv7-unknown-freebsd13.0-gnueabihf
Thread model: posix
InstalledDir: /usr/bin

http://www.ipv6proxy.net/go.php?u=http://beefy16.nyi.freebsd.org/data/head-armv7-default/p495093_s344952/logs/errors/xwpe-1.5.30a.log
Comment 1 Jan Beich freebsd_committer freebsd_triage 2019-03-16 04:31:27 UTC
Created attachment 202901 [details]
we_menue.c (preprocessed, compressed)
Comment 2 Jan Beich freebsd_committer freebsd_triage 2019-03-16 04:31:49 UTC
Created attachment 202902 [details]
command line args (for clang 8)
Comment 3 Dimitry Andric freebsd_committer freebsd_triage 2019-03-17 21:44:08 UTC
Reproduced, minimized and submitted upstream here:

https://bugs.llvm.org/show_bug.cgi?id=41116
Comment 4 commit-hook freebsd_committer freebsd_triage 2019-03-23 14:10:49 UTC
A commit references this bug:

Author: dim
Date: Sat Mar 23 14:10:06 UTC 2019
New revision: 345449
URL: https://svnweb.freebsd.org/changeset/base/345449

Log:
  Pull in r356809 from upstream llvm trunk (by Eli Friedman):

    [ARM] Don't form "ands" when it isn't scheduled correctly.

    In r322972/r323136, the iteration here was changed to catch cases at
    the beginning of a basic block... but we accidentally deleted an
    important safety check.  Restore that check to the way it was.

    Fixes https://bugs.llvm.org/show_bug.cgi?id=41116

    Differential Revision: https://reviews.llvm.org/D59680

  This should fix "Assertion failed: (LiveCPSR && "CPSR liveness tracking
  is wrong!"), function UpdateCPSRUse" errors when building the devel/xwpe
  port for armv7.

  PR:		236062, 236568
  MFC after:	1 month
  X-MFC-With:	r344779

Changes:
  head/contrib/llvm/lib/Target/ARM/ARMBaseInstrInfo.cpp