!ayCRiZriCVtuCUpeLp:nixos.org

Nix Cross Compiling

515 Members
113 Servers

Load older messages


SenderMessageTime
9 Oct 2021
@jcie74:matrix.orgpie_ gdb's info sharedlibary always screws me up
the star in the read column means NOT read
00:02:23
@jcie74:matrix.orgpie_ https://gcc-help.gcc.gnu.narkive.com/LHU6EUxd/compiling-only-libstdc-v3-with-debugging-symbols lead me to https://gcc.gnu.org/onlinedocs/libstdc++/manual/configure.html , which suggests adding --enable-libstdcxx-debug to the configureFlags for gcc might get me what i want 00:32:21
@jcie74:matrix.orgpie_

that manual page also gives this suggestion:

Note this make command, executed in the build directory, will do much the same thing, without the configuration difference and without building everything twice: make CXXFLAGS='-g3 -O0 -fno-inline' all

00:32:49
@jcie74:matrix.orgpie_I'm not quite sure that implies what I'm saying; but it would be nice if we could build libstdc++ in a separate derivation. (somehow noting the tight coupling of a c++ stdlib and its compiler00:33:35
@jcie74:matrix.orgpie_ * I'm not quite sure that implies what I'm saying; but it would be nice if we could build libstdc++ in a separate derivation. (somehow noting the tight coupling of a c++ stdlib and its compiler)00:33:37
@sternenseemann:systemli.orgsterni
In reply to @siraben:matrix.org
Does Nix support Canadian cross-compilation?
it's doable, but there's no ready made solution afaik
09:32:38
@sternenseemann:systemli.orgsterni John Ericson talked about this 09:34:08
@jcie74:matrix.orgpie_/nix/store/9lz65rckh7zhg4j76qzmiy0vr9hb0wa1-gcc-10.3.0/lib/debug/libstdc++.so.6 gets created but readelf still shows no debug sections on it...12:29:07
@jcie74:matrix.orgpie_

Anyone see anything wrong with this?

let
  nixpkgs = import (import ./nix/sources.nix).nixpkgs {};
  gcc = nixpkgs.gcc.override (o: { cc = nixpkgs.gcc.cc.overrideAttrs (o: {
      dontStrip = true;
      configureFlags = o.configureFlags ++ [ "--enable-libstdcxx-debug" "--enable-languages=c++" ];
      hardeningDisable = [ "all" ];
      });});
in
with nixpkgs; mkShell {
  buildInputs  = [
    git
    niv
    valgrind
    gcc
    gdb
    cmake
    ];
  LD_LIBRARY_PATH = "${gcc.cc}/lib/debug";
  hardeningDisable = [ "all" ]; # clear extraneous compiler flags, I want to add things manually myself.
  }
12:34:21
@Ericson2314:matrix.orgJohn Ericson siraben if you call stage.nix yourself it should work 16:46:25
@jcie74:matrix.orgpie_Can I disable separated outputs on gcc?21:32:35
@jcie74:matrix.orgpie_

(I think) When I try to add keepTreeHook, I run into:

cycle detected in the references of '/nix/store/bxspqrcrbqw9sbj3ap9rdrk4fpi8150h-gcc-10.3.0-lib' from '/nix/store/xrizkssnx1m7c0z1fji9qxd7kfd333jr-gcc-10.3.0'
error: build of '/nix/store/ck1vxcqvqzn488njy9iwhy8b90jznyd7-gcc-10.3.0.drv', '/nix/store/r6ipjr4ivr1lc61c2yxsk7l6xj9mdygs-gcc-wrapper-10.3.0.drv' failed
21:33:27
11 Oct 2021
@qyliss:fairydust.spaceAlyssa RossWe really need some mechanism to disable optional dependencies on systemd for musl09:53:35
@qyliss:fairydust.spaceAlyssa Rossor I suppose maybe we could try OpenEmbedded's patches10:12:30
@qyliss:fairydust.spaceAlyssa Rossnot a friendly response last time that was tried though D: https://github.com/NixOS/nixpkgs/pull/3771510:17:58
@symphorien:xlumurb.eusymphorienI saw a pr that introduced somthing to replace udev10:42:51
@symphorien:xlumurb.eusymphorienIf we reverted to actually use udev as an input instead of systemd when it makes sens, we could overlay udev with this replacement when on musl10:44:04
@qyliss:fairydust.spaceAlyssa Rossif you could find that PR that would be very interesting to me!10:51:29
@qyliss:fairydust.spaceAlyssa RossI was just packaging libudev-zero, which looks like it'll solve my problem, but there's no PR for that so it can't have been what you saw10:51:59
@symphorien:xlumurb.eusymphorien ah it was libudev zero as well: https://github.com/NixOS/nixpkgs/pull/136107/files#diff-7f4729ed07e44b3c1b72cd23f20173d664231e0ccac4709648176f389db17e9c 11:14:17
@qyliss:fairydust.spaceAlyssa Rossah, I can see why I didn't notice that with the title, lol11:15:27
@symphorien:xlumurb.eusymphorien(there are probably a lot of good things in this PR, but forcing a clang toolchain for icu and postgresql just to make qt work might be a little too hacky11:16:21
@symphorien:xlumurb.eusymphorien* (there are probably a lot of good things in this PR, but forcing a clang toolchain for icu and postgresql just to make qt work might be a little too hacky)11:16:22
@qyliss:fairydust.spaceAlyssa Rossyeah, this is the sort of thing that should be 10 smaller PRs11:16:51
12 Oct 2021
@sternenseemann:systemli.orgsterni trofi: https://github.com/nixos/nixpkgs/commit/199b7c505b0390429b08edf68552e8a6ff4a08ce broke pkgsStatic.llvmPackages.stdenv, patch doesn't apply there 11:33:00
@sternenseemann:systemli.orgsterninot sure if static or musl is the problem yet11:33:21
@sternenseemann:systemli.orgsternimaybe the patch touches generated code?11:33:27
@sternenseemann:systemli.orgsterni hm pkgsMusl.llvm's tests fail, is that new? 12:49:48
@trofi:matrix.orgtroficonditional patches--. will have a look in a few hours. probably musl patches touch libsanitizer's portability header as well and need minor tweaks.13:20:18
@sternenseemann:systemli.orgsterniah right looked in the wrong place (for 10)13:20:59

There are no newer messages yet.


Back to Room ListRoom Version: 6