build fails on mac 10.14.6 with updated Xcode?

24 views
Skip to first unread message

'John Clements' via dev-redirect

unread,
Sep 29, 2019, 2:32:59 PM9/29/19
to d...@racket-lang.org, Matthew Flatt
I’m failing to build DrRacket on 10.14.6 with a recently updated XCode, and clang is complaining about a pragma, “clang diagnostic pop”:

env XFORM_USE_PRECOMP=xsrc/precomp.h ../racketcgc -G /Users/clements/racket/build/config -O "info@compiler/cm error" -l- setup --boot /Users/clements/racket/racket/src/build/../racket/gc2/../../setup-go.rkt ../../compiled --tag ++out /Users/clements/racket/racket/src/build/../racket/gc2/xform-mod.rkt --depends --cpp "gcc -E -I./.. -I/Users/clements/racket/racket/src/build/../racket/gc2/../include -I/Users/clements/racket/racket/src/build/../racket/gc2/../../rktio -I../../rktio -g -O2 -DOS_X -D_DARWIN_UNLIMITED_SELECT -fno-common -DUSE_SENORA_GC -Wno-nullability-completeness " --keep-lines -o ++out xsrc/salloc.c /Users/clements/racket/racket/src/build/../racket/gc2/../src/salloc.c
pragma: unexpected pragma: clang diagnostic pop at: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/event.h:371
context...:
/Users/clements/racket/racket/collects/compiler/private/xform.rkt:4072:10: loop
/Users/clements/racket/racket/collects/compiler/private/xform.rkt:4109:10: loop
/Users/clements/racket/racket/collects/compiler/private/xform.rkt:8:2: xform
"/Users/clements/racket/racket/src/racket/gc2/xform-mod.rkt": [running body]
temp37_0
for-loop
run-module-instance!125
"/Users/clements/racket/racket/collects/setup/main.rkt": [running body]
temp37_0
for-loop
run-module-instance!125
perform-require!78
make[8]: *** [xsrc/salloc.c] Error 1
make[7]: *** [all] Error 2
make[6]: *** [3m] Error 2
make[5]: *** [3m] Error 2
make[4]: *** [racket-variant] Error 2
make[3]: *** [plain-base] Error 2
make[2]: *** [plain-minimal-in-place] Error 2
make[1]: *** [plain-in-place] Error 2
make: *** [in-place] Error 2

After a bit of investigation, I see that this is not an error from clang, it looks like it’s actually coming from xform, which makes me wonder whether commit 429436fb77e7a3dbf0a5c1eb5c could have made xform unhappy.

Maybe I’ll try building the version from just before this commit?

John

'John Clements' via dev-redirect

unread,
Sep 29, 2019, 2:48:04 PM9/29/19
to John Clements, d...@racket-lang.org, Matthew Flatt
???

I rolled all the way back to the v7.4 tag, and it looks like it fails in the same way, so I’m now more inclined to believe that the issue *is* somehow related to the XCode update. Anyone else seeing this?

John
> --
> You received this message because you are subscribed to the Google Groups "Racket Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to racket-dev+...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/racket-dev/7d190fe1-bf42-4167-87f5-9463d5330b22%40mtasv.net.



Robby Findler

unread,
Sep 29, 2019, 3:26:03 PM9/29/19
to John Clements, dev, Matthew Flatt
It just built for me on 10.14.6 and I think I'm otherwise up to date
(not completely sure, of course:).

Robby

'John Clements' via dev-redirect

unread,
Sep 29, 2019, 9:50:27 PM9/29/19
to Robby Findler, dev, Matthew Flatt
Out of curiosity, could you send me a copy of your

/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/sys/event.h

file?
> To view this discussion on the web visit https://groups.google.com/d/msgid/racket-dev/CAL3TdOPBPK_zSOtHqTmztukJ1suqfw1dnJGz8bFwGOm2LvUxPg%40mail.gmail.com.



Matthew Flatt

unread,
Sep 30, 2019, 7:44:16 PM9/30/19
to John Clements, d...@racket-lang.org
Although I have the latest Xcode, the command-line tools seem to have a
copy the 10.14 SDK, maybe because I'm running on 10.14.

When I tell the compiler to use the 10.15 SDK (which is what is in the
"Xcode.app" directory), then I see the error that you do.

I'll fix xform.

'John Clements' via dev-redirect

unread,
Sep 30, 2019, 8:28:17 PM9/30/19
to Matthew Flatt, d...@racket-lang.org
Interesting.

Okay, more searching turns up the “xcrun” and “xcode-select” tools, which confirm that I am in fact using a 10.15 SDK:

hardy:~/430 clements> xcrun --show-sdk-version
10.15
hardy:~/430 clements> xcode-select -p
/Applications/Xcode.app/Contents/Developer
hardy:~/430 clements> xcrun --show-sdk-path
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk

What I’m less sure about is how to set it *back* to 10.14 so that I can compile racket again. Things I’m seeing online suggest that in fact this might involve downloading another whole copy of XCode, which would be … a bit frightening.

John

> On Sep 30, 2019, at 4:44 PM, Matthew Flatt <mfl...@cs.utah.edu> wrote:
>
> Although I have the latest Xcode, the command-line tools seem to have a
> copy the 10.14 SDK, maybe because I'm running on 10.14.
>
> When I tell the compiler to use the 10.15 SDK (which is what is in the
> "Xcode.app" directory), then I see the error that you do.
>
> I'll fix xform.
>
> At 29 Sep 2019 14:32:55 -0400, "'John Clements' via dev-redirect" wrote:

'John Clements' via dev-redirect

unread,
Sep 30, 2019, 8:32:36 PM9/30/19
to John Clements, Matthew Flatt, d...@racket-lang.org
D’oh! I now see a commit on the Racket repo that presumably addresses this. Many thanks.

John
> To view this discussion on the web visit https://groups.google.com/d/msgid/racket-dev/954ca3bf-2b5d-42c0-bb52-5d6907ef6857%40mtasv.net.



Reply all
Reply to author
Forward
0 new messages