bugmake - Bugs: bug #63552, includes specified with -I ignored...

 
 

bug #63552: includes specified with -I ignored when -C is also used, since 4.4

Submitter:  None
Submitted:  Tue 20 Dec 2022 11:14:25 AM UTC
   
 
Severity:  3 - Normal Item Group:  Bug
Status:  Fixed Privacy:  Public
Assigned to:  psmith Open/Closed:  Closed
Component Version:  4.4 Operating System:  Any
Fixed Release:  4.4.1 Triage Status:  Small Effort
* Mandatory Fields

Add a New Comment Rich Markup
   

Sat 24 Dec 2022 01:45:58 PM UTC, comment #1: 

Thanks for the report.  I have a fix for this.

Paul D. Smith <psmith>
Group administrator
Tue 20 Dec 2022 11:14:25 AM UTC, original submission:  

There's a regression in v4.4 where if you invoke make with both -C and -I parameters, the include directory specified by -I is not seen in the Makefile by the include directives it contains.

for example let's consider a folder containing these files/folders:

inc/test  (empty file included by Makefile)
src/Makefile

Makefile has this content


include test

all:


In that folder, this execution fails, as the include directive is not taken into account -I../inc (the bug):


make -C src -I../inc all
make: Entering directory '/tmp/make_include_bug/src'
Makefile:1: test: No such file or directory
make: *** No rule to make target 'test'.  Stop.
make: Leaving directory '/tmp/make_include_bug/src'


v4.3 works fine (no error), as well as:


(cd src ; make -I../inc all)


So it is really the combination of -C and -I that does not work anymore.

I have attached a small archive with the folder structure above.

This regression was initially discovered when compiling sbcl which is using such construct.

Anonymous

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #54127:  make_include_bug.tar.gz added by bobbie424242 (538B - application/gzip)

 

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 bobbie424242 (Updated the item)
  •  

    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 7 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2022-12-24 psmith StatusNone Fixed
        Assigned toNone psmith
        Open/ClosedOpen Closed
        Operating SystemNone Any
        Fixed ReleaseNone 4.4.1
        Triage StatusNone Small Effort
    2022-12-20 bobbie424242 Attached File- Added make_include_bug.tar.gz, #54127

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code