sionescu / iolib

Common Lisp I/O library
http://common-lisp.net/project/iolib/
MIT License
141 stars 31 forks source link

Cannot load iolib/syscalls on macOS High Sierra 10.13.6 #71

Closed guojing0 closed 2 years ago

guojing0 commented 2 years ago

Hi, I am building Nyxt browser with SBCL on macOS High Sierra. I have libfixposix installed, but it still displays

[package iolib/syscalls]...; /usr/bin/clang -o /Users/Latisp/.cache/common-lisp/sbcl-2.1.10-macosx-x64/Users/Latisp/quicklisp/dists/quicklisp/software/iolib-v0.8.4/src/syscalls/ffi-types-unix__grovel-tmpZSBL0HHQ.o -c -g -Wall -Wundef -Wsign-compare -Wpointer-arith -O3 -g -Wall -O2 -fdollars-in-identifiers -mmacosx-version-min=10.13 -D_DARWIN_USE_64_BIT_INODE -arch x86_64 -fno-omit-frame-pointer -fPIC -I/Users/Latisp/quicklisp/dists/quicklisp/software/cffi_0.24.1/ /Users/Latisp/.cache/common-lisp/sbcl-2.1.10-macosx-x64/Users/Latisp/quicklisp/dists/quicklisp/software/iolib-v0.8.4/src/syscalls/ffi-types-unix__grovel.c
clang: The build tool has reset ENV; --env=std required.

debugger invoked on a CFFI-GROVEL:GROVEL-ERROR in thread #<THREAD "main thread" RUNNING {1001888503}>: Subprocess #<UIOP/LAUNCH-PROGRAM::PROCESS-INFO {1009C44D13}>
 with command ("/usr/bin/clang" "-o" "/Users/Latisp/.cache/common-lisp/sbcl-2.1.10-macosx-x64/Users/Latisp/quicklisp/dists/quicklisp/software/iolib-v0.8.4/src/syscalls/ffi-types-unix__grovel-tmpZSBL0HHQ.o" "-c" "-g" "-Wall" "-Wundef" "-Wsign-compare" "-Wpointer-arith" "-O3" "-g" "-Wall" ...)
 exited with error code 1

Type HELP for debugger help, or (SB-EXT:EXIT) to exit from SBCL.

restarts (invokable by number or by possibly-abbreviated name):
  0: [RETRY                        ] Retry #<PROCESS-OP > on #<GROVEL-FILE "iolib/syscalls" "ffi-types">.
  1: [ACCEPT                       ] Continue, treating #<PROCESS-OP > on #<GROVEL-FILE "iolib/syscalls" "ffi-types"> as having been successful.
  2:                                 Retry ASDF operation.
  3: [CLEAR-CONFIGURATION-AND-RETRY] Retry ASDF operation after resetting the configuration.
  4:                                 Retry ASDF operation.
  5:                                 Retry ASDF operation after resetting the configuration.
  6: [ABORT                        ] Give up on "nyxt/gi-gtk"
  7: [REGISTER-LOCAL-PROJECTS      ] Register local projects and try again.
  8:                                 Exit debugger, returning to top level.

(CFFI-GROVEL:GROVEL-ERROR "~a" #<UIOP/RUN-PROGRAM:SUBPROCESS-ERROR {1009C47DE3}>)
   source: (ERROR (QUOTE GROVEL-ERROR) :FORMAT-CONTROL FORMAT-CONTROL :FORMAT-ARGUMENTS FORMAT-ARGUMENTS)

I could not figure what caused the problem... I tried to use Clang installed via MacPorts but could not change the setting.

guojing0 commented 2 years ago

This is resolved by installing Xcode, not just the command line tools.