<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Feb 12, 2017, at 3:59 PM, Chris Hanson <<a href="mailto:cmhanson@eschatologist.net" class="">cmhanson@eschatologist.net</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">On Feb 12, 2017, at 1:08 PM, R. Matthew Emerson <<a href="mailto:rme@clozure.com" class="">rme@clozure.com</a>> wrote:<br class=""><blockquote type="cite" class=""><br class="">On the other hand, I have not figured out a way to do a similar thing with lisp-kernel/darwinx8632/Makefile. It therefore requires that the command-line tools be installed. You can use "xcode-select --install" to do this. The seemingly weird "no <sys/signal.h>" error is a symptom of this.<br class=""></blockquote><br class="">The problem here appears to be that <font face="Courier" style="font-size: 11px;" class="">lisp-kernel/darwinx8632/Makefile</font> is specifying “<font face="Courier" class=""><span style="font-size: 11px;" class="">-isysroot /</span></font>” which means “look for everything in /.” You shouldn’t specify an <font face="Courier" class=""><span style="font-size: 11px;" class="">-isysroot</span></font> at all when building for the host system, it shouldn’t be needed.<div class=""><br class=""></div><div class="">In fact, even when building for iOS (or another operating system) these days you shouldn’t need to specify an <font face="Courier" class=""><span style="font-size: 11px;" class="">-isysroot</span></font> with the Xcode tools. Instead you should be able to just invoke the compiler using “<font face="Courier" class=""><span style="font-size: 11px;" class="">xcrun -sdk iphoneos clang</span></font>” instead of just “<font face="Courier" class=""><span style="font-size: 11px;" class="">clang</span></font>” to invoke the compiler, and the compiler will be passed the correct <font face="Courier" class=""><span style="font-size: 11px;" class="">-isysroot</span></font> automatically.</div><div class=""><br class=""></div><div class="">The full set of changes I needed to successfully build on the latest macOS with the latest Xcode were:</div><div class=""><br class=""></div><div class="">- Remove the entire <font face="Courier" class=""><span style="font-size: 11px;" class="">SDKROOT=/</span></font> line</div><div class="">- Remove the use of <font face="Courier" class=""><span style="font-size: 11px;" class="">-isysroot $(SDKROOT)</span></font> from commands</div><div class="">- Change <font face="Courier" class=""><span style="font-size: 11px;" class="">OSEARLYLIBS</span></font> from <font face="Courier" class=""><span style="font-size: 11px;" class="">-lcrt1.o</span></font> to <font face="Courier" class=""><span style="font-size: 11px;" class="">-lcrt0.o</span></font></div></div></div></blockquote><div><br class=""></div><div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">pel:darwinx8632 rme$ make</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">ld -macosx_version_min 10.6 -arch i386 -dynamic -o ../../dx86cl -e start -pagezero_size 0x11000 -seg1addr 0x00011000 -sectalign __TEXT __text 0x1000 x86-spjump32.o x86-spentry32.o x86-subprims32.o imports.o pmcl-kernel.o gc-common.o bits.o thread_manager.o lisp-debug.o image.o memory.o x86-gc.o x86-utils.o x86-exceptions.o unix-calls.o mach-o-image.o x86-asmutils32.o mach_exc_server.o lispdcmd.o plprint.o plsym.o x86_print.o xlbt.o -lcrt0.o -lSystem</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">ld: library not found for -lcrt0.o</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; background-color: rgb(255, 255, 255);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">make: *** [../../dx86cl] Error 1</span></div><div class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><br class=""></span></div><div class=""><span style="font-variant-ligatures: no-common-ligatures" class="">Did I do something wrong? This is on a system with no command-line tools installed. I would really like to avoid making users install the command-line tools when Xcode is already installed. If I can, I want to keep CCL running on 10.6, but at some point that’s not going to be feasible.</span></div><div class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><br class=""></span></div></div><br class=""><blockquote type="cite" class=""><div class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class=""><br class=""></div><div class="">That was sufficient for me to run <font face="Courier" class=""><span style="font-size: 11px;" class="">./dx86cl --no-init --eval '(ccl:rebuild-ccl :full t)'</span></font> and then start the built <font face="Courier" class=""><span style="font-size: 11px;" class="">dx86cl</span></font> with QuickLisp installed.</div><div class=""><br class=""></div><div class=""> -- Chris</div><div class=""><br class=""></div></div></div></blockquote></div><br class=""></body></html>