Hi! I need to add i386-coff output to GCC3. Because there is not USE flag for that (correct me if I am wrong) I modified the gcc-3.1.1-r1 ebuild file like this: ${S}/configure --prefix=${LOC} \ --mandir=${LOC}/share/man \ --infodir=${LOC}/share/info \ --enable-shared \ --host=${CHOST},i386-coff \ --build=${CHOST},i386-coff \ --target=${CHOST},i386-coff \ --with-system-zlib \ --enable-languages=${gcc_lang} \ --enable-threads=posix \ --enable-long-long \ --disable-checking \ --enable-cstdio=stdio \ --enable-clocale=generic \ --enable-version-specific-runtime-libs \ --with-gxx-include-dir=${STDCXX_INCDIR} \ --with-local-prefix=${LOC}/local \ ${myconf} || die The configure runs fine (so using comma is correct) but it fails at this point: [snip] Fixed: mozilla/js/fdlibm.h Applying ctrl_quotes_def to mozilla/js/jsstr.h Applying machine_name to mozilla/nspr/md/_darwin.h Fixed: mozilla/nspr/md/_darwin.h Quoted includes in mozilla/nspr/md/_darwin.h Applying io_quotes_def to mozilla/nspr/md/_macos.h Applying machine_name to mozilla/nspr/md/_rhapsody.h Fixed: mozilla/nspr/md/_rhapsody.h Quoted includes in mozilla/nspr/md/_rhapsody.h Applying machine_name to mozilla/nspr/md/_solaris.h Fixed: mozilla/nspr/md/_solaris.h Quoted includes in mozilla/nspr/md/_solaris.h Applying io_quotes_def to mozilla/nspr/md/_win16.h Applying machine_name to mozilla/zlib/zconf.h Fixed: mozilla/zlib/zconf.h Applying machine_name to mozilla/nss/zconf.h Fixed: mozilla/nss/zconf.h Quoted includes in mozilla/nss/zconf.h Cleaning up unneeded directories: fixincludes is done if [ "/usr/include" = "/usr/i686-pc-linux-gnu,i386-coff/sys-include" ] \ && [ -d /usr/i686-pc-linux-gnu,i386-coff/sys-include ]; then \ if [ -d /usr/lib ] ; then true ; else mkdir /usr/lib ; fi; \ if [ -d /usr/lib/gcc-lib ] ; then true ; else mkdir /usr/lib/gcc-lib; fi; \ if [ -d /usr/lib/gcc-lib/i686-pc-linux-gnu,i386-coff ] ; then true ; else mkdi r /usr/lib/gcc-lib/i686-pc-linux-gnu,i386-coff ; fi; \ if [ -d /usr/lib/gcc-lib/i686-pc-linux-gnu,i386-coff/3.1.1 ] ; then true ; els e mkdir /usr/lib/gcc-lib/i686-pc-linux-gnu,i386-coff/3.1.1 ; fi; \ else true; fi make[2]: *** Waiting for unfinished jobs.... echo timestamp > stmp-fixinc make[2]: *** Waiting for unfinished jobs.... make[2]: Leaving directory `/var/tmp/portage/gcc-3.1.1-r1/work/build/gcc' make[1]: *** [stage1_build] Error 2 make[1]: Leaving directory `/var/tmp/portage/gcc-3.1.1-r1/work/build/gcc' make: *** [bootstrap-lean] Error 2 !!! ERROR: The ebuild did not complete successfully. !!! Function src_compile, Line 21, Exitcode 2 !!! (no error message) !!! emerge aborting on /usr/portage/sys-devel/gcc/gcc-3.1.1-r1.ebuild . root@antares gcc # If I made something wrong, please dont blame me ;)
Following a suggestion from Cardoe, I didnt touch the ebuild and just changed CHOST in /etc/make.conf to CHOST="i386-coff" thats the error I get now: Applying machine_name to mozilla/zlib/zconf.h Fixed: mozilla/zlib/zconf.h Applying machine_name to mozilla/nss/zconf.h Fixed: mozilla/nss/zconf.h Quoted includes in mozilla/nss/zconf.h Cleaning up unneeded directories: fixincludes is done if [ "/usr/include" = "/usr/i386-coff/sys-include" ] \ && [ -d /usr/i386-coff/sys-include ]; then \ if [ -d /usr/lib ] ; then true ; else mkdir /usr/lib ; fi; \ if [ -d /usr/lib/gcc-lib ] ; then true ; else mkdir /usr/lib/gcc-lib; fi; \ if [ -d /usr/lib/gcc-lib/i386-coff ] ; then true ; else mkdir /usr/lib/gcc-lib/i386-coff ; fi; \ if [ -d /usr/lib/gcc-lib/i386-coff/3.1.1 ] ; then true ; else mkdir /usr/lib/gcc-lib/i386-coff/3.1.1 ; fi; \ else true; fi make[2]: *** Waiting for unfinished jobs.... echo timestamp > stmp-fixinc make[2]: *** Waiting for unfinished jobs.... make[2]: Leaving directory `/var/tmp/portage/gcc-3.1.1-r1/work/build/gcc' make[1]: *** [stage1_build] Error 2 make[1]: Leaving directory `/var/tmp/portage/gcc-3.1.1-r1/work/build/gcc' make: *** [bootstrap-lean] Error 2 !!! ERROR: The ebuild did not complete successfully. !!! Function src_compile, Line 21, Exitcode 2 !!! (no error message) !!! emerge aborting on /usr/portage/sys-devel/gcc/gcc-3.1.1-r1.ebuild .
generalized cross-compilation capabilities are coming soon to a portage near you. so i will resolve this as wontfix, as the new capabilities should fix this.