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

Compilation fail macOS 13 (R 4.5) #467

Closed
albersonmiranda opened this issue Aug 24, 2024 · 0 comments · Fixed by #468
Closed

Compilation fail macOS 13 (R 4.5) #467

albersonmiranda opened this issue Aug 24, 2024 · 0 comments · Fixed by #468

Comments

@albersonmiranda
Copy link

Hello there!

I'm getting a build fail during macOS 13 (devel) CI:

✖ Failed to build fs 1.6.4 (1.9s)
  Error: 
  ! error in pak subprocess
  Caused by error in `stop_task_build(state, worker)`:
  ! Failed to build source package fs.
  Full installation output:
  * installing *source* package ‘fs’ ...
  ** package ‘fs’ successfully unpacked and MD5 sums checked
  staged installation is only possible with locking
  ** using non-staged installation
  ** libs
  using C++ compiler: ‘Apple clang version 15.0.0 (clang-1500.1.0.2.5)’
  using SDK: ‘’
  clang++ -arch x86_64 -std=gnu++17 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I./libuv-1.44.2/include -I. -pthread  -I/opt/R/x86_64/include    -fPIC  -falign-functions=64 -Wall -g -O2  -Wall -pedantic  -c dir.cc -o dir.o
  clang++ -arch x86_64 -std=gnu++17 -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I./libuv-1.44.2/include -I. -pthread  -I/opt/R/x86_64/include    -fPIC  -falign-functions=64 -Wall -g -O2  -Wall -pedantic  -c error.cc -o error.o
  In file included from error.cc:1:
  In file included from ./error.h:5:
  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: *** [error.o] Error 1
  ERROR: compilation failed for package ‘fs’

I've tried deleting the cache, but the error persisted. I'm not sure if it's on your side, but I thought it was worth reporting.

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

Successfully merging a pull request may close this issue.

1 participant