| 14 Jan 2024 |
@samueldr:matrix.org | the only important part is the libc | 21:41:06 |
@samueldr:matrix.org | and I verified that gcc is unmodified, the tarball, once extracted, matches entirely (except docs) to the 2.95.2 checkout | 21:41:45 |
@samueldr:matrix.org | I think knowing that "it's 'okay'" to force a triplet by hacking together Nixpkgs helps me here | 21:42:24 |
@trofi:matrix.org | gentoo 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/gentoo | 21:43:04 |
raitobezarius | the 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 | I'll know at this point in time | 21:43:31 |
@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 | aha, nice! | 21:44:33 |
@samueldr:matrix.org | but it's not relying on Nixpkgs to do cross | 21:44:35 |
@samueldr:matrix.org | it's "just" the packages and some environmental hacking to make it work like their "SDK" does | 21:45:07 |
@samueldr:matrix.org | it's relatively straightforward, I think | 21:45:16 |
@trofi:matrix.org | nod | 21:45:21 |
@samueldr:matrix.org | I meant, their SDK is straightforward | 21:45:35 |
@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 | http://www.chokanji.com/developer/download.html | 21:46:41 |
@samueldr:matrix.org | knowing that, I understand that I was observing | 21:47:17 |
@samueldr:matrix.org | and I had to deal with it, but it wasn't that much of a deal, since I had their SDK to ape | 21:47:31 |
@samueldr:matrix.org | for PROG in ''${PROGS[@]}; do
ln -sf ${binutils}/bin/i386-unknown-gnu-$PROG $PROG
done
| 21:47:40 |
@samueldr:matrix.org | stuff like that I think you meant? | 21:47:48 |
@samueldr:matrix.org | oh, 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 cross | 21:48:19 |
@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 | * 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 | * 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 |