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…]
cenomla has joined #zig
cenomla has quit [Quit: cenomla]
cenomla has joined #zig
cenomla has quit [Quit: cenomla]
cenomla has joined #zig
MajorLag2 has joined #zig
MajorLag has quit [Ping timeout: 246 seconds]
andrewrk has quit [Quit: ZNC - http://znc.in]
andrewrk has joined #zig
darithorn has joined #zig
cenomla has quit [Quit: cenomla]
<GitHub38> [zig] andrewrk pushed 1 new commit to master: https://git.io/vp7JK
<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…]
<AX31> For some reason gcc complains that the class "Symbol" does not have trivial copy assignment but clang is fine with it.
<andrewrk> AX31, I wonder if fedora 28 has an LDD patch to work around this
<andrewrk> presumably there's an LLD 6.0 package in fedora 28 that was built with gcc 8.0, right?
<AX31> yeah, there is
Hejsil has joined #zig
<andrewrk> hm there appears to be no patch for this
<AX31> Is it nessecary to use the version of lld in the zig source tree?
<andrewrk> yes, zig has 2 patches
<andrewrk> one of which is upstream
<andrewrk> there's an open issue for the other one: https://github.com/zig-lang/zig/issues/662
<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> AX31, try this patch: https://clbin.com/gjAKa
<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…]
davr0s has joined #zig
<GitHub143> [zig] andrewrk pushed 1 new commit to master: https://git.io/vp52o
<GitHub143> zig/master 74b10c0 Andrew Kelley: fix @typeInfo not setting a field to comptime
<andrewrk> darithorn, thanks for the test case! fixed ^
<darithorn> nice! that was fast
davr0s has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
davr0s has joined #zig
AX31 has quit [Quit: El Psy Congroo.]
darithorn has quit [Ping timeout: 264 seconds]
darithorn has joined #zig
<GitHub149> [zig] andrewrk closed pull request #1013: build: add flag to LLD to fix gcc 8 build (master...gcc8) https://git.io/vp50c
<GitHub185> [zig] andrewrk pushed 1 new commit to master: https://git.io/vp59z
<GitHub185> zig/master 3625df2 Andrew Kelley: build: add flag to LLD to fix gcc 8 build (#1013)...
occivink has quit [Quit: WeeChat 2.0.1]
ofdom has joined #zig
davr0s has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
davr0s has joined #zig
Skilfingr has joined #zig
Skilfingr has quit [Ping timeout: 260 seconds]
davr0s has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
ofdom has quit [Quit: Page closed]
MajorLag has quit [Ping timeout: 276 seconds]
MajorLag has joined #zig
<darithorn> when i try to use the c_allocator i get an lld error "duplicate symbol: _start". is that one of the known lld issues?
<darithorn> using the debug global allocator works just fine
<darithorn> nevermind i found the issue. i forgot to link libc. weird error though
commander has quit [Remote host closed the connection]
<andrewrk> unfortunately there's not much we can do about that
<andrewrk> there are use cases for not doing --library c and still using c_allocator
<andrewrk> so we can't make it an error
return0e has quit [Read error: Connection timed out]
Ichorio has joined #zig
return0e has joined #zig
quc has quit [Ping timeout: 256 seconds]
Ichorio has quit [Ping timeout: 256 seconds]