[cext] io.cpp build error

7c9936c fails to build on the Win7 Ultimate 32-bit ad-hoc manual CI
box…

C:\Users\Jon\Documents\JavaDev\jruby>ant clean cext
……
[exec] g++ -DNDEBUG -O2 -fno-omit-frame-pointer
-fno-strict-aliasing -W -Wall -W
no-unused -Wno-parentheses -Werror -Wundef
-I"/c/Users/Jon/Documents/JavaDev/jruby/ce
xt/src/…/…//build" -I"/c/Users/Jon/Documents/JavaDev/jruby/cext/src"
-I"/c/Users/Jo
n/Documents/JavaDev/jruby/cext/src/…/…//build"/jni
-I"/c/Users/Jon/Documents/JavaDe
v/jruby/cext/src"/include
-I"/c/Users/Jon/Documents/JavaDev/jruby/cext/src"/include/r
uby -I"C:\Program Files\Java\jdk1.6.0_21/include" -I"C:\Program
Files\Java\jdk1.6.0_
21/include/win32" -D_REENTRANT -D_LARGEFILE64_SOURCE -D_GNU_SOURCE
-march=native -mt
une=native -D_JNI_IMPLEMENTATION_ -DRUBY_DLLSPEC="__declspec(dllexport)"
-c /c/Users/
Jon/Documents/JavaDev/jruby/cext/src/io.cpp -o
/c/Users/Jon/Documents/JavaDev/jruby/c
ext/src/…/…//build/io.o
[exec] cc1plus.exe: warnings being treated as errors
[exec] c:/Users/Jon/Documents/JavaDev/jruby/cext/src/io.cpp: In
constructor ‘jru
by::RubyIO::RubyIO(JNIEnv*, _jobject*, _jobject*, _jstring*)’:
[exec] c:/Users/Jon/Documents/JavaDev/jruby/cext/src/io.cpp:74:14:
error: conver
ting to non-pointer type ‘int’ from NULL
[exec] c:/Users/Jon/Documents/JavaDev/jruby/cext/src/io.cpp: In
function ‘int jr
uby_io_wait(int, int)’:
[exec] c:/Users/Jon/Documents/JavaDev/jruby/cext/src/io.cpp:129:5:
error: compar
ison between signed and unsigned integer expressions
[exec] c:/Users/Jon/Documents/JavaDev/jruby/cext/src/io.cpp: In
function ‘int se
t_non_blocking(int)’:
[exec] c:/Users/Jon/Documents/JavaDev/jruby/cext/src/io.cpp:199:20:
error: ‘FIOB
IO’ was not declared in this scope
[exec] c:/Users/Jon/Documents/JavaDev/jruby/cext/src/io.cpp:199:34:
error: ‘ioct
l’ was not declared in this scope
[exec] c:/Users/Jon/Documents/JavaDev/jruby/cext/src/io.cpp:201:1:
error: contro
l reaches end of non-void function
[exec] make: ***
[/c/Users/Jon/Documents/JavaDev/jruby/cext/src/…/…//build/io.
o] Error 1

BUILD FAILED
C:\Users\Jon\Documents\JavaDev\jruby\build.xml:1539: exec returned: 2


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

Unfortunately, I can’t get to the bottom of this at the moment.
I tried installing devkit from master on a XP VM following your
instructions, but mingw’s make segfaults. I don’t know what’s causing
it. And the machine I used to test on has been wiped, so this VM is all
I’ve got to test on right now :frowning:

On Sep 14, 2010, at 4:45 PM, Jon wrote:

21/include/win32" -D_REENTRANT -D_LARGEFILE64_SOURCE -D_GNU_SOURCE -march=native -mt
[exec] c:/Users/Jon/Documents/JavaDev/jruby/cext/src/io.cpp:129:5: error: compar
o] Error 1

BUILD FAILED
C:\Users\Jon\Documents\JavaDev\jruby\build.xml:1539: exec returned: 2


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

Unfortunately, I can’t get to the bottom of this at the moment.
I tried installing devkit from master on a XP VM following your instructions, but mingw’s make segfaults. I don’t know what’s causing it. And the machine I used to test on has been wiped, so this VM is all I’ve got to test on right now :frowning:

If you’re seeing something like below, it could be that something on the
XP system is conflicting with the DevKit’s msys-1.0.dll and the DLL
needs to be rebased [1]. We’ve recently seen an issue [2] in which an
AV vendor’s DLL collided with the DevKit’s msys-1.0.dll. The fix was a
“rebase -b 0x30000000 msys-1.0.dll” If you want to double check, the
VMMap GUI tool [3] makes it pretty simple.

HTH.

I’m on vacation for a week and will look again when I return. FYI,
looks like build.xml’s new clean-tzdata [4] target causes problems when
using msysgit’s portable version. Doesn’t look to be a showstopper and
I’ll try to get you a patch when I return. You’d think “osfamily” on
the and a windows-only would solve it, but one of the 3
ways to run msysgit portable (git-bash.bat) causes problems.

Jon

make
0 [main] us 0 init_cheap: VirtualAlloc pointer is null, Win32
error 487
AllocationBase 0x1140000, BaseAddress 0x1660000, RegionSize 0x6E0000,
State 0x2000
C:\devkit\bin\make.exe: *** Couldn’t reserve space for cygwin’s heap,
Win32 error 0

[1] Google Code Archive - Long-term storage for Google Code Project Hosting.
[2]
http://groups.google.com/group/rubyinstaller/browse_thread/thread/c904ac5fe1afd34f/d74d630e24fb0253
[3] VMMap - Sysinternals | Microsoft Learn
[4] http://github.com/jruby/jruby/blob/cext/build.xml#L1621


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email