<div dir="ltr">I tried with the .R/Makevars trick. The malloc error is gone, but now I get the following error:<div><br></div><div><div>Error : /Users/osxuser/scratch/RcppOctave/man/o_addpath.Rd:41: .onLoad failed in loadNamespace() for 'RcppOctave', details:</div>
<div> call: dyn.load(file, DLLpath = DLLpath, ...)</div><div> error: unable to load shared object '/Users/osxuser/Library/R/RcppOctave/libs/RcppOctave.so':</div><div> dlopen(/Users/osxuser/Library/R/RcppOctave/libs/RcppOctave.so, 6): Symbol not found: __ZN4Rcpp11EnvironmentixERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE</div>
<div> Referenced from: /Users/osxuser/Library/R/RcppOctave/libs/RcppOctave.so</div><div> Expected in: flat namespace</div><div> in /Users/osxuser/Library/R/RcppOctave/libs/RcppOctave.so</div><div>ERROR: installing Rd objects failed for package ‘RcppOctave’</div>
</div><div><br></div><div><br></div><div>Any pointer on what this may be due? </div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Nov 4, 2013 at 5:17 PM, Dominick Samperi <span dir="ltr"><<a href="mailto:djsamperi@gmail.com" target="_blank">djsamperi@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div><div>By default R package builds will use the C/C++ compiler that was used<br>to build R, but llvm-g++-4.2 does not work under Mavericks. Try<br>
creating .R/Makevars containing<br></div>CXX=g++<br>
</div>CC=gcc<br></div>or<br></div>CXX=clang++<br></div>CC=clang<br><br></div><div class="gmail_extra"><br><br><div class="gmail_quote"><div><div class="h5">On Mon, Nov 4, 2013 at 10:18 AM, Giuseppe <span dir="ltr"><<a href="mailto:neox86@gmail.com" target="_blank">neox86@gmail.com</a>></span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr">I have been reading the thread about woes with osx and RcppOctave. <div>
<br></div><div>If I am correct, it seems that the issue is declared closed if "--no-test-load" is added to "R CMD INSTALL". Unfortunately, this does not work for me. This is what I get :</div>
<div><br></div><div>[omitted]</div><div><br></div><div><div><div>llvm-g++-4.2 -arch x86_64 -dynamiclib -Wl,-headerpad_max_install_names -undefined dynamic_lookup -single_module -multiply_defined suppress -L/usr/local/lib -L/usr/local/lib -o RcppOctave.so conversion.o rcpp_octave.o /Users/osxuser/Library/R/Rcpp/lib/libRcpp.a -L/usr/local/Cellar/octave/3.6.4/lib/octave/3.6.4 -L/usr/local/Cellar/octave/3.6.4/lib -loctinterp -loctave -lcruft -F/Library/Frameworks/R.framework/.. -framework R -Wl,-framework -Wl,CoreFoundation</div>
<div><br></div><div>installing to /Users/osxuser/Library/R/RcppOctave/libs</div></div></div><div><br></div><div><br></div><div><div>R(24620) malloc: *** error for object 0x7fff71042570: pointer being freed was not allocated</div>
<div>
<div>*** set a breakpoint in malloc_error_break to debug</div></div><div>/Library/Frameworks/R.framework/Resources/bin/INSTALL: line 34: 24619 Done echo 'tools:::.install_packages()'</div><div>
24620 Abort trap: 6 | R_DEFAULT_PACKAGES= LC_COLLATE=C "${R_HOME}/bin/R" $myArgs --slave --args ${args}</div>
</div><div><br></div><div><br></div><div><div><div><br></div></div></div><div>However, i think the Makevars does not picks up the correct location of the R library. I saw in the list that a patch was sent. Can I have it too to test and see weather this is my case?</div>
<div><br></div><div>----</div><div><br></div><div>This is my setup:</div><div><br></div><div><div>[~/scratch]$ gfortran --version</div><div>GNU Fortran (GCC) 4.8.2</div><div><br></div><div><div>[~/scratch]$ octave --version</div>
<div>GNU Octave, version 3.6.4</div></div><div><br></div><div><div>[~/scratch]$ R --version</div><div>R version 3.0.2 (2013-09-25) -- "Frisbee Sailing"</div><div>Platform: x86_64-apple-darwin10.8.0 (64-bit)<br>
</div>
</div></div><div><br></div><div><br></div><div>Octave and gfortran are from homebrew. Osx version is Maverick. Xcode tools 5.0.1. </div><div><br></div><div><div>[ ~/scratch]$ clang --version</div><div>Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn)</div>
</div><div><br></div><div><div>[ ~/scratch]$ g++ --version</div><div>Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1</div><div>Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn)</div>
</div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div></div>
<br></div></div>_______________________________________________<br>
Rcppoctave-user mailing list<br>
<a href="mailto:Rcppoctave-user@lists.r-forge.r-project.org" target="_blank">Rcppoctave-user@lists.r-forge.r-project.org</a><br>
<a href="http://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcppoctave-user" target="_blank">http://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcppoctave-user</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br></div>