-
Notifications
You must be signed in to change notification settings - Fork 87
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
using run.sh or build.sh gives me an error. #150
Comments
Per the error message, this appears to be a permission issue. Please ensure
you have the correct Docker permissions.
…On Sun, 2 Jul 2023 at 14:41, anzosasuke ***@***.***> wrote:
I tried AFL_NO_X86=1 too. couldn't proceed further. Please help.
#1 transferring dockerfile: 2.45kB done
#1 DONE 0.1s
#2 [internal] load .dockerignore
#2 transferring context: 47B done
#2 DONE 0.1s
#3 [internal] load metadata for docker.io/library/ubuntu:18.04
#3 <http://docker.io/library/ubuntu:18.04#3> DONE 0.6s
#4 [ 1/20] FROM ***@***.***:152dc042452c496007f07ca9127571cb9c29697f42acbfad72324b2bb2e43c98
#4 ***@***.***:152dc042452c496007f07ca9127571cb9c29697f42acbfad72324b2bb2e43c98#4> DONE 0.0s
#5 [internal] load build context
#5 transferring context: 2.33kB done
#5 DONE 0.1s
#6 [ 3/20] RUN mkdir -p /home && groupadd -g 1000 magma && useradd -l -u 1000 -K UMASK=0000 -d /home -g magma magma && chown magma:magma /home
#6 CACHED
#7 [ 6/20] RUN mkdir -p /magma/magma && chown magma:magma /magma/magma
#7 CACHED
#8 [10/20] RUN mkdir -p /magma/fuzzers/afl && chown magma:magma /magma/fuzzers/afl
#8 CACHED
#9 [11/20] COPY --chown=magma:magma .//fuzzers/afl /magma/fuzzers/afl/
#9 CACHED
#10 [ 5/20] RUN mkdir -p /magma_shared /magma_out && chown magma:magma /magma_shared /magma_out && chmod 744 /magma_shared /magma_out
#10 CACHED
#11 [ 9/20] RUN /magma/magma/prebuild.sh
#11 CACHED
#12 [12/20] RUN /magma/fuzzers/afl/preinstall.sh
#12 CACHED
#13 [ 4/20] RUN ECHO "magma:amgam" | chpasswd && usermod -a -G sudo magma
#13 CACHED
#14 [ 8/20] RUN /magma/magma/preinstall.sh
#14 CACHED
#15 [ 2/20] RUN apt-get update && apt-get install -y sudo
#15 CACHED
#16 [ 7/20] COPY --chown=magma:magma .//magma /magma/magma/
#16 CACHED
#17 [13/20] RUN /magma/fuzzers/afl/fetch.sh
#17 CACHED
#18 [14/20] RUN /magma/fuzzers/afl/build.sh
#18 0.309 [*] Checking for the ability to compile x86 code...
#18 0.319 clang: error: unable to make temporary file: Permission denied
#18 0.321
#18 0.321 Oops, looks like your compiler can't generate x86 code.
#18 0.321
#18 0.321 Don't panic! You can use the LLVM or QEMU mode, but see docs/INSTALL first.
#18 0.321 (To ignore this error, set AFL_NO_X86=1 and try again.)
#18 0.321
#18 0.321 Makefile:52: recipe for target 'test_x86' failed
#18 0.321 make: *** [test_x86] Error 1
#18 ERROR: process "/bin/sh -c ${FUZZER}/build.sh" did not complete successfully: exit code: 2
------
> [14/20] RUN /magma/fuzzers/afl/build.sh:
#18 0.309 [*] Checking for the ability to compile x86 code...
#18 0.319 clang: error: unable to make temporary file: Permission denied
#18 0.321
#18 0.321 Oops, looks like your compiler can't generate x86 code.
#18 0.321
#18 0.321 Don't panic! You can use the LLVM or QEMU mode, but see docs/INSTALL first.
#18 0.321 (To ignore this error, set AFL_NO_X86=1 and try again.)
#18 0.321
#18 0.321 Makefile:52: recipe for target 'test_x86' failed
#18 0.321 make: *** [test_x86] Error 1
------
Dockerfile:56
--------------------
54 | USER magma:magma
55 | RUN ${FUZZER}/fetch.sh
56 | >>> RUN ${FUZZER}/build.sh
57 |
58 | ARG target_name
--------------------
ERROR: failed to solve: process "/bin/sh -c ${FUZZER}/build.sh" did not complete successfully: exit code: 2```
—
Reply to this email directly, view it on GitHub
<#150>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACB2DEULDRYVG535M4OXOALXOD3XZANCNFSM6AAAAAAZ3GUFLE>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
I can't seem to create a temporary file. I think my docker permission is correct. to fix docker permission went through all of this
|
If you run |
I do have my name in groups. |
Your name is not enough. You also need the docker group.
…On Mon, 3 Jul 2023 at 15:48, anzosasuke ***@***.***> wrote:
I do have my name in groups.
When running ./run.sh, I am getting this error.
—
Reply to this email directly, view it on GitHub
<#150 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACB2DEVKTPLQVXMZ2XBCK4LXOJMMFANCNFSM6AAAAAAZ3GUFLE>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
groups: "anzo adm cdrom sudo dip plugdev lpadmin lxd sambashare docker" |
Can you create files in the current directory you're running |
Yeah i can create files or folders in that directory. I wanted the binary files. I would be grateful if you could provide me with the binaries if it isn't too much trouble for you. |
I tried AFL_NO_X86=1 too. couldn't proceed further. Please help.
The text was updated successfully, but these errors were encountered: