URL: <http://savannah.gnu.org/bugs/?50902>
Summary: GNU Make 4.2 -- run_make_tests.pl fails to find test_driver.pl -- Proposed solution: use FindBin Project: make Submitted by: gnuser17 Submitted on: Sun 30 Apr 2017 05:41:15 PM UTC Severity: 3 - Normal Item Group: Build/Install Status: None Privacy: Public Assigned to: None Open/Closed: Open Discussion Lock: Any Component Version: None Operating System: None Fixed Release: None Triage Status: None _______________________________________________________ Details: Particulars: OS: Linux Debian 4.3.0-1-amd64 #1 SMP Debian 4.3.3-7 (2016-01-19) x86_64 GNU/Linux Installed version of Perl: 5.24 built for x86_64-linux-gnu-thread-multi Install version of make: 4.1 built for x86_64-pc-linux-gnu Version of make begin compiled: 4.2 Note: I get the same error trying to compile the released 4.2 and 4.2.1 versions found here: -- ftp://gnu.mirror.iweb.com/make/ The same is true when compiling from the HEAD of the git repository. -- At the time of writing HEAD is at: a95cb30ab5eed851c6efafb5a871a6fa8860268b When trying to run 'make check' I get the following error: Making check in glob make[1]: Entering directory '/home/debian/Documents/open_source/source/make/glob' make[1]: Nothing to be done for 'check'. make[1]: Leaving directory '/home/debian/Documents/open_source/source/make/glob' Making check in config make[1]: Entering directory '/home/debian/Documents/open_source/source/make/config' make[1]: Nothing to be done for 'check'. make[1]: Leaving directory '/home/debian/Documents/open_source/source/make/config' Making check in po make[1]: Entering directory '/home/debian/Documents/open_source/source/make/po' make[1]: Nothing to be done for 'check'. make[1]: Leaving directory '/home/debian/Documents/open_source/source/make/po' Making check in doc make[1]: Entering directory '/home/debian/Documents/open_source/source/make/doc' make[1]: Nothing to be done for 'check'. make[1]: Leaving directory '/home/debian/Documents/open_source/source/make/doc' make[1]: Entering directory '/home/debian/Documents/open_source/source/make' make loadavg make[2]: Entering directory '/home/debian/Documents/open_source/source/make' gcc -DLOCALEDIR=\"/home/debian/Documents/open_source/test_install/make/share/locale\" -DLIBDIR=\"/home/debian/Documents/open_source/test_install/make/lib\" -DINCLUDEDIR=\"/home/debian/Documents/open_source/test_install/make/include\" -DHAVE_CONFIG_H -I. -DTEST -g -O2 -MT loadavg-getloadavg.o -MD -MP -MF .deps/loadavg-getloadavg.Tpo -c -o loadavg-getloadavg.o `test -f 'getloadavg.c' || echo './'`getloadavg.c mv -f .deps/loadavg-getloadavg.Tpo .deps/loadavg-getloadavg.Po gcc -g -O2 -Wl,--export-dynamic -o loadavg loadavg-getloadavg.o -ldl make[2]: Leaving directory '/home/debian/Documents/open_source/source/make' make check-local make[2]: Entering directory '/home/debian/Documents/open_source/source/make' cd tests && perl ./run_make_tests.pl -srcdir /home/debian/Documents/open_source/source/make -make ../make Can't locate test_driver.pl in @INC (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.24.1 /usr/local/share/perl/5.24.1 /usr/lib/x86_64-linux-gnu/perl5/5.24 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.24 /usr/share/perl/5.24 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base) at ./run_make_tests.pl line 65. Makefile:1282: recipe for target 'check-regression' failed make[2]: *** [check-regression] Error 2 make[2]: Leaving directory '/home/debian/Documents/open_source/source/make' Makefile:1088: recipe for target 'check-am' failed make[1]: *** [check-am] Error 2 make[1]: Leaving directory '/home/debian/Documents/open_source/source/make' Makefile:798: recipe for target 'check-recursive' failed make: *** [check-recursive] Error 1 Applying the following patch allows 'make check' to find test_driver.pl and run all tests. diff --git a/tests/run_make_tests.pl b/tests/run_make_tests.pl index a74417a..5a858e2 100644 --- a/tests/run_make_tests.pl +++ b/tests/run_make_tests.pl @@ -64,6 +64,8 @@ if ($^O eq 'VMS') $CMD_rmfile = 'delete_file -no_ask'; } +use FindBin; +use lib "$FindBin::Bin"; require "test_driver.pl"; require "config-flags.pm"; _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/bugs/?50902> _______________________________________________ Message sent via/by Savannah http://savannah.gnu.org/ _______________________________________________ Bug-make mailing list Bug-make@gnu.org https://lists.gnu.org/mailman/listinfo/bug-make