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

Allow parallel compilation with -flto #63

Open
C0deH4cker opened this issue Nov 6, 2024 · 0 comments
Open

Allow parallel compilation with -flto #63

C0deH4cker opened this issue Nov 6, 2024 · 0 comments
Assignees

Comments

@C0deH4cker
Copy link
Owner

When linking an executable using link-time optimization, I saw this warning message printed:

lto-wrapper: warning: using serial compilation of 2 LTRANS jobs
lto-wrapper: note: see the '-flto' option documentation for more information

After researching, I found this Stack Overflow answer talking about this message: https://stackoverflow.com/a/72222512

It seems that this happens when GCC doesn't detect a running make job server. This makes sense in the current setup, as GCC is run in a separate Docker container without access to environment variables and make's named pipe for the job server.

This issue tracks investigating whether it's possible to allow GCC in Docker access to make's job server somehow, and enable it if possible.

As a side-note, it might be worth looking into whether the pwncc container could instead run as a server. This would enable PwnableHarness to request the pwncc server to run specific compile commands, rather than needing to create and destroy a new Docker container with every command.

@C0deH4cker C0deH4cker self-assigned this Nov 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant