[Bug 52686] New: Make project fails with "config.status: error: invalid argument: Makefile"ROUND

Christophe Theron asj2 at wanadoo.fr
Tue Jan 7 05:16:05 UTC 2003


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
     
http://bugs.kde.org/show_bug.cgi?id=52686     
           Summary: Make project fails with "config.status: error: invalid
                    argument: Makefile"ROUND
           Product: kdevelop
           Version: unspecified
          Platform: RedHat RPMs
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: general
        AssignedTo: kdevelop-devel at barney.cs.uni-potsdam.de
        ReportedBy: asj2 at wanadoo.fr


Version:           2.1.4 (using KDE KDE 3.0.3)
Installed from:    RedHat RPMs
Compiler:          gcc 3.2 
OS:          Linux

I'm using RedHat 8.0. Language is english.


BUG DESCRIPTION:

I do the following:
1) start Kdevelop (version 2.1.4)
2) Project > New
3) Select "Terminal - C", then click on Next
4) In "project name" I type "test", then I click on Next
5) Version Control System Support, I just click on Next
6) Headertemplate for .h files, I just click on Next
7) Headertemplate for .c files, I just click on Next
8) Processes, I click on Create and wait, then I click on Exit when the "READY" message appears.
9) I click on the "Rebuild" icon.
10) I get the following error message in the "Messages" window:
*** failed *** 
gmake all-recursive 
gmake[1]: Entering directory `/root/test' 
cd . && /bin/sh ./config.status Makefile 
config.status: error: invalid argument: Makefile 
gmake[1]: *** [Makefile] Error 1 
gmake[1]: Leaving directory `/root/test' 
gmake: *** [all] Error 2 
*** failed ***


So basically all I do is to create a new project of type "Terminal, C" (a console mode application written in C), I try to build it, and immediately get an error.

This bug has been confirmed on 3 different computers (two computers of mine and another computer of a german friend).


You guys, do you test your apps sometimes? Or maybe you test on only one distro?

I have a hard time believing you test on the most used distros like RedHat. If you did you would have found this immediately.

And BTW the same bug happens if you create any other kind of project (KDE app or anything else).

I'm sorry to say it, but if you do not test more seriously Microsoft has still bright days ahead... :(



OK, so let's be constructive. I have tried to find a workaround for this problem and I have found one:


WORKAROUND:

* Edit the "config.status" file that you can find in your project's directory.
* Do a search for the string "FILES ./"
* This line will show up:
  "./Makefile" ) CONFIG_FILES="$CONFIG_FILES ./Makefile" ;;
* Remove the "./" before the first "Makefile", so the line looks like this:
  "Makefile" ) CONFIG_FILES="$CONFIG_FILES ./Makefile" ;;
* save "config.status"

Removing "./" before the second occurence of "Makefile" works too, maybe on some systems it will be necessary, I'm not sure.


THIS IS NOT A WORKAROUND:

If you do a Build > "DistClean/Rebuild all" you will get the impression that the problem is fixed (your project will compile).

But if you add or remove a file from the project... the bug is here again.

So only the manual editing of config.status seems to be able to fix the problem for good.



    Christophe Theron (author of the Chess Tiger chess program, FWIW)
    asj2 at wanadoo.fr




More information about the KDevelop-devel mailing list