!pbdtvoHxUGLhcEvnlu:nixos.org

Exotic Nix Targets

302 Members
92 Servers

Load older messages


SenderMessageTime
14 Jan 2024
@samueldr:matrix.org@samueldr:matrix.org I meant, their SDK is straightforward 21:45:35
@trofi:matrix.org@trofi:matrix.org gcc before 3.3 had a slightly different bin directory layout from cross-compiling. i wonder if you had to deal with it. 21:45:38
@samueldr:matrix.org@samueldr:matrix.org http://www.chokanji.com/developer/download.html 21:46:41
@samueldr:matrix.org@samueldr:matrix.orgknowing that, I understand that I was observing21:47:17
@samueldr:matrix.org@samueldr:matrix.organd 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.org@samueldr:matrix.org
for PROG in ''${PROGS[@]}; do
  ln -sf ${binutils}/bin/i386-unknown-gnu-$PROG $PROG
done
21:47:40
@samueldr:matrix.org@samueldr:matrix.orgstuff like that I think you meant?21:47:48
@samueldr:matrix.org@samueldr:matrix.orgoh, 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.org@trofi:matrix.org

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.org@samueldr:matrix.org *
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.org@samueldr:matrix.org *
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.org@samueldr:matrix.orgyeah, added some context21:51:12
@samueldr:matrix.org@samueldr:matrix.orgknowing that might have allowed me to try a newer gcc in the "non-nixpkgs" setup... still might allow21:51:42
@samueldr:matrix.org@samueldr:matrix.org though I have good enough hints to know that newer gcc should also just work 21:51:59
@samueldr:matrix.org@samueldr:matrix.org https://github.com/samueldr/nixpkgs/commits/wip/brightv-cross 22:31:53
@samueldr:matrix.org@samueldr:matrix.orgjust finished looking/trying/packaging22:32:11
@samueldr:matrix.org@samueldr:matrix.orglast commit (empty) has the error in its message22:32:32
@samueldr:matrix.org@samueldr:matrix.orgwhich was where I was at, approximately, when trying stuff out yesterday22:32:45
@samueldr:matrix.org@samueldr:matrix.org(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.org@samueldr:matrix.orgI'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.org@samueldr:matrix.orgthe sdk bits here is missing some bits, which are in the os-dependent part of the SDK22:36:12
@trofi:matrix.org@trofi:matrix.org

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.org@samueldr:matrix.orgthat's against gcc 12 and Nixpkgs22:37:21
@samueldr:matrix.org@samueldr:matrix.orgat 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.org@trofi:matrix.org 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.org@trofi:matrix.orgI'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

Show newer messages


Back to Room ListRoom Version: 6