Title: Undefined symbol on MacOS with strict linking · Issue #206 · RcppCore/RcppParallel · GitHub
Open Graph Title: Undefined symbol on MacOS with strict linking · Issue #206 · RcppCore/RcppParallel
X Title: Undefined symbol on MacOS with strict linking · Issue #206 · RcppCore/RcppParallel
Description: Compiling on MacOS without the -undefined dynamic_lookup linker flag reveals an undefined symbol. You can test this like so: sed -i.bak 's/-undefined dynamic_lookup//g' $(R RHOME)/etc/Makeconf And then installing from source will fail: *...
Open Graph Description: Compiling on MacOS without the -undefined dynamic_lookup linker flag reveals an undefined symbol. You can test this like so: sed -i.bak 's/-undefined dynamic_lookup//g' $(R RHOME)/etc/Makeconf And ...
X Description: Compiling on MacOS without the -undefined dynamic_lookup linker flag reveals an undefined symbol. You can test this like so: sed -i.bak 's/-undefined dynamic_lookup//g' $(R RHOME)/etc/Makec...
Opengraph URL: https://github.com/RcppCore/RcppParallel/issues/206
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Undefined symbol on MacOS with strict linking","articleBody":"Compiling on MacOS without the `-undefined dynamic_lookup` linker flag reveals an undefined symbol. You can test this like so:\r\n\r\n```sh\r\nsed -i.bak 's/-undefined dynamic_lookup//g' $(R RHOME)/etc/Makeconf\r\n```\r\n\r\nAnd then installing from source will fail:\r\n\r\n```\r\n** configured file: 'R/tbb-autodetected.R.in' =\u003e 'R/tbb-autodetected.R'\r\n *** configured file: 'src/install.libs.R.in' =\u003e 'src/install.libs.R'\r\n *** configured file: 'src/Makevars.in' =\u003e 'src/Makevars'\r\n ** finished configure for package 'RcppParallel'\r\n ** libs\r\n using C++ compiler: ‘Apple clang version 14.0.0 (clang-1400.0.29.202)’\r\n using SDK: ‘’\r\n (tbb) Building TBB using bundled sources ...\r\n OS: macos\r\n arch=intel64\r\n compiler=clang\r\n runtime=cc14.0.0_os12.7.2\r\n tbb_build_prefix=macos_intel64_clang_cc14.0.0_os12.7.2\r\n work_dir=/private/var/folders/qv/pdh5wsgn0lq3dp77zj602b5c0000gn/T/RtmpXzRtgl/R.INSTALL3d205139f0cb/RcppParallel/src/build/macos_intel64_clang_cc14.0.0_os12.7.2_release\r\n (tbb) TBB compilation finished successfully.\r\n clang++ -arch x86_64 -std=gnu++17 -I\"/Library/Frameworks/R.framework/Resources/include\" -DNDEBUG -I../inst/include -I/opt/R/x86_64/include -std=gnu++11 -DRCPP_PARALLEL_USE_TBB=1 -DTBB_SUPPRESS_DEPRECATED_MESSAGES=1 -fPIC -falign-functions=64 -Wall -g -O2 -c init.cpp -o init.o\r\n clang++ -arch x86_64 -std=gnu++17 -I\"/Library/Frameworks/R.framework/Resources/include\" -DNDEBUG -I../inst/include -I/opt/R/x86_64/include -std=gnu++11 -DRCPP_PARALLEL_USE_TBB=1 -DTBB_SUPPRESS_DEPRECATED_MESSAGES=1 -fPIC -falign-functions=64 -Wall -g -O2 -c options.cpp -o options.o\r\n clang++ -arch x86_64 -std=gnu++17 -dynamiclib -Wl,-headerpad_max_install_names -L/Library/Frameworks/R.framework/Resources/lib -L/opt/R/x86_64/lib -o RcppParallel.so init.o options.o -F/Library/Frameworks/R.framework/.. -framework R -Wl,-framework -Wl,CoreFoundation\r\n Undefined symbols for architecture x86_64:\r\n \"tbb::interface7::internal::task_arena_base::internal_max_concurrency(tbb::interface7::task_arena const*)\", referenced from:\r\n _defaultNumThreads in options.o\r\n ld: symbol(s) not found for architecture x86_64\r\n clang: error: linker command failed with exit code 1 (use -v to see invocation)\r\n make: *** [RcppParallel.so] Error 1\r\n ERROR: compilation failed for package ‘RcppParallel’\r\n```\r\n\r\nThis is important when cross compiling (for example on p3m), otherwise the resulting binary cannot be loaded.\r\n","author":{"url":"https://github.com/jeroen","@type":"Person","name":"jeroen"},"datePublished":"2024-01-02T17:31:56.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/206/RcppParallel/issues/206"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:5550f88f-6151-5c90-0c5e-8946fd6ab406 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C088:3BB2E8:11B6309:18B7D43:6970C940 |
| html-safe-nonce | b675854b3a14445e2b4559991fe179e9c54c3de602a2830e870cff7027770d05 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMDg4OjNCQjJFODoxMUI2MzA5OjE4QjdENDM6Njk3MEM5NDAiLCJ2aXNpdG9yX2lkIjoiNDQ1MzY1MTg3MzkwNjM0NjMwNCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 822b5cfddcdc917bb7403ba446da4d52fec2d941d1e8a41389d0cb8416ae3474 |
| hovercard-subject-tag | issue:2062733169 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/RcppCore/RcppParallel/206/issue_layout |
| twitter:image | https://opengraph.githubassets.com/9782d3c403ffdbc1d0366422d265a99519c35baa31d92a3dd6b4eb0085a19b49/RcppCore/RcppParallel/issues/206 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/9782d3c403ffdbc1d0366422d265a99519c35baa31d92a3dd6b4eb0085a19b49/RcppCore/RcppParallel/issues/206 |
| og:image:alt | Compiling on MacOS without the -undefined dynamic_lookup linker flag reveals an undefined symbol. You can test this like so: sed -i.bak 's/-undefined dynamic_lookup//g' $(R RHOME)/etc/Makeconf And ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jeroen |
| hostname | github.com |
| expected-hostname | github.com |
| None | 721764876e433c894814212f8100f6610f1dde78a987acc2e385d8be8e170e9c |
| turbo-cache-control | no-preview |
| go-import | github.com/RcppCore/RcppParallel git https://github.com/RcppCore/RcppParallel.git |
| octolytics-dimension-user_id | 5811336 |
| octolytics-dimension-user_login | RcppCore |
| octolytics-dimension-repository_id | 21576989 |
| octolytics-dimension-repository_nwo | RcppCore/RcppParallel |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 21576989 |
| octolytics-dimension-repository_network_root_nwo | RcppCore/RcppParallel |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 6ff3d08f4ee1c3f89ebedf4df8fc8fe851190294 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width