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

Randomly breaks during multi-CPU build #5

Closed
yurivict opened this issue Feb 24, 2018 · 1 comment
Closed

Randomly breaks during multi-CPU build #5

yurivict opened this issue Feb 24, 2018 · 1 comment

Comments

@yurivict
Copy link

Builds fine on 1 CPU, but fails on multiple CPUs:

cc -c -o timecode.o -O2 -pipe -fno-omit-frame-pointer  -fstack-protector -isystem /usr/local/include -fno-strict-aliasing    `pkg-config --cflags libavcodec libavformat libavutil libswscale` timecode.c
export PKG_CONFIG_PATH=;\
cc -c -o vinfo.o -O2 -pipe -fno-omit-frame-pointer  -fstack-protector -isystem /usr/local/include -fno-strict-aliasing    `pkg-config --cflags libavcodec libavformat libavutil libswscale` vinfo.c
gmake[2]: *** No rule to make target '../libharvid/libharvid.a', needed by 'harvid'.  Stop.
gmake[2]: Leaving directory '/usr/ports/multimedia/harvid/work/harvid-0.8.2/src'
gmake[1]: *** [Makefile:7: src] Error 2
gmake[1]: *** Waiting for unfinished jobs....
@yurivict yurivict changed the title Rendomly breaks during multi-CPU build Randomly breaks during multi-CPU build Feb 24, 2018
@x42
Copy link
Owner

x42 commented Feb 24, 2018

I recall seeing this a few years ago. The subdirs are all independently built..

Since this project only has a few sources and compiles + links in under 2 seconds, I left this as "won't fix". Parallel builds are not really needed and gnu/make does not use concurrency by default...
..but if you really must; build the stages separately: make -C libharvid -j10; make -j 10

@x42 x42 closed this as completed Feb 24, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants