Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rcpp / gcc ignores TMPDIR #45

Closed
jeroen opened this issue Dec 1, 2013 · 1 comment
Closed

Rcpp / gcc ignores TMPDIR #45

jeroen opened this issue Dec 1, 2013 · 1 comment
Labels

Comments

@jeroen
Copy link
Member

jeroen commented Dec 1, 2013

The downloaded source packages are in
    '/tmp/ocpu-temp/Rtmpsh28Xt/downloaded_packages'
'/usr/lib/R/bin/R' --vanilla CMD INSTALL  \
  '/tmp/ocpu-temp/Rtmpsh28Xt/devtools503660bc0b0/plyr-master'  \
  --library='/tmp/ocpu-temp/githubdir50344f9f7bd5' --install-tests --no-docs  \
  --no-multiarch --no-demo --library="/tmp/ocpu-temp/githubdir50344f9f7bd5" 

* installing *source* package 'plyr' ...
** libs
g++ -I/usr/share/R/include -DNDEBUG   -I"/usr/lib/R/site-library/Rcpp/include"   -fpic  -O2 -pipe -g  -c RcppExports.cpp -o RcppExports.o
g++ -I/usr/share/R/include -DNDEBUG   -I"/usr/lib/R/site-library/Rcpp/include"   -fpic  -O2 -pipe -g  -c loop-apply.cpp -o loop-apply.o
g++ -I/usr/share/R/include -DNDEBUG   -I"/usr/lib/R/site-library/Rcpp/include"   -fpic  -O2 -pipe -g  -c split-numeric.cpp -o split-numeric.o
g++ -shared -o plyr.so RcppExports.o loop-apply.o split-numeric.o Fatal error: creating temporary file for '-e' failed -L/usr/lib/R/lib -lR
g++: error: Fatal: No such file or directory
g++: error: error:: No such file or directory

Server log says:

Dec  1 11:59:27 dev kernel: [1900252.948160] type=1400 audit(1385927967.425:117): apparmor="DENIED" operation="mknod" parent=20243 profile="opencpu-main" name="/tmp/tmpf6YxP0s" pid=20244 comm="R" requested_mask="c" denied_mask="c" fsuid=33 ouid=33
Dec  1 11:59:27 dev kernel: [1900252.960051] type=1400 audit(1385927967.437:118): apparmor="DENIED" operation="mknod" parent=20252 profile="opencpu-main" name="/tmp/tmpfUbFrRw" pid=20253 comm="R" requested_mask="c" denied_mask="c" fsuid=33 ouid=33
@jeroen
Copy link
Member Author

jeroen commented Dec 2, 2013

Seems like a bug in g++. See https://stat.ethz.ch/pipermail/r-devel/2013-December/068018.html

Temporary fix in place

@jeroen jeroen closed this as completed May 15, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant