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)

main.log (654.8 KB) - added by AP1010 3 years ago.
main.log

Download all attachments as: .zip

Change History (6)

Changed 3 years ago by AP1010

Attachment: main.log added

main.log

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: newassigned

comment:2 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 in reply to:  2 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: assignedclosed

In 0991dba92e0f9905dd33d4314e470416ea5fecb5/macports-ports (master):

R: update to 4.1.2

Closes: #63674

Note: See TracTickets for help on using tickets.