Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 457064 - [science overlay] <=sci-mathematics/rstudio-0.97.237 with dev-lang/R-2.15.2 - Detected version of Boost is too old. Requested version was 1.50 (or newer).
Summary: [science overlay] <=sci-mathematics/rstudio-0.97.237 with dev-lang/R-2.15.2 -...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Science Related Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-02-13 10:45 UTC by John (EBo) David
Modified: 2013-02-18 21:07 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (emerge.info,5.22 KB, text/plain)
2013-02-13 10:45 UTC, John (EBo) David
Details
build log (rstudio-0.97.237-build.log,6.12 KB, text/plain)
2013-02-15 06:20 UTC, John (EBo) David
Details
build log for 97.318 (build.log,5.40 KB, text/plain)
2013-02-17 05:15 UTC, John (EBo) David
Details
new emerge --info for 97.318 (emerge.info,5.24 KB, text/plain)
2013-02-17 05:16 UTC, John (EBo) David
Details
CMakeCache.txt as requested (CMakeCache.txt,22.70 KB, text/plain)
2013-02-18 12:24 UTC, John (EBo) David
Details

Note You need to log in before you can comment on or make changes to this bug.
Description John (EBo) David 2013-02-13 10:45:06 UTC
Created attachment 338762 [details]
emerge --info

during a receint upgrade and complete rebuild I found that all ebuild version up to rstudio-0.97.237 fail with the following error:

==========
-- Could not find libR shared library.
CMake Error at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:97 (MESSAGE):
  Could NOT find LibR (missing: LIBR_LIBRARIES)
Call Stack (most recent call first):
  /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:288 (_FPHSA_FAILURE_MESSAGE)
  cmake/modules/FindLibR.cmake:166 (find_package_handle_standard_args)
  src/cpp/CMakeLists.txt:164 (find_package)
==========

I will not have time to track this down in the forseeable future.
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2013-02-13 19:55:25 UTC
Please attach the entire build log to this bug report.
Comment 2 John (EBo) David 2013-02-15 06:20:53 UTC
Created attachment 338952 [details]
build log
Comment 3 Julian Ospald 2013-02-16 15:39:43 UTC
+*rstudio-0.97.318 (16 Feb 2013)
+
+  16 Feb 2013; Julian Ospald <hasufell@gentoo.org> +rstudio-0.97.318.ebuild,
+  +files/rstudio-0.97.318-linker_flags.patch,
+  +files/rstudio-0.97.318-paths.patch, +files/rstudio-0.97.318-prefs.patch,
+  +files/rstudio-rserver.initd, +metadata.xml:
+  initial import wrt #365595


use latest in-tree version
Comment 4 John (EBo) David 2013-02-17 03:46:46 UTC
I only see rstudio-0.97.237 in the main portage tree.  Is rstudio-0.97.318 in an overlay?  Or is it I just need to wait awhile to propigate?

Thanks!
Comment 5 John (EBo) David 2013-02-17 05:13:37 UTC
my bad.  I as in the science overlay when I thought I was in the main tree...

OK.  Still no joy.  I get the following error with rstudio-0.97.318:

============
-- Could not find libR shared library.
CMake Error at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:97 (MESSAGE):
  Could NOT find LibR (missing: LIBR_LIBRARIES)
Call Stack (most recent call first):
  /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:288 (_FPHSA_FAILURE_MESSAGE)
  cmake/modules/FindLibR.cmake:166 (find_package_handle_standard_args)
  src/cpp/CMakeLists.txt:166 (find_package)
============

new emerge --info and build should be attached in a moment
Comment 6 John (EBo) David 2013-02-17 05:15:32 UTC
Created attachment 339128 [details]
build log for 97.318
Comment 7 John (EBo) David 2013-02-17 05:16:07 UTC
Created attachment 339130 [details]
new emerge --info for 97.318
Comment 8 John (EBo) David 2013-02-17 05:17:28 UTC
If it is helpful I am running:

