ecmerkle/blavaan

blavaan failed to compile (Mac M1)

davidaarmstrong opened this issue · 4 comments

I was trying to troubleshoot another problem (all missing predicted latent variables from blavPredict() and tried to install the current version from GitHub with remotes::install_github("ecmerkle/blavaan"). I was prompted to update rstan and StanHeaders, which I did compiling them from source, which worked. When blavaan tried to compile, I got an error (long output below). My session info is:

R version 4.2.2 (2022-10-31)
Platform: aarch64-apple-darwin20 (64-bit)
Running under: macOS Ventura 13.1

Matrix products: default
BLAS:   /Library/Frameworks/R.framework/Versions/4.2-arm64/Resources/lib/libRblas.0.dylib
LAPACK: /Library/Frameworks/R.framework/Versions/4.2-arm64/Resources/lib/libRlapack.dylib

locale:
[1] en_CA.UTF-8/en_CA.UTF-8/en_CA.UTF-8/C/en_CA.UTF-8/en_CA.UTF-8

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

loaded via a namespace (and not attached):
[1] compiler_4.2.2

The output for the warning and error messages is too long, but here's a link to the text file.

Thanks for the report. I am currently dealing with a CRAN request to update the compiler to C++17, which might have broken compilation from github on some macs. I will look at it more after I send the next version to CRAN, which will happen soon.

The good news is that the next version fixes the issue with missing lvs. And to work around that issue with version 0.4-6, you just need to add meanstructure=TRUE to your model estimation command.

Fantastic, thanks!

Sorry, I didn't mean to close this (it automatically closed with my commit message), but I just pushed a change that might fix the problem. If you get a chance, I'd be interested to hear whether you can now compile.

There have been recent changes here that should hopefully fix the issue. If you are still having a problem, please re-open with further info.