[Gretl-devel] Re: gretl crash

2022-03-14 Thread Ignacio Diaz-Emparanza



El 14/3/22 a las 14:39, Allin Cottrell escribió:

On Mon, 14 Mar 2022, Ignacio Diaz-Emparanza wrote:


Well, ... I don't know if this may help much. I reinstalled gretl from git
and tried to run the script, this is the output in the terminal:

The R library path '/usr/lib/libR.so' seems to be a symlink
  resolved to 'R/lib/libR.so'
cannot find system Renviron
Fatal error: unable to open the base package



BTW, in my system the link in /usr/lib is

libR.so -> R/lib/libR.so

so, that is pointing to the absolute path /usr/lib/R/lib/libR.so

That certainly helps. Now I get it: your libR.so path is a _relative_
symlink where I had been expecting an absolute one. In git there's now
code to handle the relative case.

Allin


Yes, it worked!! The crash is solved.

Thank you.
Ignacio
___
Gretl-devel mailing list -- gretl-devel@gretlml.univpm.it
To unsubscribe send an email to gretl-devel-le...@gretlml.univpm.it
Website: 
https://gretlml.univpm.it/postorius/lists/gretl-devel.gretlml.univpm.it/


[Gretl-devel] Re: gretl crash

2022-03-14 Thread Marcin Błażejowski

On 14.03.2022 14:39, Allin Cottrell wrote:

That certainly helps. Now I get it: your libR.so path is a _relative_
symlink where I had been expecting an absolute one. In git there's now
code to handle the relative case.


Allin,

I'm getting the following:

../../lib/src/gretl_foreign.c: In function ‘absolutize_R_path’:
../../lib/src/gretl_foreign.c:2365:50: error: ‘tmp’ undeclared (first 
use in this function); did you mean ‘tm’?

 2365 | fprintf(stderr, " absolute path '%s'\n", tmp);
  |  ^~~
  |  tm

Marcin

--
Marcin Błażejowski
___
Gretl-devel mailing list -- gretl-devel@gretlml.univpm.it
To unsubscribe send an email to gretl-devel-le...@gretlml.univpm.it
Website: 
https://gretlml.univpm.it/postorius/lists/gretl-devel.gretlml.univpm.it/


[Gretl-devel] Re: gretl crash

2022-03-14 Thread Allin Cottrell
On Mon, 14 Mar 2022, Ignacio Diaz-Emparanza wrote:

> > Well, ... I don't know if this may help much. I reinstalled gretl from git
> > and tried to run the script, this is the output in the terminal:
> >
> > The R library path '/usr/lib/libR.so' seems to be a symlink
> >  resolved to 'R/lib/libR.so'
> > cannot find system Renviron
> > Fatal error: unable to open the base package
> >
> >
> BTW, in my system the link in /usr/lib is
>
> libR.so -> R/lib/libR.so
>
> so, that is pointing to the absolute path /usr/lib/R/lib/libR.so

That certainly helps. Now I get it: your libR.so path is a _relative_
symlink where I had been expecting an absolute one. In git there's now
code to handle the relative case.

Allin___
Gretl-devel mailing list -- gretl-devel@gretlml.univpm.it
To unsubscribe send an email to gretl-devel-le...@gretlml.univpm.it
Website: 
https://gretlml.univpm.it/postorius/lists/gretl-devel.gretlml.univpm.it/


[Gretl-devel] Re: gretl crash

2022-03-14 Thread Ignacio Diaz-Emparanza



El 14/3/22 a las 12:06, Ignacio Diaz-Emparanza escribió:


El 13/3/22 a las 18:24, Allin Cottrell escribió:

On Sun, 13 Mar 2022, Ignacio Diaz-Emparanza wrote:


Hi,

the changes you (Allin) made to gretl in git seem not to work. If I 
don't set the environment variable up, I continue to obtain the crash.


This is the output of valgrind (I assume you only need the last part)

[...]


Thanks, Ignacio, but valgrind is no help here. Could you post what 
appears on stderr from running gretl, please? That is, run gretl from 
a terminal window and see what gets printed. I've just pushed a small 
change to git which might help with the diagnostics.


Allin

Well, ... I don't know if this may help much. I reinstalled gretl from 
git and tried to run the script, this is the output in the terminal:



The R library path '/usr/lib/libR.so' seems to be a symlink
 resolved to 'R/lib/libR.so'
cannot find system Renviron
Fatal error: unable to open the base package



BTW, in my system the link in /usr/lib is

libR.so -> R/lib/libR.so

so, that is pointing to the absolute path /usr/lib/R/lib/libR.so

Ignacio
___
Gretl-devel mailing list -- gretl-devel@gretlml.univpm.it
To unsubscribe send an email to gretl-devel-le...@gretlml.univpm.it
Website: 
https://gretlml.univpm.it/postorius/lists/gretl-devel.gretlml.univpm.it/


[Gretl-devel] Re: gretl crash

2022-03-14 Thread Ignacio Diaz-Emparanza


El 13/3/22 a las 18:24, Allin Cottrell escribió:

On Sun, 13 Mar 2022, Ignacio Diaz-Emparanza wrote:


Hi,

the changes you (Allin) made to gretl in git seem not to work. If I 
don't set the environment variable up, I continue to obtain the crash.


This is the output of valgrind (I assume you only need the last part)

[...]


Thanks, Ignacio, but valgrind is no help here. Could you post what 
appears on stderr from running gretl, please? That is, run gretl from 
a terminal window and see what gets printed. I've just pushed a small 
change to git which might help with the diagnostics.


Allin

Well, ... I don't know if this may help much. I reinstalled gretl from 
git and tried to run the script, this is the output in the terminal:



The R library path '/usr/lib/libR.so' seems to be a symlink
 resolved to 'R/lib/libR.so'
cannot find system Renviron
Fatal error: unable to open the base package



___
Gretl-devel mailing list -- gretl-devel@gretlml.univpm.it
To unsubscribe send an email to gretl-devel-le...@gretlml.univpm.it
Website: 
https://gretlml.univpm.it/postorius/lists/gretl-devel.gretlml.univpm.it/