From 4787efe6ce42a3bffb6820d3a29c02072e205900 Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Thu, 8 Feb 2018 16:32:24 +0100 Subject: some stage 1 cleanup --- i486-stage1/gcc/DESCR | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) (limited to 'i486-stage1/gcc/DESCR') diff --git a/i486-stage1/gcc/DESCR b/i486-stage1/gcc/DESCR index 4947ec8..c2d96ee 100644 --- a/i486-stage1/gcc/DESCR +++ b/i486-stage1/gcc/DESCR @@ -1,6 +1,15 @@ # prepare configure for cross-compilation sed -i "s@./configure@./configure --host=$TARGET_ARCH --build=$BUILD_ARCH@g" PKGBUILD +# TODO: how to make this a hook for the stage1 builder? +# aftermatch for gcc/binutils +#collect2: unable to find ld +#=> this is the cross compiled gcc for i486 inside the chroot, it expects +# its platform dependend stuff in /usr/lib/gcc/i486-unknown-linux-gnu/7.2.0 +#=> we can temporarily fix this: +#sudo ln -s /usr/bin/ld $STAGE1_CHROOT/usr/lib/gcc/i486-unknown-linux-gnu/7.2.0/ld + + # TODO from here: make it all patches, once our own PKGBUILD works # gcc @@ -40,3 +49,22 @@ sed -i "s@./configure@./configure --host=$TARGET_ARCH --build=$BUILD_ARCH@g" PKG # disable all languages but C and C++ #use gcc-cross-PKGBUILD +# more TODOs: +#rm "$pkgdir"/usr/share/info/{gccgo,gfortran.info} +# rm: cannot remove ???/home/cross/build/gcc/pkg/gcc/usr/share/info/gccgo???: No such file or directory +# rm "$pkgdir"/usr/share/info/{gccgo,gfortran.info} +#https://bugs.archlinux.org/task/57421 +#/home/cross/x-tools/i486-unknown-linux-gnu/lib/gcc/i486-unknown-linux-gnu/4.9.4/../../../../i486-unknown-linux-gnu/bin/ld: cannot find -lquadmath +#collect2: error: ld returned 1 exit status +#libtool: install: error: relink `libgfortran.la' with the above command before installing it +#make: *** [Makefile:1331: install-toolexeclibLTLIBRARIES] Error 1 +#make: Leaving directory '/home/cross/build/gcc/src/gcc-build/i486-unknown-linux-gnu/libgfortran' +#==> ERROR: A failure occurred in package_gcc-libs(). +# Aborting... +#=> libquadmath must be retooled before libfortran +#=> nope libfortran simply fails to relink => remove it +# +#install: cannot stat ???/home/cross/build/gcc/src/gcc/COPYING.RUNTIME???: No such file or directory +#=> sweet, remove it +# +#test.c:1:10: fatal error: stdio.h: No such file or directory -- cgit v1.2.3-54-g00ecf