This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


  ok, this is a build error i don't recognize.  picking up where i
left off from a not so good day yesterday, i wanted to resume my
bulding for sh3eb.

  this time i configured to pull in and build the 2.6.13 kernel.  (i
checked the source first and the "current_menu" error no longer seems
to be an issue, just from looking at the source.)

  so i set u the config files, and let the build go, which got here:

+ KERNEL_VERSION=2
++ awk '/^PATCHLEVEL =/ { print $3 }'
/home/rpjday/ct/crosstool-0.38/build/sh3eb-unknown-linux-gnu/gcc-4.0.1-glibc-2.3.5/linux-2.6.13/Makefile
+ KERNEL_PATCHLEVEL=6
+ case "$KERNEL_VERSION.$KERNEL_PATCHLEVEL.x" in
+ case $ARCH in
+ make ARCH=sh prepare include/linux/version.h
  SPLIT   include/linux/autoconf.h -> include/config/*
  CC      scripts/mod/empty.o
cc1: error: invalid option `b'
cc1: error: invalid option `3'
make[2]: *** [scripts/mod/empty.o] Error 1
make[1]: *** [scripts/mod] Error 2
make: *** [scripts] Error 2


  ???.  the two cc1 errors appear to be related to the contents of my
sh3eb.dat file:

KERNELCONFIG=`pwd`/sh3eb.config
TARGET=sh3eb-unknown-linux-gnu
TARGET_CFLAGS="-O -mb -m3"		<-- -mb -m3
GLIBC_CONFIGPARMS="no-z-defs=yes"

  why would this be?  those simply refer to building for SH3, big
endian, which is what i've used for a long time.

  what incredibly obvious thing am i missing *this* time?

rday

p.s.  the original sh3.dat file contains:

KERNELCONFIG=`pwd`/sh3.config
TARGET=sh3-unknown-linux-gnu
TARGET_CFLAGS="-O -ml -m3"
GLIBC_CONFIGPARMS="no-z-defs=yes"

so i'm just using that as a model.

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


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