Can't build webrtc - patch apply error
HEAD is now at d75b9e9ff0 [M112] Revert "Only serialize non-stopped RTP header extensions"
Instructing the tools to bring the bits from all the sub repositories to your dev box...
Updating depot_tools...
35>WARNING: subprocess '"git" "-c" "core.deltaBaseCacheLimit=2g" "fetch" "origin" "debe7d2d1982e540fbd6bd78604bf001753f9e74" "--no-tags"' in c:\webrtc\src\third_party\libFuzzer\src failed; will retry after a short nap...
35>WARNING: subprocess '"git" "-c" "core.deltaBaseCacheLimit=2g" "fetch" "origin" "debe7d2d1982e540fbd6bd78604bf001753f9e74" "--no-tags"' in c:\webrtc\src\third_party\libFuzzer\src failed; will retry after a short nap...
Syncing projects: 97% (43/44) src/third_party/icu
src/third_party/libFuzzer/src (ERROR)
----------------------------------------
[0:04:29] Started.
[0:04:30] Finished running: git rev-list -n 1 HEAD
[0:04:31] Finished running: git rev-parse --abbrev-ref=strict HEAD
error: RPC failed; HTTP 400 curl 22 The requested URL returned error: 400
[0:04:45] fatal: expected 'acknowledgments'
[0:04:51] error: RPC failed; HTTP 400 curl 22 The requested URL returned error: 400
[0:04:51] fatal: expected 'acknowledgments'
----------------------------------------
Error: Command 'git -c core.deltaBaseCacheLimit=2g fetch origin debe7d2d1982e540fbd6bd78604bf001753f9e74 --no-tags' returned non-zero exit status 128 in c:\webrtc\src\third_party\libFuzzer\src
Last command failed with erro code: 1
Any help?
@AqlaSolutions Had the same issue while upgrading from m112 to m123, after a lot of attempts I got tired and just deleted webrtc folder and started from scratch
@FrayxRulez , ok, now another problem:
Adding forked Telegram+UWP upstream
error: pathspec 'm123' did not match any file(s) known to git
error: patch failed: boringssl/BUILD.gn:109
error: boringssl/BUILD.gn: patch does not apply
error: patch failed: crc32c/BUILD.gn:39
error: crc32c/BUILD.gn: patch does not apply
error: patch failed: libaom/BUILD.gn:54
error: libaom/BUILD.gn: patch does not apply
error: patch failed: libvpx/BUILD.gn:59
error: libvpx/BUILD.gn: patch does not apply
error: patch failed: pffft/BUILD.gn:7
error: pffft/BUILD.gn: patch does not apply
error: patch failed: include/libyuv/convert.h:1022
error: include/libyuv/convert.h: patch does not apply
error: patch failed: source/convert_to_i420.cc:27
error: source/convert_to_i420.cc: patch does not apply
error: can't open patch 'o:/Dropbox/CodeProjects/AUnigram/Libraries/webrtc//third_party/libvpx/source/libvpx/head_6312.patch': No such file or directory
After fetching from upstream:
call git apply "o:\Dropbox\CodeProjects\AUnigram\Libraries\webrtc\/third_party/head_6312.patch"
error: patch failed: boringssl/BUILD.gn:109
error: boringssl/BUILD.gn: patch does not apply
error: patch failed: crc32c/BUILD.gn:39
error: crc32c/BUILD.gn: patch does not apply
error: patch failed: libaom/BUILD.gn:54
error: libaom/BUILD.gn: patch does not apply
error: patch failed: libvpx/BUILD.gn:59
error: libvpx/BUILD.gn: patch does not apply
error: patch failed: pffft/BUILD.gn:7
error: pffft/BUILD.gn: patch does not apply
error: patch failed: include/libyuv/convert.h:1022
error: include/libyuv/convert.h: patch does not apply
error: patch failed: source/convert_to_i420.cc:27
error: source/convert_to_i420.cc: patch does not apply
error: can't open patch 'o:/Dropbox/CodeProjects/AUnigram/Libraries/webrtc//third_party/libvpx/source/libvpx/head_6312.patch': No such file or directory
So your patches don't apply anymore
It looks like a path error:
/webrtc//third_party
Moreover, seeing the patch errors would be helpful too. If you can extract them to a file and send there.
Here is the full output
c:\webrtc\src\third_party>call git apply "o:\Dropbox\CodeProjects\AUnigram\Libraries\webrtc\third_party\head_6312.patch" --verbose
Checking patch boringssl/BUILD.gn...
error: while searching for:
}?
}?
?
if (is_msan) {?
# MSan instrumentation is incompatible with assembly optimizations.?
# BoringSSL's GAS-compatible assembly knows how to detect MSan, but the NASM?
# assembly does not, so we check for MSan explicitly.?
error: patch failed: boringssl/BUILD.gn:109
error: boringssl/BUILD.gn: patch does not apply
Checking patch crc32c/BUILD.gn...
error: while searching for:
defines += [ "HAVE_BUILTIN_PREFETCH=0" ]?
}?
?
if (current_cpu == "arm64") {?
defines += [ "HAVE_ARM64_CRC32C=1" ]?
} else {?
defines += [ "HAVE_ARM64_CRC32C=0" ]?
error: patch failed: crc32c/BUILD.gn:39
error: crc32c/BUILD.gn: patch does not apply
Checking patch libaom/BUILD.gn...
error: while searching for:
if (is_posix || is_fuchsia) {?
# Should cover linux, fuchsia, mac, and ios.?
os_category = "linux"?
} else { # This should only match windows.?
os_category = current_os?
}?
error: patch failed: libaom/BUILD.gn:54
error: libaom/BUILD.gn: patch does not apply
Checking patch libvpx/BUILD.gn...
error: while searching for:
} else if (is_posix || is_fuchsia) {?
# Should cover linux, fuchsia, mac, and the ios simulator.?
os_category = "linux"?
} else { # This should only match windows.?
os_category = current_os?
}?
error: patch failed: libvpx/BUILD.gn:59
error: libvpx/BUILD.gn: patch does not apply
Checking patch pffft/BUILD.gn...
error: while searching for:
import("//testing/test.gni")?
?
config("common_config") {?
cflags = [ "-Wno-shadow" ]?
?
if (is_win) {?
defines = [?
error: patch failed: pffft/BUILD.gn:7
error: pffft/BUILD.gn: patch does not apply
Checking patch include/libyuv/convert.h...
error: while searching for:
LIBYUV_API?
int ConvertToI420(const uint8_t* sample,?
size_t sample_size,?
uint8_t* dst_y,?
int dst_stride_y,?
uint8_t* dst_u,?
error: patch failed: include/libyuv/convert.h:1022
error: include/libyuv/convert.h: patch does not apply
Checking patch source/convert_to_i420.cc...
error: while searching for:
LIBYUV_API?
int ConvertToI420(const uint8_t* sample,?
size_t sample_size,?
uint8_t* dst_y,?
int dst_stride_y,?
uint8_t* dst_u,?
error: patch failed: source/convert_to_i420.cc:27
error: source/convert_to_i420.cc: patch does not apply
error: can't open patch 'o:/Dropbox/CodeProjects/AUnigram/Libraries/webrtc/third_party/libvpx/source/libvpx/head_6312.patch': No such file or directory
Is it fixed?
@AqlaSolutions Yes