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

Re: gauche scheme not entering testing



Jens Thiele <karme@karme.de> writes:

> Jens Thiele <karme@karme.de> writes:
>
>> trying to build in a i386 schroot and in a i386 VM I get:
>> make[3]: Entering directory '/<<PKGBUILDDIR>>'
>> ./scmlit -fr4rstest.scm -e'(test-sc4)(test-delay)(gc)' \
>> -e '(or (null? errs) (quit 1))' < /dev/null
>> add
>> #define SCM_LLONG long long
>> in scmfig.h and recompile scm
>> make[3]: *** [Makefile:509: checklit] Error 1
>
> looks like the problem is that _X86_ isn't defined as expected in
> scmfig.h:277
>
> maybe it should check for __i386__ as well?
>
> karme

this seems to work:

karme@debian:~/scm/debian/patches$ cat fix-i386-build.patch 
--- old/scmfig.h    2024-09-29 18:23:54.544000000 +0200
+++ new/scmfig.h 2024-09-29 18:45:32.004000000 +0200
@@ -274,7 +274,7 @@
 #  define SCM_LLONG __int128
 # endif
 #endif
-#ifdef _X86_                    /* Includes at least gcc on 32-bit platforms */
+#if defined(_X86_) || defined(__i386__)   /* Includes at least gcc on 32-bit platforms */
 # ifdef __STDC_VERSION__  
 #  if (__STDC_VERSION__ >= 199901L) /* ISO C99, has long long */
 #   define SCM_LLONG long long


Reply to: