|
From: | Anton Idukov |
Subject: | Re: Re: First release of CRUNCH |
Date: | Wed, 4 Dec 2024 13:27:19 +0300 |
CRUNCH requires a C99 compiler, this is deliberate.
> Two quick examinations for bitlongness, 1) i386 debootstrap Debian 8 Jessie
> (also Mint17/Ubuntu14)
> - fails when executed 'sh scripts/bootstrap.sh' step :
>
> *gcc -fno-strict-aliasing -fwrapv -DHAVE_CHICKEN_CONFIG_H
> -DC_ENABLE_PTABLES -c -Os -fomit-frame-pointer -DC_BUILDING_LIBCHICKEN
> utf.c -o utf-static.o -I. -I./utf.c:297:1: error: conflicting types for
> ‘C_utf_isupper’ C_utf_isupper(int r) ^In file included from
> utf.c:28:0:chicken.h:1930:17: note: previous declaration of ‘C_utf_isupper’
> was here C_fctexport int C_utf_isupper(int c) C_regparm; ^*
>
> i think the origin of problem is in file
> chicken-core/boot/chicken-6.0.0/chicken.h
>
>
>
> *249 # if defined(__i386__) && !defined(__clang__) 250 # define C_regparm
> __attribute__ ((regparm(3))) 251 # endif*
>
Indeed - I will fix this. Declarations are missing in utf.c.
Thanks for reporting this!
> 2) 32-bit MIPS BE debootstrap Debian Jessie gcc (Debian 4.9.2-10+deb8u1)
> 4.9.2
> - all steps Ok, except *chicken-install -test crunch*
>
> *fail on *
>
>
> *building crunch /opt/call-cc.org/chicken-6pre/bin/csc
> <http://call-cc.org/chicken-6pre/bin/csc> -host -s -c -C
> -I/home/disp/.cache/chicken-install/crunch -O2 -d1
> /home/disp/.cache/chicken-install/crunch/crunch-utf.c -o
> /home/disp/.cache/chicken-install/crunch/crunch-utf.oIn file included from
> /home/disp/.cache/chicken-install/crunch/crunch-utf.c:3:0:/home/disp/.cache/chicken-install/crunch/crunch.h:
> In function
> ‘crunch_pin_rec’:/home/disp/.cache/chicken-install/crunch/crunch.h:225:3:
> error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode
> for(int i = 0; i < b->len; ++i) crunch_pin_rec(*(b2++));
> ^/home/disp/.cache/chicken-install/crunch/crunch.h:225:3: note: use option
> -std=c99, -std=gnu99, -std=c11 or -std=gnu11 to compile your
> code/home/disp/.cache/chicken-install/crunch/crunch.h: In function
> ‘crunch_unref_internal’:/home/disp/.cache/chicken-install/crunch/crunch.h:262:5:
> error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode
> for(int i = 0; i < v->len; ++i) ^*
> *... many seamless error msgs*
>
CRUNCH requires a C99 compiler, this is deliberate.
cheers,
felix
[Prev in Thread] | Current Thread | [Next in Thread] |