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

Submitter:  enrique olaizola <gnuser17>
Submitted:  Sun 30 Apr 2017 05:41:15 PM UTC
   
 
Severity:  3 - Normal Item Group:  Build/Install
Status:  Fixed Privacy:  Public
Assigned to:  psmith Open/Closed:  Closed
Component Version:  None Operating System:  None
Fixed Release:  4.3 Triage Status:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Sun 04 Jun 2017 10:51:44 PM UTC, comment #1: 

A fix has been pushed and will be in the next release.  Thank you for filing a report!

Paul D. Smith <psmith>
Group administrator
Sun 30 Apr 2017 05:41:15 PM UTC, 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 Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by psmith (Posted a comment)
  • -email is unavailable- added by gnuser17 (Submitted the item)
  • -email is unavailable- added by gnuser17
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2017-06-04 psmith StatusNone Fixed
        Assigned toNone psmith
        Open/ClosedOpen Closed
        Fixed ReleaseNone 4.3
    2017-04-30 gnuser17 Carbon-Copy- Added gnuser17

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code