Skip to content

Commit 8a833c8

Browse files
committed
Check for finding an SDK (the compiler error message is cryptic when this
happens). Inform of the git repositories of SDKs as a source for them.
1 parent b59eeb7 commit 8a833c8

File tree

4 files changed

+21
-6
lines changed

4 files changed

+21
-6
lines changed

build.macos32x86/HowToBuild

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -173,8 +173,12 @@ SDKs and Problems
173173
-----------------
174174
The makefiles will use the oldest available SDK that is installed that is new
175175
enough to build the system. The 32-bit build requires at least the 10.9 SDK.
176-
To obtain SDKs it is best to web search for "obtaining older sdks for Xcode",
177-
and follow the instructions you find.
176+
SDKs are installed in
177+
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/
178+
To obtain SDKs one way is to web search for "obtaining older sdks for Xcode",
179+
and follow the instructions you find. But a more convenient place, at time of
180+
writing, is
181+
git clone https://github.com/phracker/MacOSX-SDKs.git
178182

179183
On Sierra people have reported that the support libraries for the SSLPlugin
180184
(libssl.dylib and libcrypto.dylib) are missing. The symptom is an error
@@ -254,5 +258,6 @@ e.g. if in the image directory you might do
254258
The VM includes many functions intended for VM debugging. See e.g. functions
255259
beginning with print in the main VM source (e.g. spursrc/vm/gcc3x-cointerp.c).
256260

261+
257262
Eliot Miranda
258-
August 2017
263+
April 2018

build.macos32x86/common/Makefile.flags

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ SDKsDIR:=$(XCODE)/Platforms/MacOSX.platform/Developer/SDKs
99
#Build the oldest SDK installed
1010
SDKs:=MacOSX10.9.sdk MacOSX10.10.sdk MacOSX10.11.sdk MacOSX10.12.sdk MacOSX10.13.sdk
1111
SDK:=$(firstword $(realpath $(addprefix $(SDKsDIR)/, $(SDKs))))
12+
ifeq ($(strip $(SDK)),)
13+
$(error could not find a valid SDK)
14+
endif
1215
TARGET_ARCH:=i386
1316
TARGET_VERSION_MIN:=10.7
1417

build.macos64x64/HowToBuild

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -173,8 +173,12 @@ SDKs and Problems
173173
-----------------
174174
The makefiles will use the oldest available SDK that is installed that is new
175175
enough to build the system. The 64-bit build requires at least the 10.10 SDK.
176-
To obtain SDKs it is best to web search for "obtaining older sdks for Xcode",
177-
and follow the instructions you find.
176+
SDKs are installed in
177+
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/
178+
To obtain SDKs one way is to web search for "obtaining older sdks for Xcode",
179+
and follow the instructions you find. But a more convenient place, at time of
180+
writing, is
181+
git clone https://github.com/phracker/MacOSX-SDKs.git
178182

179183
On Sierra people have reported that the support libraries for the SSLPlugin
180184
(libssl.dylib and libcrypto.dylib) are missing. The symptom is an error
@@ -255,4 +259,4 @@ The VM includes many functions intended for VM debugging. See e.g. functions
255259
beginning with print in the main VM source (e.g. spursrc/vm/gcc3x-cointerp.c).
256260

257261
Eliot Miranda
258-
August 2017
262+
April 2018

build.macos64x64/common/Makefile.flags

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ SDKsDIR:=$(XCODE)/Platforms/MacOSX.platform/Developer/SDKs
99
#Build the oldest SDK installed (must be MacOSX10.10.sdk and later)
1010
SDKs:=MacOSX10.10.sdk MacOSX10.11.sdk MacOSX10.12.sdk MacOSX10.13.sdk
1111
SDK:=$(firstword $(realpath $(addprefix $(SDKsDIR)/, $(SDKs))))
12+
ifeq ($(strip $(SDK)),)
13+
$(error could not find a valid SDK)
14+
endif
1215
TARGET_ARCH:=x86_64
1316
TARGET_VERSION_MIN:=10.7
1417

0 commit comments

Comments
 (0)