//After failing to compile llvm-gcc for MIPS, i decided to cross-compile gcc-4.24 which llvm-gcc is based on and then hack crossdev and toolchain eclass to compile llvm-gcc But crossdev --g 4.2.3 --without-headers mips-pc-linux-gnu crossdev --g 4.2.4 --without-headers mips-pc-linux-gnu both fail sayin undefined reference to `TARGET_R10K_SPECEX' when compilin gcc-stage1 I enclose the 2 files which crossdev suggests
Created attachment 171704 [details] the 2 files made by crossdev/emerge
Caused by patches 92 and 93 from the gcc-4.2.4 gentoo patch archive.
(In reply to comment #2) > Caused by patches 92 and 93 from the gcc-4.2.4 gentoo patch archive. found patch 92, but not 93 =================== ebuild log start ================== * 74_all_sh-pr24836.patch ... [ ok ] * 90_all_mips-add-march-r10k.patch ... [ ok ] * 91_all_mips-ip28_cache_barriers-v4.patch ... [ ok ] * 92_all_mips-pthread-with-shared.patch ... [ ok ] * Done with patching * Applying uClibc patches ... * 90_all_100-uclibc-conf.patch ... [ ok ] * 90_all_103-uclibc-conf-noupstream.patch ... =================== ebuild log end ==================
(In reply to comment #3) > (In reply to comment #2) > > Caused by patches 92 and 93 from the gcc-4.2.4 gentoo patch archive. > > found patch 92, but not 93 > > =================== ebuild log start ================== > * 74_all_sh-pr24836.patch ... > [ ok ] > * 90_all_mips-add-march-r10k.patch ... > [ ok ] > * 91_all_mips-ip28_cache_barriers-v4.patch ... > [ ok ] > * 92_all_mips-pthread-with-shared.patch ... > [ ok ] > * Done with patching > * Applying uClibc patches ... > * 90_all_100-uclibc-conf.patch ... > [ ok ] > * 90_all_103-uclibc-conf-noupstream.patch ... > =================== ebuild log end ================== > Sorry, it's the (broken) R10K support, so patches 90 and 91.
Created attachment 172065 [details] ebuild which fixes the problem Zapping the two sick patches and forcing earlier binutils (to walk-around bug no. 229173) solved the problem crossdev --g 4.2.4-r1 --b 2.18-r1 --without-headers mips-pc-linux-gnu crossdev was successful, the new compiler produces executables for mips{1,2,3} i enclose the hacked ebuild gcc-4.2.4-r1.ebuild (it is only few lines longer than original gcc-4.2.4-r1.ebuild) i leave the bug status unchanged
use gcc-4.3.3
Is this still a problem with gcc-4.3?
Created attachment 313997 [details] sys-devel/gcc-4.2.4-r01.4 build log from Gentoo Prefix This failure occurs on Gentoo Prefix. Currently, the Gentoo Prefix bootstrap process requires GCC 4.2.x due to dependencies added in later versions. I would like to add a MIPS profile to Getnoo Prefix, so this needs to be fixed. This issue occurs consistently on gcc42.fsffrance.org
91_all_mips-ip28_cache_barriers-v4.patch has been dropped from 4.3+. assuming this is fixed as a result.