!pbdtvoHxUGLhcEvnlu:nixos.org

Exotic Nix Targets

328 Members
104 Servers

Load older messages


SenderMessageTime
14 Jan 2024
@samueldr:matrix.orgsamueldrand I had to deal with it, but it wasn't that much of a deal, since I had their SDK to ape21:47:31
@samueldr:matrix.orgsamueldr
for PROG in ''${PROGS[@]}; do
  ln -sf ${binutils}/bin/i386-unknown-gnu-$PROG $PROG
done
21:47:40
@samueldr:matrix.orgsamueldrstuff like that I think you meant?21:47:48
@samueldr:matrix.orgsamueldroh, and for the new folks reading today: there is no stakes here... I'm doing it for the fun of deepening my understanding of non-trivial cross21:48:19
@trofi:matrix.orgtrofi

Yeah, and lib paths like

+if tc_version_is_at_least 3.4.0 ; then
+       LIBPATH=${TOOLCHAIN_LIBPATH:-${PREFIX}/lib/gcc/${CTARGET}/${GCC_CONFIG_VER}}
+else
+       LIBPATH=${TOOLCHAIN_LIBPATH:-${PREFIX}/lib/gcc-lib/${CTARGET}/${GCC_CONFIG_VER}}
+fi
21:50:28
@samueldr:matrix.orgsamueldr *
cd lib/gcc-lib/i386-unknown-gnu/$version
# ...
for PROG in ''${PROGS[@]}; do
  ln -sf ${binutils}/bin/i386-unknown-gnu-$PROG $PROG
done
21:50:53
@samueldr:matrix.orgsamueldr *
cd $out/lib/gcc-lib/i386-unknown-gnu/$version
# ...
for PROG in ''${PROGS[@]}; do
  ln -sf ${binutils}/bin/i386-unknown-gnu-$PROG $PROG
done
21:51:04
@samueldr:matrix.orgsamueldryeah, added some context21:51:12
@samueldr:matrix.orgsamueldrknowing that might have allowed me to try a newer gcc in the "non-nixpkgs" setup... still might allow21:51:42
@samueldr:matrix.orgsamueldr though I have good enough hints to know that newer gcc should also just work 21:51:59
@samueldr:matrix.orgsamueldr https://github.com/samueldr/nixpkgs/commits/wip/brightv-cross 22:31:53
@samueldr:matrix.orgsamueldrjust finished looking/trying/packaging22:32:11
@samueldr:matrix.orgsamueldrlast commit (empty) has the error in its message22:32:32
@samueldr:matrix.orgsamueldrwhich was where I was at, approximately, when trying stuff out yesterday22:32:45
@samueldr:matrix.orgsamueldr(though I don't remember if I hit that within Nixpkgs, or while trying to hapazardly update the non-nixpkgs-cross gcc)22:33:59
@samueldr:matrix.orgsamueldrI'm not discounting that it could be the libc exposing its headers / libraries wrong, what I needed to check next is the probably causes of the failures for this check, which initial search yesterday implied could be building a program and not just running cpp?22:34:42
@samueldr:matrix.orgsamueldrthe sdk bits here is missing some bits, which are in the os-dependent part of the SDK22:36:12
@trofi:matrix.orgtrofi

I think old autoconf always used /lib/cpp. For local vanilla gcc shell I locally use the following hack:

      # Add /lib/cpp symlink. Used by profiledbootstrap.
      # Can be removed once gcc rebases against autoconf with
      # b560f0a657 "AC_PROG_*CPP: Try ‘cpp’ before ‘/lib/cpp’" fix
      # which is in 2.70 and later.
      (pkgs.runCommand "mk-lib-cpp" {} ''
        mkdir -p $out/lib
        ln -s ${stdenv.cc}/bin/cpp $out/lib/
      '')
22:36:12
@samueldr:matrix.orgsamueldrthat's against gcc 12 and Nixpkgs22:37:21
@samueldr:matrix.orgsamueldrat the very least, the common parts are missing the specs file describing (AFAIUI) the proper way to link to their crt* bits22:38:53
@trofi:matrix.orgtrofi Yeah, nixpkgs breaks quite a few rules when it builds early libgcc. It tries to pull libc's headers and attemts at linking shared library even in the absence of libc. 22:39:09
@raitobezarius:matrix.orgraitobezariusI'm trying to build your stuff22:49:32
@raitobezarius:matrix.orgraitobezarius Alas, I will leave it to trofi for this part, because I'm not really proficient in GCC in nixpkgs 22:51:02
@raitobezarius:matrix.orgraitobezariusOnly LLVM tbh22:51:04
@trofi:matrix.orgtrofiI'm building it as well :)22:51:15
@raitobezarius:matrix.orgraitobezarius(but I'm interested into following and trying and learning about it more :))22:51:15
@samueldr:matrix.orgsamueldrit might be the structure of the libc package that is at fault here22:51:28
@samueldr:matrix.orgsamueldrhandling some other misc. stuff at the moment, but I'll try a few things to hopefully fix that22:52:06
@trofi:matrix.orgtrofi Yeah, looks like in-place gcc... -E -traditional-cpp fails with conftest.c:13:2: fatal error: assert.h: No such file or directory before it falls back to /lib/cpp. Try to add an assert.h into a root folder. 23:02:23
@trofi:matrix.orgtrofi * Yeah, looks like in-place gcc... -E -traditional-cpp fails with conftest.c:13:2: fatal error: assert.h: No such file or directory before it falls back to /lib/cpp. Try to add an assert.h into a root folder of your libc headers. 23:02:41

Show newer messages


Back to Room ListRoom Version: 6