bugmake - Bugs: bug #62858, error: too few arguments to...

 
 

bug #62858: error: too few arguments to function ‘find_in_given_path’

Submitter:  chen <chenzero>
Submitted:  Wed 03 Aug 2022 02:35:36 PM UTC
   
 
Severity:  3 - Normal Item Group:  Build/Install
Status:  Not A Bug Privacy:  Public
Assigned to:  None Open/Closed:  Closed
Component Version:  4.3 Operating System:  None
Fixed Release:  None Triage Status:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 03 Aug 2022 06:35:43 PM UTC, comment #4: 

IMO as I said earlier if you want the official 4.3 release it's best to just build it from the downloaded source, not from Git: it's much easier / more stable / more reliable.

However, current gnulib does support setting a gnulib SHA reference that will be used by bootstrap when pulling gnulib content to avoid these kinds of mismatches; I'll look into adding this so that we don't hit this issue in future releases.

Paul D. Smith <psmith>
Group administrator
Wed 03 Aug 2022 06:29:03 PM UTC, comment #3: 

Just as @psmith pointed out, some functions in gnulib changed their signature, e.g: find_in_given_path(),
In case if someone need to build 4.3 release from git repo,
please try these steps:

1. In a dir: $dir1,
   $ git clone https://git.savannah.gnu.org/git/gnulib.git
   $ cd gnulib
   $ git checkout 5fde00bdb689884f6de0ab2829f0df907380a010  
   # 5fde... commit is the matched version for make 4.3

2. In $dir1
   $ git clone https://git.savannah.gnu.org/git/make.git
   $ cd make
   $ git checkout 4.3 -b 4.3

3. Build
   $ ./bootstrap --gnulib-srcdir=../gnulib/
   $ ./configure;
   $ ./make; make install;

HTH

chen <chenzero>
Wed 03 Aug 2022 03:22:22 PM UTC, comment #2: 

comment #1:
...

>
> If you want to build from Git, then make sure you have the latest version from Git.


After checking, yeah, my repo is an old one, and I forget to pull.

Thank you!

chen <chenzero>
Wed 03 Aug 2022 02:49:50 PM UTC, comment #1: 

This is not the code that exists in the latest Git master, which is:


    cmd = (char *)find_in_given_path (argv[0], p, NULL, 0);


You are using a newer version of gnulib so you need a newer version of the GNU make code.

If you want to build the released 4.3 version, just get the release tarball: it comes with all the gnulib content already available, and the expected versions.

If you want to build from Git, then make sure you have the latest version from Git.

Paul D. Smith <psmith>
Group administrator
Wed 03 Aug 2022 02:35:36 PM UTC, original submission:  

System: Ubuntu 20.04
Lastest master or 4.3 tag code

build step:
$ ./bootstrap
$ ./configure
$ make

then, error msg printed:
.....
src/job.c: In function ‘child_execute_job’:
src/job.c:2396:19: error: too few arguments to function ‘find_in_g iven_path’
 2396 |     cmd = (char *)find_in_given_path (argv[0], p, 0);
....

in the findprog-in.c , the
find_in_given_path() should have 4 params ?

Thanks!


chen <chenzero>

 

(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 chenzero (Submitted 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 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2022-08-03 psmith StatusNone Not A Bug
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code