[Ecls-list] compiling with mingw-w64

Martin Rubey martin.rubey at math.uni-hannover.de
Wed Apr 14 18:57:56 UTC 2010


Martin Rubey <martin.rubey at math.uni-hannover.de> writes:

> Juan Jose Garcia-Ripoll <juanjose.garciaripoll at googlemail.com> writes:
>
>> On Wed, Apr 14, 2010 at 3:10 PM, Martin Rubey <
>> martin.rubey at math.uni-hannover.de> wrote:
>>
>>     I'm trying to (cross-compile) ecl for 64 bit on windows, but already
>>     configure fails.
>>
>> Sorry, I missed the cross-compile part.  I have fixed the autoconf file (src/
>> aclocal.m4) so that it adds some new options to the cross compilation file.
>> You will have to fill these options by hand. They were missing because we
>> forgot to check for cross compilation in these tests (ECL_LONG_LONG_BITS,
>> ECL_WORKING_SEM_INIT, etc)
>>
>> However note that I can not assure that cross compilation will work -- I did
>> not set up a cross compiler myself and these options are largely untested.
>
> OK, I just tried.  I'm now getting the following with a fresh cvs
> checkout.  But I have no idea which file to edit, and what to write into
> it...

I just reran configure a second time, which (sort of) finished without
error (to my surprise), and ran make.  gmp (4.3.2 + patch by Ozkan, not
the one shipped with ecl!!!) seems to have built correctly, however I
get the following, which seems to be due to the fact that I didn't
supply the right values for the variables you mentioned...

Help!

Martin


make[6]: Leaving directory `/home/Mari/ecl-cvs-x64/build/gmp'
make[5]: Leaving directory `/home/Mari/ecl-cvs-x64/build/gmp'
make[4]: Leaving directory `/home/Mari/ecl-cvs-x64/build/gmp'
make[3]: Leaving directory `/home/Mari/ecl-cvs-x64/build/gmp'
make[2]: Leaving directory `/home/Mari/ecl-cvs-x64/build/gmp'
test -d ecl/gc || mkdir ecl/gc
test -d ecl/gc/private || mkdir ecl/gc/private
if (echo c gmp gc | grep gc); then \
          cd gc && make install && cd .. && \
          cp -rf /home/Mari/ecl-cvs-x64/src/gc/include/private/*.h ecl/gc/privat
e/ && \
          mv libgc.a libeclgc.a; \
        fi
c gmp gc
make[2]: Entering directory `/home/Mari/ecl-cvs-x64/build/gc'
make[3]: Entering directory `/home/Mari/ecl-cvs-x64/build/gc'
depbase=`echo allchblk.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`; \
        if /bin/sh ./libtool --tag=CC --mode=compile x86_64-w64-mingw32-gcc  -DP
ACKAGE_NAME=\"gc\" -DPACKAGE_TARNAME=\"gc\" -DPACKAGE_VERSION=\"7.1\" -DPACKAGE_
STRING=\"gc\ 7.1\" -DPACKAGE_BUGREPORT=\"Hans.Boehm at hp.com\" -DGC_VERSION_MAJOR=
7 -DGC_VERSION_MINOR=1 -DPACKAGE=\"gc\" -DVERSION=\"7.1\" -DSTDC_HEADERS=1 -DHAV
E_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_M
EMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD
_H=1 -DHAVE_DLFCN_H=1 -DNO_EXECUTE_PERMISSION=1 -DALL_INTERIOR_POINTERS=1 -DGC_G
CJ_SUPPORT=1 -DJAVA_FINALIZATION=1 -DATOMIC_UNCOLLECTABLE=1 -DLARGE_CONFIG=1  -I
/home/Mari/ecl-cvs-x64/src/gc/include   -fexceptions -I libatomic_ops/src -g -O2
   -MT allchblk.lo -MD -MP -MF "$depbase.Tpo" -c -o allchblk.lo /home/Mari/ecl-c
vs-x64/src/gc/allchblk.c; \
        then mv -f "$depbase.Tpo" "$depbase.Plo"; else rm -f "$depbase.Tpo"; exi
t 1; fi
 x86_64-w64-mingw32-gcc -DPACKAGE_NAME=\"gc\" -DPACKAGE_TARNAME=\"gc\" -DPACKAGE
_VERSION=\"7.1\" "-DPACKAGE_STRING=\"gc 7.1\"" -DPACKAGE_BUGREPORT=\"Hans.Boehm@
hp.com\" -DGC_VERSION_MAJOR=7 -DGC_VERSION_MINOR=1 -DPACKAGE=\"gc\" -DVERSION=\"
7.1\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=
1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DH
AVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DNO_EXECUTE_PERMISSION=1 -DAL
L_INTERIOR_POINTERS=1 -DGC_GCJ_SUPPORT=1 -DJAVA_FINALIZATION=1 -DATOMIC_UNCOLLEC
TABLE=1 -DLARGE_CONFIG=1 -I/home/Mari/ecl-cvs-x64/src/gc/include -fexceptions -I
 libatomic_ops/src -g -O2 -MT allchblk.lo -MD -MP -MF .deps/allchblk.Tpo -c /hom
e/Mari/ecl-cvs-x64/src/gc/allchblk.c -o allchblk.o
In file included from /home/Mari/ecl-cvs-x64/src/gc/include/private/gc_priv.h:68
:0,
                 from /home/Mari/ecl-cvs-x64/src/gc/allchblk.c:19:
/home/Mari/ecl-cvs-x64/src/gc/include/private/gcconfig.h:997:7: error: #error Th
is should be handled as X86_64
/home/Mari/ecl-cvs-x64/src/gc/include/private/gcconfig.h:1843:0: warning: "MACH_
TYPE" redefined
/home/Mari/ecl-cvs-x64/src/gc/include/private/gcconfig.h:995:0: note: this is th
e location of the previous definition
/home/Mari/ecl-cvs-x64/src/gc/allchblk.c:21:9: warning: 'GC_use_entire_heap' red
eclared without dllimport attribute: previous dllimport ignored
make[3]: *** [allchblk.lo] Error 1
make[3]: Leaving directory `/home/Mari/ecl-cvs-x64/build/gc'
make[2]: *** [install-recursive] Error 1
make[2]: Leaving directory `/home/Mari/ecl-cvs-x64/build/gc'
make[1]: *** [libeclgc.a] Error 2
make[1]: Leaving directory `/home/Mari/ecl-cvs-x64/build'
make: *** [all] Error 2




More information about the ecl-devel mailing list