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]
Other format: [Raw text]

64-bit c,c++ on sparcv9-sun-solaris2


Greetings, I've been trying to compile 64-bit (i.e. the compiler itself in 64-bit binary format) gcc for c,c++ languages. This is done on Ultra10 running Solaris 9. c compiler builds OK, but when it comes to building c++ it gives the following error message:

make[4]: Entering directory `/usr/opt/pkg_build/gcc-3.4.2-build/sparcv9-sun-solaris2/sparcv7/libiberty/testsuite'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/usr/opt/pkg_build/gcc-3.4.2-build/sparcv9-sun-solaris2/sparcv7/libiberty/testsuite'
make[3]: Leaving directory `/usr/opt/pkg_build/gcc-3.4.2-build/sparcv9-sun-solaris2/sparcv7/libiberty'
make[2]: Leaving directory `/usr/opt/pkg_build/gcc-3.4.2-build/sparcv9-sun-solaris2/libiberty'
make[1]: Leaving directory `/usr/opt/pkg_build/gcc-3.4.2-build/sparcv9-sun-solaris2/libiberty'
make[1]: Entering directory `/usr/opt/pkg_build/gcc-3.4.2-build/sparcv9-sun-solaris2/libstdc++-v3'
make[1]: *** No rule to make target `all'. Stop.
make[1]: Leaving directory `/usr/opt/pkg_build/gcc-3.4.2-build/sparcv9-sun-solaris2/libstdc++-v3'
make: *** [all-target-libstdc++-v3] Error 2


Any ideas what could be wrong?

Below is a script fragment which confiugres and builds gcc

# build a tmp compiler which generates 64-bit code by default
# use this compiler to build a native 64-bit compiler
pkg_build () {
CONFIG_SHELL=/bin/ksh
export CONFIG_SHELL
cd $PKG_BUILD_DIR && mkdir $1-build && cd $1-build \
&& ../$1/configure --prefix=$PKG_BIN_DIR/$1-tmp32 --disable-nls \
--enable-threads=posix --enable-languages=c \
--with-gnu-ld --with-ld=$PKG_DIR/bin/ld --with-gnu-as --with-as=$PKG_DIR/bin/as \
--host=sparcv9-sun-solaris2 \
&& make && make install \
&& rm -rf ./* \
&& CC=$PKG_BIN_DIR/$1-tmp32/bin/gcc ../$1/configure -prefix=$PKG_BIN_DIR/$1 \
--disable-nls --enable-threads=posix --enable-languages=c,c++ \
--with-gnu-ld --with-ld=$PKG_DIR/bin/ld --with-gnu-as --with-as=$PKG_DIR/bin/as \
--host=sparcv9-sun-solaris2 \
&& make && make install && rm -rf $PKG_BIN_DIR/$1-tmp32
}



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