checking whether ldgetname is declared... no checking whether times is declared... yes checking whether sigaltstack is declared... yes checking for struct tms... yes checking for clock_t... yes checking for .preinit_array/.init_array/.fini_array support... yes checking if mkdir takes one argument... no with_multilib_list=m[1-4]* not supported. make[2]: *** [configure-stage1-gcc] Error 1 make[2]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.5.0/work/build' make[1]: *** [stage1-bubble] Error 2 make[1]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.5.0/work/build' make: *** [bootstrap-lean] Error 2 Looks like its due to the 53_all_gcc4-superh-default-multilib.patch patch, since excluding it makes it work.
i imagine 53_all_gcc4-superh-default-multilib.patch needs tweaking
The files were punted on commit $URL
Any thoughts?
does this work any better for you ? sh_multilibs=$(echo $(sed -n -e '/for abi in/,/ do /{s:for abi in::;s:[\\,]: :g;s:; do::;p}' ${srcdir}/config/sh/t-sh)) ;;
i wish i could fix that sed, but i'm unable to decypher it :P with_multilib_list=m1m2m3m4-nofpum4-100-nofpum4-200-nofpum4-400m4-500m4-340m4-300-nofpum4alm4a-nofpu not supported. make[2]: *** [configure-stage1-gcc] Error 1 make[2]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.5.1/work/build' make[1]: *** [stage1-bubble] Error 2 make[1]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.5.1/work/build' make: *** [bootstrap-lean] Error 2 And FYI, running it manually inside the gcc dir, i get this: m1m2m3m4-nofpum4-100-nofpum4-200-nofpum4-400m4-500m4-340m4-300-nofpum4alm4a-nofpu m1m2m2a-nofpu m2em3em4-single-onlym4-100-single-onlym4-200-single-onlym4-300-single-onlym4a-single-only m2em2a-single-only m4-singlem4-100-singlem4-200-singlem4-300-singlem4a-single m4m4-100m4-200m4-300m4a m5-32mediam5-compactm5-32media m5-32media-nofpum5-compact-nofpum5-32media-nofpu
Well, i did the patch wrong, anyway its not going to work. Until now, our patch does: echo t-mlib-sh[1-4]* | sed 's:t-mlib-sh:,m:g;s: ::g' which returns: ,m1,m2,m2a,m2a-nofpu,m2a-single,m2a-single-only,m2e,m3,m3e,m4,m4-nofpu,m4-single,m4-single-only,m4a,m4a-nofpu,m4a-single,m4a-single-only,m4al The new patch you suggested, returns this: m1,m2,m3,m4-nofpu,m4-100-nofpu,m4-200-nofpu,m4-400,m4-500,m4-340,m4-300-nofpu,m4al,m4a-nofpu,m1,m2,m2a-nofpu,m2e,m3e,m4-single-only,m4-100-single-only,m4-200-single-only,m4-300-single-only,m4a-single-only,m2e,m2a-single-only,m4-single,m4-100-single,m4-200-single,m4-300-single,m4a-single,m4,m4-100,m4-200,m4-300,m4a,m5-32media,m5-compact,m5-32media,m5-32media-nofpu,m5-compact-nofpu,m5-32media-nofpu, gcc fails to build with: checking whether sigaltstack is declared... yes checking for struct tms... yes checking for clock_t... yes checking for .preinit_array/.init_array/.fini_array support... yes checking if mkdir takes one argument... no with_multilib_list=m4-100-nofpu not supported. make[2]: *** [configure-stage1-gcc] Error 1 Looking at config.gcc, it only allows these multilibs: for sh_multilib in ${sh_multilibs}; do case ${sh_multilib} in m1 | m2 | m2e | m3 | m3e | \ m4 | m4-single | m4-single-only | m4-nofpu | m4-300 |\ m4a | m4a-single | m4a-single-only | m4a-nofpu | m4al | \ m2a | m2a-single | m2a-single-only | m2a-nofpu | \ m5-64media | m5-64media-nofpu | \ m5-32media | m5-32media-nofpu | \ m5-compact | m5-compact-nofpu) shrug...
try this then: sh_multilibs=$(echo $(sed -n '/case ${sh_multilib} in/,/)/{s:case ${sh_multilib} in::;s: | *:,:g;s:[\\)]::g;p}' gcc/config.gcc) | sed 's: ::g') ;; we need to enable all multilibs by default because building things like the kernel will fail with the "reduced" toolchain. it's easier to build a multilib enabled SuperH toolchain than to require people also install a dedicated kgcc.
Thats a funny one, because it hits itself: # echo $(sed -n '/case ${sh_multilib} in/,/)/{s:case ${sh_multilib} in::;s: | *:,:g;s:[\\)]::g;p}' gcc/config.gcc) | sed 's: ::g' sh[1234]*sh_multilibs=$(echo$(sed-n'//,//{s:case${sh_multilib}in::;s:,*:,:g;s:[]::g;p}'config.gcc,sed's:::g';;sh64*,sh5*sh_multilibs=m5-32media,m5-32media-nofpu,m5-compact,m5-compact-nofpu,m5-64media,m5-64media-nofpu;;m1,m2,m2e,m3,m3e,m4,m4-single,m4-single-only,m4-nofpu,m4-300,m4a,m4a-single,m4a-single-only,m4a-nofpu,m4al,m2a,m2a-single,m2a-single-only,m2a-nofpu,m5-64media,m5-64media-nofpu,m5-32media,m5-32media-nofpu,m5-compact,m5-compact-nofpu
sh_multilibs=$(echo $(sed -n '/^[[:space:]]*case ${sh_multilib} in/,/)/{s:case ${sh_multilib} in::;s: | *:,:g;s:[\\)]::g;p}' gcc/config.gcc) | sed 's: ::g') ;;
The last one worked, however the file to be sed'ed is ${srcdir}/config.gcc instead of gcc/config.gcc
committed then http://sources.gentoo.org/gentoo/src/patchsets/gcc/4.5.0/gentoo/53_all_gcc4-superh-default-multilib.patch?r1=1.1&r2=1.2 http://sources.gentoo.org/gentoo/src/patchsets/gcc/4.5.1/gentoo/53_all_gcc4-superh-default-multilib.patch?r1=1.1&r2=1.2