Opened 3 years ago
Closed 3 years ago
#63674 closed defect (fixed)
R @4.1.1 'recommended' set of packages does not build on MacOS 12.0.1 Monterey
Reported by: | AP1010 | Owned by: | kjellpk (Kjell Konis) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.7.1 |
Keywords: | monterey | Cc: | i0ntempest |
Port: | R |
Description
I am unable to build R on Monterey unless I specify -recommended
.
With +recommended
(the default), the build fails with:
/opt/local/bin/clang-mp-13 -I"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_math_R/R/work/R-4.1.1/include" -DNDEBUG -I/opt/local/include -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk -fopenmp -fPIC -pipe -Os -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk -arch x86_64 -c mat.c -o mat.o In file included from magic.c:26: /opt/local/include/libomp/omp.h:483:39: error: expected 'match' clause on 'omp declare variant' directive #pragma omp begin declare variant match(device={kind(host)})
Attachments (1)
Change History (6)
Changed 3 years ago by AP1010
comment:1 Changed 3 years ago by ryandesign (Ryan Carsten Schmidt)
Cc: | i0ntempest added |
---|---|
Keywords: | monterey added; Monterey R recommended removed |
Owner: | set to kjellpk |
Port: | @4.1.1 removed |
Status: | new → assigned |
comment:2 follow-up: 4 Changed 3 years ago by kjellpk (Kjell Konis)
Sadly, I am hardware-limited to High Sierra. From a quick look at the log, it looks like the 'survival' package (one of R's Recommended packages) is not playing nice with openmp.
comment:3 Changed 3 years ago by AP1010
Disabling openmp helps. Variant:
+builtin_lapack +cairo +gccdevel +recommended -openmp
builds successfully.
comment:4 Changed 3 years ago by i0ntempest
Replying to kjellpk:
Sadly, I am hardware-limited to High Sierra. From a quick look at the log, it looks like the 'survival' package (one of R's Recommended packages) is not playing nice with openmp.
Pretty sure you meant mgcv
which is the one that fails to build. Looks like the recent libomp
update is incompatible with this. The newest mgcv
does build with the newest libomp
, so let's wait for an upstream update.
comment:5 Changed 3 years ago by i0ntempest
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
main.log