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

Exec: gcc -c -Wall -I/root/library/libddos2 -Ofast message.c -o obj/message.o failed with non-zero exit code: 1 #10

Open
GuckTubeYT opened this issue Jun 13, 2020 · 19 comments
Labels
question Further information is requested

Comments

@GuckTubeYT
Copy link

how to fix it

@0xf104a 0xf104a added the question Further information is requested label Jun 13, 2020
@0xf104a
Copy link
Owner

0xf104a commented Jun 13, 2020

Please provide more extended output of a build script. If it is fails to build something it should give you some error before this message

@GuckTubeYT
Copy link
Author

Wait

@GuckTubeYT
Copy link
Author

[]:Building release.
[!]:Directory not found: obj/. Will create it now.
[
]:mkdir obj/
[!]:Directory not found: bin/. Will create it now.
[]:mkdir bin/
[!]:Directory not found: bin/modules/. Will create it now.
[
]:mkdir bin/modules/
[*]:gcc -c -Wall -I/home/gucktube/library/libddos2 -Ofast message.c -o obj/message.o
cc1: fatal error: message.c: Permission denied
compilation terminated.
[-]:Exec: gcc -c -Wall -I/home/gucktube/library/libddos2 -Ofast message.c -o obj/message.o failed with non-zero exit code: 1

@0xf104a
Copy link
Owner

0xf104a commented Jun 19, 2020

You have something wrong with permissions for sources. Try sudo chmod 555 -R ddos2

@GuckTubeYT
Copy link
Author

doesnt work

@GuckTubeYT
Copy link
Author

btw, when i do debug
i got this error

[]:Checking that gcc avail...OK
[
]:Checking that ld avail...OK
[*]:Checking that gcc-9 avail...FAILED
[-]:Command gcc-9 is not avail.

@GuckTubeYT
Copy link
Author

btw, how to install gcc-9 on debian?

@0xf104a
Copy link
Owner

0xf104a commented Jun 29, 2020

doesnt work

Please, post error here(also try bash build.sh all)

@0xf104a
Copy link
Owner

0xf104a commented Jun 29, 2020

btw, how to install gcc-9 on debian?

In fact here gcc-9 is Mac OS X specific command(standard Mac OS compiler does not support libasan). But on Debian everything should work, so you could just make alias of gcc as gcc-9 or make a symbolic link gcc-9 to gcc

@GuckTubeYT
Copy link
Author

GuckTubeYT commented Jul 1, 2020

i do bash build.sh all = still error
i do chmod = still error too
i do debug = still error too
i do bash build.sh release = still error too

@0xf104a
Copy link
Owner

0xf104a commented Jul 1, 2020

Which error for bash build.sh all?

@GuckTubeYT
Copy link
Author

same like release build

@0xf104a
Copy link
Owner

0xf104a commented Jul 4, 2020

If you are still getting fatal error: message.c: Permission denied please check that you can read those files as well as user that runs gcc. You can look through this tutorial to get familiar with UNIX file permission model.

@GuckTubeYT
Copy link
Author

okay

@GuckTubeYT
Copy link
Author

gucktube@iSteven:~/ddos2$ bash build.sh all
dirname: missing operand
Try 'dirname --help' for more information.


( __ \ ( __ \ ( ___ )( ____ / ___ )
| ( \ )| ( \ )| ( ) || ( // ) |
| | ) || | ) || | | || (_____ / )
| | | || | | || | | |(_____ ) / /
| | ) || | ) || | | | ) | / /
| (/ )| (/ )| (
) |/_) |( (/
(/ (/ ()_)______/
Build System v2.0-alpha
[]:Building release.
[!]:Directory not found: obj/. Will create it now.
[
]:mkdir obj/
[!]:Directory not found: bin/. Will create it now.
[]:mkdir bin/
[!]:Directory not found: bin/modules/. Will create it now.
[
]:mkdir bin/modules/
[*]:gcc -c -Wall -I/home/gucktube/library/libddos2 -Ofast message.c -o obj/message.o
gcc: error: message.c: No such file or directory
gcc: fatal error: no input files
compilation terminated.
[-]:Exec: gcc -c -Wall -I/home/gucktube/library/libddos2 -Ofast message.c -o obj/message.o failed with non-zero exit code: 1

@0xf104a
Copy link
Owner

0xf104a commented Jul 16, 2020

Could you please give some information(OS, version, compiler version, etc.) about machine where you have tried to build it.

@0xf104a
Copy link
Owner

0xf104a commented Jul 16, 2020

Additionally, you can try to build using Dockerfile(I have just added it). For this just install https://docker.com and run docker build . in the root directory of project. After this you will need to copy resulting files from container with docker copy.
The builded files inside of the container should be located in /opt/ddos2/bin/*

@0xf104a
Copy link
Owner

0xf104a commented Jul 25, 2020

I had the same error in termux recently. So the solution was to install debianutils package

@GuckTubeYT
Copy link
Author

Ok, i'll try it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants