Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix M1Mac issues for CRAN #27

Open
kbenoit opened this issue Aug 9, 2024 · 1 comment
Open

Fix M1Mac issues for CRAN #27

kbenoit opened this issue Aug 9, 2024 · 1 comment
Assignees
Labels
Milestone

Comments

@kbenoit
Copy link
Contributor

kbenoit commented Aug 9, 2024

Begin forwarded message:

From: Prof Brian Ripley [email protected]
Subject: CRAN package quanteda.textplots
Date: 19 July 2024 at 14:27:45 GMT+8
To: [email protected]
Cc: [email protected]
Reply-To: [email protected]

Dear maintainer,

Please see the problems shown on
https://cran.r-project.org/web/checks/check_results_quanteda.textplots.html.

Please correct before 2024-08-19 to safely retain your package on CRAN.

There is a check service for M1mac issues: see
https://www.stats.ox.ac.uk/pub/bdr/M1mac/README.txt .
However, it is running a much older version of the OS
and toolchain -- and the latter often matters.

The CRAN Team

  • installing source package ‘quanteda.textplots’ ...
    ** package ‘quanteda.textplots’ successfully unpacked and MD5 sums checked
    ** using staged installation
    ** libs
    using C++ compiler: ‘Apple clang version 16.0.0 (clang-1600.0.24.1)’
    using SDK: ‘MacOSX15.0.sdk’
    clang++ -mmacos-version-min=14.6 -std=gnu++17 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -DARMA_DONT_PRINT_OPENMP_WARNING -I../inst/include -I'/Users/ripley/R/Library/Rcpp/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c RcppExports.cpp -o RcppExports.o
    clang++ -mmacos-version-min=14.6 -std=gnu++17 -I"/Users/ripley/R/R-devel/include" -DNDEBUG -DARMA_DONT_PRINT_OPENMP_WARNING -I../inst/include -I'/Users/ripley/R/Library/Rcpp/include' -isystem /opt/R/arm64/include -fPIC -g -O2 -Wall -pedantic -Wconversion -Wno-sign-conversion -c wordcloud.cpp -o wordcloud.o
    clang++ -mmacos-version-min=14.6 -std=gnu++17 -dynamiclib -Wl,-headerpad_max_install_names -undefined dynamic_lookup -L/Users/ripley/R/R-devel/lib -L/opt/R/arm64/lib -o quanteda.textplots.so RcppExports.o wordcloud.o -L/Users/ripley/R/R-devel/lib -lRlapack -L/Users/ripley/R/R-devel/lib -lRblas -L/opt/gfortran/lib/gcc/aarch64-apple-darwin20.0/14.1.0 -L/opt/gfortran/lib -lemutls_w -lheapt_w -lgfortran -lquadmath -L/Users/ripley/R/Library/RcppParallel/lib -ltbb -ltbbmalloc -L/Users/ripley/R/R-devel/lib -lR -Wl,-framework -Wl,CoreFoundation
    installing to /Users/ripley/R/packages/tests-devel/quanteda.textplots.Rcheck/00LOCK-quanteda.textplots/00new/quanteda.textplots/libs
    ** R
    ** inst
    ** byte-compile and prepare package for lazy loading
    ** help
    *** installing help indices
    ** building package indices
    ** testing if installed package can be loaded from temporary location
    Error: package or namespace load failed for ‘quanteda.textplots’ in dyn.load(file, DLLpath = DLLpath, ...):
    unable to load shared object '/Users/ripley/R/packages/tests-devel/quanteda.textplots.Rcheck/00LOCK-quanteda.textplots/00new/quanteda.textplots/libs/quanteda.textplots.so':
    dlopen(/Users/ripley/R/packages/tests-devel/quanteda.textplots.Rcheck/00LOCK-quanteda.textplots/00new/quanteda.textplots/libs/quanteda.textplots.so, 0x0006): Library not loaded: @rpath/libtbb.dylib
    Referenced from: /Users/ripley/R/packages/tests-devel/quanteda.textplots.Rcheck/00LOCK-quanteda.textplots/00new/quanteda.textplots/libs/quanteda.textplots.so
    Reason: tried: '/Users/ripley/R/R-devel/lib/libtbb.dylib' (no such file), '/opt/R/arm64/lib/libtbb.dylib' (no such file), '/Library/Java/JavaVirtualMachines/temurin-21.jdk/Contents/Home/lib/server/libtbb.dylib' (no such file)
    Error: loading failed
    Execution halted
    ERROR: loading failed
  • removing ‘/Users/ripley/R/packages/tests-devel/quanteda.textplots.Rcheck/quanteda.textplots’

and

  • using log directory ‘/Users/ripley/R/packages/tests-devel/quanteda.textplots.Rcheck’
  • using R Under development (unstable) (2024-08-05 r86980)
  • using platform: aarch64-apple-darwin23.6.0
  • R was compiled by
    Apple clang version 16.0.0 (clang-1600.0.24.1)
    GNU Fortran (GCC) 14.1.0
  • running under: macOS Sonoma 14.6
  • using session charset: UTF-8
  • using option ‘--no-stop-on-test-error’
  • checking for file ‘quanteda.textplots/DESCRIPTION’ ... OK
  • this is package ‘quanteda.textplots’ version ‘0.94.4’
  • package encoding: UTF-8
  • checking package namespace information ... OK
  • checking package dependencies ... OK
  • checking if this is a source package ... OK
  • checking if there is a namespace ... OK
  • checking for executable files ... OK
  • checking for hidden files and directories ... OK
  • checking for portable file names ... OK
  • checking for sufficient/correct file permissions ... OK
  • checking whether package ‘quanteda.textplots’ can be installed ... ERROR
    Installation failed.
    See ‘/Users/ripley/R/packages/tests-devel/quanteda.textplots.Rcheck/00install.out’ for details.
  • DONE

Status: 1 ERROR
See
‘/Users/ripley/R/packages/tests-devel/quanteda.textplots.Rcheck/00check.log’
for details.

    6.08 real         4.73 user         0.98 sys
@kbenoit kbenoit added the CRAN label Aug 9, 2024
@kbenoit kbenoit added this to the 0.94.5 milestone Aug 9, 2024
@koheiw
Copy link
Collaborator

koheiw commented Aug 9, 2024

It might be a good idea to replace the C++ code with the ggwordcloud package.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants