Skip to content

Compilation fails on macOS 13 + R-devel #143

@gaborcsardi

Description

@gaborcsardi

Describe the problem

Compilation fails on macOS 13 and R-devel:

  * installing *source* package ‘sass’ ...
  ** package ‘sass’ successfully unpacked and MD5 sums checked
  staged installation is only possible with locking
  ** using non-staged installation
  ** libs
  /Library/Frameworks/R.framework/Resources/share/make/shlib.mk:18: warning: overriding commands for target `shlib-clean'
  Makevars:12: warning: ignoring old commands for target `shlib-clean'
  using C compiler: ‘Apple clang version 15.0.0 (clang-1500.1.0.2.5)’
  using C++ compiler: ‘Apple clang version 15.0.0 (clang-1500.1.0.2.5)’
  using SDK: ‘’
  /Library/Frameworks/R.framework/Resources/share/make/shlib.mk:18: warning: overriding commands for target `shlib-clean'
  Makevars:12: warning: ignoring old commands for target `shlib-clean'
  clang -arch x86_64 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I./libsass/include  -I/opt/R/x86_64/include    -fPIC  -falign-functions=64 -Wall -g -O2  -Wall -pedantic -c compile.c -o compile.o
  clang++ -arch x86_64 -std=gnu++17 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I./libsass/include  -I/opt/R/x86_64/include    -fPIC  -falign-functions=64 -Wall -g -O2  -Wall -pedantic  -c init.cpp -o init.o
  In file included from init.cpp:1:
  In file included from ./compile.h:4:
  In file included from /Library/Frameworks/R.framework/Resources/include/Rinternals.h:47:
  In file included from /Library/Frameworks/R.framework/Resources/include/R_ext/Error.h:30:
  In file included from /Library/Frameworks/R.framework/Resources/include/R_ext/RS.h:30:
  /Applications/Xcode_15.2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/c++/v1/cstring:117:1: error: templates must have C++ linkage
  template <class _Tp>
  ^~~~~~~~~~~~~~~~~~~~
  /Library/Frameworks/R.framework/Resources/include/Rinternals.h:37:1: note: extern "C" language linkage specification begins here
  extern "C" {
  ^
  1 error generated.
  make: *** [init.o] Error 1
  ERROR: compilation failed for package ‘sass’
  * removing ‘/private/var/folders/zq/1mkv5ktx0_5cz1rlynrmdmlh0000gn/T/RtmpvybaaL/pkg-lib1ad97b06ad6a/sass’
# Include a minimal and reproducible example here
# If you don't know what that means, please see https://www.tidyverse.org/help
remotes::install_github("r-lib/sass")

Session Info

Details

  ─ Session info ───────────────────────────────────────────────────────────────
   setting  value
   version  R Under development (unstable) (2024-08-22 r87039)
   os       macOS Ventura 13.6.9
   system   x86_64, darwin20
   ui       X11
   language (EN)
   collate  en_US.UTF-8
   ctype    en_US.UTF-8
   tz       UTC
   date     2024-08-25
   pandoc   3.1.11 @ /usr/local/bin/pandoc

─ Packages ───────────────────────────────────────────────────────────────────
! package * version date (UTC) lib source
askpass 1.2.0 2023-09-03 [1] CRAN (R 4.5.0)
base * 4.5.0 2024-08-23 [?] local
base64enc 0.1-3 2015-07-28 [1] CRAN (R 4.5.0)
boot 1.3-30 2024-02-26 [3] CRAN (R 4.5.0)
brio 1.1.5 2024-04-24 [1] CRAN (R 4.5.0)
bslib 0.8.0 2024-07-29 [1] CRAN (R 4.5.0)
cachem 1.1.0 2024-05-16 [1] CRAN (R 4.5.0)
callr 3.7.6 2024-03-25 [1] CRAN (R 4.5.0)
class 7.3-22 2023-05-03 [3] CRAN (R 4.5.0)
cli 3.6.3 2024-06-21 [1] CRAN (R 4.5.0)
cluster 2.1.6 2023-12-01 [3] CRAN (R 4.5.0)
codetools 0.2-20 2024-03-31 [3] CRAN (R 4.5.0)
commonmark 1.9.1 2024-01-30 [1] CRAN (R 4.5.0)
P compiler 4.5.0 2024-08-23 [3] local
covr 3.6.4 2023-11-09 [1] CRAN (R 4.5.0)
crayon 1.5.3 2024-06-20 [1] CRAN (R 4.5.0)
curl 5.2.1 2024-03-01 [1] CRAN (R 4.5.0)
P datasets * 4.5.0 2024-08-23 [3] local
desc 1.4.3 2023-12-10 [1] CRAN (R 4.5.0)
diffobj 0.3.5 2021-10-05 [1] CRAN (R 4.5.0)
digest 0.6.37 2024-08-19 [1] CRAN (R 4.5.0)
evaluate 0.24.0 2024-06-10 [1] CRAN (R 4.5.0)
fansi 1.0.6 2023-12-08 [1] CRAN (R 4.5.0)
fastmap 1.2.0 2024-05-15 [1] CRAN (R 4.5.0)
fontawesome 0.5.2 2023-08-19 [1] CRAN (R 4.5.0)
foreign 0.8-87 2024-06-26 [3] CRAN (R 4.5.0)
fs 1.6.4.9000 2024-08-25 [1] Github (r-lib/fs@cee5901)
glue 1.7.0 2024-01-09 [1] CRAN (R 4.5.0)
P graphics * 4.5.0 2024-08-23 [3] local
P grDevices * 4.5.0 2024-08-23 [3] local
grid 4.5.0 2024-08-23 [?] local
highr 0.11 2024-05-26 [1] CRAN (R 4.5.0)
htmltools 0.5.8.1 2024-04-04 [1] CRAN (R 4.5.0)
httpuv 1.6.15 2024-03-26 [1] CRAN (R 4.5.0)
httr 1.4.7 2023-08-15 [1] CRAN (R 4.5.0)
hunspell 3.0.4 2024-08-19 [1] CRAN (R 4.5.0)
jquerylib 0.1.4 2021-04-26 [1] CRAN (R 4.5.0)
jsonlite 1.8.8 2023-12-04 [1] CRAN (R 4.5.0)
KernSmooth 2.23-24 2024-05-17 [3] CRAN (R 4.5.0)
knitr 1.48 2024-07-07 [1] CRAN (R 4.5.0)
later 1.3.2 2023-12-06 [1] CRAN (R 4.5.0)
lattice 0.22-6 2024-03-20 [3] CRAN (R 4.5.0)
lazyeval 0.2.2 2019-03-15 [1] CRAN (R 4.5.0)
lifecycle 1.0.4 2023-11-07 [1] CRAN (R 4.5.0)
magrittr 2.0.3 2022-03-30 [1] CRAN (R 4.5.0)
MASS 7.3-61 2024-06-13 [3] CRAN (R 4.5.0)
Matrix 1.7-0 2024-04-26 [3] CRAN (R 4.5.0)
memoise 2.0.1 2021-11-26 [1] CRAN (R 4.5.0)
P methods * 4.5.0 2024-08-23 [3] local
mgcv 1.9-1 2023-12-21 [3] CRAN (R 4.5.0)
mime 0.12 2021-09-28 [1] CRAN (R 4.5.0)
mockery 0.4.4 2023-09-26 [1] CRAN (R 4.5.0)
nlme 3.1-166 2024-08-14 [3] CRAN (R 4.5.0)
nnet 7.3-19 2023-05-03 [3] CRAN (R 4.5.0)
openssl 2.2.1 2024-08-16 [1] CRAN (R 4.5.0)
pak 0.8.0 2024-08-09 [2] local
parallel 4.5.0 2024-08-23 [?] local
pillar 1.9.0 2023-03-22 [1] CRAN (R 4.5.0)
pkgbuild 1.4.4 2024-03-17 [1] CRAN (R 4.5.0)
pkgconfig 2.0.3 2019-09-22 [1] CRAN (R 4.5.0)
pkgload 1.4.0 2024-06-28 [1] CRAN (R 4.5.0)
praise 1.0.0 2015-08-11 [1] CRAN (R 4.5.0)
prettyunits 1.2.0 2023-09-24 [1] CRAN (R 4.5.0)
processx 3.8.4 2024-03-16 [1] CRAN (R 4.5.0)
promises 1.3.0 2024-04-05 [1] CRAN (R 4.5.0)
ps 1.7.7 2024-07-02 [1] CRAN (R 4.5.0)
R6 2.5.1 2021-08-19 [1] CRAN (R 4.5.0)
rappdirs 0.3.3 2021-01-31 [1] CRAN (R 4.5.0)
rcmdcheck 1.4.0 2021-09-27 [1] any (@1.4.0)
Rcpp 1.0.13 2024-07-17 [1] CRAN (R 4.5.0)
rematch2 2.1.2 2020-05-01 [1] CRAN (R 4.5.0)
rex 1.2.1 2021-11-26 [1] CRAN (R 4.5.0)
rlang 1.1.4 2024-06-04 [1] CRAN (R 4.5.0)
rmarkdown 2.28 2024-08-17 [1] CRAN (R 4.5.0)
rpart 4.1.23 2023-12-05 [3] CRAN (R 4.5.0)
rprojroot 2.0.4 2023-11-05 [1] CRAN (R 4.5.0)
sass 0.4.9.9000 2024-08-25 [1] deps
sessioninfo 1.2.2 2021-12-06 [1] any (@1.2.2)
shiny 1.9.1 2024-08-01 [1] CRAN (R 4.5.0)
sourcetools 0.1.7-1 2023-02-01 [1] CRAN (R 4.5.0)
spatial 7.3-17 2023-07-20 [3] CRAN (R 4.5.0)
spelling 2.3.0 2024-03-05 [1] CRAN (R 4.5.0)
splines 4.5.0 2024-08-23 [?] local
P stats * 4.5.0 2024-08-23 [3] local
stats4 4.5.0 2024-08-23 [?] local
survival 3.7-0 2024-06-05 [3] CRAN (R 4.5.0)
sys 3.4.2 2023-05-23 [1] CRAN (R 4.5.0)
tcltk 4.5.0 2024-08-23 [?] local
testthat 3.2.1.1 2024-04-14 [1] CRAN (R 4.5.0)
tibble 3.2.1 2023-03-20 [1] CRAN (R 4.5.0)
tinytex 0.52 2024-07-18 [1] CRAN (R 4.5.0)
P tools 4.5.0 2024-08-23 [3] local
utf8 1.2.4 2023-10-22 [1] CRAN (R 4.5.0)
P utils * 4.5.0 2024-08-23 [3] local
vctrs 0.6.5 2023-12-01 [1] CRAN (R 4.5.0)
waldo 0.5.3 2024-08-23 [1] CRAN (R 4.5.0)
withr 3.0.1 2024-07-31 [1] CRAN (R 4.5.0)
xfun 0.47 2024-08-17 [1] CRAN (R 4.5.0)
xml2 1.3.6.9000 2024-08-25 [1] Github (r-lib/xml2@d1a81d3)
xopen 1.0.1 2024-04-25 [1] CRAN (R 4.5.0)
xtable 1.8-4 2019-04-21 [1] CRAN (R 4.5.0)
yaml 2.3.10 2024-07-26 [1] CRAN (R 4.5.0)

[1] /Users/runner/work/_temp/Library
[2] /Library/Frameworks/R.framework/Versions/4.5-x86_64/Resources/site-library
[3] /Library/Frameworks/R.framework/Versions/4.5-x86_64/Resources/library

P ── Loaded and on-disk path mismatch.

──────────────────────────────────────────────────────────────────────────────

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions