This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Help Compiling GCC 2.95.1 on solaris 2.6




Hi,

I sent this out a while ago and was hoping for a response. I would
appreciate if anyone on this list has ideas as to why the build did not
work. Thanks,

> Hi,
> 
> I am compiling GCC 2.95.1 on a solaris 2.6 sparc machine.
> 
> I believe stage 2 is completed successfully, but I get the following
> message after that:
> 
>    *** Can only configure for one host and one target at a time.
>    *** Can only configure for one host and one target at a time.
> 
> I configured the system with
> 
> ../gcc-2.95.1/configure --enable-shared --enable-threads --enable-cpp \
>   --enable-version-specific-runtime-libs --enable-languages='c++ java objc' \
>   |& tee -a ../gcc.configure.out
> 
> and started the build with 
> 
> make CFLAGS='-O' LIBCFLAGS='-g -O2' LIBCXXFLAGS='-g -O2 \
>  -fno-implicit-templates' bootstrap |& tee -a ../gcc.build.out
> 
> What am I doing wrong? I would appreciate a reply.
> The last 150 lines of the build are below:
> 
> make[1]: Leaving directory `/home/narendra/Work/solaris/gcc'
> Comparing stage2 and stage3 of the compiler
> make[1]: Entering directory `/home/narendra/Work/solaris/gcc'
> rm -f .bad_compare
> case "compare" in compare | compare-lean ) stage=2 ;; * ) stage=`echo
> compare | 
> sed -e 's,^compare\([0-9][0-9]*\).*,\1,'` ;; esac; \
> for file in *.o; do \
>   tail +16c ./$file > tmp-foo1; \
>   tail +16c stage$stage/$file > tmp-foo2 \
>     && (cmp tmp-foo1 tmp-foo2 > /dev/null 2>&1 || echo $file differs >>
> .bad_com
> pare) || true; \
> done
> case "compare" in compare | compare-lean ) stage=2 ;; * ) stage=`echo
> compare | 
> sed -e 's,^compare\([0-9][0-9]*\).*,\1,'` ;; esac; \
> for dir in tmp-foo intl ; do \
>   if [ "`echo $dir/*.o`" != "$dir/*.o" ] ; then \
>     for file in $dir/*.o; do \
>       tail +16c ./$file > tmp-foo1; \
>       tail +16c stage$stage/$file > tmp-foo2 \
>         && (cmp tmp-foo1 tmp-foo2 > /dev/null 2>&1 || echo $file differs >>
> .bad
> _compare) || true; \
>     done; \
>   else true; fi; \
> done
> rm -f tmp-foo*
> case "compare" in compare | compare-lean ) stage=2 ;; * ) stage=`echo
> compare | 
> sed -e 's,^compare\([0-9][0-9]*\).*,\1,'` ;; esac; \
> if [ -f .bad_compare ]; then \
>   echo "Bootstrap comparison failure!"; \
>   cat .bad_compare; \
>   exit 1; \
> else \
>   case "compare" in \
>     *-lean ) rm -rf stage$stage ;; \
>     *) ;; \
>   esac; true; \
> fi
> make[1]: Leaving directory `/home/narendra/Work/solaris/gcc'
> Building runtime libraries
> make[1]: Entering directory `/home/narendra/Work/solaris'
> make[2]: Entering directory `/home/narendra/Work/solaris/libiberty'
> make[3]: Entering directory
> `/home/narendra/Work/solaris/libiberty/testsuite'
> make[3]: Nothing to be done for `all'.
> make[3]: Leaving directory
> `/home/narendra/Work/solaris/libiberty/testsuite'
> make[2]: Leaving directory `/home/narendra/Work/solaris/libiberty'
> make[2]: Entering directory `/home/narendra/Work/solaris/texinfo'
> make all-recursive
> make[3]: Entering directory `/home/narendra/Work/solaris/texinfo'
> Making all in intl
> make[4]: Entering directory `/home/narendra/Work/solaris/texinfo/intl'
> make[4]: Nothing to be done for `all'.
> make[4]: Leaving directory `/home/narendra/Work/solaris/texinfo/intl'
> Making all in lib
> make[4]: Entering directory `/home/narendra/Work/solaris/texinfo/lib'
> make[4]: Nothing to be done for `all'.
> make[4]: Leaving directory `/home/narendra/Work/solaris/texinfo/lib'
> Making all in makeinfo
> make[4]: Entering directory `/home/narendra/Work/solaris/texinfo/makeinfo'
> make[4]: Nothing to be done for `all'.
> make[4]: Leaving directory `/home/narendra/Work/solaris/texinfo/makeinfo'
> make[3]: Leaving directory `/home/narendra/Work/solaris/texinfo'
> make[2]: Leaving directory `/home/narendra/Work/solaris/texinfo'
> make[2]: Entering directory `/home/narendra/Work/solaris/etc'
> make[2]: Nothing to be done for `all'.
> make[2]: Leaving directory `/home/narendra/Work/solaris/etc'
> make[2]: Entering directory `/home/narendra/Work/solaris/gcc'
> (cd intl && make all)
> make[3]: Entering directory `/home/narendra/Work/solaris/gcc/intl'
> make[3]: Nothing to be done for `all'.
> make[3]: Leaving directory `/home/narendra/Work/solaris/gcc/intl'
> if [ -f fixhdr.ready ] ; then \
>         true; \
> else \
>         touch fixhdr.ready; \
> fi
> if [ -f libgcc2.ready ] ; then \
>         true; \
> else \
>         touch libgcc2.ready; \
> fi
> make[2]: Leaving directory `/home/narendra/Work/solaris/gcc'
> Configuring in sparc-sun-solaris2.6/libio
> *** Can only configure for one host and one target at a time.
> *** Can only configure for one host and one target at a time.
> Usage: configure [OPTIONS] [HOST]
> 
> Options: [defaults in brackets]
>  --prefix=MYDIR          install into MYDIR [/usr/local]
>  --exec-prefix=MYDIR     install host-dependent files into MYDIR
> [/usr/local]
>  --help                  print this message [normal config]
>  --build=BUILD           configure for building on BUILD [BUILD=HOST]
>  --host=HOST             configure for HOST [determined via config.guess]
>  --norecursion           configure this directory only [recurse]
>  --program-prefix=FOO    prepend FOO to installed program names [""]
>  --program-suffix=FOO    append FOO to installed program names [""]
>  --program-transform-name=P transform installed names by sed pattern P [""]
>  --site=SITE             configure with site-specific makefile for SITE
>  --srcdir=DIR            find the sources in DIR [. or ..]
>  --target=TARGET         configure for TARGET [TARGET=HOST]
>  --tmpdir=TMPDIR         create temporary files in TMPDIR [/tmp]
>  --nfp                   configure for software floating point [hard float]
>  --with-FOO, --with-FOO=BAR package FOO is available (parameter BAR)
>  --without-FOO           package FOO is NOT available
>  --enable-FOO, --enable-FOO=BAR include feature FOO (parameter BAR)
>  --disable-FOO           do not include feature FOO
> 
> Where HOST and TARGET are something like "sparc-sunos", "mips-sgi-irix5",
> etc.
> 
> Configuring in sparc-sun-solaris2.6/libiberty
> configure: warning: c++: invalid host type
> configure: error: can only configure for one host and one target at a time
> Configuring in sparc-sun-solaris2.6/libstdc++
> *** Can only configure for one host and one target at a time.
> *** Can only configure for one host and one target at a time.
> Usage: configure [OPTIONS] [HOST]
> 
> Options: [defaults in brackets]
>  --prefix=MYDIR          install into MYDIR [/usr/local]
>  --exec-prefix=MYDIR     install host-dependent files into MYDIR
> [/usr/local]
>  --help                  print this message [normal config]
>  --build=BUILD           configure for building on BUILD [BUILD=HOST]
>  --host=HOST             configure for HOST [determined via config.guess]
>  --norecursion           configure this directory only [recurse]
>  --program-prefix=FOO    prepend FOO to installed program names [""]
>  --program-suffix=FOO    append FOO to installed program names [""]
>  --program-transform-name=P transform installed names by sed pattern P [""]
>  --site=SITE             configure with site-specific makefile for SITE
>  --srcdir=DIR            find the sources in DIR [. or ..]
>  --target=TARGET         configure for TARGET [TARGET=HOST]
>  --tmpdir=TMPDIR         create temporary files in TMPDIR [/tmp]
>  --nfp                   configure for software floating point [hard float]
>  --with-FOO, --with-FOO=BAR package FOO is available (parameter BAR)
>  --without-FOO           package FOO is NOT available
>  --enable-FOO, --enable-FOO=BAR include feature FOO (parameter BAR)
>  --disable-FOO           do not include feature FOO
> 
> Where HOST and TARGET are something like "sparc-sunos", "mips-sgi-irix5",
> etc.
> 
> Configuring in sparc-sun-solaris2.6/libf2c
> configure: warning: c++: invalid host type
> configure: error: can only configure for one host and one target at a time
> Configuring in sparc-sun-solaris2.6/libchill
> configure: warning: c++: invalid host type
> configure: error: can only configure for one host and one target at a time
> Configuring in sparc-sun-solaris2.6/libobjc
> configure: warning: c++: invalid host type
> configure: error: can only configure for one host and one target at a time
> make[1]: Leaving directory `/home/narendra/Work/solaris'
> 
>  -- Narendra Ravi     Email : naren@cs.ualberta.ca
> 


 -- Narendra Ravi     Email : naren@cs.ualberta.ca


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]