[MacPorts] #66002: sbcl @2.2.9_0 build SEG FAULT while building on El Capitan

MacPorts noreply at macports.org
Tue Oct 18 14:23:19 UTC 2022


#66002: sbcl @2.2.9_0  build SEG FAULT while building on El Capitan
------------------------+----------------------
  Reporter:  snowflake  |      Owner:  easye
      Type:  defect     |     Status:  assigned
  Priority:  Normal     |  Milestone:
 Component:  ports      |    Version:  2.7.99
Resolution:             |   Keywords:
      Port:  sbcl       |
------------------------+----------------------

Comment (by tomio-arisaka):

 I think SBCL @2.2.9 port has two issues:

 (1) I guess that **sbcl-2.2.9-x86-64-darwin-binary.tar.bz2** was built on
 Monterey.

 {{{
 $ otool -L ./sbcl-2.2.9-x86-64-darwin/src/runtime/sbcl
 ./sbcl-2.2.9-x86-64-darwin/src/runtime/sbcl:
         /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current
 version 1311.100.3)
 }}}

 So it is not compatible with earlier versions of macOS (earlier than
 10.12).

 {{{
 $ sw_vers
 ProductName:    Mac OS X
 ProductVersion: 10.11.6
 BuildVersion:   15G22010
 $
 $ ./sbcl-2.2.9-x86-64-darwin/src/runtime/sbcl --core
 ./sbcl-2.2.9-x86-64-darwin/output/sbcl.core --disable-debugger --sysinit
 /dev/null --userinit /dev/null
 Segmentation fault: 11
 }}}
 Because earlier versions of macOS don't support {{{CLOCK_REALTIME}}}.
 https://trac.macports.org/ticket/61384

 (2) Earlier versions of clang don't know {{{__builtin_cpu_init}}}.\\

 This issue has been introduced since SBCL-2.2.6 due to including sb-simd.

 {{{
 :info:build /usr/bin/clang -I../src/runtime     avx2.c   -o avx2
 :info:build avx2.c:2:3: error: use of unknown builtin '__builtin_cpu_init'
 [-Wimplicit-function-declaration]
 :info:build   __builtin_cpu_init();
 :info:build   ^
 :info:build 1 error generated.
 }}}

 {{{
 $ xcodebuild -version
 Xcode 8.2.1
 Build version 8C1002
 $
 $ clang --version
 Apple LLVM version 8.0.0 (clang-800.0.42.1)
 Target: x86_64-apple-darwin15.6.0
 Thread model: posix
 InstalledDir:
 /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/66002#comment:1>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list