After a while, the following error will appear firrtlCrossModule.antlr4Path java.util.NoSuchElementException: empty.head
After careful analysis, I found that the version information of antlr2 is printed on stderr, which will cause os.proc(f).call(check = false).out.lines.head.split(" ").last fails because the lines are empty.
I will submit a patch to fix this issue later.
Your environment
Chisel Verions: 3.5.4
OS: Linux t480 6.1.12-gentoo-x86_64 #1 SMP PREEMPT_DYNAMIC Sat Feb 18 15:07:52 CST 2023 x86_64 Intel(R) Core(TM) i7-8550U CPU @ 1.80GHz GenuineIntel GNU/Linux
Checklist
What is the current behavior?
build with error
firrtlCrossModule.antlr4Path java.util.NoSuchElementException: empty.head
error massage:
What is the expected behavior?
Build without error.
Steps to Reproduce
antlr:2
andantlr:4
on gentoohttps://github.com/chipsalliance/playground
mill sanitytests.rocketchip
After a while, the following error will appear
firrtlCrossModule.antlr4Path java.util.NoSuchElementException: empty.head
After careful analysis, I found that the version information of antlr2 is printed on stderr, which will cause
os.proc(f).call(check = false).out.lines.head.split(" ").last
fails because the lines are empty.I will submit a patch to fix this issue later.
Your environment
3.5.4
Linux t480 6.1.12-gentoo-x86_64 #1 SMP PREEMPT_DYNAMIC Sat Feb 18 15:07:52 CST 2023 x86_64 Intel(R) Core(TM) i7-8550U CPU @ 1.80GHz GenuineIntel GNU/Linux
5.006
External Information
None