This is the mail archive of the crossgcc@sources.redhat.com 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]

gcc4 fails to build toolchain for sh3


  just FYI, took a shot at using gcc4 for the build, and ran into:

... snip ...

+ cd
/home/rpjday/SW/crosstool/crosstool-0.28-rc37/build/sh3-unknown-linux-gnu/gcc-3.4.1-glibc-2.3.3/linux-2.6.8
+ test -f /home/rpjday/SW/crosstool/crosstool-0.28-rc37/sh3.config
+ cp /home/rpjday/SW/crosstool/crosstool-0.28-rc37/sh3.config .config
+ test -f .config
+ yes ''
+ make ARCH=sh oldconfig
  HOSTCC  scripts/basic/fixdep
  HOSTCC  scripts/basic/split-include
  HOSTCC  scripts/basic/docproc
  SHIPPED scripts/kconfig/zconf.tab.h
  HOSTCC  scripts/kconfig/conf.o
  HOSTCC  scripts/kconfig/mconf.o
scripts/kconfig/mconf.c:91: error: static declaration of
'current_menu' follows non-static declaration
scripts/kconfig/lkc.h:63: error: previous declaration of
'current_menu' was heremake[1]: *** [scripts/kconfig/mconf.o] Error 1
make: *** [oldconfig] Error 2


  sure enough, in the kernel source tree, in scripts/kconfig, we find

lkc.h:
  ...
  extern struct menu *current_menu;

mconf.c:
  ...
  #include "lkc.h"
  ...
  static struct menu *current_menu;


not a crosstool problem, obviously, but something gcc-3.4.2 just blows
by while gcc-4 is a mite pickier.  (although i'm sure there's an
option that will overlook this, yes?)

rday


------
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]