Skip to content
This repository has been archived by the owner. It is now read-only.

Compilation using multiple threads does not work anymore #1032

Closed
ttyborg opened this issue Feb 13, 2021 · 3 comments
Closed

Compilation using multiple threads does not work anymore #1032

ttyborg opened this issue Feb 13, 2021 · 3 comments

Comments

@ttyborg
Copy link

@ttyborg ttyborg commented Feb 13, 2021

Hello!

I used to compile re3 on Linux using Premake, and used the "-j#" switch of make, to compile with multiple CPU threads, this significantly speeds up compilation. If I compile with only one thread, it works fine (so, without the -j#), but since commit 1b8d03f, it gives me an error message, if I use multiple threads:

Linking librw
==== Building re3 (release_linux-amd64-librw_gl3_glfw-oal) ====
Creating obj/linux-amd64-librw_gl3_glfw-oal/Release/re3
make[1]: *** No rule to make target '../src/extras/GitSHA1.cpp', needed by 'obj/linux-amd64-librw_gl3_glfw-oal/Release/re3/GitSHA1.o'.  Stop.
make[1]: *** Waiting for unfinished jobs....
make: *** [Makefile:78: re3] Error 2

This happens to re3 and reVC, not to reLCS, as those changes haven't been pulled into it yet.

@erorcun
Copy link
Collaborator

@erorcun erorcun commented Feb 13, 2021

it means prebuildcommands of premake5.lua doesn't work, i suggest debugging why.

@ttyborg ttyborg changed the title Compilaion using multiple threads does not work anymore Compilation using multiple threads does not work anymore Feb 13, 2021
@erorcun
Copy link
Collaborator

@erorcun erorcun commented Jun 28, 2021

now you can use it again, if you run premake with --no-git-hash option.

@erorcun erorcun closed this Jun 28, 2021
@okias
Copy link

@okias okias commented Aug 9, 2021

I got hit by this issue too, maybe lets detect it and warn user + apply --no-git-hash option?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants