Canadian Crosscompile Build: cc1: error: unrecognized option `-Wold-st yle-definition'

Alexander Povolotsky pevnev@juno.com
Tue Oct 5 14:20:00 GMT 2004


On Cygwin (Intel/Windows XP) I am trying to "Canadian Crosscompile Build" (using Gantliff's -> Kegel's "crosstool") the Linux 2.6 "native" 3.4.1 gcc compler for Power PC platform - using existing and "good working" 3.3.2 gnu (cygwin to Linux on ppc) cross compiler (stored in my /usr/local/bin as 3 identical copies - under three file names):

$ ls -l  /usr/local/bin/powerpc-linux-gcc.exe
-rwx------+   1 apovolot ????????   109056 Jul 20 09:59 /usr/local/bin/powerpc-linux-gcc.exe

$ ls -l  /usr/local/bin/powerpc-linux-gcc-3.3.2
-rwx------+   1 apovolot ????????   109056 Jul 20 09:59 /usr/local/bin/powerpc-linux-gcc-3.3.2

$ ls -l  /usr/local/bin/powerpc-860-linux-gnu-gcc
-rwx------    1 apovolot mkgroup-   109056 Oct  4 23:23 /usr/local/bin/powerpc-860-linux-gnu-gcc


note that:
$ /usr/local/bin/powerpc-linux-gcc.exe --version
powerpc-linux-gcc (GCC) 3.3.2
Copyright (C) 2003 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

The following source is used for above 

$ ls ~/downloads
gcc-3.4.1.tar.gz
gcc-3.4.1.tar.bz2
binutils-2.15.tar.bz2
binutils-2.15.tar.gz   
glibc-linuxthreads-2.3.3.tar.gz
glibc-2.3.3.tar.bz2  
glibc-2.3.3.tar.gz
linux-2.6.8.tar.gz

about an hour (and a half)later into the build ... it came to errors:

....
....
> TARGET_CPU_DEFAULT="" \
> HEADERS="ansidecl.h" DEFINES="" \
> /bin/sh 
/cygdrive/d/Profiles/apovolot/crosstool/crosstool-0.28-rc36/build/powerp
> c-860-linux-gnu/gcc-3.4.1-glibc-2.3.3/gcc-3.4.1/gcc/mkconfig.sh tconfig.h
> echo '#define FLOAT' > fp-bit.c
> cat 
/cygdrive/d/Profiles/apovolot/crosstool/crosstool-0.28-rc36/build/powerpc-86
> 0-linux-gnu/gcc-3.4.1-glibc-2.3.3/gcc-3.4.1/gcc/config/fp-bit.c >> 
fp-bit.c
> cat 
/cygdrive/d/Profiles/apovolot/crosstool/crosstool-0.28-rc36/build/powerpc-86
> 0-linux-gnu/gcc-3.4.1-glibc-2.3.3/gcc-3.4.1/gcc/config/fp-bit.c > 
dp-bit.c
> powerpc-860-linux-gnu-gcc -O2 -DIN_GCC -DCROSS_COMPILE   -W -Wall 
-Wwrite-string
> s -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition  -isystem 
./in
> clude  -I. -I. 
-I/cygdrive/d/Profiles/apovolot/crosstool/crosstool-0.28-rc36/bui
> ld/powerpc-860-linux-gnu/gcc-3.4.1-glibc-2.3.3/gcc-3.4.1/gcc 
-I/cygdrive/d/Profi
> 
les/apovolot/crosstool/crosstool-0.28-rc36/build/powerpc-860-linux-gnu/gcc-3.4.1

> -glibc-2.3.3/gcc-3.4.1/gcc/. 
-I/cygdrive/d/Profiles/apovolot/crosstool/crosstool
> 
-0.28-rc36/build/powerpc-860-linux-gnu/gcc-3.4.1-glibc-2.3.3/gcc-3.4.1/gcc/../in

> clude   -g0 -finhibit-size-directive -fno-inline-functions -fno-exceptions 
-fno-
> zero-initialized-in-bss -fno-unit-at-a-time -msdata=none \
>   -Dinhibit_libc -c 
/cygdrive/d/Profiles/apovolot/crosstool/crosstool-0.28-rc36/
> build/powerpc-860-linux-gnu/gcc-3.4.1-glibc-2.3.3/gcc-3.4.1/gcc/crtstuff.c 
-DCRT
> _BEGIN \
>   -o crtbegin.o
> cc1: error: unrecognized option `-Wold-style-definition'
> cc1: error: unrecognized option `-fno-unit-at-a-time'
> make[1]: *** [crtbegin.o] Error 1
> make[1]: Leaving directory 
`/cygdrive/d/Profiles/apovolot/crosstool/crosstool-0.
> 
28-rc36/build/powerpc-860-linux-gnu/gcc-3.4.1-glibc-2.3.3/build-gcc-core/gcc'
> make: *** [all-gcc] Error 2

How this problem could be resolved ?

Thanks,
Best Regards,
Alex

________________________________________________________________
Get your name as your email address.
Includes spam protection, 1GB storage, no ads and more
Only $1.99/ month - visit http://www.mysite.com/name today!



More information about the Gcc-bugs mailing list