Thank you for the feedback, this is great!

I kept investigating my particular issue and it turned out that I did
not pay sufficient attention.
I actually forgot to comment out the relevant include and lib paths
that I set in the file … my bad.

As I proceeded, I encountered a few more issues.
It turned out ./configure needed a newer version of curl.
Installing it with brew did the job + linking the lib include and
pkconfig to /opt/homebrew respectively.

Currently my build efforts are stuck as libR.dylib references
_libiconv but cannot find that symbol inside libiconv, which seems to
be an old issue according to a quick google search, e.g
Installing and linking libiconv via brew did not work so far, I do not
manage to tell the compiler to look up the right libiconv.

On the other hand, the binary provided via brew seems to work fine.
Installing R packages from the sources worked flawlessly and the
packages seem usable.
So far I've checked out tidymodels, readr, ggplot2, ranger, grf,
glmnet (plust the dependencies).
This looks very encouraging!

Best wishes,

On Thu, Dec 24, 2020 at 10:50 PM Jeroen Ooms <> wrote:
> On Thu, Dec 24, 2020 at 7:32 PM Denis-Alexander Engemann
> <> wrote:
> >
> > Hi everyone,
> >
> > I'm finally joining the party here and so far made good progress
> > following Taras' instructions.
> >
> > Disclaimer - I'm new to working with R sources.
> > But would be very happy to help with testing and reporting to
> > accelerate support native M1 builds.
> >
> > I am using the R-4.0.3 sources with the latest gfortran release from
> > François-Xavier Coudert:
> >
> >
> > Currently I'm facing some issues at step 5.
> > It seems that for some reasons liblzma cannot be found although it is
> > well installed via xz at step 3.
> > I also verified that the liblzma can be easily discovered along the lines 
> > of 3.
> >
> > The lines before ./configure stops are:
> >
> > ```
> > checking lzma.h usability... no
> > checking lzma.h presence... no
> > checking for lzma.h... no
> > configure: error: "liblzma library and headers are required"
> > ```
> >
> > As mentioned, all is well installed in the include and lib directories at:
> > /opt/homebrew/Cellar/xz/5.2.5
> >
> > Would you have a suggestion where I should link the headers/library to
> > be picked up by ./configure ?
> Homebrew now has an arm64 binary for R:
> .
> Hence you can simply use: brew install r
> To tweak the build, use "brew edit r", save your changes, and then:
> brew install r --build-from-source

R-SIG-Mac mailing list

Reply via email to