Anything wrong with x86_64 and SYSV shared memory allocation?
Anything wrong with x86_64 and SYSV shared memory allocation?
- Subject: Anything wrong with x86_64 and SYSV shared memory allocation?
- From: Kevin Murphy <email@hidden>
- Date: Mon, 23 Apr 2007 10:33:44 -0400
I've previously posted to darwin-dev and darwin-x86 lists with no response.
Whenever I try to use shmem to allocate SYSV shared memory on an XServe
Quad Xeon (OS X 10.4.9, latest XCode) using the "-arch x86_64" compiler
switch, I get ENOMEM returned. There's plenty of SYSV memory allocated
via sysctl.conf, and the same code works fine with "-arch i386" (or
"-arch ppc64" on a G5). This box has 16GB RAM, although that is
presumably irrelevant.
Anything I need to know?
I double-checked the result with a SYSV shared memory demo program
(google for shared-mem.c).
What I'm actually trying to do is compile 64-bit PostgreSQL, which
compiles fine using "-arch x86_64" in CFLAGS, but it fails its
regression tests because it can't allocate memory with shmget
(ENOMEM is returned). The 32-bit PostgreSQL compiles and works fine.
Thanks,
Kevin Murphy
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden