vm build environment on windows

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
16 messages Options
Reply | Threaded
Open this post in threaded view
|

vm build environment on windows

Henry Lavado
I was unable to successfully compile gcc.exe 3.4.4 under current Cygwin.
It compiled some target binaries but lots of warnings and ultimate failure.

Does anyone happen to have gcc 3.4.4 built for i386-64-cygwin? If so and
installed to /usr/local, could you zip up the following and send to me,
please?

- bin/gcc.exe
- lib/gcc/**/*.*
- libexec/gcc/**/*.*

If not, any ideas where I could come by this?

regards,
Henry

Reply | Threaded
Open this post in threaded view
|

Re: vm build environment on windows

Henry Lavado
Hello,

I was not able to find gcc 3.4.4 for the latest Cygwin nor could I find
Cygwin 5.1, so I switched to trying the MingW route. They have a gcc
3.4.5 compiler which I chose. Ultimate I ran into undeclared symbols,
when running mwm.

Here's what I did:
1) MingW installer:
http://sourceforge.net/projects/mingw/files/latest/download and installed
1.a) added gcc 2.4.5
2) CMake 2.8.8 installer:
http://www.cmake.org/files/v2.8/cmake-2.8.8-win32-x86.exe and installed
3) Follow vm build instructions:
http://www.mirandabanda.org/cogblog/compiling-the-vm
3.a) checkout Cog sources
3.b) Change directory to build.win32x86
3.c) edit plugins.ext to remove Bochs plugin
3.d) run mvm

I received errors, listed below. I am not sure what the next step should be.

regards,
Henry

gcc -o build/vm/sqWin32Main.o -isystem/usr/include/mingw
-I/usr/include/w32api -
msse2 -ggdb2 -mwindows -mthreads -mno-cygwin -mwin32 -mno-rtd
-mms-bitfields -mn
o-accumulate-outgoing-args -D_MT -O2 -march=pentium4
-momit-leaf-frame-pointer -
funroll-loops -D_MT -fno-builtin-printf -fno-builtin-putchar
-fno-builtin-fprint
f -I. -I../../spursrc/vm -I../../platforms/win32/vm
-I../../platforms/Cross/vm -
I../../platforms/win32/third-party/dx9sdk/Include  -DCOGMTVM=0
-DDEBUGVM=0 -D_WI
N32_WINNT=0x0501 -DWINVER=0x0501 -DWIN32 -DWIN32_FILE_SUPPORT -DNO_ISNAN
-DNO_SE
RVICE -DNO_STD_FILE_SUPPORT -D'TZ="EDT"' -DNDEBUG -D'VM_LABEL(foo)=0'  
-DLSB_FIR
ST -D'VM_NAME="Squeak"' -DX86  -DCROQUET -c
../../platforms/win32/vm/sqWin32Main
.c
../../platforms/win32/vm/sqWin32Main.c: In function
`squeakExceptionHandler':
../../platforms/win32/vm/sqWin32Main.c:133: error: `_RC_NEAR' undeclared
(first
use in this function)
../../platforms/win32/vm/sqWin32Main.c:133: error: (Each undeclared
identifier i
s reported only once
../../platforms/win32/vm/sqWin32Main.c:133: error: for each function it
appears
in.)
../../platforms/win32/vm/sqWin32Main.c:133: error: `_PC_53' undeclared
(first us
e in this function)
../../platforms/win32/vm/sqWin32Main.c:133: error: `_EM_INVALID'
undeclared (fir
st use in this function)
../../platforms/win32/vm/sqWin32Main.c:133: error: `_EM_ZERODIVIDE'
undeclared (
first use in this function)
../../platforms/win32/vm/sqWin32Main.c:133: error: `_EM_OVERFLOW'
undeclared (fi
rst use in this function)
../../platforms/win32/vm/sqWin32Main.c:133: error: `_EM_UNDERFLOW'
undeclared (f
irst use in this function)
../../platforms/win32/vm/sqWin32Main.c:133: error: `_EM_INEXACT'
undeclared (fir
st use in this function)
../../platforms/win32/vm/sqWin32Main.c:133: error: `_EM_DENORMAL'
undeclared (fi
rst use in this function)
../../platforms/win32/vm/sqWin32Main.c:133: error: `_MCW_EM' undeclared
(first u
se in this function)
../../platforms/win32/vm/sqWin32Main.c:133: error: `_MCW_RC' undeclared
(first u
se in this function)
../../platforms/win32/vm/sqWin32Main.c:133: error: `_MCW_PC' undeclared
(first u
se in this function)
../../platforms/win32/vm/sqWin32Main.c:133: error: `_MCW_IC' undeclared
(first u
se in this function)
../../platforms/win32/vm/sqWin32Main.c: In function `gatherSystemInfo':
../../platforms/win32/vm/sqWin32Main.c:468: warning: assignment makes
pointer fr
om integer without a cast
../../platforms/win32/vm/sqWin32Main.c:565: warning: assignment makes
pointer fr
om integer without a cast
../../platforms/win32/vm/sqWin32Main.c:609: warning: assignment makes
pointer fr
om integer without a cast
../../platforms/win32/vm/sqWin32Main.c:760: warning: assignment makes
pointer fr
om integer without a cast
../../platforms/win32/vm/sqWin32Main.c: In function `sqMain':
../../platforms/win32/vm/sqWin32Main.c:1306: error: `_RC_NEAR'
undeclared (first
  use in this function)
