Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 391753 - dev-lang/R-2.14.0 - Error in textConnection("rval", "w", local = TRUE) : unsupported mode
Summary: dev-lang/R-2.14.0 - Error in textConnection("rval", "w", local = TRUE) : unsu...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: x86 Linux
: Normal normal (vote)
Assignee: Gentoo Science Mathematics related packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-24 01:16 UTC by Jean-Francois Ostiguy
Modified: 2012-01-18 03:59 UTC (History)
0 users

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


Attachments
emerge log (build.log,169.67 KB, text/plain)
2011-11-27 14:34 UTC, Jean-Francois Ostiguy
Details
emerge --info output (emerge.info,5.64 KB, text/plain)
2011-11-27 14:35 UTC, Jean-Francois Ostiguy
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jean-Francois Ostiguy 2011-11-24 01:16:42 UTC
R-2.14 fails to emerge. Here is the relevant part of the log:

i686-pc-linux-gnu-gcc -std=gnu99 -I/var/tmp/portage/dev-lang/R-2.14.0/work/R-2.14.0/include  -I/usr/include/tirpc    
-fpic  -O2 -march=native -fomit-frame-pointer -pipe -fno-builtin-strlen -c lqs.c -o lqs.o
i686-pc-linux-gnu-gcc -std=gnu99 -shared -Wl,--as-needed -o MASS.so MASS.o lqs.o -L/var/tmp/portage/dev-lang/R-2.14.0
/work/R-2.14.0/lib -lR
make[3]: Leaving directory `/var/tmp/portage/dev-lang/R-2.14.0/temp/RtmpITqQu2/R.INSTALL12dbce74/MASS/src'
installing to /var/tmp/portage/dev-lang/R-2.14.0/work/R-2.14.0/library/MASS/libs
** R
** data
**  moving datasets to lazyload DB
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
Error in textConnection("rval", "w", local = TRUE) : unsupported mode
* removing ‘/var/tmp/portage/dev-lang/R-2.14.0/work/R-2.14.0/library/MASS’
make[2]: *** [MASS.ts] Error 1
make[2]: *** Waiting for unfinished jobs....
* installing *source* package ‘lattice’ ...
** package ‘lattice’ successfully unpacked and MD5 sums checked
** libs
make[3]: Entering directory `/var/tmp/portage/dev-lang/R-2.14.0/temp/Rtmp6s6e91/R.INSTALL619f1b41/lattice/src'
i686-pc-linux-gnu-gcc -std=gnu99 -I/var/tmp/portage/dev-lang/R-2.14.0/work/R-2.14.0/include  -I/usr/include/tirpc    
-fpic  -O2 -march=native -fomit-frame-pointer -pipe -fno-builtin-strlen -c init.c -o init.o
i686-pc-linux-gnu-gcc -std=gnu99 -I/var/tmp/portage/dev-lang/R-2.14.0/work/R-2.14.0/include  -I/usr/include/tirpc    
-fpic  -O2 -march=native -fomit-frame-pointer -pipe -fno-builtin-strlen -c threeDplot.c -o threeDplot.o
i686-pc-linux-gnu-gcc -std=gnu99 -shared -Wl,--as-needed -o lattice.so init.o threeDplot.o -L/var/tmp/portage/dev-lan
g/R-2.14.0/work/R-2.14.0/lib -lR
make[3]: Leaving directory `/var/tmp/portage/dev-lang/R-2.14.0/temp/Rtmp6s6e91/R.INSTALL619f1b41/lattice/src'
installing to /var/tmp/portage/dev-lang/R-2.14.0/work/R-2.14.0/library/lattice/libs
** R
** data
**  moving datasets to lazyload DB
** demo
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
Error in textConnection("rval", "w", local = TRUE) : unsupported mode
* removing ‘/var/tmp/portage/dev-lang/R-2.14.0/work/R-2.14.0/library/lattice’
make[2]: *** [lattice.ts] Error 1
make[2]: Leaving directory `/var/tmp/portage/dev-lang/R-2.14.0/work/R-2.14.0/src/library/Recommended'
make[1]: *** [recommended-packages] Error 2
make[1]: Leaving directory `/var/tmp/portage/dev-lang/R-2.14.0/work/R-2.14.0/src/library/Recommended'
make: *** [stamp-recommended] Error 2
 * ERROR: dev-lang/R-2.14.0 failed (compile phase):
 *   emake failed


Reproducible: Always
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2011-11-25 17:08:11 UTC
1) Please post your `emerge --info' output.
2) Please attach the entire build log to this bug report.
Comment 2 Jean-Francois Ostiguy 2011-11-27 14:34:35 UTC
Created attachment 293933 [details]
emerge log
Comment 3 Jean-Francois Ostiguy 2011-11-27 14:35:12 UTC
Created attachment 293935 [details]
emerge --info output
Comment 4 Sébastien Fabbro (RETIRED) gentoo-dev 2012-01-02 20:05:35 UTC
Please try with just committed R-2.14.1. I can not reproduce it. Try other locale as well.

Thanks
Comment 5 Jean-Francois Ostiguy 2012-01-06 20:31:23 UTC
(In reply to comment #4)
> Please try with just committed R-2.14.1. I can not reproduce it. Try other
> locale as well.
> 
> Thanks

Unfortunately, R-2.14.1 fails in the same manner. My locale is defined by LANG="en_US.utf8"; surely this is a fairly common setting. 
I am not sure what other locale I should be trying.  BTW: I also have LINGUAS defined in make.conf as follows: LINGUAS="en en_US fr"
I tried removing "fr". This did not help. I also tried  USE=-doc Same story. 
The strange thing is that R-2.13.1-r1 emerged just fine. I would try emerging it again, just as a test, but the ebuild has apparently been removed.
Comment 6 Jean-Francois Ostiguy 2012-01-18 03:59:13 UTC
Resolution:

I was about to give up on this "bug". My home machine is an x86 box; I have also access to another box, running gentoo / amd64. Since I did not have any issue with R-2.14.1 on the amd64 box, I decided, in desperation, to compare the build log files between the 2 machines. It turns out that I had an extra CFLAG on the x86 box :  "-fno-builtin-strlen",  leftover inadvertently from some testing I did a few weeks ago. In principle, all this should do is inhibit inlining optimization of the strlen libc function i.e. it should just use a regular call for strlen. Why this should make the R textConnection function fail is beyond me,  but it does ;-( Bottom line: the problem "solved". 
Sebastien: Thank you for your help.