Opened 2 years ago

Closed 2 years ago

Last modified 2 years ago

#66187 closed defect (duplicate)

Error: Failed to build R: command execution failed

Reported by: dbl001 (dbl) Owned by: i0ntempest
Priority: Normal Milestone:
Component: ports Version: 2.8.0
Keywords: Cc: kjellpk (Kjell Konis)
Port: R

Description

I am getting an error building 'R' after migrating to MacOS Ventura.

% xcrun --show-sdk-version
13.0
(AI-Feynman) davidlaxer@x86_64-apple-darwin13 pytorch % xcrun --show-sdk-path  
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk

:info:build /opt/local/bin/clang-mp-14 -I"../../../../include" -DNDEBUG -I../../../include -I../../../../src/include -DHAVE_CONFIG_H  -I/opt/local/include -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk   -fPIC  -pipe -Os -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk -arch x86_64  -c devQuartz.c -o devQuartz.o
:info:build devQuartz.c:660:23: error: 'ATSFontFindFromName' is unavailable
:info:build             atsFont = ATSFontFindFromName(cfFontName, kATSOptionFlagsDefault);
:info:build                       ^
:info:build /Library/Developer/CommandLineTools/SDKs/MacOSX13.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/ATS.framework/Headers/ATSFont.h:811:1: note: 'ATSFontFindFromName' has been explicitly marked unavailable h
...

Attachments (1)

main.log (718.7 KB) - added by dbl001 (dbl) 2 years ago.

Download all attachments as: .zip

Change History (6)

Changed 2 years ago by dbl001 (dbl)

Attachment: main.log added

comment:1 Changed 2 years ago by kencu (Ken)

the ATSFont* functions are severely deprecated in macOS now. They can still be accessed in the MacOSX13.x.sdk if the deployment target is set to 12.0 however, even when building against the MacOSX13.0.sdk.

comment:2 Changed 2 years ago by dbl001 (dbl)

I tried MACOSX_DEPLOYMENT_TARGET=10.9 and then MACOSX_DEPLOYMENT_TARGET=12.0, but I get the same error. Am I missing something?

 export MACOSX_DEPLOYMENT_TARGET=12.0
(base) davidlaxer@x86_64-apple-darwin13 build % sudo port install R
--->  Computing dependencies for R
--->  Fetching archive for R
--->  Attempting to fetch R-4.2.2_1+builtin_lapack+cairo+gcc12+openmp+recommended+x11.darwin_22.x86_64.tbz2 from https://packages.macports.org/R
--->  Attempting to fetch R-4.2.2_1+builtin_lapack+cairo+gcc12+openmp+recommended+x11.darwin_22.x86_64.tbz2 from https://ywg.ca.packages.macports.org/mirror/macports/packages/R
--->  Attempting to fetch R-4.2.2_1+builtin_lapack+cairo+gcc12+openmp+recommended+x11.darwin_22.x86_64.tbz2 from https://kmq.jp.packages.macports.org/R
--->  Building R
Error: Failed to build R: command execution failed       
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_math_R/R/main.log for details.
Error: Follow https://guide.macports.org/#project.tickets if you believe there
is a bug.
Error: Processing of port R failed

comment:3 Changed 2 years ago by jmroot (Joshua Root)

Cc: kjellpk added
Owner: set to i0ntempest
Status: newassigned

comment:4 Changed 2 years ago by i0ntempest

Resolution: duplicate
Status: assignedclosed

Duplicate of https://trac.macports.org/ticket/66095.

Set configure.sdk_version 12 in portfile to get around this.

comment:5 Changed 2 years ago by kencu (Ken)

This worked in qt4-mac:

platform darwin 22 {
     macosx_deployment_target 12.0
}
Note: See TracTickets for help on using tickets.