dev-util/cmake-2.8.9
dev-lang/R-2.15.2-r2
Comment 9 Julian Ospald 2013-02-17 15:05:55 UTC
(In reply to comment #5)
> my bad.  I as in the science overlay when I thought I was in the main tree...
> 
> OK.  Still no joy.  I get the following error with rstudio-0.97.318:
> 
> ============
> -- Could not find libR shared library.
> CMake Error at
> /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:97 (MESSAGE):
>   Could NOT find LibR (missing: LIBR_LIBRARIES)
> Call Stack (most recent call first):
>   /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:288
> (_FPHSA_FAILURE_MESSAGE)
>   cmake/modules/FindLibR.cmake:166 (find_package_handle_standard_args)
>   src/cpp/CMakeLists.txt:166 (find_package)
> ============
> 
> new emerge --info and build should be attached in a moment

that sounds like a problem with blas

can you confirm that virtual/blas is installed and that something is set via:
eselect blas list
Comment 10 John (EBo) David 2013-02-17 21:55:58 UTC
# emerge -p blas
...
[ebuild   R    ] virtual/blas-1.0 

# eselect blas list
Installed BLAS for library directory lib64
  [1]   reference *

That return value looks weird, but I would say that it is installed and selected.
Comment 11 Julian Ospald 2013-02-18 01:07:28 UTC
(In reply to comment #10)
> # emerge -p blas
> ...
> [ebuild   R    ] virtual/blas-1.0 
> 
> # eselect blas list
> Installed BLAS for library directory lib64
>   [1]   reference *
> 
> That return value looks weird, but I would say that it is installed and
> selected.

what are your useflags for dev-lang/R? I know where the problem lies (FindLibR.cmake), but I don't know how to fix it, since I cannot reproduce.
Comment 12 François Bissey 2013-02-18 01:44:26 UTC
Further to Julian's question what is the output of:
R --slave --no-save -e "R.home('lib')"

This should be a folder. If you get that far, we also need to know the folder's content. ls -la ${folder}
Comment 13 John (EBo) David 2013-02-18 03:08:22 UTC
c1-srv temp # R --slave --no-save -e "R.home('lib')"
WARNING: ignoring environment value of R_HOME
[1] "/usr/lib64/R/lib"

c1-srv temp # ls -l /usr/lib64/R/lib
total 4456
-rwxr-xr-x 1 root root 1799440 Feb 15 18:35 libRlapack.so
-rwxr-xr-x 1 root root 2758960 Feb 15 18:35 libR.so

c1-srv temp # emerge -vp dev-lang/R
...
[ebuild   R   ~] dev-lang/R-2.15.2-r2  USE="X bash-completion cairo java jpeg nls openmp perl png readline static-libs tiff tk -doc -icu -lapack -minimal (-prefix) -profile" 0 kB

======

I had some trouble with lapack some time back and pulled it from the system.  Could that be a problem?
Comment 14 François Bissey 2013-02-18 06:04:26 UTC
Could be. If not using system lapack,  you get a stub from R itself. Not sure if we should just mandate lapack or not. Have to go back to the CMake rule to see what's wrong, Julian may very well do it before me.
Comment 15 François Bissey 2013-02-18 09:07:22 UTC
I don't think that the lapack useflag's fault. The command I asked you to execute is what cmake uses to find the folder in which the library is located. My guess is that for some reasons it is messed up. 
This is rather hard to check and may require patching to do so. But first let's see all we have, can you attach
/var/tmp/portage/sci-mathematics/rstudio-0.97.318/work/rstudio-0.97.318_build/CMakeCache.txt please.
Comment 16 John (EBo) David 2013-02-18 12:24:26 UTC
Created attachment 339238 [details]
CMakeCache.txt as requested

Hope this is useful.  Let me know if you need any more.
Comment 17 Julian Ospald 2013-02-18 14:35:25 UTC
(In reply to comment #13)
> c1-srv temp # R --slave --no-save -e "R.home('lib')"
> WARNING: ignoring environment value of R_HOME
> [1] "/usr/lib64/R/lib"
> 
> c1-srv temp # ls -l /usr/lib64/R/lib
> total 4456
> -rwxr-xr-x 1 root root 1799440 Feb 15 18:35 libRlapack.so
> -rwxr-xr-x 1 root root 2758960 Feb 15 18:35 libR.so
> 
> c1-srv temp # emerge -vp dev-lang/R
> ...
> [ebuild   R   ~] dev-lang/R-2.15.2-r2  USE="X bash-completion cairo java
> jpeg nls openmp perl png readline static-libs tiff tk -doc -icu -lapack
> -minimal (-prefix) -profile" 0 kB
> 
> ======
> 
> I had some trouble with lapack some time back and pulled it from the system.
> Could that be a problem?

The problem is the warning message which seems to mess up the LIBR_LIB_DIR variable (which is not cached otherwise we would see it in the CMakeCache.txt).

I have heard from some people solving this by reinstalling R, but please don't do that for now.
What is the output for "cat /etc/env.d/99R"? Did you upgrade dev-lang/R? Did you run etc-update after that?
Comment 18 Julian Ospald 2013-02-18 18:26:49 UTC
also do:
echo $R_HOME
grep ^R_HOME_DIR /usr/bin/R
Comment 19 John (EBo) David 2013-02-18 20:26:26 UTC
# cat /etc/env.d/99R
LDPATH=/usr/lib64/R/lib
R_HOME=/usr/lib64/R

# echo $R_HOME
//usr/lib64/R

# grep ^R_HOME_DIR /usr/bin/R
R_HOME_DIR=/usr/lib64/R

and just to see what is going on there I see:

# ls -l /usr/lib64/R
total 788
drwxr-xr-x  3 root root   4096 Feb 15 18:35 bin
-rw-r--r--  1 root root  18011 Feb 15 18:35 COPYING
drwxr-xr-x  2 root root   4096 Feb 15 18:35 etc
drwxr-xr-x  3 root root   4096 Feb 15 18:35 include
drwxr-xr-x  2 root root   4096 Feb 15 18:35 lib
drwxr-xr-x 82 root root   4096 Sep 21 22:12 library
drwxr-xr-x  2 root root   4096 Feb 15 18:35 modules
-rw-r--r--  1 root root 249479 Feb 15 18:35 NEWS
-rw-r--r--  1 root root 501821 Feb 15 18:35 NEWS.pdf
drwxr-xr-x 10 root root   4096 Sep 10 16:52 share
-rw-r--r--  1 root root     46 Feb 15 18:35 SVN-REVISION

Interestingly, /usr/lib64/R/library/ was last modified last september and not during the recent update Feb 15'th.  Maybe this provides a clue.

ps: could we unmark this issue as FIXED?
Comment 20 Julian Ospald 2013-02-18 20:36:54 UTC
(In reply to comment #19)
> # cat /etc/env.d/99R
> LDPATH=/usr/lib64/R/lib
> R_HOME=/usr/lib64/R
> 
> # echo $R_HOME
> //usr/lib64/R
> 
> # grep ^R_HOME_DIR /usr/bin/R
> R_HOME_DIR=/usr/lib64/R
> 
> and just to see what is going on there I see:
> 
> # ls -l /usr/lib64/R
> total 788
> drwxr-xr-x  3 root root   4096 Feb 15 18:35 bin
> -rw-r--r--  1 root root  18011 Feb 15 18:35 COPYING
> drwxr-xr-x  2 root root   4096 Feb 15 18:35 etc
> drwxr-xr-x  3 root root   4096 Feb 15 18:35 include
> drwxr-xr-x  2 root root   4096 Feb 15 18:35 lib
> drwxr-xr-x 82 root root   4096 Sep 21 22:12 library
> drwxr-xr-x  2 root root   4096 Feb 15 18:35 modules
> -rw-r--r--  1 root root 249479 Feb 15 18:35 NEWS
> -rw-r--r--  1 root root 501821 Feb 15 18:35 NEWS.pdf
> drwxr-xr-x 10 root root   4096 Sep 10 16:52 share
> -rw-r--r--  1 root root     46 Feb 15 18:35 SVN-REVISION
> 
> Interestingly, /usr/lib64/R/library/ was last modified last september and
> not during the recent update Feb 15'th.  Maybe this provides a clue.
> 
> ps: could we unmark this issue as FIXED?


That is a leftover from R-2.15.2-r1 where R_HOME was incorrectly set (with two slashes instead of one) resulting in a failure in the R script which does a string comparison.

Calchan has fixed that in R-2.15.2-r2, so you did not update your environment properly.

R_HOME in your environment does not match R_HOME from /etc/env.d/99R

fix it and recompile rstudio
Comment 21 John (EBo) David 2013-02-18 21:07:37 UTC
I did indeed did run etc-update, but I have not rebooted my machine in over 2 weeks (I have LOTS of stuff going on in the background).  The magic sause that did not happen was "source /etc/profile" after running etc-update in the root console where I do all the admin stuff.

I'll see how it does now... it installed, and it comes up (I will test it properly later).

Thanks, and sorry for the hastles.