chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Re: First release of CRUNCH


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.
 
I think i saved this by slipping parameters   before calling the script ./configure

CFLAGS="-std=c11 -D_GNU_SOURCE" ./configure --prefix=/opt/call-cc.org/chicken-6pre  --chicken=./chicken-boot

yep!  i see things like
gcc -fno-strict-aliasing -fwrapv -DHAVE_CHICKEN_CONFIG_H -DC_ENABLE_PTABLES -fPIC -DPIC -c -std=c11 -D_GNU_SOURCE chicken-install.c -o chicken-install.o -I. -I./

but when i doing
...../bin/chicken-install -test crunch
same again
...
 /opt/call-cc.org/chicken-6pre/bin/csc -setup-mode -host -I /home/disp/.cache/chicken-install/crunch -C -I/home/disp/.cache/chicken-install/crunch -O2 -d1 crunch-driver.scm -o /home/disp/.cache/chicken-install/crunch/chicken-crunch
installing crunch
0001-tak.scm ...In file included from a.c:4:0:
../crunch.h: In function ‘crunch_pin_rec’:
../crunch.h:226: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++));
   ^
../crunch.h:226:3: note: use option -std=c99, -std=gnu99, -std=c11 or -std=gnu11 to compile your code


At this point I do not understand where to put -std=c11 in. Maybe way before, in scripts/bootstrap.sh by hand?


вт, 3 дек. 2024 г. в 17:30, <felix.winkelmann@bevuta.com>:
> 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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]