build failed with oop.c:2243: error: break statement not within loop or switch

Project:GNU Smalltalk
Component:Build
Category:bug
Priority:normal
Assigned:Unassigned
Status:fixed
Description

I build the git HEAD.
Build fails with:
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -DKERNEL_PATH=\"/usr/share/smalltalk/kernel\" -DIMAGE_PATH=\"/var/lib/smalltalk\" -DMODULE_PATH=\"/usr/lib/smalltalk\" -DLIBEXEC_PATH=\"/usr/lib/smalltalk\" -DPREFIX=\"/usr\" -DEXEC_PREFIX=\"/usr\" -DDEFAULT_EXECUTABLE=\"/usr/bin/gst\" -I../lib-src -I../lib-src -I../snprintfv -I../snprintfv -I../lightning -I../lightning -I.. -I.. -pipe -Wall -O2 -march=pentium4 -Wall -Wdeclaration-after-statement -Wno-format -Wpointer-arith -Wno-pointer-sign -Wwrite-strings -Wno-strict-aliasing -Wno-switch -fno-gcse -fstrict-aliasing -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -c oop.c -fPIC -DPIC -o .libs/oop.o
oop.c: In function '_gst_mark_an_oop_internal':
oop.c:2243: error: break statement not within loop or switch
make[3]: *** [oop.lo] Error 1

the config is:
./configure --build=pentium4-alt-linux --host=pentium4-alt-linux --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib --libexecdir=/usr/lib --localstatedir=/var/lib --sharedstatedir=/usr/com --mandir=/usr/share/man --infodir=/usr/share/info --disable-dependency-tracking --without-included-gettext --with-tcl=/usr/lib --with-tk=/usr/lib --with-imagedir=/var/lib/smalltalk --disable-jit --disable-preemption --enable-checking --enable-disassembler --with-system-libffi --with-system-libsigsegv

Updates

#1 submitted by Paolo Bonzini on Tue, 07/06/2010 - 09:08
Status:active» committed

Thanks, I'll push it in a few days. Do not use GC_DEBUGGING (--enable-checking) in the meanwhile.

#2 submitted by Paolo Bonzini on Thu, 07/08/2010 - 16:50
Status:committed» fixed
#3 submitted by Ildar Mulyukov on Fri, 07/09/2010 - 04:37

True. But issue #502 is still there.

User login