gcl-devel
[Top][All Lists]
Advanced

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

[Gcl-devel] Compiling GCL with Wine


From: Gabriel Dos Reis
Subject: [Gcl-devel] Compiling GCL with Wine
Date: Sat, 11 Sep 2010 12:23:49 -0500

Camm Maguire <address@hidden> writes:

[...]

| > Camm, what are the instructions to build and test GCL under wine?
| >
| 
| This is the README.wine file:

Hi Camm,

Thanks for the instructions.  My box is a x86_64 running openSUSE-11.2.
I don't think that matters substantially. However, a few notes for
anyone out there who would like to try the cross compile:

| On Debian, for example, gcl can be run and tested under wine as follows:
| 
| (as root)
| 
| aptitude install mingw32 mingw32-runtime mingw32-binutils wine
| 
| If necessary, as root
| 
| update-binfmts --enable wine

openSUSE does not have `update-binfmts', but:
  (1) one can install wine through YAST
  (2) enable wine as

   # echo ':DOSWin:M::MZ::/usr/bin/wine:' >> /proc/sys/fs/binfmt_misc/register

On x86_64, the cross compiler tools for MinGW available through YAST
would have some trouble installing (because it does not have a 64-bit
cross build.)  The simplest is to just build your own cross tool chain.
Here is what I did:

   (a) Build binutils:
      (i) download binutils (2.20.1)
      (ii) build with prefix /opt/cross and target i686-pc-mingw32
      (iii) install

   (b) Build minimal GCC
      (i) download GCC -- I just took the development version
      (ii) configure with prefix /opt/cross, target i686-pc-mingw32 and
           other switches such as 
             --enable-languages='c,c++' \
             --disable-nls --disable-multilib \
             --disable-bootstrap
      (iii) make all-gcc && sudo make install-gcc

   (c) Install MinGW headers and libraries
      (i) donwload MinGW-RT and W32API from MinGW sourcefore website
      (ii) unpack them in /opt/cross/i686-pc-mingw32
  
   (d) Rebuild and install full GCC with (C and C++ compilers)

| Then as a normal user,
| 
| export PATH=/usr/i586-mingw32msvc/bin:$PATH
| export CC=/usr/bin/i586-mingw32msvc-gcc
| 
| ./configure --host=mingw32 && make
| 

PATH=/optc/cross/i686-pc-mingw32/bin:$PATH
CC='i686-pc-mingw32-gcc' ./configure --host=i686-pc-mingw32 
--prefix=/opt/cross/i686-pc-mingw32
make

With that, the system built raw_pre_gcl.exe.  But, the the boostrap
failed with the following:

   cp init_pre_gcl.lsp foo
   echo " (in-package \"USER\")(system:save-system \"saved_pre_gcl\")" >>foo
   ar x libpre_gcl.a $(ar t libpre_gcl.a |grep ^gcl_)
   /home/gdr/src/gcl-2.6.8pre/unixport/raw_pre_gcl.exe 
/home/gdr/src/gcl-2.6.8pre/unixport/ -libdir /home/gdr/src/gcl-2.6.8pre/ < foo

   Unrecoverable error: Can't allocate.  Good-bye!.


The system has 8GB of physical memory.  Any idea as of why it gcl_pre
could not allocate?

-- Gaby



reply via email to

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