From: Jeff Mickey <j@codemac.net>
To: "Ludovic Courtès" <ludo@gnu.org>
Cc: help-guix@gnu.org
Subject: Re: Running guix on nixos
Date: Thu, 21 Jan 2016 14:24:59 -0800 [thread overview]
Message-ID: <87y4biy3ic.fsf@nevada.int.iggy.bz> (raw)
In-Reply-To: <874me79uf2.fsf@gnu.org>
* Ludovic Courtès <ludo@gnu.org> [2016-01-21 01:02]:
> guix build -K hello
This fails with the exact same error, it can't build gcc.
g++ -g -DIN_GCC -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wno-format -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -fno-common -DHAVE_CONFIG_H -DGENERATOR_FILE -Wl,-rpath=/nix/store/dbdj046q2ybl01ld56ywr0rkpy91g0xz-glibc-2.22/lib -Wl,-dynamic-linker -Wl,/nix/store/dbdj046q2ybl01ld56ywr0rkpy91g0xz-glibc-2.22/lib/ld-linux-x86-64.so.2 -L/nix/store/df8qyymanigrki2rgcmwbpkygg7c5n2g-libstdc++-4.9.3/lib -o build/genhooks \
build/genhooks.o build/errors.o ../build-x86_64-unknown-linux-gnu/libiberty/libiberty.a
g++ -g -DIN_GCC -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wno-format -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -fno-common -DHAVE_CONFIG_H -DGENERATOR_FILE -Wl,-rpath=/nix/store/dbdj046q2ybl01ld56ywr0rkpy91g0xz-glibc-2.22/lib -Wl,-dynamic-linker -Wl,/nix/store/dbdj046q2ybl01ld56ywr0rkpy91g0xz-glibc-2.22/lib/ld-linux-x86-64.so.2 -L/nix/store/df8qyymanigrki2rgcmwbpkygg7c5n2g-libstdc++-4.9.3/lib -o build/genchecksum \
build/genchecksum.o ../build-x86_64-unknown-linux-gnu/libiberty/libiberty.a
/nix/store/xw7xz3cr8nhw24m6cchiha8g6lslwv1j-binutils-cross-boot0-2.25.1/bin/x86_64-guix-linux-gnu-ld: cannot find -lstdc++
collect2: error: ld returned 1 exit status
Makefile:2532: recipe for target 'build/genhooks' failed
make[3]: *** [build/genhooks] Error 1
make[3]: *** Waiting for unfinished jobs....
/nix/store/xw7xz3cr8nhw24m6cchiha8g6lslwv1j-binutils-cross-boot0-2.25.1/bin/x86_64-guix-linux-gnu-ld: cannot find -lstdc++
collect2: error: ld returned 1 exit status
Makefile:2532: recipe for target 'build/genchecksum' failed
If I look in
/nix/store/df8qyymanigrki2rgcmwbpkygg7c5n2g-libstdc++-4.9.3/lib I see
the following:
$ ls /nix/store/df8qyymanigrki2rgcmwbpkygg7c5n2g-libstdc++-4.9.3/lib
$ ls /nix/store/df8qyymanigrki2rgcmwbpkygg7c5n2g-libstdc++-4.9.3/
include lib lib64 share
$ ls /nix/store/df8qyymanigrki2rgcmwbpkygg7c5n2g-libstdc++-4.9.3/lib64
libstdc++.a libstdc++.a-gdb.py libstdc++.la libsupc++.a libsupc++.la
$
So.. it looks like the lib64 part isn't getting propagated correctly in
the guix build.
> Also, make sure nix-daemon uses pristine chroot builds.
[...]
Yes, had to add nix.useChroot to true in my
/etc/nixos/configuration.nix. God I miss some s-exp.
Thanks for your help! Really appreciate it.
// codemac
next prev parent reply other threads:[~2016-01-21 22:25 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-01-20 21:56 Running guix on nixos Jeff Mickey
2016-01-21 9:02 ` Ludovic Courtès
2016-01-21 22:24 ` Jeff Mickey [this message]
2016-01-22 12:57 ` Ludovic Courtès
2016-01-22 21:43 ` Jeff Mickey
2016-01-23 20:48 ` Ludovic Courtès
2016-01-24 21:58 ` Jeff Mickey
2016-01-25 8:06 ` Ludovic Courtès
2016-01-25 19:29 ` Jeff Mickey
2016-01-25 21:00 ` Leo Famulari
2016-01-26 14:09 ` Ludovic Courtès
2016-01-22 18:45 ` Jeff Mickey
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87y4biy3ic.fsf@nevada.int.iggy.bz \
--to=j@codemac.net \
--cc=help-guix@gnu.org \
--cc=ludo@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.