[Rcppoctave-user] Apple Blues

Renaud Gaujoux renaud at mancala.cbio.uct.ac.za
Wed Nov 6 10:15:51 CET 2013


Couple of questions to understand what is going on:

  * why does R CMD config --ldflags returns these extra '..' if they are
incorrect?
  * why does the compilation work if the path is incorrect to R library is
incorrect?
  * why removing the dots should solve the malloc error?



On 5 November 2013 16:38, Dominick Samperi <djsamperi at gmail.com> wrote:

> R CMD config --ldflags
> yields
> -F/Library/Frameworks/R.framework/.. -framework R
>
> This needs to be hacked for mkoctfile to:
> -L/Library/Frameworks/R.framework/Libraries -lR
> (no '..')
>
> Applying this to the github source fixes it for
> Mac OS X Mavericks provided the --no-test-load
> and octave_end tricks are used.
>
>
> On Tue, Nov 5, 2013 at 9:04 AM, Renaud Gaujoux <
> renaud at mancala.cbio.uct.ac.za> wrote:
>
>> Not sure where the extra '..' would come from.
>> Are you installing the latest version from github?
>>
>> devtools::install_github('RcppOctave', 'renozao')
>>
>>
>>
>> On 2 November 2013 07:00, Dominick Samperi <djsamperi at gmail.com> wrote:
>>
>>> It appears that octave_end is not called at all under Mac OS X. But it
>>> is also not called under Linux! I inserted Rprintf statements to check.
>>>
>>> Perhaps the explanation is that failing to call octave_end under Linux
>>> (or Windows?) is non-fatal, but this is fatal under Mac OS X? If this
>>> is so the Mac OS X behavior is less dangerous...
>>>
>>> If I do not use --no-test-load, I get the result in RcppOctave.log
>>> (attached).
>>>
>>> Also, I'm attaching RcppOctave/src/modules/Makefile.in
>>> with a small edit (the sed script generates a path with an extra '..').
>>>
>>>
>>>
>>> On Sat, Nov 2, 2013 at 12:19 AM, Renaud Gaujoux <
>>> renaud at mancala.cbio.uct.ac.za> wrote:
>>>
>>>>
>>>> The --no-test-load option is used because the embedded Octave session
>>>>> is not terminated properly at test time (during installation), and the
>>>>> embedded Octave session needs to be explicitly terminated before
>>>>> leaving the R session using the 'octave_end' entry point.
>>>>>
>>>>
>>>> octave_end is normally called when the package is unloaded in
>>>> .onUnload as well as when the library is unloaded by in R_init_unload (or
>>>> something like that).
>>>> There is no errors on Linux at load test.
>>>> Can you please post the install logs showing the error?
>>>>
>>>> Thanks
>>>>
>>>
>>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/rcppoctave-user/attachments/20131106/b29bee91/attachment.html>


More information about the Rcppoctave-user mailing list