Gustavo Gutierrez wrote :
On Tue, Aug 12, 2008 at 9:20 AM, Yves Jaradin
<[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> wrote:
[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> wrote :
Hi,
Here is a backtrace of a program that reproduces the error. I
don't
know so much about the problem but seems to be very weird.
Cheers,
Gustavo
#0 0x95964936 in getrlimit ()
#1 0x9599652c in sysconf ()
#2 0x0003212a in osOpenMax () at
/Users/ggutierrez/Work/mozart-gecode-distributor/mozart/platform/emulator/os.cc:1024
#3 0x000321c3 in printfds (fds=0x160080) at
/Users/ggutierrez/Work/mozart-gecode-distributor/mozart/platform/emulator/os.cc:797
#4 0x00032bfa in osCheckIO () at
/Users/ggutierrez/Work/mozart-gecode-distributor/mozart/platform/emulator/os.cc:1466
[...]
On 8/10/08, Boriss Mejias <[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>> wrote:
Victor Rivera wrote:
Hi all,
I am trying to build mozart 1.4.0 from the source
tarball. After a
successful build i tried to run {Browse 'hi'} but the
following message
error is shown:
*** Warning: OS ERROR: checkIO: select failed: Invalid
argument (22)
FDS: 6,10,2054,2058,
FDS: 1030,1034,
My machine is an intel mac running Leopard (10.5). Any
help on this is
highly appreciated.
cheers,
Víctor Alfonso Rivera Zúñiga
Hello,
I suspect the problem is the first argument to select.
According to Apple
(http://developer.apple.com/documentation/Darwin/Reference/ManPages/man2/select.2.html),
we would get this error if this argument (nfds) is greater than
FD_SETSIZE (which is defined to 1024 on some versions of Mac OS X;
smaller than some of the FDs in the message!) while compiling
without -D_DARWIN_UNLIMITED_SELECT.
So if I understand correctly, should we add
-D_DARWIN_UNLIMITED_SELECT as a default compilation flag when building
in OS X?
Cheers,
Gustavo
If you can confirm that this is the problem, then yes as it seems to be
the only documented solution. However, with this flag, the fd sets are
probably implemented with dynamically allocated memory which is slower
than a classic bitmap (should be okay as, if I remember well, win32 does
it like that too).
Cheers,
Yves
_________________________________________________________________________________
mozart-users mailing list
[email protected]
http://www.mozart-oz.org/mailman/listinfo/mozart-users