[m-dev.] Problem compiling with updated array.m

Ralph Becket rbeck at microsoft.com
Thu Feb 8 22:11:33 AEDT 2001


I've been trying to boot check my changes to array.m under 
0.10-beta-2001-02-05 (I copied the updated array.m into the
library directory, ran `mmc -i array' to get the .int* files,
and then started a complete build from the top level).

All goes fine until...

gmake[1]: Entering directory
`/home/rbeck/local/src/mercury-compiler-0.10-beta-2
001-02-05/library'
MERCURY_INT_DIR=. MERCURY_ALL_C_INCL_DIRS=" -I../trace -I../runtime
-I../boehm_g
c -I../boehm_gc/include " ../scripts/mgnuc --grade hlc.gc            -c
array.c 
-o array.o
In file included from /usr/include/string.h:346,
                 from ../runtime/mercury.h:58,
                 from mercury.array.h:25,
                 from array.c:18:
/usr/include/bits/string2.h: In function `__strcpy_small':
/usr/include/bits/string2.h:419: warning: pointer of type `void *' used in
arith
metic
/usr/include/bits/string2.h:427: warning: pointer of type `void *' used in
arith
metic
/usr/include/bits/string2.h:432: warning: pointer of type `void *' used in
arith
metic
/usr/include/bits/string2.h:437: warning: pointer of type `void *' used in
arith
metic
/usr/include/bits/string2.h:439: warning: pointer of type `void *' used in
arith
metic
/usr/include/bits/string2.h:444: warning: pointer of type `void *' used in
arith
metic
array.m: At top level:
array.m:398: parse error before `1'
array.m:398: warning: type defaults to `int' in declaration of
`MR_define_type_c
tor_info'
array.m:398: warning: function declaration isn't a prototype
array.m:398: warning: data definition has no type or storage class
array.m: In function
`mercury__array__f_84_121_112_101_83_112_101_99_79_102_95_9
5_112_114_101_100_95_111_114_95_102_117_110_99_95_95_109_101_114_103_101_95_
115_
117_98_97_114_114_97_121_115_95_95_91_84_32_61_32_105_110_116_93_8_f_0':
array.m:747: warning: assignment makes pointer from integer without a cast
array.m:747: warning: assignment makes pointer from integer without a cast
array.m: In function
`mercury__array__f_84_121_112_101_83_112_101_99_79_102_95_9
5_112_114_101_100_95_111_114_95_102_117_110_99_95_95_109_101_114_103_101_95_
115_
117_98_97_114_114_97_121_115_95_95_91_84_32_61_32_115_116_114_105_110_103_93
_8_f
_0':
array.m:747: warning: assignment makes pointer from integer without a cast
array.m:747: warning: assignment makes pointer from integer without a cast
array.m: In function
`mercury__array__f_84_121_112_101_83_112_101_99_79_102_95_9
5_112_114_101_100_95_111_114_95_102_117_110_99_95_95_99_111_112_121_95_115_1
17_9
8_97_114_114_97_121_95_95_91_84_32_61_32_105_110_116_93_6_f_0':
array.m:747: warning: assignment makes pointer from integer without a cast
array.m: In function
`mercury__array__f_84_121_112_101_83_112_101_99_79_102_95_9
5_112_114_101_100_95_111_114_95_102_117_110_99_95_95_99_111_112_121_95_115_1
17_9
8_97_114_114_97_121_95_95_91_84_32_61_32_115_116_114_105_110_103_93_6_f_0':
array.m:747: warning: assignment makes pointer from integer without a cast
gmake[1]: *** [array.o] Error 1

I'm not reporting this as a bug yet because I've probably missed out
a mystic incantation.  Any help greatly appreciated as I want to get
this checked in.

--
Ralph Becket      |      MSR Cambridge      |      rbeck at microsoft.com 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: array.m
Type: application/octet-stream
Size: 43266 bytes
Desc: not available
URL: <http://lists.mercurylang.org/archives/developers/attachments/20010208/b26913f0/attachment.obj>


More information about the developers mailing list