Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 6138 - GCC3 can not be compiled for cross-compiling (i386-coff)
Summary: GCC3 can not be compiled for cross-compiling (i386-coff)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GCC Porting (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Matthew Kennedy (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-08-07 04:48 UTC by Sven Blumenstein (RETIRED)
Modified: 2003-02-04 19:42 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sven Blumenstein (RETIRED) gentoo-dev 2002-08-07 04:48:47 UTC
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 ;)
Comment 1 Sven Blumenstein (RETIRED) gentoo-dev 2002-08-07 15:23:07 UTC
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 .

Comment 2 Matthew Kennedy (RETIRED) gentoo-dev 2002-10-21 03:12:26 UTC
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.