Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to build php for afl and aflplusplus when conducting apply_patches.sh #163

Open
QRXqrx opened this issue Dec 15, 2023 · 0 comments
Open

Comments

@QRXqrx
Copy link

QRXqrx commented Dec 15, 2023

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
@QRXqrx QRXqrx changed the title Failed to build php for afl and aflplusplus Failed to build php for afl and aflplusplus when conducting apply_patches.sh Dec 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant