Bug 232014 - devel/llvm60: Fails to build "Assertion failed: (CastInst::castIsValid(opc, C, Ty) ..." on CURRENT
Summary: devel/llvm60: Fails to build "Assertion failed: (CastInst::castIsValid(opc, C...
Status: Closed Unable to Reproduce
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Only Me
Assignee: Brooks Davis
URL:
Keywords: needs-qa
Depends on:
Blocks:
 
Reported: 2018-10-06 18:58 UTC by David Gilbert
Modified: 2018-10-15 05:03 UTC (History)
4 users (show)

See Also:
koobs: maintainer-feedback? (dim)
koobs: maintainer-feedback? (brooks)


Attachments
output of make in /usr/ports/devel/llvm60 (654.70 KB, text/plain)
2018-10-06 18:58 UTC, David Gilbert
no flags Details
second file referenced by llvm60.log (4.51 KB, text/plain)
2018-10-06 19:01 UTC, David Gilbert
no flags Details
First file referenced by llvm60.log (785.06 KB, application/x-xz)
2018-10-06 19:02 UTC, David Gilbert
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description David Gilbert 2018-10-06 18:58:28 UTC
Created attachment 197847 [details]
output of make in /usr/ports/devel/llvm60

In the course of building kde5, it calls for building llvm60.  This is strange since the 12.0-ALPHA8 machine has llvm60 in it's base, I think?

I'm including "llvm60.log" which is the output of a make in /usr/ports/devel/llvm60.  I'm including two other files referenced by that output.
Comment 1 David Gilbert 2018-10-06 19:01:49 UTC
Created attachment 197848 [details]
second file referenced by llvm60.log
Comment 2 David Gilbert 2018-10-06 19:02:50 UTC
Created attachment 197849 [details]
First file referenced by llvm60.log
Comment 3 Kubilay Kocak freebsd_committer freebsd_triage 2018-10-07 04:14:33 UTC
This issue appears to reference two issues, namely:

1) Some port requires (apparently unnecessarily) lang/llvm60 on a FreeBSD system that includes Clang/LLVM 6.0 in base.

2) lang/llvm60 fails to build (with segfault, assertion failure) on CURRENT with LLVM/Clang 6.0.1 in base.

Depending on, and after analysis, one of these issues should be tracked separately  so as to track (1) and (2) appropriately.

Reporter, could you please:

Include the exact origin (category/port) of the "kde" port that was being built that required building llvm60. This will help us establish the chain of dependencies for (1).

Include the following files as attachments in this issue, as referenced in the build output:

Preprocessed source(s) and associated run script(s) are located at:
c++: note: diagnostic msg: /tmp/Local-d286ef.cpp
c++: note: diagnostic msg: /tmp/Local-d286ef.sh
c++: note: diagnostic msg: 

Include the exact (uname -a output) version of the FreeBSD CURRENT system inn question
Comment 4 David Gilbert 2018-10-07 04:20:03 UTC
The files are already attached.

The system is a fresh install of 12.0-ALPHA8.

The port being built was the kde5 master port... although the log included here is just the llvm60 being built.

I'll be able to post more tomorrow including uname -a (system not booted right now)... but seriously, I installed the 12.0-ALPHA8 mem stick, I built bash, tmux and portupgrade and then I started a build of kde5.
Comment 5 Dimitry Andric freebsd_committer freebsd_triage 2018-10-07 10:04:24 UTC
I tried reproducing this assertion failure with almost every version of clang that I have, but it always works for me.  It also works just fine on a freshly installed 12.0-ALPHA8 machine.

Can you please check if the error is repeatable, and if not, check your system for hardware errors?
Comment 6 David Gilbert 2018-10-13 19:18:37 UTC
I can confirm that it failed to reproduce now.  The needlessness of rebuilding llvm60 on -CURRENT still stands, tho.