ChanServ changed the topic of #zig to: zig programming language | ziglang.org | be excellent to each other | channel logs: https://irclog.whitequark.org/zig/
hopppetosse has quit [Ping timeout: 260 seconds]
<MajorLag> andrewrk, is there somewhere to get the latest zig binary for linux? I don't need any packaging, just the binary is fine since it looks like Zig is pretty trivial to package as an AppDir.
cenomla has joined #zig
davr0s has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
davr0s has joined #zig
davr0s has quit [Client Quit]
davr0s has joined #zig
davr0s has quit [Client Quit]
davr0s has joined #zig
davr0s has quit [Client Quit]
davr0s has joined #zig
davr0s has quit [Client Quit]
return0e has quit []
davr0s has joined #zig
cenomla has quit [Quit: cenomla]
davr0s has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
return0e has joined #zig
lqd has quit [Read error: Connection reset by peer]
lqd has joined #zig
lqd has joined #zig
lqd has quit [Changing host]
_whitelogger has joined #zig
davr0s has joined #zig
davr0s has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
davr0s has joined #zig
MajorLag2 has joined #zig
MajorLag has quit [Ping timeout: 245 seconds]
hoppetosse has joined #zig
davr0s has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
hoppetosse has quit [Ping timeout: 256 seconds]
davr0s has joined #zig
steveno_ has joined #zig
arBmind has joined #zig
SimonNa has joined #zig
steveno_ has quit [Quit: Leaving]
return0e has quit [Read error: No route to host]
davr0s has quit [Ping timeout: 256 seconds]
hoppetosse has joined #zig
return0e has joined #zig
return0e has quit [Ping timeout: 240 seconds]
isd has joined #zig
steveno_ has joined #zig
arBmind has quit [Quit: Leaving.]
noonien has joined #zig
return0e has joined #zig
davr0s has joined #zig
<andrewrk> MajorLag2, no, that doesn't exist anywhere yet
<andrewrk> here's a related issue: https://github.com/zig-lang/zig/issues/626
MajorLag2 is now known as MajorLag
<MajorLag> andrewrk, so travis ci creates a complete binary, but it isn't made available anywhere like the apveyor artifact is for Windows? According to the AppImage people, a lot of projects have scripts to produce AppImages from travis ci builds. From what I can tell this should be trivial for Zig, since the binary has so few runtime dependencies. I already made an AppDir of an older version using a binary ripped from the D
<MajorLag> ack at it but I don't know anything about travis ci.
<andrewrk> I'm looking up what AppImage is
<cgag> i'm gettiing `lld: error: cannot open /home/cgag/src/zig/libstdc++.a: No such file or directory` while trying to run `./zig build --build-file ../build.zig test` from the zig build directory as per the readme
<cgag> not really sure wy it's looking there? i don't see any libstdc++ in any zig subdir, though i do have it in /usr/lib64
<andrewrk> cgag, can I see more output?
<MajorLag> Sounds like the LIB_DIR path isn't set right.
<andrewrk> cgag, what linux distro is this?
<cgag> fedora 27, llvm and clang 6 build from source, no llvm or clang packages installed
<andrewrk> MajorLag, I just had a look at AppImage. the example from their home page does not work on NixOS, my linux distro. Even when I fixed the path to the dynamic linker, it expected a library to be installed that was not installed. I'm not convinced AppImage is the best solution to this problem
<andrewrk> I'd be more interested in trying to produce a static build of zig
<MajorLag> That's a bit surprising, but I know they've had issues with Nix before. I agree about the static build though.
<andrewrk> cgag, what does this output for you: cc -print-file-name=libstdc++.a
<cgag> just `libstdc++.a`
<andrewrk> ok, what's going on here is that the build script tried the above command to figure out where libstdc++.a is on your system, and it didn't work. and then instead of reporting that error, it tried to use the wrong path
<andrewrk> I'll fix the second part to make the problem clearer, and meanwhile we can try to figure out a better way to determine where that file is on your system
<andrewrk> does it work if you replace `cc` with `c++` ?
<cgag> ah, makes sense. same output from `c++`
<cgag> gcc 7.3.1
<andrewrk> cgag, I reproduced the problem on a VPS. I can see that the file is at /usr/lib/gcc/x86_64-redhat-linux/7/32/libstdc++.a even though -print-file-name does not find it
<cgag> i also see it just at /usr/lib and /usr/lib64
<andrewrk> cgag, can you try the fedora-build branch and see if that solves the issue for you?
<cgag> `Unable to find zig lib directory. Reinstall Zig or use --zig-install-prefix.`
<andrewrk> did you remember to make install?
<cgag> no :\
<cgag> `lld: error: cannot open /usr/lib/gcc/x86_64-redhat-linux/7/32/libstdc++.a: No such file or directory`
<andrewrk> that file does not exist for you?
<cgag> it appears to be a symlink to /usr/lib/libstdc++.a
<cgag> actually, one minute
<cgag> it looks like it's a broken symlink to /usr/lib/gcc/i686-redhat-linux/7/libstdc++.a, and that i686 folder doesn't exist
<andrewrk> is there a valid libstdc++.a file anywhere on your system?
<cgag> just searched and can't find one, only see .so
<andrewrk> cgag, what does this do? https://clbin.com/dA2W3
<andrewrk> cgag, can you also try `yum install libstdc++-static` with master branch?
steveno_ has quit [Remote host closed the connection]
<andrewrk> cgag, here's an issue to track self hosted compiler build on fedora: https://github.com/zig-lang/zig/issues/843
<MajorLag> even the nix package isn't up to date...
<cgag> awesome, looks like libstdc++-static fixed it, thanks a bunch
zesterer has joined #zig
<andrewrk> cgag, thanks for the report. I'll update the build script to inform fedora users of this
<andrewrk> MajorLag, of zig?
<MajorLag> yeah
arBmind has joined #zig
jdufault has joined #zig
mahmudov has joined #zig
jdufault has quit [Read error: Connection reset by peer]
davr0s has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
davr0s has joined #zig
davr0s has quit [Client Quit]
davr0s has joined #zig
davr0s has quit [Client Quit]