Building a cross-compiler -- GCC problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi, all

i am trying to buid a cross compiler. Host -- i686, target - i386.

I downloaded gcc 3.3.2 and compiling bootstrap compiler first:
./../gcc-3.3.2/configure --target=i386-linux --prefix=/tools --without-headers --with-newlib --enable
-languages=c

make all-gcc

This causes a problem:

In file included from tconfig.h:21,
                 from ../../gcc-3.2.2/gcc/libgcc2.c:36:
../../gcc-3.2.2/gcc/config/i386/linux.h:224:20: signal.h: No such file or direct
ory
../../gcc-3.2.2/gcc/config/i386/linux.h:225:26: sys/ucontext.h: No such file or
directory
make[2]: *** [libgcc/./_muldi3.o] Error 1
make[2]: Leaving directory `/home/rudolfl/project/ibis/build-tools/build_boot_gc
c/gcc'
make[1]: *** [libgcc.a] Error 2
make[1]: Leaving directory `/home/rudolfl/project/ibis/build-tools/build_boot_gc
c/gcc'
make: *** [all-gcc] Error 2


As far as I understood from searching the web, there is a bug where '--without-headers' option is not interpreted correctly. I found a few patches on the web, but I could not apply any, it would always fail. Looks like patches are for some other versions of gcc. Anyway, I tried to manually "apply" patches and it did not work -- same problem. Manualy editing the offending file and changing the preprocessor options not to include the missing headers gets me past this error, but it fails later on trying to find some functions, such as memcpy().

Does anyone have a working patch for the 3.3.2? 

BTW, I have tried 3.2.2 and it has same problem.

Thanks,
Rudolf

/*******************************************************/
Rudolf Ladyzhenskii
Senior Design Engineer
Open Networks Pty. Ltd.
Level 26, 35 Collins Street,
Melbourne VIC 3000
e-mail: rudolfl.ladyzhenskii@xxxxxxxxxx
phone: +61 3 9656 5107
fax:     +61 3 9656 5122
web: www.opennw.com
/*******************************************************/




[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux