Skip to content

Build error on Apple M1 #11

@tina80lvl

Description

@tina80lvl

Got an error while building sources with infrastructure/tools/build $(pwd)/opencilk $(pwd)/build command. Terminal opened with Rosetta.

MacBook Pro 2020
macOS Big Sur 11.6
Apple M1 chip
clang-1300.0.29.3
x86_64-apple-darwin20.6.0

[ 96%] Performing build step for 'builtins'
[  9%] Built target clang_rt.cc_kext_i386_osx
[ 18%] Built target clang_rt.builtins_i386_osx
[ 27%] Built target clang_rt.builtins_i386_iossim
[ 49%] Built target clang_rt.cc_kext_x86_64h_osx
[ 63%] Built target clang_rt.builtins_x86_64h_osx
[ 70%] Built target clang_rt.builtins_x86_64_osx
[ 99%] Built target clang_rt.builtins_x86_64_iossim
[ 99%] Built target clang_rt.cc_kext_x86_64_osx
[100%] Built target clang_rt.osx
[100%] Built target clang_rt.cc_kext
[100%] Built target builtins
[100%] Built target compiler-rt
[ 96%] No install step for 'builtins'
[ 96%] Completed 'builtins'
[ 98%] Built target builtins
[ 98%] Built target runtimes-clobber
[ 98%] Performing configure step for 'runtimes'
-- Linker detection: ld64
CMake Warning at /Users/tina/opencilk/llvm/cmake/modules/HandleLLVMStdlib.cmake:28 (message):
  Can't specify libc++ with '-stdlib='
Call Stack (most recent call first):
  /Users/tina/opencilk/llvm/cmake/modules/HandleLLVMOptions.cmake:10 (include)
  CMakeLists.txt:114 (include)


CMake Warning at /Users/tina/opencilk/llvm/cmake/modules/HandleLLVMOptions.cmake:230 (message):
  -fPIC is not supported.
Call Stack (most recent call first):
  /Users/tina/opencilk/llvm/cmake/modules/HandleLLVMOptions.cmake:261 (add_flag_or_print_warning)
  CMakeLists.txt:114 (include)


-- Found libtool - /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool
-- Found OSX_SYSROOT: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.0.sdk
-- Found libtool - /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool
CMake Error at /Users/tina/opencilk/compiler-rt/cmake/config-ix.cmake:172 (message):
  Please use architecture with 4 or 8 byte pointers.
Call Stack (most recent call first):
  /Users/tina/opencilk/compiler-rt/CMakeLists.txt:236 (include)


-- Configuring incomplete, errors occurred!
See also "/Users/tina/build/runtimes/runtimes-bins/CMakeFiles/CMakeOutput.log".
See also "/Users/tina/build/runtimes/runtimes-bins/CMakeFiles/CMakeError.log".
make[2]: *** [runtimes/runtimes-stamps/runtimes-configure] Error 1
make[1]: *** [runtimes/CMakeFiles/runtimes.dir/all] Error 2
make: *** [all] Error 2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions