!pbdtvoHxUGLhcEvnlu:nixos.org

Exotic Nix Targets

302 Members
92 Servers

You have reached the beginning of time (for this room).


SenderMessageTime
14 Jan 2024
@samueldr:matrix.org@samueldr:matrix.orgthe only important part is the libc21:41:06
@samueldr:matrix.org@samueldr:matrix.organd I verified that gcc is unmodified, the tarball, once extracted, matches entirely (except docs) to the 2.95.2 checkout21:41:45
@samueldr:matrix.org@samueldr:matrix.orgI think knowing that "it's 'okay'" to force a triplet by hacking together Nixpkgs helps me here21:42:24
@trofi:matrix.org@trofi:matrix.orggentoo 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.org@samueldr:matrix.orgI'll know at this point in time21:43:31
@samueldr:matrix.org@samueldr:matrix.org trofi you missed it yesterday, I think, but I have a hacked-up "improper" setup building their samples already 21:44:21
@trofi:matrix.org@trofi:matrix.orgaha, nice!21:44:33
@samueldr:matrix.org@samueldr:matrix.orgbut it's not relying on Nixpkgs to do cross21:44:35
@samueldr:matrix.org@samueldr:matrix.orgit's "just" the packages and some environmental hacking to make it work like their "SDK" does21:45:07
@samueldr:matrix.org@samueldr:matrix.orgit's relatively straightforward, I think21:45:16
@trofi:matrix.org@trofi:matrix.org nod 21:45:21
@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

Show newer messages


Back to Room ListRoom Version: 6