[Vm-dev] Compiling the windows 32 bits vm

Nicolai Hess nicolaihess at gmail.com
Sun Apr 8 10:27:43 UTC 2018


2018-04-05 12:29 GMT+02:00 Cyril Ferlicot D <cyril at ferlicot.me>:

>
> On 05/04/2018 07:36, Nicolas Cellier wrote:
> > Good idea.
> > Perhaps we should add the preinstalled libraries in .appveyor.yml to
> > begin with.
> >
> > Then i suspect you get same problem as gcc:
> >     which cmake
> > Don't you have another one installed?
> >
>
> Hi Nicolas,
>
> Executing `which cmake` in my cygwin return:
>
> /cygdrive/c/cygwin/bin/cmake
>
> Which seems correct since I install it on C:\cygwin on this computer.
>
> > It looks like the path is not correctly set. I do not understand why, i
> > have concurrent cmake installed and they don't interfere.
> >
> > Do you launch the build from a cygwin terminal?
> >
>
> If it can help, here is what I do to build the VM:
>
> - I delete my current cygwin folder
> - I launch the batch to reinstall cygwin (the one I shared in my
> previous email) to install it in C:\cygwin
> - I launch the newly installed Cygwin (C:\cygwin\Cygwin.bat)
> - I execute `export PATH=/cygdrive/c/cygwin/bin:$PATH` to add the newly
> installed packages to the path.
> - I move to the pharo.cog.spur folder in cygwin
> - I launch `./mvm`
>
>
>
Hi Cyril, I am so happy some one got this working (I have the impression,
esteban is the only one who can build a windows vm :( )

Here are my attemps
http://forum.world.st/PharoSpur32Vm-tp4930245p4956228.html

I tried to recreate the appveyor environment locally to be able to build
the vm, like it is done on the build server.
This works fine for the squeak vm, but not for pharo.
Whatever I tried, it always fails to build the third-party libs (starting
with pkg-config).
first, it can not find the proper gcc to use. My cygwin-environment has
i686-w64-mingw32-gcc
and this is what is set in "Makefile.tools"

TOOLPREFIX:=i686-w64-mingw32-

#############################################################################
# C compiler settings (gcc 4.x)
#
ifeq ($(COMPILER_TO_USE),)
COMPILER_TO_USE:=gcc
endif

ifeq ($(COMPILER_TO_USE),clang)
CC:= $(TOOLPREFIX)clang
CXX:= $(TOOLPREFIX)clang++
else
CC:= $(TOOLPREFIX)gcc
CXX:= $(TOOLPREFIX)g++
endif

so it should set the CC to use
i686-w64-mingw32-gcc

but the configure script of pkg-config, complains about "no suitable gcc
found"

How did you get this to work ?


(If I change the Makefile of pkg-config, to set the CC hardcoded to
i686-w64-mingw32-gcc, the configuring works
but it fails linking pkg-config, because it can not find libglib-2.0,
although this is set in the environment).

There MUST be a way to do this, or how is it done at the biuld-server ? I
see the recent windows-builds succeeded, but I can
not see where the third-party libs are build.






> --
> Cyril Ferlicot
> https://ferlicot.fr
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/vm-dev/attachments/20180408/59fe1dde/attachment-0001.html>


More information about the Vm-dev mailing list