bugmake - Bugs: bug #50902, GNU Make 4.2 -- run_make_tests.pl...

 
 

bug #50902: GNU Make 4.2 -- run_make_tests.pl fails to find test_driver.pl -- Proposed solution: use FindBin

Submitted by:  enrique olaizola <gnuser17>
Submitted on:  Sun Apr 30 17:41:15 2017  
 
Severity: 3 - NormalItem Group: Build/Install
Status: NonePrivacy: Public
Assigned to: NoneOpen/Closed: Open
Component Version: NoneOperating System: None
Fixed Release: NoneTriage Status: None

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Sun Apr 30 17:41:15 2017, original submission:

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";

enrique olaizola <gnuser17>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by gnuser17 (Submitted the item)
  • -unavailable- added by gnuser17
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follows 1 latest change.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun Apr 30 17:41:15 2017gnuser17Carbon-Copy-=>Added gnuser17

    Back to the top


    Powered by Savane 3.1-cleanup1