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

Using parralel jobs in makefiles, library builds only on the second try #84

Closed
dlblv opened this issue Nov 30, 2018 · 3 comments
Closed
Labels

Comments

@dlblv
Copy link
Contributor

dlblv commented Nov 30, 2018

As you can see, after build fails, the right config file is generated, so the second build succeeds. Can you fix that small problem?

image

@babelouest
Copy link
Owner

I can't reproduce the issue, can you detail all the commands you run?

@babelouest babelouest added the can't reproduce Can't reproduce the issue label Nov 30, 2018
@dlblv
Copy link
Contributor Author

dlblv commented Dec 1, 2018

I can't reproduce the issue, can you detail all the commands you run?

First I checkout cloned repo to the last release version: git checkout v2.4.4
Then just cross compile it using make CC=armv7l-unknown-linux-gnueabihf-gcc -j16 libulfius.so
That's all

@babelouest
Copy link
Owner

babelouest commented Dec 1, 2018

I get it, your command make -j16 forces to use 16 jobs in parallel.

In that case, it builds all targets at the same time, when it should first build the config file, then build the object file.

I've made a patch that will be release in next version 2.5 amongst other changes.
Meanwhile, as a workaround, you can run the following command to build ulfius:

$ cd src
$ make ../include/ulfius-cfg.h
$ make CC=armv7l-unknown-linux-gnueabihf-gcc -j16 libulfius.so

That will force your build process to make the config file first, then build the library.

Thanks for the report!

@babelouest babelouest added bug and removed can't reproduce Can't reproduce the issue labels Dec 1, 2018
babelouest added a commit to babelouest/orcania that referenced this issue Dec 7, 2018
babelouest added a commit to babelouest/yder that referenced this issue Dec 7, 2018
babelouest added a commit to babelouest/hoel that referenced this issue Dec 7, 2018
@babelouest babelouest changed the title Using makefiles, library builds only on the second try Using parralel jobs in makefiles, library builds only on the second try Dec 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants