Bug 245067 - misc/glow: CPU/libjit.bc error: Invalid record (Producer: 'LLVM10.0.0git' Reader: 'LLVM 9.0.1')
Summary: misc/glow: CPU/libjit.bc error: Invalid record (Producer: 'LLVM10.0.0git' Rea...
Status: Open
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Yuri Victorovich
URL:
Keywords: needs-qa
Depends on:
Blocks:
 
Reported: 2020-03-25 23:59 UTC by Yuri Victorovich
Modified: 2020-03-27 00:24 UTC (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.