Skip to content
Prev 1416 / 21312 Next

[Bioc-devel] Bioc 2.2 versus x86_64-only R 2.7 on OS X

Hi Anand,

I hope some Mac expert will be able to help you. Have you tried the R-SIG-Mac
mailing list? Because in the end, the problem you found is not strictly a
Bioconductor question but more generally about compiling R packages (that have
a configure script) for the x86_64 arch on Mac OS X.

Anyway, here are my 2 cents (continued below).
Anand C. Patel wrote:
You should be able to alloc a vector of 1.3GB. Have you reported this to R-devel
or R-SIG-Mac? For example, have you tried this:
  x <- raw(2000000000)
in a fresh R session?
This works for me with a 32-bit R-2.6.0 on an Intel Mac Mini with only 2GB of RAM.
I hope this syntax 'CFLAGS=...', 'OBJCFLAGS=...', etc... instead of CFLAGS='...',
OBJCFLAGS='...', etc... is correct (should be OK but...)
Also, the step-by-step guide on http://r.research.att.com/exp/ doesn't use any
of those args so I hope you know what you are doing.
It seems that only packages with a configure script are affected, is that right?
Have you tried to not use 'CFLAGS=-g -O3 -m64 -I/readline/include -L/readline/lib'
when you compile R. What does it do?

Note that if I use R-25-br-quad.tar.gz from http://r.research.att.com/exp/, then affyio compiles
with no problem:

creating ./config.status
creating src/Makevars
** libs
** arch - x86_64
gcc -arch x86_64 -std=gnu99 -no-cpp-precomp -I/Library/Frameworks/R.framework/Resources/include
-I/Library/Frameworks/R.framework/Resources/include/x86_64 -DHAVE_ZLIB=1  -I/usr/local/include
-D__NO_MATH_INLINES  -fPIC  -g -O2 -c read_abatch.c -o read_abatch.o
gcc -arch x86_64 -std=gnu99 -no-cpp-precomp -I/Library/Frameworks/R.framework/Resources/include
-I/Library/Frameworks/R.framework/Resources/include/x86_64 -DHAVE_ZLIB=1  -I/usr/local/include
-D__NO_MATH_INLINES  -fPIC  -g -O2 -c read_bpmap.c -o read_bpmap.o

(of course this is not the same affyio as yours, because I'm using R-2.5, so I get affyio 1.4.1
when I do biocLite("affyio", type="source"))

As for trying with a 64-bit R-2.7, I didn't have much luck when I tried to compile R:
  Error: C stack usage is too close to the limit
:-(

Cheers,
H.