Bug 215467

Summary: FreeBSD 11 base clang: crash while building archivers/lzo2 port
Product: Ports & Packages Reporter: B.J.Scharp <freebsd.bugs>
Component: Individual Port(s)Assignee: freebsd-bugs (Nobody) <bugs>
Status: Closed Not A Bug    
Severity: Affects Only Me CC: brooks, mandree, w.schwarzenfeld
Priority: ---    
Version: Latest   
Hardware: i386   
OS: Any   
Attachments:
Description Flags
preprocessed source and run script none

Description B.J.Scharp 2016-12-21 13:08:30 UTC
Created attachment 178175 [details]
preprocessed source and run script

System:  11.0-RELEASE-p5, i386

When building archivers/lzo2, clang segfaults with the message:

cc: error: unable to execute command: Segmentation fault (core dumped)
cc: error: clang frontend command failed due to signal (use -v to see invocation)
FreeBSD clang version 3.8.0 (tags/RELEASE_380/final 262564) (based on LLVM 3.8.0)
Target: i386-unknown-freebsd11.0
Thread model: posix
InstalledDir: /usr/bin
cc: note: diagnostic msg: PLEASE submit a bug report to https://bugs.freebsd.org/submit/ and include the crash backtrace, preprocessed source, and associated run script.
cc: note: diagnostic msg:
********************

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

********************
*** Error code 1

Stop.
make[3]: stopped in /usr/ports/archivers/lzo2/work/lzo-2.09
*** Error code 1

Stop.
make[2]: stopped in /usr/ports/archivers/lzo2/work/lzo-2.09
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/archivers/lzo2
*** Error code 1

Stop.
make: stopped in /usr/ports/archivers/lzo2

===>>> make build failed for archivers/lzo2
===>>> Aborting update


Setting MAKE_JOBS_UNSAFE=yes does not help.

Attached are the two files mentioned in the error.
Comment 1 Matthias Andree freebsd_committer freebsd_triage 2016-12-21 18:20:08 UTC
Since clang 3.8 is involved, over to brooks@. 

I haven't yet established if it's base clang or ports clang; the port itself has no preference. Not a port bug at any rate.
Comment 2 Matthias Andree freebsd_committer freebsd_triage 2016-12-21 18:22:26 UTC
Looking at the .sh script in the attachment, /usr/bin/ => base clang.