[comp.sys.sgi] Schain botch 4 ...

foisy@McRCIM.McGill.EDU (Andre Foisy) (03/08/91)

  I have a small problem with the c preprocessor.  I compile a file with

    cc -DVOL=volatile -G 0 -O -c -I. vector.c

  and get

  (ccom): vector.c, line 2138: ccom: Internal: schain botch 4.

  My brain goes dead when I see that message.  I was told that I can
get around it by moving declarations from within blocks to outside.  It
works but the problem is that AKCL generates the c when it compiles, I
will not always go and fix the c source.....

  Is there a fix somewhere????



-- 

Andre Foisy			McGill Research Centre for Intelligent Machines
foisy@mcrcim.mcgill.edu		Computer Vision and Robotics Lab
				McGill University, Montreal

root@quasar.wpd.sgi.com (Super-User) (03/09/91)

In article <1991Mar7.195546.4477@thunder.mcrcim.mcgill.edu> foisy@McRCIM.McGill.EDU (Andre Foisy) writes:
>
>  I have a small problem with the c preprocessor.  I compile a file with
>
>    cc -DVOL=volatile -G 0 -O -c -I. vector.c
>
>  and get
>
>  (ccom): vector.c, line 2138: ccom: Internal: schain botch 4.
>
>  My brain goes dead when I see that message.  I was told that I can
>get around it by moving declarations from within blocks to outside.  It
>works but the problem is that AKCL generates the c when it compiles, I
>will not always go and fix the c source.....
>
>  Is there a fix somewhere????

Fixed in the next release: 4.0.     

The hint will often work.  Another possible workaround: renaming labels
(changing the names of goto targets, which I assume exist in the code at
hand).

Ugly, I know. Sorry.

Regards,
[ David B. Anderson  Silicon Graphics  (415)335-1548  davea@sgi.com ]
[``What can go wrong?''                           --Calvin to Hobbes]