https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67454
--- Comment #14 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Can you double check what the shell script is doing as libRblas.so => (file not found) is worrying. Most likely there is also some ld.so debug env which you can set to see what is actually being loaded and why.