element-hq / element-hq/element-ios
ios client can't build on macOS 10.15.1
- Dominant language
- Swift
- Stars
- 1.8k
- Forks
- 544
- PR merge metrics
- PR metrics pending
Description
I download the iOS client source code and try to rebuild it.
when I executed pod install,
cmark installation errors prompted:
Anyone can help? (Xcode 10.3, macOS 10.15.1)
=====================================
Installing cmark (0.24.1)
[!] /bin/bash -c
set -e
echo `pwd`
sed -i '' 's/include <\(cmark.*\)>/include "\1"/' src/cmark.h
mkdir -p build; cd build && cmake -G Xcode ..
/Users/jackchan/Library/Caches/CocoaPods/Pods/Release/cmark/0.24.1-1d9ad
-- The C compiler identification is unknown
-- The CXX compiler identification is Clang 4.0.1
-- Check for working C compiler: /opt/anaconda3/bin/x86_64-apple-darwin13.4.0-ld
-- Check for working C compiler: /opt/anaconda3/bin/x86_64-apple-darwin13.4.0-ld -- broken
-- Configuring incomplete, errors occurred!
See also "/Users/jackchan/Library/Caches/CocoaPods/Pods/Release/cmark/0.24.1-1d9ad/build/CMakeFiles/CMakeOutput.log".
See also "/Users/jackchan/Library/Caches/CocoaPods/Pods/Release/cmark/0.24.1-1d9ad/build/CMakeFiles/CMakeError.log".
CMake Error at /usr/local/Cellar/cmake/3.15.5/share/cmake/Modules/CMakeTestCCompiler.cmake:60 (message):
The C compiler
"/opt/anaconda3/bin/x86_64-apple-darwin13.4.0-ld"
is not able to compile a simple test program.
It fails with the following output:
Change Dir: /Users/jackchan/Library/Caches/CocoaPods/Pods/Release/cmark/0.24.1-1d9ad/build/CMakeFiles/CMakeTmp
Run Build Command(s):/usr/bin/xcodebuild -project CMAKE_TRY_COMPILE.xcodeproj build -target cmTC_85432 -configuration Debug -hideShellScriptEnvironment && User defaults from command line:
HideShellScriptEnvironment = YES
Prepare build
note: Using legacy build system
=== BUILD TARGET cmTC_85432 OF PROJECT CMAKE_TRY_COMPILE WITH CONFIGURATION Debug ===
Check dependencies
Write auxiliary files
/bin/mkdir -p /Users/jackchan/Library/Caches/CocoaPods/Pods/Release/cmark/0.24.1-1d9ad/build/CMakeFiles/CMakeTmp/CMAKE_TRY_COMPILE.build/Debug/cmTC_85432.build/Objects-normal/x86_64
write-file /Users/jackchan/Library/Caches/CocoaPods/Pods/Release/cmark/0.24.1-1d9ad/build/CMakeFiles/CMakeTmp/CMAKE_TRY_COMPILE.build/Debug/cmTC_85432.build/Objects-normal/x86_64/cmTC_85432.LinkFileList
CompileC CMAKE_TRY_COMPILE.build/Debug/cmTC_85432.build/Objects-normal/x86_64/testCCompiler.o testCCompiler.c normal x86_64 c com.apple.compilers.llvm.clang.1_0.compiler
cd /Users/jackchan/Library/Caches/CocoaPods/Pods/Release/cmark/0.24.1-1d9ad/build/CMakeFiles/CMakeTmp
/opt/anaconda3/bin/x86_64-apple-darwin13.4.0-clang -x c -arch x86_64 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -Wno-trigraphs -fpascal-strings -O2 -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-return-type -Wno-missing-braces -Wparentheses -Wswitch -Wno-unused-function -Wno-unused-label -Wno-unused-parameter -Wno-unused-variable -Wunused-value -Wno-empty-body -Wno-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wno-constant-conversion -Wno-int-conversion -Wno-bool-conversion -Wno-enum-conversion -Wno-float-conversion -Wno-non-literal-null-conversion -Wno-objc-literal-conversion -Wno-shorten-64-to-32 -Wpointer-sign -Wno-newline-eof -DCMAKE_INTDIR=\"Debug\" -isysroot /Applications/Xcode_10.3.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk -fasm-blocks -fstrict-aliasing -Wdeprecated-declarations -mmacosx-version-min=10.14 -Wno-sign-conversion -Wno-infinite-recursion -Wno-comma -Wno-block-capture-autoreleasing -Wno-strict-prototypes -Wno-semicolon-before-method-body -I/Users/jackchan/Library/Caches/CocoaPods/Pods/Release/cmark/0.24.1-1d9ad/build/CMakeFiles/CMakeTmp/Debug/include -I/Users/jackchan/Library/Caches/CocoaPods/Pods/Release/cmark/0.24.1-1d9ad/build/CMakeFiles/CMakeTmp/CMAKE_TRY_COMPILE.build/Debug/cmTC_85432.build/DerivedSources-normal/x86_64 -I/Users/jackchan/Library/Caches/CocoaPods/Pods/Release/cmark/0.24.1-1d9ad/build/CMakeFiles/CMakeTmp/CMAKE_TRY_COMPILE.build/Debug/cmTC_85432.build/DerivedSources/x86_64 -I/Users/jackchan/Library/Caches/CocoaPods/Pods/Release/cmark/0.24.1-1d9ad/build/CMakeFiles/CMakeTmp/CMAKE_TRY_COMPILE.build/Debug/cmTC_85432.build/DerivedSources -Wmost -Wno-four-char-constants -Wno-unknown-pragmas -F/Users/jackchan/Library/Caches/CocoaPods/Pods/Release/cmark/0.24.1-1d9ad/build/CMakeFiles/CMakeTmp/Debug -march=core2 -mtune=haswell -mssse3 -ftree-vectorize -fPIC -fPIE -fstack-protector-strong -pipe -MMD -MT dependencies -MF /Users/jackchan/Library/Caches/CocoaPods/Pods/Release/cmark/0.24.1-1d9ad/build/CMakeFiles/CMakeTmp/CMAKE_TRY_COMPILE.build/Debug/cmTC_85432.build/Objects-normal/x86_64/testCCompiler.d --serialize-diagnostics /Users/jackchan/Library/Caches/CocoaPods/Pods/Release/cmark/0.24.1-1d9ad/build/CMakeFiles/CMakeTmp/CMAKE_TRY_COMPILE.build/Debug/cmTC_85432.build/Objects-normal/x86_64/testCCompiler.dia -c /Users/jackchan/Library/Caches/CocoaPods/Pods/Release/cmark/0.24.1-1d9ad/build/CMakeFiles/CMakeTmp/testCCompiler.c -o /Users/jackchan/Library/Caches/CocoaPods/Pods/Release/cmark/0.24.1-1d9ad/build/CMakeFiles/CMakeTmp/CMAKE_TRY_COMPILE.build/Debug/cmTC_85432.build/Objects-normal/x86_64/testCCompiler.o
Ld Debug/cmTC_85432 normal x86_64
cd /Users/jackchan/Library/Caches/CocoaPods/Pods/Release/cmark/0.24.1-1d9ad/build/CMakeFiles/CMakeTmp
/opt/anaconda3/bin/x86_64-apple-darwin13.4.0-ld -arch x86_64 -isysroot /Applications/Xcode_10.3.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk -L/Users/jackchan/Library/Caches/CocoaPods/Pods/Release/cmark/0.24.1-1d9ad/build/CMakeFiles/CMakeTmp/Debug -F/Users/jackchan/Library/Caches/CocoaPods/Pods/Release/cmark/0.24.1-1d9ad/build/CMakeFiles/CMakeTmp/Debug -filelist /Users/jackchan/Library/Caches/CocoaPods/Pods/Release/cmark/0.24.1-1d9ad/build/CMakeFiles/CMakeTmp/CMAKE_TRY_COMPILE.build/Debug/cmTC_85432.build/Objects-normal/x86_64/cmTC_85432.LinkFileList -mmacosx-version-min=10.14 -Wl,-pie -Wl,-headerpad_max_install_names -Wl,-dead_strip_dylibs -Wl,-search_paths_first -Wl,-headerpad_max_install_names -Xlinker -dependency_info -Xlinker /Users/jackchan/Library/Caches/CocoaPods/Pods/Release/cmark/0.24.1-1d9ad/build/CMakeFiles/CMakeTmp/CMAKE_TRY_COMPILE.build/Debug/cmTC_85432.build/Objects-normal/x86_64/cmTC_85432_dependency_info.dat -o /Users/jackchan/Library/Caches/CocoaPods/Pods/Release/cmark/0.24.1-1d9ad/build/CMakeFiles/CMakeTmp/Debug/cmTC_85432
ld: unknown option: -isysroot
Command /opt/anaconda3/bin/x86_64-apple-darwin13.4.0-ld failed with exit code 1
** BUILD FAILED **
The following build commands failed:
Ld Debug/cmTC_85432 normal x86_64
(1 failure)
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:1 (project)
Contributor guide
Assessment
This issue has not been assessed yet.