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]

GCC 3.0 cross compiler


I'm attempting to compile a gcc-3.0 cross compiler on linux for
solaris2.7.  2.95.3 and others work ok.  Briefly here is my procedure:

configure, make and make install binutils-2.11.2 nativeinto
/tools/gcc-3.0_binutils-2.11.2 dir

add /tools/gcc-3.0_binutils-2.11.2/bin dir to start of PATH

configure, make bootstrap and make install gcc-3.0 native into
/tools/gcc-3.0_binutils-2.11.2 dir

"which gcc" now returns /tools/gcc-3.0_binutils-2.11.2/bin/gcc

configure, make and make install binutils-2.11.2 linux to sun into
/tools/gcc-3.0_binutils-2.11.2 dir

configure, make and make install gcc-3.0 linux to sun into
/tools/gcc-3.0_binutils-2.11.2 dir

However, the "make" for the gcc-3.0 linux to sun fails with

In file included from
/tools/sw_build/src/gcc-3.0/libstdc++-v3/src/locale.cc:557:../include/bits/ctype_noninline.h:
In constructor 
   `std::ctype<char>::ctype(const char*, bool, unsigned int)':
../include/bits/ctype_noninline.h:39: `_ctype_' undeclared (first use
this 
   function)
../include/bits/ctype_noninline.h:39: (Each undeclared identifier is
reported 
   only once for each function it appears in.)

Any thoughts?  I've included the actual configure and make lines below.

Thanks for the help!

Mike.



/home/mike/build/cross/src/binutils-2.11.2/configure
--prefix=/home/mike/build/cross/gcc-3.0_binutils-2.11.2
--exec-prefix=/home/mike/build/cross/gcc-3.0_binutils-2.11.2/i586-pc-linux-gnu
--disable-shared
make && make install
rm -Rf *
cd ../gcc-3.0/
PATH=/home/mike/build/cross/gcc-3.0_binutils-2.11.2/i586-pc-linux-gnu/bin:${PATH}
/tools/sw_build/src/gcc-3.0/configure
--prefix=/home/mike/build/cross/gcc-3.0_binutils-2.11.2
--exec-prefix=/home/mike/build/cross/gcc-3.0_binutils-2.11.2/i586-pc-linux-gnu
--disable-shared --enable-languages=c,c++,java
make bootstrap
make install
rm -Rf *
cd ../binutils-2.11.2/
/tools/sw_build/src/binutils-2.11.2/configure
--prefix=/home/mike/build/cross/gcc-3.0_binutils-2.11.2
--exec-prefix=/home/mike/build/cross/gcc-3.0_binutils-2.11.2/i586-pc-linux-gnu
--target=sparc-sun-solaris2.7 --disable-shared
make && make install
cd ../gcc-3.0/
/tools/sw_build/src/gcc-3.0/configure
--prefix=/home/mike/build/cross/gcc-3.0_binutils-2.11.2
--exec-prefix=/home/mike/build/cross/gcc-3.0_binutils-2.11.2/i586-pc-linux-gnu
--target=sparc-sun-solaris2.7 --disable-shared
--enable-languages=c,c++,java
--with-headers=/tools/sw_build/src/include_sparc-sun-solaris2.7
--with-libs=/tools/sw_build/src/lib_sparc-sun-solaris2.7
make


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