This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
External contributors' pull requests fail to build on CI #14345
Copy link
Copy link
Closed
Description
The ios-release build on CircleCI fails to compile for branches outside of this repository (e.g., pull requests from external contributors). This affects pull requests like #13531 and #14135.
For this build from #13531, the failure was:
▸ Compiling timer.cpp
** BUILD FAILED **
The following build commands failed:
CompileC /Users/distiller/project/build/ios/mbgl.build/RelWithDebInfo-iphonesimulator/mbgl-loop-darwin.build/Objects-normal/x86_64/run_loop.o /Users/distiller/project/platform/darwin/src/run_loop.cpp normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler
CompileC /Users/distiller/project/build/ios/mbgl.build/RelWithDebInfo-iphonesimulator/mbgl-loop-darwin.build/Objects-normal/x86_64/async_task.o /Users/distiller/project/platform/darwin/src/async_task.cpp normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler
(2 failures)
make: *** [iframework] Error 65
Looking at the raw build log artifact, there’s useful information that points to it being a ccache permission issue:
CompileC /Users/distiller/project/build/ios/mbgl.build/RelWithDebInfo-iphonesimulator/mbgl-loop-darwin.build/Objects-normal/x86_64/run_loop.o /Users/distiller/project/platform/darwin/src/run_loop.cpp normal x86_64 c++ com.apple.compilers.llvm.clang.1_0.compiler (in target: mbgl-loop-darwin)
cd /Users/distiller/project
export LANG=en_US.US-ASCII
/Users/distiller/project/build/ios/launch-c -x c++ -arch x86_64 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -Wno-trigraphs -fpascal-strings -Os -flto -Wmissing-field-initializers -Wno-missing-prototypes -Wno-return-type -Wnon-virtual-dtor -Wno-overloaded-virtual -Wno-exit-time-destructors -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wunused-label -Wunused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wunknown-pragmas -Wshadow -Wno-four-char-constants -Wno-conversion -Wno-constant-conversion -Wno-int-conversion -Wno-bool-conversion -Wno-enum-conversion -Wno-float-conversion -Wnon-literal-null-conversion -Wno-objc-literal-conversion -Wsign-compare -Wshorten-64-to-32 -Wno-newline-eof -Wno-c++11-extensions -DCMAKE_INTDIR=\"RelWithDebInfo-iphonesimulator\" -D_GLIBCXX_USE_CXX11_ABI=1 -DMBGL_USE_GLES2=1 -isysroot /Applications/Xcode-10.1.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator12.1.sdk -fasm-blocks -fstrict-aliasing -Wdeprecated-declarations -Winvalid-offsetof -mios-simulator-version-min=9.0 -g -Wno-sign-conversion -Wno-infinite-recursion -Wno-move -Wno-comma -Wno-block-capture-autoreleasing -Wno-strict-prototypes -Wrange-loop-analysis -Wno-semicolon-before-method-body -I/Users/distiller/project/build/ios/RelWithDebInfo-iphonesimulator/include -I/Users/distiller/project/include -I/Users/distiller/project/src -I/Users/distiller/project/build/ios/mbgl.build/RelWithDebInfo-iphonesimulator/mbgl-loop-darwin.build/DerivedSources/x86_64 -I/Users/distiller/project/build/ios/mbgl.build/RelWithDebInfo-iphonesimulator/mbgl-loop-darwin.build/DerivedSources -Wmost -Wno-four-char-constants -Wno-unknown-pragmas -F/Users/distiller/project/build/ios/RelWithDebInfo-iphonesimulator -Werror -ftemplate-depth=1024 -Wall -Wextra -Wshadow -Wnon-virtual-dtor -Wno-variadic-macros -Wno-unknown-pragmas -fno-rtti -Wno-error=unused-command-line-argument -Wno-error=unknown-warning-option -Qunused-arguments -fcolor-diagnostics -DNDEBUG -DNDEBUG -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -DCI_BUILD=1 -fobjc-arc -std=c++14 -MMD -MT dependencies -MF /Users/distiller/project/build/ios/mbgl.build/RelWithDebInfo-iphonesimulator/mbgl-loop-darwin.build/Objects-normal/x86_64/run_loop.d --serialize-diagnostics /Users/distiller/project/build/ios/mbgl.build/RelWithDebInfo-iphonesimulator/mbgl-loop-darwin.build/Objects-normal/x86_64/run_loop.dia -c /Users/distiller/project/platform/darwin/src/run_loop.cpp -o /Users/distiller/project/build/ios/mbgl.build/RelWithDebInfo-iphonesimulator/mbgl-loop-darwin.build/Objects-normal/x86_64/run_loop.o
ccache: error: Failed to create temporary file for /Users/distiller/.ccache/tmp/run_loop.stdout: Permission denied
Command CompileC failed with a nonzero exit code
Work-around
The work-around is to push the external branch to this repository, which will then trigger builds on CircleCi that will update the status of the original PR. (It’s not necessary to open another PR or change the target of the original PR.)
To check out a branch for a PR from an external repo and then push it to this repo, do this:
$ git fetch origin pull/<INSERT-PULL-REQUEST-NUMBER>/head:external-pr-<INSERT-PULL-REQUEST-NUMBER>
$ git push -u origin external-pr-<INSERT-PULL-REQUEST-NUMBER>
/cc @mapbox/maps-ios
Activity
julianrex commentedon Apr 4, 2019
cc @LukasPaczos
stale commentedon Oct 1, 2019
This issue has been automatically detected as stale because it has not had recent activity and will be archived. Thank you for your contributions.