[MacPorts] #61827: rb27-nokogiri @1.10.4 : Failed to compile on Big Sur (Apple Silicon)
MacPorts
noreply at macports.org
Sun Dec 20 15:30:34 UTC 2020
#61827: rb27-nokogiri @1.10.4 : Failed to compile on Big Sur (Apple Silicon)
--------------------------+--------------------------
Reporter: milkcocoa | Owner: kimuraw
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.6.4
Resolution: | Keywords: bigsur arm64
Port: rb-nokogiri |
--------------------------+--------------------------
Comment (by kimuraw):
from nortcele's mkmf.log, SDK paths looks to conflict between macports'
ruby and your Mac.
as a workaround, recompile ruby with `sudo port -ns upgrade --force
ruby27` solves this problem.
{{{
% ruby2.7 -rpp -e 'pp RbConfig::CONFIG["CFLAGS"]' | grep sysroot
"-pipe -Os
-isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX11.0.sdk -fno-
common"
% ls /Library/Developer/CommandLineTools/SDKs/MacOSX11.0.sdk
ls: /Library/Developer/CommandLineTools/SDKs/MacOSX11.0.sdk: No such file
or directory
% xcrun --sdk macosx --show-sdk-path
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk
% sudo port -ns upgrade --force ruby27
% ruby2.7 -rpp -e 'pp RbConfig::CONFIG["CFLAGS"]' | grep sysroot
"-pipe -Os
-isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk -fno-
common" # 11.0 -> 11.1
}}}
--
Ticket URL: <https://trac.macports.org/ticket/61827#comment:7>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list