Bug 226035 - devel/llvm50 compilation from ports tree failing
Summary: devel/llvm50 compilation from ports tree failing
Status: Closed Not A Bug
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: 11.1-STABLE
Hardware: amd64 Any
: --- Affects Only Me
Assignee: Dimitry Andric
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-02-19 08:24 UTC by vigneshwaranr
Modified: 2018-03-01 12:56 UTC (History)
1 user (show)

See Also:


Attachments
contains the error of llvm failing and the files affected (5.88 KB, text/plain)
2018-02-19 08:24 UTC, vigneshwaranr
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description vigneshwaranr 2018-02-19 08:24:19 UTC
Created attachment 190785 [details]
contains the error of llvm failing and the files affected

I tried compiling vim from ports tree and its failing at llvm compilation. I have attached the error as text file. Below are the details of my system

FreeBSD ver: 11.1-RELEASE-p4 
Arch: amd64
Ports Tree: Up to date 


snippet:

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/SelectionDAGBuilder-fc3cd6.cpp
c++: note: diagnostic msg: /tmp/SelectionDAGBuilder-fc3cd6.sh
c++: note: diagnostic msg:



let me know if I am submitting in a wrong format. My first time reporting a bug
Comment 1 Adam Weinberger freebsd_committer freebsd_triage 2018-02-19 12:56:06 UTC
As you noted, the build failure is in llvm, not vim. I'm sending this over to the llvm50 maintainer.
Comment 2 vigneshwaranr 2018-02-20 04:42:02 UTC
(In reply to Adam Weinberger from comment #1)
thank you
Comment 3 Brooks Davis freebsd_committer freebsd_triage 2018-02-21 17:53:07 UTC
This is a crash in the base system compiler.  The fact that devel/llvm50 triggered it is irrelevant.  That said, I test this on 11.1-RELEASE both directly and in poudriere so I suspect weird CFLAGS or a hardware problem.
Comment 4 Dimitry Andric freebsd_committer freebsd_triage 2018-02-21 19:00:49 UTC
From your log, it looks like you were running out of memory:

c++: error: unable to execute command: Killed
c++: error: clang frontend command failed due to signal (use -v to see invocation)

Please check dmesg and/or /var/log/messages for "swap_pager_getswapspace(n): failed" messages, if that is the case you need to add either more RAM or swap.

If it still occurs after adding more memory, and in a repeatable fashion, try saving the /tmp/*.cpp and /tmp/*.sh files it drops, then compressing those and attach them to this PR.
Comment 5 vigneshwaranr 2018-03-01 12:56:20 UTC
(In reply to Dimitry Andric from comment #4)

okay I will try that and see. right now I am trying to compile vim again.