x42 / libltc

Linear/Logitudinal Time Code (LTC) Library
http://x42.github.io/libltc/
GNU Lesser General Public License v3.0
198 stars 55 forks source link

1.3.2: Tests failing to find files to move #66

Open dvzrv opened 2 years ago

dvzrv commented 2 years ago

Hi! Upon trying to build 1.3.2 for the Arch Linux package I ran into the following issues:

Making check in src
make[1]: Entering directory '/build/libltc/src/libltc-1.3.2/src'
make[1]: Leaving directory '/build/libltc/src/libltc-1.3.2/src'
Making check in doc
make[1]: Entering directory '/build/libltc/src/libltc-1.3.2/doc'
make[1]: Nothing to be done for 'check'.
make[1]: Leaving directory '/build/libltc/src/libltc-1.3.2/doc'
Making check in tests
make[1]: Entering directory '/build/libltc/src/libltc-1.3.2/tests'
gcc -DHAVE_CONFIG_H -I. -I../src -I./../src   -g -Wall -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -flto=auto -MT ltcencode-ltcencode.o -MD -MP -MF .deps/ltcencode-ltcencode.Tpo -c -o ltce
ncode-ltcencode.o `test -f 'ltcencode.c' || echo './'`ltcencode.c
gcc -DHAVE_CONFIG_H -I. -I../src -I./../src   -g -Wall -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -flto=auto -MT ltcdecode-ltcdecode.o -MD -MP -MF .deps/ltcdecode-ltcdecode.Tpo -c -o ltcd
ecode-ltcdecode.o `test -f 'ltcdecode.c' || echo './'`ltcdecode.c
gcc -DHAVE_CONFIG_H -I. -I../src -I./../src   -g -Wall -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -flto=auto -MT ltcloop-ltcloop.o -MD -MP -MF .deps/ltcloop-ltcloop.Tpo -c -o ltcloop-ltcl
oop.o `test -f 'ltcloop.c' || echo './'`ltcloop.c
make  ltcencode ltcdecode ltcloop
make[2]: Entering directory '/build/libltc/src/libltc-1.3.2/tests'
gcc -DHAVE_CONFIG_H -I. -I../src -I./../src   -g -Wall -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -flto=auto -MT ltcencode-ltcencode.o -MD -MP -MF .deps/ltcencode-ltcencode.Tpo -c -o ltce
ncode-ltcencode.o `test -f 'ltcencode.c' || echo './'`ltcencode.c
gcc -DHAVE_CONFIG_H -I. -I../src -I./../src   -g -Wall -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -flto=auto -MT ltcdecode-ltcdecode.o -MD -MP -MF .deps/ltcdecode-ltcdecode.Tpo -c -o ltcd
ecode-ltcdecode.o `test -f 'ltcdecode.c' || echo './'`ltcdecode.c
gcc -DHAVE_CONFIG_H -I. -I../src -I./../src   -g -Wall -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -flto=auto -MT ltcloop-ltcloop.o -MD -MP -MF .deps/ltcloop-ltcloop.Tpo -c -o ltcloop-ltcl
oop.o `test -f 'ltcloop.c' || echo './'`ltcloop.c
mv -f .deps/ltcloop-ltcloop.Tpo .deps/ltcloop-ltcloop.Po
/bin/sh ../libtool  --tag=CC   --mode=link gcc -g -Wall -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -flto=auto  -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -flto=auto -o ltcloop ltcl
oop-ltcloop.o ../src/libltc.la -lm
mv -f .deps/ltcloop-ltcloop.Tpo .deps/ltcloop-ltcloop.Po
mv: cannot stat '.deps/ltcloop-ltcloop.Tpo': No such file or directory
make[2]: *** [Makefile:457: ltcloop-ltcloop.o] Error 1
make[2]: *** Waiting for unfinished jobs....
mv -f .deps/ltcencode-ltcencode.Tpo .deps/ltcencode-ltcencode.Po
mv -f .deps/ltcdecode-ltcdecode.Tpo .deps/ltcdecode-ltcdecode.Po
mv -f .deps/ltcdecode-ltcdecode.Tpo .deps/ltcdecode-ltcdecode.Po
/bin/sh ../libtool  --tag=CC   --mode=link gcc -g -Wall -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -flto=auto  -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -flto=auto -o ltcencode lt
cencode-ltcencode.o ../src/libltc.la -lm
mv: cannot stat '.deps/ltcdecode-ltcdecode.Tpo': No such file or directory
make[2]: *** [Makefile:429: ltcdecode-ltcdecode.o] Error 1
/bin/sh ../libtool  --tag=CC   --mode=link gcc -g -Wall -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions         -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security         -fstack-clash-protection -fcf-protection -flto=auto  -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -flto=auto -o ltcdecode lt
cdecode-ltcdecode.o ../src/libltc.la -lm
mv -f .deps/ltcencode-ltcencode.Tpo .deps/ltcencode-ltcencode.Po
mv: cannot stat '.deps/ltcencode-ltcencode.Tpo': No such file or directory
make[2]: *** [Makefile:443: ltcencode-ltcencode.o] Error 1
make[2]: Leaving directory '/build/libltc/src/libltc-1.3.2/tests'
make[1]: *** [Makefile:560: check-am] Error 2
make[1]: *** Waiting for unfinished jobs....
libtool: link: gcc -g -Wall -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -flto=auto -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z -Wl,relro -Wl,-z -Wl,now -flto=auto -o .libs/ltcloop ltcloop-ltcloop.o
../src/.libs/libltc.so -lm
libtool: link: gcc -g -Wall -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -flto=auto -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z -Wl,relro -Wl,-z -Wl,now -flto=auto -o .libs/ltcencode ltcencode-ltcenco
de.o  ../src/.libs/libltc.so -lm
libtool: link: gcc -g -Wall -march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fstack-clash-protection -fcf-protection -flto=auto -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z -Wl,relro -Wl,-z -Wl,now -flto=auto -o .libs/ltcdecode ltcdecode-ltcdeco
de.o  ../src/.libs/libltc.so -lm
make[1]: Leaving directory '/build/libltc/src/libltc-1.3.2/tests'
make: *** [Makefile:452: check-recursive] Error 1
dvzrv commented 2 years ago

Ah, it appears the tests can no longer run with parallel jobs. Supplying -j1 fixes the issue.

x42 commented 2 years ago

I think the established pattern is

make -j X
make -j X check
x42 commented 2 years ago

It's odd though the test tools do depend on the library.

dvzrv commented 2 years ago

The build is fine with many jobs, but the tests are not.