build error: "cc1: error: invalid option `b'"

Dan Kegel dank@kegel.com
Wed Sep 7 14:46:00 GMT 2005


Robert P. J. Day wrote:
 >+ make ARCH=sh prepare include/linux/version.h
>..
>   CC      scripts/mod/empty.o
> cc1: error: invalid option `b'
> cc1: error: invalid option `3'


Rule #1 when using crosstool: read the comments in the script:

case "$KERNEL_VERSION.$KERNEL_PATCHLEVEL.x" in
2.2.x|2.4.x) make ARCH=$ARCH symlinks    include/linux/version.h
              ;;
2.6.x)       case $ARCH in
              sh*)        # sh does secret stuff in 'make prepare' that can't be triggered separately,
                          # but happily, it doesn't use target gcc, so we can use it.
                          # Update: this fails on 2.6.11, as it installs elfconfig.h, which requires target compiler :-(
                          make ARCH=$ARCH prepare include/linux/version.h

I haven't figured out how to cross-compile 2.6.x for x > 10 for sh,
but then I haven't tried very hard.
- Dan

-- 
Trying to get a job as a c++ developer?  See http://kegel.com/academy/getting-hired.html

------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com



More information about the crossgcc mailing list