../../platforms/win32/vm/sqWin32Main.c:1306: error: `_PC_53' undeclared
(first u
se in this function)
../../platforms/win32/vm/sqWin32Main.c:1306: error: `_EM_INVALID'
undeclared (fi
rst use in this function)
../../platforms/win32/vm/sqWin32Main.c:1306: error: `_EM_ZERODIVIDE'
undeclared
(first use in this function)
../../platforms/win32/vm/sqWin32Main.c:1306: error: `_EM_OVERFLOW'
undeclared (f
irst use in this function)
../../platforms/win32/vm/sqWin32Main.c:1306: error: `_EM_UNDERFLOW'
undeclared (
first use in this function)
../../platforms/win32/vm/sqWin32Main.c:1306: error: `_EM_INEXACT'
undeclared (fi
rst use in this function)
../../platforms/win32/vm/sqWin32Main.c:1306: error: `_EM_DENORMAL'
undeclared (f
irst use in this function)
../../platforms/win32/vm/sqWin32Main.c:1306: error: `_MCW_EM' undeclared
(first
use in this function)
../../platforms/win32/vm/sqWin32Main.c:1306: error: `_MCW_RC' undeclared
(first
use in this function)
../../platforms/win32/vm/sqWin32Main.c:1306: error: `_MCW_PC' undeclared
(first
use in this function)
../../platforms/win32/vm/sqWin32Main.c:1306: error: `_MCW_IC' undeclared
(first
use in this function)
../../platforms/win32/vm/sqWin32Main.c: In function `WinMain':
../../platforms/win32/vm/sqWin32Main.c:1535: warning: assignment makes
pointer f
rom integer without a cast
../../platforms/win32/vm/sqWin32Main.c:1567: error: `_fmode' undeclared
(first u
se in this function)
../../platforms/win32/vm/sqWin32Main.c: In function `getRedzoneSize':
../../platforms/win32/vm/sqWin32Main.c:2013: error: structure has no
member name
d `sa_sigaction'
../../platforms/win32/vm/sqWin32Main.c:2014: error: `SA_SIGINFO'
undeclared (fir
st use in this function)
make: *** [build/vm/sqWin32Main.o] Error 1
ls: build*/vm/Squeak*.exe: No such file or directory

Reply | Threaded
Open this post in threaded view
|

Re: vm build environment on windows

marcel.taeumel
Hi Henry,

here is how it works with GCC 4.9.2 using only the SVN C sources (i.e. w/o having to run VM-Maker):

1. Install latest Cygwin.
2. Load all requried mingw64-i686-* packages (binutils, gcc-g++, runtime should be enough)
3. Check-out latest cog sources.
4. Adapt the particular Makefile (e.g. C:\Tools\cogvm_cygwin\build.win32x86\squeak.cog.spur\Markfile) to find the tools with the "mingw64-i686*" prefix. Do it also with the "Makefile.plugin" file.
5. Fix some build-inbee-5.patch flags that do not work with GCC 4 anymore. (see attached patch file).
6. Open Cygwin and run "./mvm"

