Hi, There!

For testing reasons I started to build gcc-4.1.1 on an embedded ppc system 
which has a working
gcc-4.2.1 on it already:

$ gcc -v
Using built-in specs.
Target: powerpc-unknown-linux-gnu
Configured with: ../gcc-4.2.1/configure --prefix=/usr --libexecdir=/usr/lib 
--enable-languages=c,c++,objc --enable-threads=posix --enable-__cxa_atexit 
--enable-clocale=gnu --enable-shared --disable-nls --with-x=no --with-cpu=8540 
--with-tune=8540 --with-float=soft --with-long-double-128 --disable-multilib 
--enable-e500_double
Thread model: posix
gcc version 4.2.1 (ckcore)

I did something like:
        mkdir build
        cd build
        ../gcc-4.1.1/configure \
                --prefix=/usr \
                --libexecdir=/usr/lib \
                --enable-languages=c,c++,objc \
                --enable-threads=posix \
                --enable-__cxa_atexit \
                --enable-clocale=gnu \
                --enable-shared \
                --disable-nls \
                --with-x=no \
                --with-float=soft \
                --with-cpu=8540 --with-tune=8540

        make bootstrap
        make check
        make DESTDIR=$PKG install

to build gcc-4.1.1 and ended in make bootstrap with:

./xgcc -B./ -B/usr/powerpc-unknown-linux-gnu/bin/ -isystem 
/usr/powerpc-unknown-linux-gnu/include -isystem 
/usr/powerpc-unknown-linux-gnu/sys
-include -L/usr/ports/ckcore/gcc-4.1.1/work/src/build/gcc/../ld -O2 -O2 -O2 
-pipe  -DIN_GCC    -W -Wall -Wwrite-strings -Wstrict-prototypes -
Wmissing-prototypes -Wold-style-definition  -isystem ./include  -I. -I. 
-I../../gcc-4.1.1/gcc -I../../gcc-4.1.1/gcc/. -I../../gcc-4.1.1/gcc/.
./include -I../../gcc-4.1.1/gcc/../libcpp/include   -g0 
-finhibit-size-directive -fno-inline-functions -fno-exceptions 
-fno-zero-initialized-
in-bss -fno-unit-at-a-time  -msdata=none \
          -c ../../gcc-4.1.1/gcc/crtstuff.c -DCRT_BEGIN \
          -o crtbegin.o
../../gcc-4.1.1/gcc/crtstuff.c:213: error: size of variable '__JCR_LIST__' is 
too large
make[2]: *** [crtbegin.o] Error 1
make[2]: Leaving directory `/usr/ports/ckcore/gcc-4.1.1/work/src/build/gcc'
make[1]: *** [stage2_build] Error 2
make[1]: Leaving directory `/usr/ports/ckcore/gcc-4.1.1/work/src/build/gcc'
make: *** [bootstrap] Error 2

It (xgcc) seems to complain in crtstuff.c:213 about sizeof(void*)

#ifdef JCR_SECTION_NAME
/* Stick a label at the beginning of the java class registration info
   so we can register them properly.  */
STATIC void *__JCR_LIST__[]
  __attribute__ ((unused, section(JCR_SECTION_NAME), aligned(sizeof(void*))))
  = { };
#endif /* JCR_SECTION_NAME */

Well, is there a simple fix/hack to get it built?
I'm wondering, Java isn't enabled, isn't it?!

Regards,
--
Clemens Koller
__________________________________
R&D Imaging Devices
Anagramm GmbH
Rupert-Mayer-Straße 45/1
Linhof Werksgelände
D-81379 München
Tel.089-741518-50
Fax 089-741518-19
http://www.anagramm-technology.com

Reply via email to