I'm in the process of developing a 32bit userland profile for amd64. It generally works great, but it needs a bi-arch gcc in the i686 CHOST domain. I have a patched toolchain.eclass that provides this. Is there any way this could be applied to the main toolchain.eclass?
Created attachment 188701 [details, diff] patch to allow a bi-arch gcc on i686
the last hunk looks good, thanks as for the first hunk, how about: if [[ ${CTARGET} == *linux* ]] && is_multilib && [[ ${GCCMAJOR}.${GCCMINOR} > 4.2 ]] then case $(tc-arch) in sparc|x86) confgcc="${confgcc} --enable-targets=all" esac fi try to keep the arch parsing logic in tc-arch to avoid duplication and/or missing cases
Created attachment 189049 [details, diff] New toolchain.eclass patch with suggested changes Okay, here's a new patch, incorporating your suggestions.
Created attachment 192600 [details, diff] Patch to allow 32/64-bit gcc on a 32bit host Here's the current patch I have. It works great for me. It incorporates the !crosscompile fix from a few days ago, and disables the default setting of i686 for multilib, since that breaks gcc -m64 without -march=nocona/core2/k8.
should be deployed now *** This bug has been marked as a duplicate of bug 349405 ***