Please find attached a patch to update the Windows build files. We will integrate it into the SVN soon.

Best,
Marcel
Reply | Threaded
Open this post in threaded view
|

Re: vm build environment on windows

Henry Lavado
This is gold.  Thank you very much, Marcel, I will attempt later today
when I can set a time commitment.

Best regards,
Henry

On 10/9/2015 8:30 AM, marcel.taeumel wrote:

> Hi Henry,
>
> here is how it works with GCC 4.9.2 using only the SVN C sources (i.e. w/o
> having to run VM-Maker):
>
> 1. Install latest Cygwin.
> 2. Load all requried mingw64-i686-* packages (binutils, gcc-g++, runtime
> should be enough)
> 3. Check-out latest cog sources.
> 4. Adapt the particular Makefile (e.g.
> C:\Tools\cogvm_cygwin\build.win32x86\squeak.cog.spur\Markfile) to find the
> tools with the "mingw64-i686*" prefix. Do it also with the "Makefile.plugin"
> file.
> 5. Fix some build-in bee-5.patch
> <http://forum.world.st/file/n4854700/bee-5.patch>   flags that do not work
> with GCC 4 anymore. (see attached patch file).
> 6. Open Cygwin and run "./mvm"
>
> Please find attached a patch to update the Windows build files. We will
> integrate it into the SVN soon.
>
> Best,
> Marcel
>
>
>
> --
> View this message in context: http://forum.world.st/vm-build-environment-on-windows-tp4854659p4854700.html
> Sent from the Squeak - Dev mailing list archive at Nabble.com.
>


Reply | Threaded
Open this post in threaded view
|

Re: vm build environment on windows

Henry Lavado
In reply to this post by marcel.taeumel
Hi Marcel,

I got quite far with your suggestion. I had to remove -mno-cygwin flags
in many places, when I switched to i686-w64-mingw32-gcc and so. mvm
managed to compile and link many libs.

However, I have hit an error and I wonder if you've any ideas. Trace is
below.

Regards,
Henry


make  -C ./build/FilePlugin BUILD=build \
         -f../../Makefile.plugin \
         PLATDIR=../../../../platforms BASEDIR=../../. \
         PLUGINSRCDIR=../../../../src VMSRCDIR=../../../../spursrc \
         LIBNAME=FilePlugin COGDEFS="-DCOGMTVM=0 -DDEBUGVM=0"
XDEFS=-DSQUEAK_BUILTIN_PLUGIN \
         ../.././build/vm/FilePlugin.lib
