lnav icon indicating copy to clipboard operation
lnav copied to clipboard

top-of-tree is failing to install from HEAD

Open mmashwani opened this issue 1 year ago • 5 comments

Installing from HEAD is currently failing. It just hangs at this step at the end:

Unlinking /usr/local/Cellar/lnav/0.10.1... 2 symlinks removed.
mmashwani@MLC02CC0HQMD6V ~ % brew install --HEAD lnav
==> Cloning https://github.com/tstack/lnav.git
Updating /Users/mmashwani/Library/Caches/Homebrew/lnav--git
==> Checking out branch master
Already on 'master'
Your branch is up to date with 'origin/master'.
HEAD is now at d2272724 [formats] pickup old macos syslog format
Entering 'ext/pcapplusplus'
/Users/mmashwani/Library/Caches/Homebrew/lnav--git/ext/pcapplusplus
==> ./autogen.sh
==> ./configure --prefix=/usr/local/Cellar/lnav/HEAD-d227272 --libdir=/usr/local/Cellar/lnav/HEAD-d227272/lib --with-sqlite3=/usr/local/opt/sqlite --with
==> make install V=1 

mmashwani avatar Aug 02 '22 02:08 mmashwani

I'm not seeing this anywhere else, can you run ps and see which process is blocked?

tstack avatar Aug 02 '22 17:08 tstack

This looks ugly, but here's the output of that command attached lnav_head_install_ps.txt .

mmashwani avatar Aug 02 '22 20:08 mmashwani

Just tried again and attaching the output of the ps command. lnav_head_install_ps_02.txt .

mmashwani avatar Aug 02 '22 23:08 mmashwani

Ah, sorry, didn't realize you were using brew install --HEAD. For some reason, compiling the "data_scanner_re.cc" file with some optimizations takes a really long time. I had worked around this in the regular build, but it looks like brew is overriding some flags and that's making it take longer. I'll have to figure out how to ignore the brew overrides in the makefile.

tstack avatar Aug 03 '22 03:08 tstack

Yup, when I came back a really long time later, it was all compiled. It must have happened because of a recent brew update because brew install --HEAD lnav was not taking this long until some time yesterday when I was updating all of the things.

mmashwani avatar Aug 03 '22 03:08 mmashwani

I made a tweak to get that file to build faster. The build from HEAD on my M2 is now 1m37s. So, I'm going to close this.

tstack avatar Aug 21 '22 04:08 tstack