Hi Simon, I am configuring with
$TOP_SRCDIR/configure --enable-R-framework --disable-java FW_VERSION=R-devel and config.site CC=clang OBJC=$CC FC="/opt/gfortran/bin/gfortran -mtune=native" CPPFLAGS='-isystem /opt/R/arm64/include' CXX=clang++ PKG_CONFIG_PATH=/opt/R/arm64/lib/pkgconfig:/usr/lib/pkgconfig CFLAGS="-falign-functions=8 -g -O0" FFLAGS="-g -O2 -mmacosx-version-min=11.0" FCFLAGS="-g -O2 -mmacosx-version-min=11.0" LDFLAGS="-L/opt/R/arm64/lib -L/opt/gfortran/lib" CPPFLAGS="-isystem /opt/R/arm64/include -I/opt/R/arm64/include" [this is the version before adding MAIN_LDFLAGS="-Wl,-headerpad_max_install_names"] I'm using Command Line Tools only (no full Xcode installed). macOS version: Sequoia 15.4.1 (24E263) CLT version: 16.3.0.0.1.1742442376 Clang: Apple clang version 17.0.0 (clang-1700.0.13.3) Fortran: GNU Fortran (GCC) 8.2.0 (from https://mac.r-project.org/tools/gfortran-14.2-universal.pkg) SDK version: 15.4 SDK path: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk and could reproduce the issue on my side with an SVN checkout of R-devel 2025-05-15 r88204. Hope that helps, Heather On Fri, May 16, 2025, at 4:43 AM, Simon Urbanek wrote: > Heather, > > yes, please, since we cannot reproduce it, please provide your complete > configure flags, full info about your macOS version, tools used > (toolchain version and SDK). We are adding > -Wl,-headerpad_max_install_names for libraries (see etc/Makeconf, added > by configure.ac for darwin), but the binary itself has never caused > issues, so I wonder what makes your system produce smaller header that > won’t fit the paths. > > Thanks, > Simon > > >> On 16 May 2025, at 04:24, Heather Turner <h...@heatherturner.net> wrote: >> >> Dear All, >> >> I have been building R (on Apple M1 Pro) with `--enable-R-framework` so that >> I can use the built version of R in RStudio/Positron. My set up was working >> fine back in February or so, then in April (with the alpha version) I >> started to hit errors with `make install`: >> >> Creating R framework ... >> libRlapack >> libRblas >> error: /Library/Developer/CommandLineTools/usr/bin/install_name_tool: >> changing install names or rpaths can't be redone for: >> /Library/Frameworks/R.framework/Versions/R-devel/Resources/bin/exec/R >> <http://r.framework/Versions/R-devel/Resources/bin/exec/R> (for architecture >> arm64) because larger updated load commands do not fit (the program must be >> relinked, and you may need to use -headerpad or -headerpad_max_install_names) >> <similar error for libR, snipped> >> >> I only just got round to exploring further. I can fix the issue by adding >> >> MAIN_LDFLAGS="-Wl,-headerpad_max_install_names" >> >> to my config.site, but I wonder why I didn't need to set this in the past. >> Also I wonder if this should be set by default, at least with >> `--enable-R-framework`? >> >> Let me know if I can provide any information that might be helpful about my >> configuration/setup. >> >> Best wishes, >> Heather >> >> _______________________________________________ >> R-SIG-Mac mailing list >> R-SIG-Mac@r-project.org >> https://stat.ethz.ch/mailman/listinfo/r-sig-mac >> _______________________________________________ R-SIG-Mac mailing list R-SIG-Mac@r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-mac