!pbdtvoHxUGLhcEvnlu:nixos.org

Exotic Nix Targets

339 Members
106 Servers

Load older messages


SenderMessageTime
14 Jan 2024
@raitobezarius:matrix.orgraitobezariusthere21:38:50
@raitobezarius:matrix.orgraitobezarius and then you have pkgsCross.btron.hello in theory 21:38:57
@raitobezarius:matrix.orgraitobezarius (modulo the cross stdenv chooser for cc of course) 21:39:05
@raitobezarius:matrix.orgraitobezarius(you need to wire your GCC 2.X there)21:39:09
@raitobezarius:matrix.orgraitobezariusbut yeah if you have a branch, I can easily write patches over it and show you how I see things21:39:39
@samueldr:matrix.orgsamueldrthe gcc is unmodified, and hints I found yesterday points at versions more recent than our oldest still working to produce binaries21:41:02
@samueldr:matrix.orgsamueldrthe only important part is the libc21:41:06
@samueldr:matrix.orgsamueldrand I verified that gcc is unmodified, the tarball, once extracted, matches entirely (except docs) to the 2.95.2 checkout21:41:45
@samueldr:matrix.orgsamueldrI think knowing that "it's 'okay'" to force a triplet by hacking together Nixpkgs helps me here21:42:24
@trofi:matrix.orgtrofigentoo had a somewhat working gcc-2.95.3 to be buildable against a modern toolchain as of 7 years ago, a fix or two might be useful: https://github.com/gentoo/gcc-patches/tree/master/2.95.3/gentoo21:43:04
@raitobezarius:matrix.orgraitobezariusthe libc rerouting can be done by touching the lib/systems/examples.nix and the big switch case we have seen yesterday I believe, is there any other concern you had over libc?21:43:11
@samueldr:matrix.orgsamueldrI'll know at this point in time21:43:31
@samueldr:matrix.orgsamueldr trofi you missed it yesterday, I think, but I have a hacked-up "improper" setup building their samples already 21:44:21
@trofi:matrix.orgtrofiaha, nice!21:44:33
@samueldr:matrix.orgsamueldrbut it's not relying on Nixpkgs to do cross21:44:35
@samueldr:matrix.orgsamueldrit's "just" the packages and some environmental hacking to make it work like their "SDK" does21:45:07
@samueldr:matrix.orgsamueldrit's relatively straightforward, I think21:45:16
@trofi:matrix.orgtrofi nod 21:45:21
@samueldr:matrix.orgsamueldr I meant, their SDK is straightforward 21:45:35
@trofi:matrix.orgtrofi 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.orgsamueldr http://www.chokanji.com/developer/download.html 21:46:41
@samueldr:matrix.orgsamueldrknowing that, I understand that I was observing21:47:17
@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

Show newer messages


Back to Room ListRoom Version: 6