Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8935341
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T09:58:02+00:00 2026-06-15T09:58:02+00:00

I am getting the error message below when I try to compile any code.

  • 0

I am getting the error message below when I try to compile any code. Below is an example and the output from sessionInfo(). The example used to work but I had problems with RcppArmadillo. So I installed the for HPC version of the gfortran compiler, which was a mistake. R just crashed when I tried to compile something (CRAN also warns about the HPC version). In the end, I installed the version on CRAN here but now any call to cppFunction or sourceCpp produces the error below. I have already tried to uninstall gfortran, R, Rcpp and install them again. Same error. The output from gfortran -v is a little confusing. Any ideas?

Example code

require("Rcpp")
cppFunction('
    int add(int x, int y, int z) { 
      int sum = x + y + z;
      return sum;
    }'
)

Error message

Error in dyn.load(context$dynlibPath) : 
  unable to load shared object '/var/folders/cc/_mskgpdd6f77hrg4rsp4zq1h0000gq/T//RtmpHRb5JV/sourcecpp_24fb5226c6fc/sourceCpp_96369.so':
  dlopen(/var/folders/cc/_mskgpdd6f77hrg4rsp4zq1h0000gq/T//RtmpHRb5JV/sourcecpp_24fb5226c6fc/sourceCpp_96369.so, 6): Symbol not found: ___emutls_get_address
  Referenced from: /usr/local/lib/libstdc++.6.dylib
  Expected in: /usr/local/lib/libgcc_s.1.dylib
 in /usr/local/lib/libstdc++.6.dylib

Output from session info

R version 2.15.2 (2012-10-26)
Platform: x86_64-apple-darwin9.8.0/x86_64 (64-bit)

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

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

other attached packages:
[1] Rcpp_0.10.1      boot_1.3-7       xtable_1.7-0     stringr_0.6.1   
[5] mi_0.09-18       arm_1.5-08       abind_1.4-0      R2WinBUGS_2.1-18
[9] coda_0.14-7      lme4_0.999999-0  Matrix_1.0-9     lattice_0.20-10 
[13] car_2.0-15       nnet_7.3-5       MASS_7.3-22      plyr_1.7.1      
[17] foreign_0.8-51  

loaded via a namespace (and not attached):
[1] grid_2.15.2   nlme_3.1-105  stats4_2.15.2 tools_2.15.2 

versions of compiler

> gcc -v
gcc version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.11.00)
> gfortran -v
Using built-in specs.
Target: i686-apple-darwin8
Configured with: /Builds/unix/gcc/gcc-4.2/configure --prefix=/usr/local --mandir=/share/man --program-transform-name=/^[cg][^.-]*$/s/$/-4.2/ --build=i686-apple-darwin8 --host=i686-apple-darwin8 --target=i686-apple-darwin8 --enable-languages=fortran
Thread model: posix
gcc version 4.2.3
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T09:58:03+00:00Added an answer on June 15, 2026 at 9:58 am

    Somehow I ended up with a version of libstdc++.6.dylib in /usr/local/lib. This version is picked up when I compile certain code with Rcpp or inline and produces the error. It seems to overwrite the the system version in /usr/lib. For now, I just renamed /usr/local/lib/libstdc++.6.dylib to .../libstdc++.6-SAVE. I am not sure whether that will create other problems but Rcpp is running again and the ?cfunction examples also work!

    EDIT: It’s actually still screwed up. Here are the steps to solve the problem for the current R session. 1) start R with /usr/local/lib/libstdc++.6.dylib unchanged, 2) rename /usr/local/lib/libstdc++.6.dylib, 3) happily use Rcpp. When I now restart R, however, I still get the old error message. I have to go through the three steps again to make it work in the current R session.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am getting the error message below when I try to compile my code
I'm getting this error message with the code below: class Money { public: Money(float
I'm getting the error message when running the following code from a C# console
All, I'm getting an error with the code below. Here is the error message
until yesterday the below code was workig fine but today I'm getting a error
I am not getting any error message in browser due to curly brace missing
All time am getting below error message in groovy... Could not understand whats causing
I'm getting the error below when I try usign the XmlTextWriter in my VB
I am getting this error when I try to read a property from a
I am getting the below error when I try to use Xstream to marshal

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.