This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


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

gcc 3.4, error: conflicting types for local extern variabled


Hello,

is this a new feature, do we have to fix the kernel?

olaf@nectarine:/dev/shm/linux-2.4.23-pre4/arch/ppc/kernel> /abuild/gcc_cvs_build/obj/install-gcc34/bin/gcc -D__KERNEL__ -I/dev/shm/linux-2.4.23-pre4/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -I/dev/shm/linux-2.4.23-pre4/arch/ppc -fsigned-char -msoft-float -pipe -ffixed-r2 -Wno-uninitialized -mmultiple -mstring   -nostdinc -iwithprefix include -DKBUILD_BASENAME=setup  -c -o setup.o setup.c --save-temps -v -v
gcc: warning: -pipe ignored because -save-temps specified
Reading specs from /abuild/gcc_cvs_build/obj/install-gcc34/lib/gcc/powerpc-unknown-linux-gnu/3.4/specs
Konfiguriert mit: '/home/foo/src/gcc-head/configure' '--enable-checking '--enable-libgcj '--enable-shared '--enable-__cxa_atexit '--enable-threads '--enable-languages=c,c++,f77,java,objc,ada '--prefix=/abuild/gcc_cvs_build/obj/install-gcc34 '--with-system-zlib
Thread model: posix
gcc-Version 3.4 20030914 (experimental)
 /abuild/gcc_cvs_build/obj/install-gcc34/libexec/gcc/powerpc-unknown-linux-gnu/3.4/cc1 -E -quiet -nostdinc -v -v -I/dev/shm/linux-2.4.23-pre4/include -I/dev/shm/linux-2.4.23-pre4/arch/ppc -D__unix__ -D__gnu_linux__ -D__linux__ -Dunix -D__unix -Dlinux -D__linux -Asystem=unix -Asystem=posix -D__KERNEL__ -DKBUILD_BASENAME=setup -iwithprefix include setup.c -msoft-float -mmultiple -mstring -Wall -Wstrict-prototypes -Wno-trigraphs -Wno-uninitialized -fno-strict-aliasing -fno-common -fomit-frame-pointer -fsigned-char -ffixed-r2 -O2 -o setup.i
#include "..." search starts here:
#include <...> search starts here:
 /dev/shm/linux-2.4.23-pre4/include
 /dev/shm/linux-2.4.23-pre4/arch/ppc
 /abuild/gcc_cvs_build/obj/install-gcc34/lib/gcc/powerpc-unknown-linux-gnu/3.4/include
End of search list.
 /abuild/gcc_cvs_build/obj/install-gcc34/libexec/gcc/powerpc-unknown-linux-gnu/3.4/cc1 -fpreprocessed setup.i -quiet -dumpbase setup.c -msoft-float -mmultiple -mstring -auxbase-strip setup.o -O2 -Wall -Wstrict-prototypes -Wno-trigraphs -Wno-uninitialized -version -fno-strict-aliasing -fno-common -fomit-frame-pointer -fsigned-char -ffixed-r2 -o setup.s
GNU C version 3.4 20030914 (experimental) (powerpc-unknown-linux-gnu)
        compiled by GNU C version 3.2.3 (SuSE Linux).
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
setup.c: In function `find_bootinfo':

setup.c:433: error: conflicting types for '__bss_start'
setup.c:261: error: previous declaration of '__bss_start'
olaf@nectarine:/dev/shm/linux-2.4.23-pre4/arch/ppc/kernel> grep -n __bss_start setup.c                                                                              261:    extern char __bss_start, _end;                                                                                                                              270:    memset_io(PTRRELOC(&__bss_start), 0, &_end - &__bss_start);
433:    extern char __bss_start[];
435:    rec = (struct bi_record *)_ALIGN((ulong)__bss_start+(1<<20)-1,(1<<20));
442:            rec = (struct bi_record *)_ALIGN((ulong)__bss_start+0x10000+(1<<20)-1,(1<<20));

__bss_start is defined in the linker script.

olaf@nectarine:/dev/shm/linux-2.4.23-pre4/arch/ppc/kernel> grep -C2 __bss_start ../vmlinux.lds 
  __openfirmware_end = .;

  __bss_start = .;
  .bss       :
  {



-- 
USB is for mice, FireWire is for men!

sUse lINUX ag, nÃRNBERG


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