00:10
nD5Xjz has quit [Ping timeout: 248 seconds]
00:10
nD5Xjz has joined #nix-darwin
02:04
nD5Xjz has quit [Ping timeout: 248 seconds]
02:04
nD5Xjz has joined #nix-darwin
02:57
nD5Xjz has quit [Ping timeout: 248 seconds]
02:57
nD5Xjz has joined #nix-darwin
03:00
nD5Xjz_ has joined #nix-darwin
03:02
nD5Xjz has quit [Ping timeout: 272 seconds]
03:26
nD5Xjz has joined #nix-darwin
03:26
nD5Xjz_ has quit [Ping timeout: 248 seconds]
03:55
nD5Xjz has quit [Ping timeout: 245 seconds]
03:57
nD5Xjz has joined #nix-darwin
04:51
nD5Xjz has quit [Ping timeout: 268 seconds]
04:51
nD5Xjz_ has joined #nix-darwin
05:44
abathur has quit [Ping timeout: 258 seconds]
07:45
nD5Xjz_ has quit [Ping timeout: 246 seconds]
07:46
nD5Xjz has joined #nix-darwin
07:54
nD5Xjz has quit [Ping timeout: 272 seconds]
07:57
nD5Xjz has joined #nix-darwin
10:10
philr has joined #nix-darwin
12:09
ris has joined #nix-darwin
12:09
<
ris >
anyone ever had any luck building a gccStdenv-based boost on darwin?
12:12
<
ris >
`boost.override { stdenv = gccStdEnv; }` is error-central
12:44
nD5Xjz has quit [Ping timeout: 258 seconds]
12:53
nD5Xjz has joined #nix-darwin
12:55
philr has quit [Ping timeout: 244 seconds]
13:22
nD5Xjz_ has joined #nix-darwin
13:23
nD5Xjz has quit [Ping timeout: 272 seconds]
14:16
nD5Xjz_ has quit [Ping timeout: 268 seconds]
14:22
nD5Xjz has joined #nix-darwin
14:27
nD5Xjz has quit [Ping timeout: 268 seconds]
14:27
nD5Xjz has joined #nix-darwin
14:49
nD5Xjz_ has joined #nix-darwin
14:50
nD5Xjz has quit [Ping timeout: 272 seconds]
14:57
<
ris >
it seems (i don't know a lot about darwin) to be continuing to try and use libc++ with gcc
15:03
<
clever >
ris: what if any of its deps already depend on the clang libc++?
15:04
<
ris >
feels like that would be more likely to produce link errors rather than header parse errors
15:05
<
ris >
and i don't
*think* boost has any c++ dependencies
15:11
<
ris >
which is where that would cause a problem...
15:21
<
ris >
ooh! adding NIX_CFLAGS_COMPILE="-nostdinc++" definitely helps
15:25
nD5Xjz_ has quit [Ping timeout: 258 seconds]
15:26
nD5Xjz has joined #nix-darwin
15:30
nD5Xjz has quit [Ping timeout: 258 seconds]
15:34
nD5Xjz has joined #nix-darwin
15:39
nD5Xjz has quit [Ping timeout: 272 seconds]
15:41
nD5Xjz has joined #nix-darwin
15:55
nD5Xjz has quit [Ping timeout: 248 seconds]
15:55
nD5Xjz_ has joined #nix-darwin
18:28
<
ris >
hmm so i think this is the central issue: the libc++ setup hooks don't take into account that their target compiler might be gcc
18:29
<
ris >
they do `export NIX_${role_pre}CXXSTDLIB_LINK=" -stdlib=libc++${linkCxxAbi:+" -lc++abi"}"`
18:31
<
ris >
where of course `-stdlib=...` isn't a valid gcc flag
18:32
<
ris >
but given this ... i don't really understand how
_anything_ works with gccStdenv on darwin
18:33
infinisil has left #nix-darwin ["WeeChat 2.4"]
18:33
<
LnL >
what are you trying to do exactly?
18:41
<
ris >
get a gcc-built boost
18:42
nD5Xjz has joined #nix-darwin
18:43
nD5Xjz_ has quit [Ping timeout: 258 seconds]
18:44
<
ris >
because, yknow, c++ abi
18:52
<
ris >
trying to get clickhouse building on darwin and it appears to want to be gcc-compiled
18:52
<
LnL >
gccStdenv is the equivalent of libcxxStdenv on linux, libstdc++ isn't a thing on darwin AFAIK
18:53
<
ris >
how are you
_supposed_ to get a gcc-based stdenv on darwin
18:58
<
ris >
fwiw i'm not trying to use libstdc++ on darwin, i'm merely trying to send gcc the right flags to use libc++
18:58
<
LnL >
gccStdenv already does that
18:59
<
ris >
at compile time it needs to be given -nostdinc++ and at link time, -nodefaultlibs
18:59
<
ris >
well, for some reason this is not working for boost
19:00
<
ris >
it's simple to try: `boost.override { stdenv = gccStdenv; }`
19:02
<
LnL >
right but since that links against libc++ the result should be equivalent to a normal build so why use gcc in the first place?
19:08
<
ris >
from the latter "Please note, that a C++ library compiled with GCC is not compatible with Clang and vice-versa"
19:19
<
LnL >
I'm not saying it's impossible, just that avoiding gcc all together is most likely a lot easier
19:37
nD5Xjz_ has joined #nix-darwin
19:37
nD5Xjz has quit [Ping timeout: 272 seconds]
19:41
<
LnL >
nothing related to gcc
19:42
nD5Xjz_ has quit [Ping timeout: 272 seconds]
19:46
nD5Xjz has joined #nix-darwin
20:43
<
ris >
right ok, ignore the whole clickhouse thing -
_its_ build process actually works quite well with gccStdenv right up to the point it tries to link with a boost library
20:44
<
ris >
if you directly alter boost's invocation in all-packages.nix to provide it with stdenv = gccStdenv you get exactly the same problem
20:46
<
ris >
needing a gcc-built boost is such an unremarkable thing that even homebrew provide a gcc-built boost
20:54
nD5Xjz has quit [Ping timeout: 248 seconds]
21:00
nD5Xjz has joined #nix-darwin
21:29
nD5Xjz_ has joined #nix-darwin
21:30
nD5Xjz has quit [Ping timeout: 244 seconds]
21:34
nD5Xjz_ has quit [Ping timeout: 248 seconds]
21:35
nD5Xjz has joined #nix-darwin
22:00
abathur has joined #nix-darwin
22:18
nD5Xjz_ has joined #nix-darwin
22:18
nD5Xjz has quit [Ping timeout: 272 seconds]
22:23
nD5Xjz_ has quit [Ping timeout: 258 seconds]
22:23
{^_^} has quit [Ping timeout: 252 seconds]
22:24
nD5Xjz has joined #nix-darwin
22:36
{^_^} has joined #nix-darwin
22:41
nD5Xjz has quit [Ping timeout: 246 seconds]
22:45
nD5Xjz has joined #nix-darwin
22:52
nD5Xjz has quit [Ping timeout: 258 seconds]
22:52
nD5Xjz_ has joined #nix-darwin
23:39
nD5Xjz_ has quit [Ping timeout: 248 seconds]
23:41
nD5Xjz has joined #nix-darwin
23:57
nD5Xjz has quit [Ping timeout: 258 seconds]
23:58
nD5Xjz has joined #nix-darwin