#2437 closed defect (fixed)

if pax is not found by configure, the tests fail to build un-gracefully.

Reported by: Ben Gras Owned by: Ben Gras <beng@…>
Priority: normal Milestone: 4.11.1
Component: unspecified Version: 4.10
Severity: normal Keywords:
Cc: claudio@…, debajyoti94@… Blocked By:
Blocking:

Description

If pax is not found by configure, the empty PAX variable is used in e.g.
this line:

$(PAX) -w -f $@ $<

Causing the 'w' command to be invoked:

21:37:25 up 6 min, 3 users, load average: 1,90, 1,14, 0,49

USER TTY LOGIN@ IDLE JCPU PCPU WHAT
../../../../../../tools/build/rtems-bin2c -C dl.tar dl-tar.c
../../../../../../tools/build/rtems-bin2c -H dl.tar dl-tar.h
cannot open dl.tar for reading
cannot open dl.tar for reading
make[6]: * [dl-tar.c] Error 1
make[6]:
* Waiting for unfinished jobs....
make[6]: * [dl-tar.h] Error 1
make[6]: Leaving directory `/home/beng/development/rtems/b-beagle/arm-rtems4.11/c/beagleboneblack/testsuites/libtests/dl01'
make[5]:
* [all-local] Error 1
make[5]: Leaving directory `/home/beng/development/rtems/b-beagle/arm-rtems4.11/c/beagleboneblack/testsuites/libtests'
make[4]: * [all] Error 2
make[4]: Leaving directory `/home/beng/development/rtems/b-beagle/arm-rtems4.11/c/beagleboneblack/testsuites/libtests'
make[3]:
* [all-recursive] Error 1
make[3]: Leaving directory `/home/beng/development/rtems/b-beagle/arm-rtems4.11/c/beagleboneblack/testsuites'
make[2]: * [all-recursive] Error 1
make[2]: Leaving directory `/home/beng/development/rtems/b-beagle/arm-rtems4.11/c/beagleboneblack'
make[1]:
* [all-recursive] Error 1
make[1]: Leaving directory `/home/beng/development/rtems/b-beagle/arm-rtems4.11/c'
make: * [all-recursive] Error 1

I am preparing a proposed fix that fails more gracefully in the configure phase.

Thanks to several reporters of this problem, most recently Debajyoti Majumdar and Claudio Scordino, while trying to build the tests with the Beagle BSP.

Attachments (1)

fix-2437.txt (763 bytes) - added by Ben Gras on Oct 22, 2015 at 8:05:09 PM.

Download all attachments as: .zip

Change History (5)

Changed on Oct 22, 2015 at 8:05:09 PM by Ben Gras

Attachment: fix-2437.txt added

comment:1 Changed on Oct 22, 2015 at 10:06:03 PM by Joel Sherrill

I am ok pushing this to master and 4.11 assuming it is tested.

comment:2 Changed on Oct 22, 2015 at 10:07:28 PM by Ben Gras

Yes it was.

comment:3 Changed on Oct 22, 2015 at 10:07:59 PM by Ben Gras <beng@…>

Owner: set to Ben Gras <beng@…>
Resolution: fixed
Status: newclosed

In 7e06bd982bf33748485e6cfaf179f8fe68763abc/rtems:

Fail gracefully if pax is not found

The $(PAX) variable is used unconditionally so it shouldn't be
left empty if not found at configure time. Fixes #2437.

comment:4 Changed on Oct 22, 2015 at 11:23:12 PM by Ben Gras <beng@…>

In bad82027ebf605ace3da5d0bc713a0b554545d7f/rtems:

Fail gracefully if pax is not found

The $(PAX) variable is used unconditionally so it shouldn't be
left empty if not found at configure time. Fixes #2437.

Note: See TracTickets for help on using tickets.