[R-SIG-Mac] possible bug in R's make install

Simon Urbanek @|mon@urb@nek @end|ng |rom R-project@org
Mon May 17 22:17:07 CEST 2021


Has anyone reported this bug at bugs.R-project.org? Quick search doesn't yield anything - Peter can you post the reference, please, if you reported it there? Since this is not a Mac-specific issue that's where should go if it is to be fixed.

Cheers,
Simon


> On May 18, 2021, at 12:32 AM, Kasper Daniel Hansen <kasperdanielhansen using gmail.com> wrote:
> 
> This bug is still present in the R-4.1.
> 
> Best,
> Kasper
> 
> On Fri, Sep 28, 2018 at 8:02 PM Peter Langfelder <peter.langfelder using gmail.com>
> wrote:
> 
>> For what it's worth, the same bug is present on linux when compiling R
>> with a custom BLAS (either ATLAS or OpenBLAS). The directory needs to
>> be made by hand first. I beleive I have reported this some time ago
>> but no action was taken. Compiling R with R internal BLAS does not
>> results in the error.
>> 
>> Peter
>> On Fri, Sep 28, 2018 at 10:52 AM Kasper Daniel Hansen
>> <kasperdanielhansen using gmail.com> wrote:
>>> 
>>> I am trying to compile and install R under High Sierra with Accelerate
>> BLAS
>>> but with R lapack.
>>> 
>>> My relevant configure call is   --with-blas="-framework Accelerate" but
>>> omitting --with-lapack. Full call is pasted at the end of this email
>>> 
>>> I can do
>>>  make
>>>  make check
>>> but make install fails with
>>> 
>>> make[2]: Nothing to be done for `install'.
>>> /usr/local/clang6/bin/clang -I. -I../../src/include
>>> -I../../../R-3.5.x-src/src/include -I/opt/X11/include
>> -I/usr/local/include
>>> -DHAVE_CONFIG_H    -Wall -mtune=native -g -O2  -L/usr/local/clang6/lib
>>> -L/usr/local/lib -L/usr/local/opt/tcl-tk/lib
>>> -DR_HOME='"/usr/local/R/R-3.5.x/lib/R"' \
>>>  -o Rscript ../../../R-3.5.x-src/src/unix/Rscript.c
>>> mkdir /usr/local/R/R-3.5.x/lib/R/bin/exec
>>> mkdir /usr/local/R/R-3.5.x/lib/R/modules
>>> cp: /usr/local/R/R-3.5.x/lib/R/lib/libRlapack.dylib: No such file or
>>> directory
>>> make[3]: *** [install] Error 1
>>> make[2]: *** [install] Error 1
>>> make[1]: *** [install] Error 1
>>> make: *** [install] Error 1
>>> 
>>> I manually verified that libRlapack.dylib had been build in the building
>>> directory's "lib".  I then just did
>>> 
>>> sudo mkdir /usr/local/R/R-3.5.x/lib/R/lib
>>> 
>>> (my installation directory is /usr/local/R/R-3.5.x) and redid make
>> install
>>> which now worked.  I get
>>> 
>>> $ ls /usr/local/R/R-3.5.x/lib/R/lib
>>> libRlapack.dylib
>>> 
>>> My _guess_ is that since I am using R's lapack and system BLAS that the
>>> RHOME/lib directory does not get created.
>>> 
>>> Btw., this might be a bad idea (happy to hear about this) but the
>>> installation should work since I can do make check
>>> 
>>> Kasper
>>> 
>>> configure
>>> 
>>> ../${SRCDIR}/configure SHELL='/bin/bash' \
>>>  --prefix=/usr/local/R/R-${R_VERSION} --disable-R-framework\
>>>  CC="/usr/local/clang6/bin/clang" \
>>>  CXX="/usr/local/clang6/bin/clang++" \
>>>  F77="/usr/local/gfortran/bin/gfortran" \
>>>  FC="$F77" \
>>>  OBJC="clang" \
>>>  CFLAGS="-Wall -mtune=native -g -O2" \
>>>  CXXFLAGS="-Wall -mtune=natuve -g -O2" \
>>>  OBJCFLAGS="-Wall -mtune=native -g -O2 -fobjc-exceptions" \
>>>  F77FLAGS="-Wall -g -O2 -mtune=generic" \
>>>  FCFLAGS="$F77FLAGS" \
>>>  FLIBS="-L/usr/local/gfortran/lib/gcc/x86_64-apple-darwin15/6.1.0
>>> -L/usr/local/gfortran/lib -lgfortran -lquadmath -lm" \
>>>  LDFLAGS="-L/usr/local/clang6/lib -L/usr/local/lib" \
>>>  DYLD_FALLBACK_LIBRARY_PATH="/usr/local/clang6/lib:/usr/local/lib" \
>>> 
>>> 
>> PKG_CONFIG_PATH="/opt/X11/lib/pkgconfig:/usr/local/lib/pkgconfig:/usr/lib/pkgconfig"
>>> \
>>>  JAVA_HOME="/System/Library/Frameworks/JavaVM.framework/Home" \
>>>  JAVA_CPPFLAGS="-I/System/Library/Frameworks/JavaVM.framework/Headers" \
>>>  JAVA_LD_LIBRARY_PATH="" \
>>>  JAVA_LIBS="-framework JavaVM" \
>>>  --enable-memory-profiling\
>>>  --x-includes=/opt/X11/include --x-libraries=/opt/X11/lib\
>>>  -with-tcltk=/usr/local/opt/tcl-tk/lib\
>>>  --with-blas="-framework Accelerate" | tee ../configure-${R_VERSION}
>>> 
>>>        [[alternative HTML version deleted]]
>>> 
>>> _______________________________________________
>>> R-SIG-Mac mailing list
>>> R-SIG-Mac using r-project.org
>>> https://stat.ethz.ch/mailman/listinfo/r-sig-mac
>> 
> 
> 
> -- 
> Best,
> Kasper
> 
> 	[[alternative HTML version deleted]]
> 
> _______________________________________________
> R-SIG-Mac mailing list
> R-SIG-Mac using r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-mac
> 



More information about the R-SIG-Mac mailing list