[eclipse-clp-users] ECLiPSe 7.0#49 compilation errors on macOS

From: Paulo Moura <pmoura_at_...342...>
Date: Wed, 18 Sep 2019 10:21:07 +0100
Hi,

I'm trying to compile ECLiPSe 7.0#49 on macOS. GMP 6.1.2 is found during the configure phase. But during make I get the following errors:

23:23 $ make -f Makefile.$ECLIPSEARCH
======== make_shm ========
gcc -m64  -mmacosx-version-min=10.5   -D_REENTRANT -fPIC -fno-strict-overflow -Wno-logical-op-parentheses -Wno-bitwise-op-parentheses -Wno-pointer-sign -O2 -fomit-frame-pointer -I.  -c -o alloc.o ../src/alloc.c
In file included from ../src/alloc.c:53:
../src/memman.h:50:2: error: "No code for dealing with sizeof(int) != 4"
#error "No code for dealing with sizeof(int) != 4"
 ^
../src/memman.h:137:2: error: unknown type name 'bits32'
        bits32          *map[BITMAP_BLOCKS];    /* bitmap of pages (1 = free) */
        ^
../src/alloc.c:60:13: warning: 'bcopy' macro redefined [-Wmacro-redefined]
#    define bcopy(s1, s2, n)    (void) memcpy((void *)(s2),(void *)(s1), n)
            ^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/secure/_strings.h:45:9: note: 
      previous definition is here
#define bcopy(src, dest, ...) \
        ^
../src/alloc.c:190:27: error: expected expression
        pages->map[i] = (bits32 *) 0;
                                 ^
../src/alloc.c:190:19: error: use of undeclared identifier 'bits32'
        pages->map[i] = (bits32 *) 0;
                         ^
1 warning and 4 errors generated.
make[1]: *** [alloc.o] Error 1
make: *** [make_shm] Error 2

Any hints?

Thanks,
Paulo

-----------------------------------------------------------------
Paulo Moura
Logtalk developer
Received on Wed Sep 18 2019 - 09:58:44 CEST

This archive was generated by hypermail 2.3.0 : Wed Sep 25 2024 - 15:13:21 CEST