00:08
<
Sonarpulse >
bgamari: ah yeah
00:08
<
Sonarpulse >
that's hit even in native builds
00:08
<
Sonarpulse >
no idea
00:08
<
Sonarpulse >
but I assume it has something to do with broken setup hook
00:08
<
Sonarpulse >
due to different setup hook logic
00:22
yegortimoshenko has joined joined #nixos-dev
00:41
<
bgamari >
Sonarpulse, yes, it's very odd
00:41
<
bgamari >
I'm trying to build GHC
00:41
<
bgamari >
and hitting it
00:45
<
bgamari >
Setting SOURCE_DATE_EPOCH to something later in preConfigure seems to work around it
01:09
orivej_ has joined joined #nixos-dev
01:09
orivej has quit [(Ping timeout: 272 seconds)]
01:45
orivej_ has quit [(Ping timeout: 248 seconds)]
01:49
orivej has joined joined #nixos-dev
02:38
mbrgm has quit [(Ping timeout: 264 seconds)]
02:38
mbrgm has joined joined #nixos-dev
03:05
nix-build has joined joined #nixos-dev
03:05
nix-build has quit [(Changing host)]
03:05
nix-build has joined joined #nixos-dev
03:05
{^_^} is now known as Guest63354
03:05
Guest63354 has quit [(Read error: Connection reset by peer)]
03:50
alunduil has joined joined #nixos-dev
04:12
<
bgamari >
Sonarpulse, why doesn't binutils-wrapper wrap nm?
04:24
alunduil has quit [(Quit: leaving)]
04:49
yegortimoshenko has quit [(Ping timeout: 264 seconds)]
05:49
phreedom has quit [(Remote host closed the connection)]
05:56
ma27 has joined joined #nixos-dev
06:12
ma27 has quit [(Ping timeout: 272 seconds)]
07:00
taktoa has joined joined #nixos-dev
07:47
taktoa has quit [(Ping timeout: 264 seconds)]
07:47
taktoa_ has joined joined #nixos-dev
07:56
phreedom has joined joined #nixos-dev
07:56
vcunat has joined joined #nixos-dev
08:22
taktoa_ is now known as taktoa
08:22
taktoa has quit [(Remote host closed the connection)]
08:32
pie_ has quit [(Ping timeout: 256 seconds)]
08:45
taktoa has joined joined #nixos-dev
08:52
ma27 has joined joined #nixos-dev
08:53
ma27 has quit [(Client Quit)]
08:53
ma27 has joined joined #nixos-dev
08:56
pie_ has joined joined #nixos-dev
09:19
ma27 has quit [(Ping timeout: 240 seconds)]
09:32
goibhniu has joined joined #nixos-dev
09:32
ma27 has joined joined #nixos-dev
09:39
ma27 has quit [(Ping timeout: 268 seconds)]
09:57
lezed1 has quit [(Quit: Connection closed for inactivity)]
09:58
laggy_wifi has joined joined #nixos-dev
10:04
__Sander__ has joined joined #nixos-dev
10:13
stqism has quit [(Ping timeout: 264 seconds)]
10:14
disasm has quit [(Ping timeout: 264 seconds)]
10:14
disasm has joined joined #nixos-dev
10:14
coup has joined joined #nixos-dev
10:15
coup is now known as Guest32460
10:18
pie_ has quit [(Ping timeout: 240 seconds)]
10:20
vcunat has quit [(Quit: Leaving.)]
10:43
orivej has quit [(Ping timeout: 264 seconds)]
10:45
pie_ has joined joined #nixos-dev
11:24
yegortimoshenko has joined joined #nixos-dev
11:40
Mic92 has quit [(Ping timeout: 255 seconds)]
11:59
contrapumpkin has quit [(Ping timeout: 265 seconds)]
12:23
<
gchristensen >
is a change in boost actually a change in the stdenv?
12:29
vcunat has joined joined #nixos-dev
12:33
pie_ has quit [(Ping timeout: 260 seconds)]
12:33
JosW has joined joined #nixos-dev
12:41
pie_ has joined joined #nixos-dev
12:51
orivej has joined joined #nixos-dev
13:12
contrapumpkin has joined joined #nixos-dev
13:17
yegortimoshenko has quit [(Read error: Connection reset by peer)]
13:23
<
gchristensen >
Sonarpulse: why didn't you merge a more recent master in to staging? I thought you were going to do it to fix the eval error
13:25
<
vcunat >
gchristensen: do you have nix on that/some RHEL6 derivative?
13:26
<
vcunat >
(trying to finish that glibc stuff)
13:30
<
gchristensen >
you bet I do!
13:31
<
vcunat >
when you nix-store --realize /nix/store/047hnqfir5fai40f7j9w8hzv1ycfw271-hello-2.10
13:31
<
vcunat >
what does this print?
13:31
<
vcunat >
/nix/store/047hnqfir5fai40f7j9w8hzv1ycfw271-hello-2.10/bin/hello
13:32
<
gchristensen >
$ /nix/store/047hnqfir5fai40f7j9w8hzv1ycfw271-hello-2.10/bin/hello
13:32
<
gchristensen >
FATAL: kernel too old
13:33
<
gchristensen >
2.6.32-431.el6.x86_64
13:35
<
vcunat >
Ah, I missed a piece of code. Let me try to patch the check without disabling it completely.
13:38
taktoa has quit [(Ping timeout: 268 seconds)]
13:45
pauldub has joined joined #nixos-dev
13:52
ma27 has joined joined #nixos-dev
14:05
ma27 has quit [(Quit: WeeChat 1.9.1)]
14:06
ma27 has joined joined #nixos-dev
14:39
<
vcunat >
(rebuilding gcc is a bit uncomfortable)
14:39
<
gchristensen >
cool :)
14:41
<
vcunat >
The plan is to simply ignore the version check if (and only if) the kernel is exactly 2.6.32
14:41
<
gchristensen >
oh cool
15:09
laggy_wifi has quit [(Remote host closed the connection)]
15:10
yegortimoshenko has joined joined #nixos-dev
15:11
laggy_wifi has joined joined #nixos-dev
15:13
pie_ has quit [(Remote host closed the connection)]
15:14
pie_ has joined joined #nixos-dev
15:15
laggy_wifi has quit [(Remote host closed the connection)]
15:16
laggy_wifi has joined joined #nixos-dev
16:07
<
Sonarpulse >
bgamari: no reason, let's make it!
16:08
<
Sonarpulse >
gchristensen: I wanted to base my PR off the master commit, for a known good state for a reference point
16:09
<
gchristensen >
I was hoping staging would get the eval fix
16:09
<
Sonarpulse >
I could have merged more into staging too, all i needed to do was ensure the PR didn't contain too many commmits according to github
16:09
<
Sonarpulse >
but I figured staging was like only 2 master commits behind, so this was low impact
16:14
ma27 has quit [(Quit: WeeChat 1.9.1)]
16:17
ma27 has joined joined #nixos-dev
16:54
FRidh has joined joined #nixos-dev
16:58
ma27 has quit [(Ping timeout: 240 seconds)]
17:00
propumpkin has joined joined #nixos-dev
17:01
contrapumpkin has quit [(Ping timeout: 240 seconds)]
17:06
propumpkin is now known as contrapumpkin
17:06
FRidh has quit [(Quit: Konversation terminated!)]
17:07
FRidh has joined joined #nixos-dev
17:07
FRidh has quit [(Client Quit)]
17:08
FRidh has joined joined #nixos-dev
17:08
Mic92 has joined joined #nixos-dev
17:21
FRidh has quit [(Quit: Konversation terminated!)]
17:21
__Sander__ has quit [(Quit: Konversation terminated!)]
17:22
FRidh has joined joined #nixos-dev
17:22
FRidh has quit [(Client Quit)]
17:23
FRidh has joined joined #nixos-dev
17:35
pie_ has quit [(Ping timeout: 263 seconds)]
17:36
FRidh has quit [(Quit: Konversation terminated!)]
17:37
FRidh has joined joined #nixos-dev
18:01
pie_ has joined joined #nixos-dev
18:21
FRidh has quit [(Remote host closed the connection)]
18:22
FRidh has joined joined #nixos-dev
18:44
ma27 has joined joined #nixos-dev
18:48
pie_ has quit [(Read error: Connection reset by peer)]
18:48
pie_ has joined joined #nixos-dev
18:50
goibhniu has quit [(Ping timeout: 272 seconds)]
18:53
pie_ has quit [(Read error: Connection reset by peer)]
18:54
pie_ has joined joined #nixos-dev
19:00
<
vcunat >
uh, Hydra is so much slower than my machine in terms of a single build
19:00
<
vcunat >
gchristensen: you can finally test the hello /nix/store/4g4gmizl8cgwhwqsdrz4y70zjvg0rmil-hello-2.10
19:03
<
yegortimoshenko >
copumpkin: btw, all done (fetchurl user-agent), but now it doesn't report nixpkgs version. the only way i see out of it is impureEnvVars, but probably next time (i'll open an issue).
19:04
<
copumpkin >
that's probably fine
19:04
<
copumpkin >
it's better than nothing
19:06
<
Dezgeg >
LD_PRELOAD ?
19:06
<
Dezgeg >
or LD_LIBRARY_PATH ?
19:06
<
vcunat >
yes, that's what I meant to ask
19:07
<
vcunat >
--print-interpreter and --print-rpath seem OK in my build
19:07
<
gchristensen >
fun ...
19:07
<
Dezgeg >
that always happen if you don't use nixpkgs ldd
19:08
goibhniu has joined joined #nixos-dev
19:13
<
Dezgeg >
strace then? maybe it loads a ld.so.cache?
19:13
<
vcunat >
hmm, I can't explain this
19:13
<
vcunat >
$ env -i /nix/store/4g4gmizl8cgwhwqsdrz4y70zjvg0rmil-hello-2.10/bin/hello
19:13
<
vcunat >
Hello, world!
19:13
<
vcunat >
(I replaced my local paths for these two packages from binary cache, to be sure)
19:14
<
gchristensen >
though I think I know what is happening
19:14
<
gchristensen >
and we can't fix it
19:16
<
vcunat >
uh, I have no idea what's happening
19:16
<
gchristensen >
$ lsmod | grep "fake corporate security garbage" | wc -l
19:16
<
vcunat >
I can't see any problem until the error message
19:17
<
Dezgeg >
maybe there are multiple kernel version checks and you missed one?
19:18
<
Dezgeg >
(i.e. an additional one for dependent shared objects)
19:18
<
vcunat >
it doesn't seem like kernel check, if they're sensible with error messages
19:18
<
Dezgeg >
LD_DEBUG=all could help
19:18
<
vcunat >
(and I think I grepped the libc sources enough)
19:19
<
vcunat >
I suppose tomorrow I'll put CentOS 6 into some VM and try playing with it
19:20
<
vcunat >
hopefully it was just something local to the machine
19:21
FRidh has quit [(Quit: Konversation terminated!)]
19:22
FRidh has joined joined #nixos-dev
19:22
<
vcunat >
hmm, the last file does exist - and the previous strace showed it succeeded with openat -> FD 3
19:22
FRidh has quit [(Client Quit)]
19:22
FRidh has joined joined #nixos-dev
19:23
<
vcunat >
hmm, libc.6.so is opened, 832 bytes are read, then it's closed, and then the whole process again
19:23
<
vcunat >
it's as if it didn't like the contents?
19:24
<
gchristensen >
say, vcunat, sha256sum /nix/store/igq6z6lvnc7ykikc5xljwsvsjfczy4s3-glibc-2.26-115/lib/libc-2.26.so /nix/store/4g4gmizl8cgwhwqsdrz4y70zjvg0rmil-hello-2.10/bin/hello
19:25
<
Dezgeg >
yes, I was thinking that it notices the .so says it's for linux >= 3.2.0 and ignores it
19:25
<
vcunat >
right, that seems possible
19:25
<
vcunat >
my strace shows some mmaps happening before closing
19:26
<
Dezgeg >
check 1681 /* Check .note.ABI-tag if present. */
19:26
<
Dezgeg >
in elf/dl-load.c
19:26
<
vcunat >
apparently it's rejected for some reason, and kernel seems likely
19:27
<
vcunat >
right, that will be it
19:28
<
gchristensen >
I love working with smart people ♥‿♥
19:30
goibhniu has quit [(Remote host closed the connection)]
19:33
<
vcunat >
ah, yes, I see it now. Using macro within a macro to set value of a global variable.
19:33
<
vcunat >
How come I've missed it.
19:34
<
yegortimoshenko >
do we need another glibc patch
19:34
<
dtzWill >
no surprise, can repro the behavior and the ABI-tag indicates requires 3.2.0
19:35
<
yegortimoshenko >
(or ld.so patch, rather)
19:35
<
vcunat >
yegortimoshenko: trying to persuade glibc-2.26 to work on RHEL 6 (and derivatives)
19:35
<
dtzWill >
(readelf -a translates the ABI-tag neatly, ending with: "Displaying notes found in: .note.ABI-tag
19:35
<
dtzWill >
Owner Data sizeDescription
19:35
<
dtzWill >
GNU 0x00000010NT_GNU_ABI_TAG (ABI version tag)
19:35
<
dtzWill >
OS: Linux, ABI: 3.2.0
19:35
<
dtzWill >
oh jeepers sorry meant to just paste that last line O:)
19:36
FRidh has quit [(Quit: Konversation terminated!)]
19:36
FRidh has joined joined #nixos-dev
19:37
goibhniu has joined joined #nixos-dev
19:37
FRidh has quit [(Client Quit)]
19:37
FRidh has joined joined #nixos-dev
19:39
<
yegortimoshenko >
vcunat: have you tried patching sysdeps/unix/sysv/linux/configure.ac L61?
19:40
<
vcunat >
yegortimoshenko: my plan was to only allow 2.6.32 explicitly
19:41
<
vcunat >
to decrease the likelihood the checks won't fire with some other kernels that don't have so many backported features as RHEL ones
19:42
<
gchristensen >
rhel's kernels are such a nightmare
19:42
<
Dezgeg >
pronounced r-hell
19:42
<
gchristensen >
bingo
19:43
<
vcunat >
heh, my superior worked at Red Hat a year ago :-)
19:43
<
yegortimoshenko >
glibc is a real nightmare, to patch, at the very least. it's arcane.
19:43
<
vcunat >
I'll work it out somehow
19:44
<
yegortimoshenko >
that line that Dezgeg pointed to is supposed to just check for ABI tag. instead, it's...
19:44
<
vcunat >
I suppose I'll leverage dependency rewriting for testing, because recompiling gcc on each iteration is just painful
19:45
<
vcunat >
yes, this computes `osversion` from the ELF header and compares it
19:45
<
Dezgeg >
I guess instead of hello you can build something from the bootstrap stages
19:45
<
vcunat >
(probably)
19:45
<
yegortimoshenko >
sometimes i wish everyone would use musl libc
19:46
<
vcunat >
hmm, right, the first binary compiled with glibc :-)
19:47
peti has quit [(Quit: x-mas vacation)]
19:47
<
vcunat >
tomorrow I can finish this into something reasonable and working, probably
19:47
<
gchristensen >
wow, so cool :D
19:48
<
vcunat >
it's fortunate I'm on vacation
19:51
FRidh has quit [(Quit: Konversation terminated!)]
19:52
FRidh has joined joined #nixos-dev
19:52
FRidh has quit [(Client Quit)]
19:52
FRidh has joined joined #nixos-dev
19:56
<
yegortimoshenko >
(IBus fix)
19:57
JosW has quit [(Quit: Konversation terminated!)]
20:02
<
Dezgeg >
fwiw, I don't think musl code is that great either
20:05
<
Sonarpulse >
with the timestamps
20:05
<
Sonarpulse >
have something to do with setup hooks being run in a slightly different order
20:05
<
Sonarpulse >
real nightmare to debug :(
20:06
FRidh has quit [(Quit: Konversation terminated!)]
20:07
FRidh has joined joined #nixos-dev
20:07
<
vcunat >
right, we have to write a completely new libc, in rust I guess ;-)
20:08
<
gchristensen >
sgtm
20:09
<
Sonarpulse >
somebody was incrementally doing things with musl and rust
20:22
FRidh has quit [(Quit: Konversation terminated!)]
20:22
FRidh has joined joined #nixos-dev
20:36
Guest32460 is now known as stqism
20:37
stqism is now known as Guest85011
20:38
Guest85011 is now known as stqism
20:38
stqism has quit [(Changing host)]
20:38
stqism has joined joined #nixos-dev
20:39
FRidh has quit [(Quit: Konversation terminated!)]
20:40
FRidh has joined joined #nixos-dev
20:41
<
bgamari >
Sonarpulse, I just added SOURCE_DATE_EPOCH to workaround the issue
20:41
<
Sonarpulse >
bgamari: hmm
20:41
<
Sonarpulse >
well that's good
20:41
<
bgamari >
seems to work
20:41
<
Sonarpulse >
but I worry the larger ordering problem should be fixed
20:42
<
bgamari >
I'm just in hack-and-slash mode at the moment
20:42
<
Sonarpulse >
sure, no worries
20:42
<
bgamari >
needed to get things running asap
20:42
<
bgamari >
Sonarpulse, for the record, I have a cut at reworking the ghc expression to properly cross-compile
20:42
<
Sonarpulse >
bgamari: oh i had that
20:42
<
Sonarpulse >
cross-elegant in the obsidian nixpkgs repo
20:43
<
bgamari >
well, it's probably more correct than mine is
20:43
<
Sonarpulse >
sorry I didn't say!
20:43
<
bgamari >
quite alright
20:43
<
Sonarpulse >
GHC is weird cause it uses CC as CC_FOR_BUILD :D
20:43
<
Sonarpulse >
or something like that
20:43
<
Sonarpulse >
I mentioned it once
20:43
<
Sonarpulse >
we should fix that :D
20:45
<
bgamari >
that is very true
20:45
<
bgamari >
I have cross-compiled GHC before
20:45
<
bgamari >
but didn't realize how odd it was until I tried to fix the nix expression
20:50
<
Sonarpulse >
bgamari: I think it's from the perspective of stage 2
20:50
<
Sonarpulse >
so in that sense its not totally wrong
20:50
<
Sonarpulse >
I forget if I said this, but I hope we can have a canadian cross CI job
20:51
<
Sonarpulse >
build != host != target, to ensure that all the variables are used correctly
20:51
<
bgamari >
that would be nice
20:51
<
Sonarpulse >
(single stage canadian cross, no TH is fine)0
20:51
FRidh has quit [(Quit: Konversation terminated!)]
20:51
<
Sonarpulse >
so need a (G)HC (G)HC_FOR_BUILD and (G)HC_FOR_HOST
20:52
FRidh has joined joined #nixos-dev
20:52
<
Sonarpulse >
*_FOR_TARGET
21:01
ma27 has quit [(Ping timeout: 265 seconds)]
21:07
FRidh has quit [(Quit: Konversation terminated!)]
21:07
FRidh has joined joined #nixos-dev
21:10
orivej has quit [(Ping timeout: 240 seconds)]
21:13
yegortimoshenko has quit [(Ping timeout: 264 seconds)]
21:21
<
bgamari >
Sonarpulse, right
21:21
<
bgamari >
opening a ghc ticket about this would be helpful
21:22
<
Sonarpulse >
bgamari: i'm about to head to airport now, but maybe I'll do it there :)
21:24
vcunat has quit [(Quit: Leaving.)]
21:28
<
bgamari >
Sonarpulse, thanks!
21:28
<
bgamari >
safe travels!
21:32
Sonarpulse has quit [(Ping timeout: 264 seconds)]
21:52
FRidh has quit [(Quit: Konversation terminated!)]
21:52
FRidh has joined joined #nixos-dev
22:17
orivej has joined joined #nixos-dev
22:22
FRidh has quit [(Quit: Konversation terminated!)]
22:22
yegortimoshenko has joined joined #nixos-dev
22:22
FRidh has joined joined #nixos-dev
23:06
taktoa has joined joined #nixos-dev
23:07
FRidh has quit [(Quit: Konversation terminated!)]
23:07
FRidh has joined joined #nixos-dev
23:13
taktoa has quit [(Read error: Connection reset by peer)]
23:21
FRidh has quit [(Quit: Konversation terminated!)]
23:21
FRidh has joined joined #nixos-dev
23:35
laggy_wifi has quit [(Read error: Connection reset by peer)]
23:35
infinisil has joined joined #nixos-dev
23:36
laggy_wifi has joined joined #nixos-dev
23:36
FRidh has quit [(Remote host closed the connection)]
23:36
FRidh has joined joined #nixos-dev
23:38
FRidh has quit [(Client Quit)]
23:38
FRidh has joined joined #nixos-dev
23:51
FRidh has quit [(Quit: Konversation terminated!)]
23:52
FRidh has joined joined #nixos-dev