magma
magma copied to clipboard
Failed to build `php` for `afl` and `aflplusplus` when conducting `apply_patches.sh`
Hi there,
I failed to build the target php
with afl
and aflplusplus
. The error messages are attached below. It looks like the build failed when the /tools/captain/build.sh
is trying to apply a patch. Does anyone have some idea about how to handle this? :-)
=> ERROR [19/20] RUN /magma/magma/apply_patches.sh 1.1s
0.732 can't find file to patch at input line 28
0.732 Perhaps you used the wrong -p or --strip option?
0.732 The text leading up to this was:
0.732 --------------------------
0.732 |--- a/ext/standard/string.c
0.732 |+++ b/ext/standard/string.c
0.732 --------------------------
0.732 File to patch:
0.732 Skip this patch? [y]
0.732 Skipping patch.
0.732 1 out of 1 hunk ignored
0.732 can't find file to patch at input line 45
0.732 Perhaps you used the wrong -p or --strip option?
0.732 The text leading up to this was:
0.732 --------------------------
0.732 |--- a/ext/standard/base64.c
0.732 |+++ b/ext/standard/base64.c
0.732 --------------------------
0.732 File to patch:
0.732 Skip this patch? [y]
0.732 Skipping patch.
0.732 1 out of 1 hunk ignored
0.732 can't find file to patch at input line 60
0.732 Perhaps you used the wrong -p or --strip option?
0.732 The text leading up to this was:
0.732 --------------------------
0.732 |--- a/build/php.m4
0.732 |+++ b/build/php.m4
0.732 --------------------------
0.732 File to patch:
0.732 Skip this patch? [y]
0.732 Skipping patch.
0.732 1 out of 1 hunk ignored
------
Dockerfile:67
--------------------
65 | USER magma:magma
66 | RUN ${TARGET}/fetch.sh
67 | >>> RUN ${MAGMA}/apply_patches.sh
68 |
69 | ## Configuration parameters
--------------------
ERROR: failed to solve: process "/bin/sh -c ${MAGMA}/apply_patches.sh" did not complete successfully: exit code: 1