make[1]: Entering directory
'/home/rabbit/Cog/build.win32x86/squeak.cog.spur/build/FilePlugin'
i686-w64-mingw32-gcc -isystem/usr/include/mingw -I/usr/include/w32api
-msse2 -ggdb2 -mwindows -mdll -mwin32 -mno-rtd -mms-bitfields
-mno-accumulate-outgoing-args -D_MT -O1 -march=pentium4
-momit-leaf-frame-pointer -funroll-loops -fno-builtin-printf
-fno-builtin-putchar -fno-builtin-fprintf -I.
-I../../../../platforms/win32/third-party/dx9sdk/Include
-I../../../../spursrc/vm -I../../../../platforms/win32/vm
-I../../../../platforms/Cross/vm -I../../../../src/plugins/FilePlugin
-I../../../../platforms/win32/plugins/FilePlugin
-I../../../../platforms/Cross/plugins/FilePlugin -D_WIN32_WINNT=0x0501
-DWINVER=0x0501 -DWIN32 -DWIN32_FILE_SUPPORT -DNO_ISNAN -DNO_SERVICE
-DNO_STD_FILE_SUPPORT -DNDEBUG -DLSB_FIRST -DVM_NAME=\"\" -DX86
-DSQUEAK_BUILTIN_PLUGIN -c ../../../../src/plugins/FilePlugin/FilePlugin.c
../../../../src/plugins/FilePlugin/FilePlugin.c:1:0: warning: stack
probing requires -maccumulate-outgoing-args for correctness
  /* Automatically generated by
  ^
i686-w64-mingw32-gcc -isystem/usr/include/mingw -I/usr/include/w32api
-msse2 -ggdb2 -mwindows -mdll -mwin32 -mno-rtd -mms-bitfields
-mno-accumulate-outgoing-args -D_MT -O1 -march=pentium4
-momit-leaf-frame-pointer -funroll-loops -fno-builtin-printf
-fno-builtin-putchar -fno-builtin-fprintf -I.
-I../../../../platforms/win32/third-party/dx9sdk/Include
-I../../../../spursrc/vm -I../../../../platforms/win32/vm
-I../../../../platforms/Cross/vm -I../../../../src/plugins/FilePlugin
-I../../../../platforms/win32/plugins/FilePlugin
-I../../../../platforms/Cross/plugins/FilePlugin -D_WIN32_WINNT=0x0501
-DWINVER=0x0501 -DWIN32 -DWIN32_FILE_SUPPORT -DNO_ISNAN -DNO_SERVICE
-DNO_STD_FILE_SUPPORT -DNDEBUG -DLSB_FIRST -DVM_NAME=\"\" -DX86
-DSQUEAK_BUILTIN_PLUGIN -c
../../../../platforms/win32/plugins/FilePlugin/sqWin32FilePrims.c
../../../../platforms/win32/plugins/FilePlugin/sqWin32FilePrims.c:1:0:
warning: stack probing requires -maccumulate-outgoing-args for correctness
  /****************************************************************************
  ^
In file included from /usr/include/w32api/windows.h:72:0,
                  from
../../../../platforms/win32/plugins/FilePlugin/sqWin32FilePrims.c:22:
/usr/include/w32api/winuser.h:2168:3: warning: ‘dllimport’ attribute
ignored [-Wattributes]
    WINUSERAPI WINBOOL WINAPI UpdateLayeredWindowIndirect (HWND hWnd,
const UPDATELAYEREDWINDOWINFO *pULWInfo);
    ^
../../../../platforms/win32/plugins/FilePlugin/sqWin32FilePrims.c: In
function ‘sqFileSync’:
../../../../platforms/win32/plugins/FilePlugin/sqWin32FilePrims.c:305:22: error:
expected expression before ‘SQFile’
    return sqFileFlush(SQFile *f);
                       ^
../../Makefile.plugin:164: recipe for target 'sqWin32FilePrims.o' failed
make[1]: *** [sqWin32FilePrims.o] Error 1


On 10/9/2015 8:30 AM, marcel.taeumel wrote:

> Hi Henry,
>
> here is how it works with GCC 4.9.2 using only the SVN C sources (i.e. w/o
> having to run VM-Maker):
>
> 1. Install latest Cygwin.
> 2. Load all requried mingw64-i686-* packages (binutils, gcc-g++, runtime
> should be enough)
> 3. Check-out latest cog sources.
> 4. Adapt the particular Makefile (e.g.
> C:\Tools\cogvm_cygwin\build.win32x86\squeak.cog.spur\Markfile) to find the
> tools with the "mingw64-i686*" prefix. Do it also with the "Makefile.plugin"
> file.
> 5. Fix some build-in bee-5.patch
> <http://forum.world.st/file/n4854700/bee-5.patch>   flags that do not work
> with GCC 4 anymore. (see attached patch file).
> 6. Open Cygwin and run "./mvm"
>
> Please find attached a patch to update the Windows build files. We will
> integrate it into the SVN soon.
>
> Best,
> Marcel
>
>
>
> --
> View this message in context: http://forum.world.st/vm-build-environment-on-windows-tp4854659p4854700.html
> Sent from the Squeak - Dev mailing list archive at Nabble.com.
>


Reply | Threaded
Open this post in threaded view
|

Re: vm build environment on windows

marcel.taeumel
Hi Henry,

please install the patch directly after checkout: bee-5.patch

Best,
Marcel
Reply | Threaded
Open this post in threaded view
|

Re: vm build environment on windows

Henry Lavado
Marcel, here is a list of issues I ran into, and my attempts at solving
them. The result is more compilation errors.

1) using Cygwin 64bit I had a problem with cygwin1.dll causing a seg
fault. There is literature about the problem mentioning fixing some
source and recompiling. I bailed on this effort.
2) switched to 32bit Cygwin
3) The patch file is for 64bit so I am translating by hand and attaching
the results. NOTE #1
4) 32-bit patch couldn't find files to modify, so I modified by hand.
5) running mvm, I got another set of errors for undeclared, late in the
build, listed below

NOTES
#1 - I think there are 2 spots with -mno-cygwin that are not covered by
the script but I didn't want to figure out how to encode it correctly.
It would be better with a new patch generated.
#2 - since 32 and 64 -bit windows are different, having 2 different
build targets may make sense.

Regards,
Henry


i686-pc-mingw32-gcc -o build/vm/sqWin32Main.o
-I/usr/i686-pc-mingw32/sys-root/mingw/include -msse2 -ggdb2 -mwindows
-mthreads -mwin32 -mno-rtd -mms-bitfields -mno-accumulate-outgoing-args
-mstack-arg-probe -D_MT -O2 -march=pentium4 -momit-leaf-frame-pointer
-funroll-loops -D_MT -fno-builtin-printf -fno-builtin-putchar
-fno-builtin-bzero -I. -I../../spursrc/vm -I../../platforms/win32/vm
-I../../platforms/Cross/vm
-I../../platforms/win32/third-party/dx9sdk/Include  -DCOGMTVM=0
-DDEBUGVM=0 -D_WIN32_WINNT=0x0501 -DWINVER=0x0501 -DWIN32
-DWIN32_FILE_SUPPORT -DNO_ISNAN -DNO_SERVICE -DNO_STD_FILE_SUPPORT
-D'TZ="EDT"' -DNDEBUG -D'VM_LABEL(foo)=0'  -DLSB_FIRST
-D'VM_NAME="Squeak"' -DX86  -DCROQUET -c
../../platforms/win32/vm/sqWin32Main.c
../../platforms/win32/vm/sqWin32Main.c:1:0: warning: unwind tables
currently require either a frame pointer or -maccumulate-outgoing-args
for correctness [enabled by default]
../../platforms/win32/vm/sqWin32Main.c: In function
‘squeakExceptionHandler’:
../../platforms/win32/vm/sqWin32Main.c:133:18: error: ‘_RC_NEAR’
undeclared (first use in this function)
../../platforms/win32/vm/sqWin32Main.c:133:18: note: each undeclared
identifier is reported only once for each function it appears in
../../platforms/win32/vm/sqWin32Main.c:133:18: error: ‘_PC_53’
undeclared (first use in this function)
../../platforms/win32/vm/sqWin32Main.c:133:18: error: ‘_EM_INVALID’
undeclared (first use in this function)
../../platforms/win32/vm/sqWin32Main.c:133:18: error: ‘_EM_ZERODIVIDE’
undeclared (first use in this function)
../../platforms/win32/vm/sqWin32Main.c:133:18: error: ‘_EM_OVERFLOW’
undeclared (first use in this function)
../../platforms/win32/vm/sqWin32Main.c:133:18: error: ‘_EM_UNDERFLOW’
undeclared (first use in this function)
../../platforms/win32/vm/sqWin32Main.c:133:18: error: ‘_EM_INEXACT’
undeclared (first use in this function)
../../platforms/win32/vm/sqWin32Main.c:133:18: error: ‘_EM_DENORMAL’
undeclared (first use in this function)
../../platforms/win32/vm/sqWin32Main.c:133:31: error: ‘_MCW_EM’
undeclared (first use in this function)
../../platforms/win32/vm/sqWin32Main.c:133:41: error: ‘_MCW_RC’
undeclared (first use in this function)
../../platforms/win32/vm/sqWin32Main.c:133:51: error: ‘_MCW_PC’
undeclared (first use in this function)
../../platforms/win32/vm/sqWin32Main.c:133:61: error: ‘_MCW_IC’
undeclared (first use in this function)
../../platforms/win32/vm/sqWin32Main.c: In function ‘sqMain’:
../../platforms/win32/vm/sqWin32Main.c:1306:14: error: ‘_RC_NEAR’
undeclared (first use in this function)
../../platforms/win32/vm/sqWin32Main.c:1306:14: error: ‘_PC_53’
undeclared (first use in this function)
../../platforms/win32/vm/sqWin32Main.c:1306:14: error: ‘_EM_INVALID’
undeclared (first use in this function)
../../platforms/win32/vm/sqWin32Main.c:1306:14: error: ‘_EM_ZERODIVIDE’
undeclared (first use in this function)
../../platforms/win32/vm/sqWin32Main.c:1306:14: error: ‘_EM_OVERFLOW’
undeclared (first use in this function)
../../platforms/win32/vm/sqWin32Main.c:1306:14: error: ‘_EM_UNDERFLOW’
undeclared (first use in this function)
../../platforms/win32/vm/sqWin32Main.c:1306:14: error: ‘_EM_INEXACT’
undeclared (first use in this function)
../../platforms/win32/vm/sqWin32Main.c:1306:14: error: ‘_EM_DENORMAL’
undeclared (first use in this function)
../../platforms/win32/vm/sqWin32Main.c:1306:27: error: ‘_MCW_EM’
undeclared (first use in this function)
../../platforms/win32/vm/sqWin32Main.c:1306:37: error: ‘_MCW_RC’
undeclared (first use in this function)
../../platforms/win32/vm/sqWin32Main.c:1306:47: error: ‘_MCW_PC’
undeclared (first use in this function)
../../platforms/win32/vm/sqWin32Main.c:1306:57: error: ‘_MCW_IC’
undeclared (first use in this function)
Makefile:324: recipe for target 'build/vm/sqWin32Main.o' failed
make: *** [build/vm/sqWin32Main.o] Error 1






bee-w32-5.patch (35K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: vm build environment on windows

marcel.taeumel
Huh? I did a 32-bit build only. I used Cygwin 32-bit. There is currently no 64-bit build folder for Window builds in the CogVM sources.

Using "i686-pc-mingw32-gcc" is wrong. You should use "i686-w64-mingw32-*" as I described above. These are *not* for 64-bit builds but for 32-bit builds. The 64-bit tool chain include an "x86_64" and not the "i686".

;-)

Best,
Marcel
Reply | Threaded
Open this post in threaded view
|

Re: vm build environment on windows

marcel.taeumel


Best,
Marcel
Reply | Threaded
Open this post in threaded view
|

Re: vm build environment on windows

Henry Lavado
In reply to this post by marcel.taeumel
Oh, I see. Then #1 from my list applies. I was getting a segfault
because of some issue with cygwin1.dll.  I believe it is an issue
specific for Windows 7, which is what I am running.  I suppose I need to
recompile cygwin's dll.

I just got your other mail and I will try those packages first.

Thanks,
Henry

On 10/10/2015 9:14 AM, marcel.taeumel wrote:

> Huh? I did a 32-bit build only. I used Cygwin 32-bit. There is currently no
> 64-bit build folder for Window builds in the CogVM sources.
>
> Using "i686-pc-mingw32-gcc" is wrong. You should use "i686-w64-mingw32-*" as
> I described above. These are *not* for 64-bit builds but for 32-bit builds.
> The 64-bit tool chain include an "x86_64" and not the "i686".
>
> ;-)
>
> Best,
> Marcel
>
>
>
> --
> View this message in context: http://forum.world.st/vm-build-environment-on-windows-tp4854659p4854868.html
> Sent from the Squeak - Dev mailing list archive at Nabble.com.
>


Reply | Threaded
Open this post in threaded view
|

Re: vm build environment on windows

marcel.taeumel
The, I guess, you should install 32-bit Cygwin. :) Anyway, there should be no need for the cygwin1.dll to run the compiled CogVM.

Best,
Marcel
Reply | Threaded
Open this post in threaded view
|

Re: vm build environment on windows

Henry Lavado
Hi Marcel,

I rebuilt my environment and am trying to apply the patch file, without
success. It isn't finding the files to patch. I am running 'patch
--dry-run < bee-5.patch' from the root svn directory I checked out,
where the patch file resides. Perhaps that's wrong.  I suppose I need to
manually change the files, but I'd rather not, you know?  Would you have
any suggestions?

Regards,
Henry



On 10/10/2015 1:56 PM, marcel.taeumel wrote:

> The, I guess, you should install 32-bit Cygwin. :) Anyway, there should be no
> need for the cygwin1.dll to run the compiled CogVM.
>
> Best,
> Marcel
>
>
>
> --
> View this message in context: http://forum.world.st/vm-build-environment-on-windows-tp4854659p4854889.html
> Sent from the Squeak - Dev mailing list archive at Nabble.com.
>


Reply | Threaded
Open this post in threaded view
|

Re: vm build environment on windows

Henry Lavado
In reply to this post by marcel.taeumel
Yes, Marcel! I just tried TortoiseUDiff and Apply Path... and this
worked all Good. It is grinding through the compile right now.  Uh oh,
ok, I got an error on FilePrims again:

i686-w64-mingw32-gcc -I/usr/i686-w64-mingw32/sys-root/mingw/include
-msse2 -ggdb2 -mwindows -mdll -mwin32 -mno-rtd -mms-bitfields
-maccumulate-outgoing-args -mstack-arg-probe -D_MT -O1 -march=pentium4
-momit-leaf-frame-pointer -funroll-loops -fno-builtin-printf
-fno-builtin-putchar -fno-builtin-bzero -I.
-I../../../../platforms/win32/third-party/dx9sdk/Include
-I../../../../spursrc/vm -I../../../../platforms/win32/vm
-I../../../../platforms/Cross/vm -I../../../../src/plugins/FilePlugin
-I../../../../platforms/win32/plugins/FilePlugin
-I../../../../platforms/Cross/plugins/FilePlugin -D_WIN32_WINNT=0x0501
-DWINVER=0x0501 -DWIN32 -DWIN32_FILE_SUPPORT -DNO_ISNAN -DNO_SERVICE
-DNO_STD_FILE_SUPPORT -DNDEBUG -DLSB_FIRST -DVM_NAME=\"\" -DX86
-DSQUEAK_BUILTIN_PLUGIN -c
../../../../platforms/win32/plugins/FilePlugin/sqWin32FilePrims.c
../../../../platforms/win32/plugins/FilePlugin/sqWin32FilePrims.c: In
function ‘sqFileSync’:
../../../../platforms/win32/plugins/FilePlugin/sqWin32FilePrims.c:305:22: error:
expected expression before ‘SQFile’
    return sqFileFlush(SQFile *f);
                       ^
../../Makefile.plugin:165: recipe for target 'sqWin32FilePrims.o' failed
make[1]: *** [sqWin32FilePrims.o] Error 1
make[1]: Leaving directory
'/cygdrive/c/rabbit-hole/mutter/Spur-vm/build.win32x86/squeak.cog.spur/build/FilePlugin'
Makefile:299: recipe for target 'build/vm/FilePlugin.lib' failed
make: *** [build/vm/FilePlugin.lib] Error 2

Regards,

Henry


On 10/10/2015 1:56 PM, marcel.taeumel wrote:

> The, I guess, you should install 32-bit Cygwin. :) Anyway, there should be no
> need for the cygwin1.dll to run the compiled CogVM.
>
> Best,
> Marcel
>
>
>
> --
> View this message in context: http://forum.world.st/vm-build-environment-on-windows-tp4854659p4854889.html
> Sent from the Squeak - Dev mailing list archive at Nabble.com.
>

--
---
Regards,
Henry


Reply | Threaded
Open this post in threaded view
|

Re: vm build environment on windows

marcel.taeumel
In reply to this post by Henry Lavado
The patch files applies to squeak/branches/Cog :)
Reply | Threaded
Open this post in threaded view
|

Re: vm build environment on windows

marcel.taeumel
In reply to this post by Henry Lavado
Hi Henry,

that seems to be a bug in some recent VM changes. I will take a look at it.

Best,
Marcel
Reply | Threaded
Open this post in threaded view
|

Re: vm build environment on windows

marcel.taeumel
Hi Henry,

please use this to make it build again: http://forum.world.st/Patch-FilePlugin-for-Windows-can-now-delete-read-only-files-td4855947.html

Best,
Marcel