trouble installing on macOS 14.6.1 (-pipe possibly causing problems?)
Below is the error message I'm gettings — for some reason, /opt/local/bin/gfortran-mp-13 -fPIC -pipe -Os -m64 -c hbin.f -o hbin.o fails, although if I remove -pipe by hand, that stage compiles just fine. I've tried to set FFLAGS to not include the -pipe, but somehow this isn't working — in that case, I tried
install.packages("hexbin",
INSTALL_opts = c(
"--configure-vars='CFLAGS=-Os -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk -arch arm64 FFLAGS=-Os -m64 SAFE_FFLAGS=-Os -m64 FCLAGS=-Os -m64 FC=/opt/local/bin/gfortran-mp-13'"
))
but the -pipe keeps appearing in the installation failure log.
Any suggestions on this? I've been trying to debug for a while. I'm running a pretty standard system, I think.
> sessionInfo()
R version 4.4.1 (2024-06-14)
Platform: aarch64-apple-darwin23.2.0
Running under: macOS Sonoma 14.6.1
Matrix products: default
BLAS: /opt/local/Library/Frameworks/R.framework/Versions/4.4/Resources/lib/libRblas.dylib
LAPACK: /opt/local/Library/Frameworks/R.framework/Versions/4.4/Resources/lib/libRlapack.dylib; LAPACK version 3.12.0
locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8
time zone: America/New_York
tzcode source: internal
attached base packages:
[1] stats graphics grDevices utils datasets methods base
loaded via a namespace (and not attached):
[1] compiler_4.4.1
> install.packages("hexbin")
Installing package into ‘/Users/simon/Library/R/arm64/4.4/library’
(as ‘lib’ is unspecified)
--- Please select a CRAN mirror for use in this session ---
trying URL 'https://lib.stat.cmu.edu/R/CRAN/src/contrib/hexbin_1.28.4.tar.gz'
Content type 'application/x-gzip' length 1199857 bytes (1.1 MB)
==================================================
downloaded 1.1 MB
* installing *source* package ‘hexbin’ ...
** package ‘hexbin’ successfully unpacked and MD5 sums checked
** using staged installation
** libs
using C compiler: ‘clang version 16.0.6’
using Fortran compiler: ‘GNU Fortran (MacPorts gcc13 13.3.0_1+stdlib_flag) 13.3.0’
using SDK: ‘’
/opt/local/bin/gfortran-mp-13 -fPIC -pipe -Os -m64 -c hbin.f -o hbin.o
clang: error: no input files
make: *** [hbin.o] Error 1
ERROR: compilation failed for package ‘hexbin’
* removing ‘/Users/simon/Library/R/arm64/4.4/library/hexbin’
The downloaded source packages are in
‘/private/var/folders/qj/mh_sxzs94c590gybtmdggby80000gq/T/RtmptPBfvX/downloaded_packages’
Warning message:
In install.packages("hexbin") :
installation of package ‘hexbin’ had non-zero exit status
>
Why don't you install the binary package from CRAN?
I tried! That seems not to be possible for me —
> install.packages("hexbin", type = "binary")
Error in install.packages("hexbin", type = "binary") :
type 'binary' is not supported on this platform
I'm on a Mac M1; my platform here is
> sessionInfo()
R version 4.4.1 (2024-06-14)
Platform: aarch64-apple-darwin23.2.0
Running under: macOS Sonoma 14.6.1
Maybe ask at r-sig-mac?