Bug 245067

Summary: misc/glow: CPU/libjit.bc error: Invalid record (Producer: 'LLVM10.0.0git' Reader: 'LLVM 9.0.1')
Product: Ports & Packages Reporter: Yuri Victorovich <yuri>
Component: Individual Port(s)Assignee: Yuri Victorovich <yuri>
Status: Open ---    
Severity: Affects Only Me CC: dim, emaste, toolchain
Priority: --- Keywords: needs-qa
Version: Latest   
Hardware: Any   
OS: Any   

Description Yuri Victorovich freebsd_committer 2020-03-25 23:59:37 UTC
Testcase: misc/glow (g20200313, rev. 523788)

Log: http://beefy18.nyi.freebsd.org/data/head-amd64-default/p529018_s359264/logs/glow-nn-compiler-g20200115_2.log (IPv6 URL)

[29/167] cd /wrkdirs/usr/ports/misc/glow/work/glow-97f84e830404183375380842de914e07c0961f7f/lib/Backends/CPU && /usr/local/llvm90/bin/llvm-link -o /wrkdirs/usr/ports/misc/glow/work/.build/CPU/libjit.bc /wrkdirs/usr/ports/misc/glow/work/.build/lib/Backends/CPU/CPURuntime/libjit.o /wrkdirs/usr/ports/misc/glow/work/.build/lib/Backends/CPU/CPURuntime/libjit_conv.o /wrkdirs/usr/ports/misc/glow/work/.build/lib/Backends/CPU/CPURuntime/libjit_matmul.o
FAILED: CPU/libjit.bc 
cd /wrkdirs/usr/ports/misc/glow/work/glow-97f84e830404183375380842de914e07c0961f7f/lib/Backends/CPU && /usr/local/llvm90/bin/llvm-link -o /wrkdirs/usr/ports/misc/glow/work/.build/CPU/libjit.bc /wrkdirs/usr/ports/misc/glow/work/.build/lib/Backends/CPU/CPURuntime/libjit.o /wrkdirs/usr/ports/misc/glow/work/.build/lib/Backends/CPU/CPURuntime/libjit_conv.o /wrkdirs/usr/ports/misc/glow/work/.build/lib/Backends/CPU/CPURuntime/libjit_matmul.o
error: Invalid record (Producer: 'LLVM10.0.0git' Reader: 'LLVM 9.0.1')
[30/167] cd /wrkdirs/usr/ports/misc/glow/work/.build/lib/Graph && /wrkdirs/usr/ports/misc/glow/work/.build/bin/NodeGen /wrkdirs/usr/ports/misc/glow/work/.build/glow/AutoGenNodes.h /wrkdirs/usr/ports/misc/glow/work/.build/glow/AutoGenNodes.cpp /wrkdirs/usr/ports/misc/glow/work/.build/glow/AutoGenNodes.def
Writing node descriptors to:
	/wrkdirs/usr/ports/misc/glow/work/.build/glow/AutoGenNodes.h
	/wrkdirs/usr/ports/misc/glow/work/.build/glow/AutoGenNodes.cpp
	/wrkdirs/usr/ports/misc/glow/work/.build/glow/AutoGenNodes.def
Comment 1 Dimitry Andric freebsd_committer 2020-03-26 15:10:08 UTC
Yeah, this seems to be mixing .bc files between different versions of LLVM.

In this case, the .bc file was built by LLVM 10.0.0, while something is try to link it using llvm-link 9.0.1.  This is not going to work.
Comment 2 Ed Maste freebsd_committer 2020-03-26 23:41:08 UTC
This should presumably be a ports PR
Comment 3 Yuri Victorovich freebsd_committer 2020-03-27 00:24:42 UTC
Compiler/linker got mixed up.