Version française
Home     About     Download     Resources     Contact us    
Browse thread
Neko 1.0
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: skaller <skaller@u...>
Subject: Re: Build errors (was Re: [Caml-list] Neko 1.0)
On Fri, 2005-08-19 at 04:22 +1000, skaller wrote:
> On Thu, 2005-08-18 at 09:41 -0600, Matt Gushee wrote:
> 
> > mod_neko/cgi.c:206: warning: passing arg 1 of `neko_alloc_string' makes 
> > pointer from integer without a cast
> 
> BTW1: best not to do this, not even with a cast ..
> AMD64/gcc has 32 bit int and 64 bit pointer.

.. in particular I get hundreds of errors:

gcc -O3 -I../vm -D__linux__ -c alloc.c
alloc.c: In function ‘alloc_module_function’:
alloc.c:147: warning: cast to pointer from integer of different size
alloc.c: In function ‘neko_alloc_object’:
alloc.c:156: warning: cast from pointer to integer of different size
alloc.c: In function ‘neko_val_gc’:
alloc.c:183: warning: cast from pointer to integer of different size
gcc -O3 -I../vm -D__linux__ -c builtins.c
builtins.c: In function ‘builtin_print’:
builtins.c:38: warning: cast from pointer to integer of different size
builtins.c: In function ‘builtin_new’:
builtins.c:50: warning: cast from pointer to integer of different size
builtins.c: In function ‘builtin_amake’:
builtins.c:66: warning: cast from pointer to integer of different size
builtins.c:67: warning: cast from pointer to integer of different size
builtins.c: In function ‘builtin_acopy’:
builtins.c:77: warning: cast from pointer to integer of different size
builtins.c: In function ‘builtin_asize’:
builtins.c:85: warning: cast from pointer to integer of different size
builtins.c:86: warning: cast to pointer from integer of different size
builtins.c: In function ‘builtin_asub’:
builtins.c:93: warning: cast from pointer to integer of different size
builtins.c:94: warning: cast from pointer to integer of different size
builtins.c:95: warning: cast from pointer to integer of different size
builtins.c:96: warning: cast from pointer to integer of different size
builtins.c:97: warning: cast from pointer to integer of different size
builtins.c: In function ‘builtin_ablit’:
builtins.c:108: warning: cast from pointer to integer of different size
builtins.c:109: warning: cast from pointer to integer of different size
builtins.c:110: warning: cast from pointer to integer of different size
builtins.c:111: warning: cast from pointer to integer of different size
builtins.c:112: warning: cast from pointer to integer of different size
builtins.c:113: warning: cast from pointer to integer of different size
builtins.c:114: warning: cast from pointer to integer of different size
builtins.c:115: warning: cast from pointer to integer of different size
builtins.c: In function ‘builtin_smake’:
builtins.c:123: warning: cast from pointer to integer of different size
builtins.c:124: warning: cast from pointer to integer of different size
builtins.c: In function ‘builtin_ssize’:
builtins.c:128: warning: cast from pointer to integer of different size
builtins.c:129: warning: cast to pointer from integer of different size
builtins.c: In function ‘builtin_scopy’:
builtins.c:133: warning: cast from pointer to integer of different size
builtins.c: In function ‘builtin_ssub’:
builtins.c:139: warning: cast from pointer to integer of different size
builtins.c:140: warning: cast from pointer to integer of different size
builtins.c:141: warning: cast from pointer to integer of different size
builtins.c:142: warning: cast from pointer to integer of different size
builtins.c:143: warning: cast from pointer to integer of different size
builtins.c: In function ‘builtin_sget’:
builtins.c:151: warning: cast from pointer to integer of different size
builtins.c:152: warning: cast from pointer to integer of different size
builtins.c:153: warning: cast from pointer to integer of different size
builtins.c:156: warning: cast to pointer from integer of different size
builtins.c: In function ‘builtin_sset’:
builtins.c:162: warning: cast from pointer to integer of different size
builtins.c:163: warning: cast from pointer to integer of different size
builtins.c:164: warning: cast from pointer to integer of different size
builtins.c:165: warning: cast from pointer to integer of different size
builtins.c:168: warning: cast from pointer to integer of different size
builtins.c:170: warning: cast to pointer from integer of different size
builtins.c: In function ‘builtin_sblit’:
builtins.c:175: warning: cast from pointer to integer of different size
builtins.c:176: warning: cast from pointer to integer of different size
builtins.c:177: warning: cast from pointer to integer of different size
builtins.c:178: warning: cast from pointer to integer of different size
builtins.c:179: warning: cast from pointer to integer of different size
builtins.c:180: warning: cast from pointer to integer of different size
builtins.c:181: warning: cast from pointer to integer of different size
builtins.c:182: warning: cast from pointer to integer of different size
builtins.c: In function ‘builtin_nargs’:
builtins.c:195: warning: cast from pointer to integer of different size
builtins.c:197: warning: cast to pointer from integer of different size
builtins.c: In function ‘builtin_call’:
builtins.c:204: warning: cast from pointer to integer of different size
builtins.c: In function ‘builtin_iadd’:
builtins.c:214: warning: cast from pointer to integer of different size
builtins.c:214: warning: cast from pointer to integer of different size
builtins.c:214: warning: cast to pointer from integer of different size
builtins.c: In function ‘builtin_isub’:
builtins.c:218: warning: cast from pointer to integer of different size
builtins.c:218: warning: cast from pointer to integer of different size
builtins.c:218: warning: cast to pointer from integer of different size
builtins.c: In function ‘builtin_imult’:
builtins.c:222: warning: cast from pointer to integer of different size
builtins.c:222: warning: cast from pointer to integer of different size
builtins.c:222: warning: cast to pointer from integer of different size
builtins.c: In function ‘builtin_idiv’:
builtins.c:228: warning: cast from pointer to integer of different size
builtins.c:228: warning: cast from pointer to integer of different size
builtins.c:228: warning: cast to pointer from integer of different size
builtins.c: In function ‘builtin_isnan’:
builtins.c:242: warning: cast from pointer to integer of different size
builtins.c: In function ‘builtin_isinfinite’:
builtins.c:255: warning: cast from pointer to integer of different size
builtins.c: In function ‘builtin_objget’:
builtins.c:270: warning: cast from pointer to integer of different size
builtins.c:272: warning: cast from pointer to integer of different size
builtins.c:273: warning: cast from pointer to integer of different size
builtins.c:273: warning: cast to pointer from integer of different size
builtins.c: In function ‘builtin_objset’:
builtins.c:277: warning: cast from pointer to integer of different size
builtins.c:279: warning: cast from pointer to integer of different size
builtins.c:280: warning: cast from pointer to integer of different size
builtins.c:280: warning: cast to pointer from integer of different size
builtins.c: In function ‘builtin_objcall’:
builtins.c:285: warning: cast from pointer to integer of different size
builtins.c:287: warning: cast from pointer to integer of different size
builtins.c:288: warning: cast from pointer to integer of different size
builtins.c:289: warning: cast from pointer to integer of different size
builtins.c:289: warning: cast to pointer from integer of different size
builtins.c: In function ‘builtin_objfield’:
builtins.c:293: warning: cast from pointer to integer of different size
builtins.c:293: warning: cast from pointer to integer of different size
builtins.c:293: warning: cast from pointer to integer of different size
builtins.c:293: warning: cast to pointer from integer of different size
builtins.c: In function ‘builtin_objremove’:
builtins.c:297: warning: cast from pointer to integer of different size
builtins.c:298: warning: cast from pointer to integer of different size
builtins.c:299: warning: cast from pointer to integer of different size
builtins.c:299: warning: cast to pointer from integer of different size
builtins.c: In function ‘builtin_objfields_rec’:
builtins.c:303: warning: cast from pointer to integer of different size
builtins.c:303: warning: cast to pointer from integer of different size
builtins.c: In function ‘builtin_objfields’:
builtins.c:310: warning: cast from pointer to integer of different size
builtins.c: In function ‘builtin_hash’:
builtins.c:319: warning: cast from pointer to integer of different size
builtins.c:320: warning: cast from pointer to integer of different size
builtins.c:320: warning: cast to pointer from integer of different size
builtins.c: In function ‘builtin_field’:
builtins.c:324: warning: cast from pointer to integer of different size
builtins.c:325: warning: cast from pointer to integer of different size
builtins.c:325: warning: cast to pointer from integer of different size
builtins.c: In function ‘builtin_int’:
builtins.c:329: warning: cast from pointer to integer of different size
builtins.c:330: warning: cast to pointer from integer of different size
builtins.c:331: warning: cast from pointer to integer of different size
builtins.c:332: warning: cast from pointer to integer of different size
builtins.c:332: warning: cast from pointer to integer of different size
builtins.c:332: warning: cast to pointer from integer of different size
builtins.c: In function ‘builtin_float’:
builtins.c:337: warning: cast from pointer to integer of different size
builtins.c:339: warning: cast from pointer to integer of different size
builtins.c:340: warning: cast from pointer to integer of different size
builtins.c:340: warning: cast from pointer to integer of different size
builtins.c: In function ‘builtin_typeof’:
builtins.c:345: warning: cast from pointer to integer of different size
builtins.c: In function ‘builtin_closure’:
builtins.c:400: warning: cast from pointer to integer of different size
builtins.c: In function ‘builtin_compare’:
builtins.c:414: warning: cast to pointer from integer of different size
builtins.c: In function ‘neko_init_builtins’:
builtins.c:435: warning: cast to pointer from integer of different size
builtins.c:437: warning: cast to pointer from integer of different size
builtins.c:438: warning: cast to pointer from integer of different size
builtins.c:439: warning: cast to pointer from integer of different size
builtins.c:440: warning: cast to pointer from integer of different size
builtins.c:441: warning: cast to pointer from integer of different size
builtins.c:442: warning: cast to pointer from integer of different size
builtins.c:444: warning: cast to pointer from integer of different size
builtins.c:445: warning: cast to pointer from integer of different size
builtins.c:446: warning: cast to pointer from integer of different size
builtins.c:447: warning: cast to pointer from integer of different size
builtins.c:448: warning: cast to pointer from integer of different size
builtins.c:449: warning: cast to pointer from integer of different size
builtins.c:450: warning: cast to pointer from integer of different size
builtins.c:452: warning: cast to pointer from integer of different size
builtins.c:453: warning: cast to pointer from integer of different size
builtins.c:454: warning: cast to pointer from integer of different size
builtins.c:455: warning: cast to pointer from integer of different size
builtins.c:456: warning: cast to pointer from integer of different size
builtins.c:457: warning: cast to pointer from integer of different size
builtins.c:458: warning: cast to pointer from integer of different size
builtins.c:459: warning: cast to pointer from integer of different size
builtins.c:460: warning: cast to pointer from integer of different size
builtins.c:462: warning: cast to pointer from integer of different size
builtins.c:463: warning: cast to pointer from integer of different size
builtins.c:464: warning: cast to pointer from integer of different size
builtins.c:465: warning: cast to pointer from integer of different size
builtins.c:466: warning: cast to pointer from integer of different size
builtins.c:467: warning: cast to pointer from integer of different size
builtins.c:468: warning: cast to pointer from integer of different size
builtins.c:469: warning: cast to pointer from integer of different size
builtins.c:470: warning: cast to pointer from integer of different size
builtins.c:471: warning: cast to pointer from integer of different size
builtins.c:472: warning: cast to pointer from integer of different size
builtins.c:473: warning: cast to pointer from integer of different size
builtins.c:474: warning: cast to pointer from integer of different size
builtins.c:476: warning: cast to pointer from integer of different size
builtins.c:477: warning: cast to pointer from integer of different size
builtins.c:478: warning: cast to pointer from integer of different size
builtins.c:479: warning: cast to pointer from integer of different size
gcc -O3 -I../vm -D__linux__ -c callback.c
callback.c: In function ‘neko_val_callEx’:
callback.c:100: warning: cast from pointer to integer of different size
callback.c:101: warning: cast from pointer to integer of different size
callback.c:103: warning: cast from pointer to integer of different size
callback.c:104: warning: cast from pointer to integer of different size
gcc -O3 -I../vm -D__linux__ -c context.c
gcc -O3 -I../vm -D__linux__ -c interp.c
interp.c: In function ‘neko_vm_alloc’:
interp.c:87: warning: cast from pointer to integer of different size
interp.c: In function ‘neko_vm_execute’:
interp.c:111: warning: cast from pointer to integer of different size
interp.c: In function ‘neko_setup_trap’:
interp.c:299: warning: cast to pointer from integer of different size
interp.c:299: warning: cast from pointer to integer of different size
interp.c:300: warning: cast from pointer to integer of different size
interp.c:301: warning: cast from pointer to integer of different size
interp.c:303: warning: cast from pointer to integer of different size
interp.c:303: warning: cast to pointer from integer of different size
interp.c:303: warning: cast from pointer to integer of different size
interp.c: In function ‘neko_process_trap’:
interp.c:313: warning: cast from pointer to integer of different size
interp.c:319: warning: cast to pointer from integer of different size
interp.c:320: warning: cast to pointer from integer of different size
interp.c:324: warning: cast to pointer from integer of different size
interp.c: In function ‘interp_loop’:
interp.c:337: warning: cast from pointer to integer of different size
interp.c:340: warning: cast from pointer to integer of different size
interp.c:343: warning: cast from pointer to integer of different size
interp.c:346: warning: cast from pointer to integer of different size
interp.c:359: warning: cast to pointer from integer of different size
interp.c:363: warning: cast from pointer to integer of different size
interp.c:366: warning: cast to pointer from integer of different size
interp.c:367: warning: cast to pointer from integer of different size
interp.c:367: warning: cast to pointer from integer of different size
interp.c:368: warning: cast from pointer to integer of different size
interp.c:370: warning: cast from pointer to integer of different size
interp.c:375: warning: cast to pointer from integer of different size
interp.c:377: warning: cast to pointer from integer of different size
interp.c:378: warning: cast from pointer to integer of different size
interp.c:380: warning: cast to pointer from integer of different size
interp.c:380: warning: cast from pointer to integer of different size
interp.c:381: warning: cast to pointer from integer of different size
interp.c:382: warning: cast to pointer from integer of different size
interp.c:382: warning: cast to pointer from integer of different size
interp.c:382: warning: cast from pointer to integer of different size
interp.c:384: warning: cast from pointer to integer of different size
interp.c:388: warning: cast to pointer from integer of different size
interp.c:389: warning: cast to pointer from integer of different size
interp.c:390: warning: cast from pointer to integer of different size
interp.c:392: warning: cast to pointer from integer of different size
interp.c:392: warning: cast from pointer to integer of different size
interp.c:393: warning: cast to pointer from integer of different size
interp.c:394: warning: cast to pointer from integer of different size
interp.c:394: warning: cast to pointer from integer of different size
interp.c:394: warning: cast from pointer to integer of different size
interp.c:396: warning: cast from pointer to integer of different size
interp.c:410: warning: cast to pointer from integer of different size
interp.c:414: warning: cast to pointer from integer of different size


-- 
John Skaller <skaller at users dot sourceforge dot net>