[squeak-dev] vm build environment on windows

henry henrylavado at gmx.com
Fri Oct 9 12:22:22 UTC 2015


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


More information about the Squeak-dev mailing list