ChanServ changed the topic of #zig to: zig programming language | ziglang.org | be excellent to each other | channel logs: https://irclog.whitequark.org/zig/
davr0s has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
davr0s has joined #zig
davr0s has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<GitHub38>
zig/master 04bca58 Andrew Kelley: zig fmt: preserve same line doc comments on var decls
davr0s has joined #zig
darithorn has quit [Quit: Leaving]
davr0s has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
davr0s has joined #zig
davr0s has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
davr0s has joined #zig
jjido has joined #zig
jjido has quit [Ping timeout: 256 seconds]
davr0s has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
quc has joined #zig
quc has quit [Remote host closed the connection]
quc has joined #zig
davr0s has joined #zig
noonien has joined #zig
davr0s has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
davr0s has joined #zig
davr0s has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
davr0s has joined #zig
bodie_ has quit [Quit: ZNC 1.6.5+deb2build2 - http://znc.in]
bodie_ has joined #zig
bodie_ has joined #zig
bodie_ has quit [Quit: ZNC 1.6.5+deb2build2 - http://znc.in]
bodie_ has joined #zig
bodie_ has joined #zig
bodie_ has quit [Client Quit]
bodie_ has joined #zig
bodie_ has joined #zig
Ichorio has joined #zig
<bodie_>
sorry about the d/c spam, something's up with my bouncer
MajorLag2 has quit [Ping timeout: 276 seconds]
davr0s has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
MajorLag has joined #zig
MajorLag has quit [Ping timeout: 276 seconds]
MajorLag has joined #zig
darithorn has joined #zig
noonien has quit [Quit: Connection closed for inactivity]
davr0s has joined #zig
AX31 has joined #zig
<AX31>
I just tried compiling zig on github and am getting compile errors when trying to compile lld. I am on fedora 28 with llvm/clang/lld 6.0, cmake 3.11 and am compiling with gcc version 8.0
<AX31>
I am going to try compiling with clang and see if I am still getting the same error.
<andrewrk>
hi AX31, unless you're trying to submit a patch to zig I suggest using the static binary
<andrewrk>
it's automatically built from master when all tests pass in CI
Ichorio has quit [Ping timeout: 248 seconds]
<AX31>
Thanks for the quick reponse. I do want to help contribute to zig so I would like be able to build the compiler from source. Compiling with clang does seem to work though.
<AX31>
I mainly just posted to see if this was a known problem.
<andrewrk>
it was unknown - thanks for the report. do you have a paste of the errors handy?
davr0s has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<darithorn>
if you use @typeInfo outside of a comptime block all the compiler outputs is "unreachable", along with a stack trace. is there a plan for better error messages in the future?
<andrewrk>
if it makes the build succeed for you using gcc 8.0 I'll push it to master
<andrewrk>
darithorn, that's the compiler crashing
<andrewrk>
it's planned for the compiler to not crash :)
<darithorn>
haha yeah, the compiler not crashing would be good ;)
<andrewrk>
darithorn, do you have a small test case for this?
<andrewrk>
darithorn, do you have a small test case for this?
<andrewrk>
oops
<darithorn>
doing: var info = @typeInfo(Foo); instead of comptime var info = @typeInfo(Foo); will make it crash
<andrewrk>
ok cool. I'll fix that. that's supposed to give you a compile error because you used `var` instead of `const`
<andrewrk>
(or comptime var as you mentioned)
<darithorn>
actuall using const instead of var makes it crash too
<darithorn>
comptime const foo = @typeInfo(Foo); won't make it crash
davr0s has joined #zig
<andrewrk>
darithorn, I'm unable to reproduce your results. can you make a test case?
<AX31>
@andrewrk that patch worked, thanks!
<darithorn>
hm, i built zig yesterday from master. i'll mess around with it
<GitHub160>
[zig] andrewrk opened pull request #1013: build: add flag to LLD to fix gcc 8 build (master...gcc8) https://git.io/vp50c
<andrewrk>
AX31, ^ when that passes the CI tests I'll merge it
Hejsil has quit [Quit: Page closed]
<darithorn>
andrewrk, I tried the prebuilt zig binary from zig-lang.com and it crashes as well. I boiled it down to a named struct with fields: https://clbin.com/MrrcT
<darithorn>
er ziglang.com
<andrewrk>
thanks! I'll have a look
<darithorn>
oh it's a .org my bad
<andrewrk>
don't worry, you didn't make me forget where ziglang.org is :)
<andrewrk>
darithorn, I reproduced your results
<darithorn>
sweet, btw it happens with anonymous struct with fields as well, it's not just it being a named struct
davr0s has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]