Menu

Error: Could not create Makefile.

2004-01-23
2012-09-26
1 2 > >> (Page 1 of 2)
  • Nobody/Anonymous

    I have a very simple project (static library) and I could not compile it because the error dialog "Could not create Makefile." appers when I try compile or rebild all. :-(
    Platform: Windows XP.
    Compiler: cygwin GCC 3.3.1

     
    • Wayne Keen

      Wayne Keen - 2004-01-23

      Post your FULL compile log please....

      Wayne

       
      • Nobody/Anonymous

        ------------------------------------
        Compiler: Default compiler
        Building Makefile: "C:\dev\caf\prj\cygwin\caf\gui\Makefile.win"
        Executing  make clean
        make: *** No rule to make target `clean'.  Stop.
        Execution terminated
        ------------------------------------

        Sorry. But the error dialog appears before I can see compile log. When Dev-C++ try to create the Makefile.win.

        I found only when dependence:

        My project has complex "Build Options", for example:
        Executable output directories:
        ..\..\..\lib\cygwin
        Object file output directory:
        ..\..\..\..\tmp\cygwin\caf\gui
        Override output filename:
        libcaf.a

        Sometimes, when I set the defult options, the Dev-C++ creates Makefile.win, sometimes doesn't.

        Sorry my English.

         
        • Anonymous

          Anonymous - 2004-01-23

          What's in Makefile.win?  Anything?

           
          • Sergey Shandar

            Sergey Shandar - 2004-01-23

            It creates zero-size Makefile.win.

             
            • Anonymous

              Anonymous - 2004-01-23

              If your Makefile is size 0, then you're not going to be able to use make to compile the code because... well... there are no instructions for doing it.  So you've got to figure out why makefile is 0 bytes big.

              Is your hard drive full?

              Do you have privileges to write into this directory?

              Do you have privileges to overwrite the makefile?

              There's got to be a reason.

              Watson (the pencil neck) Davis

               
    • Anonymous

      Anonymous - 2004-01-23

      What does the actual Compile Log say?  There's got to be a reason it couldn't make the makefile.

      Watson (the pencil neck) Davis

       
    • Sergey Shandar

      Sergey Shandar - 2004-01-23

      > Is your hard drive full?
      No, It isn't.

      >Do you have privileges to write into this directory?
      Yes, I do. It's my local hard drive on NTFS.

      >Do you have privileges to overwrite the makefile?
      Yes, I do.

      I understand the reasons. But I don't understand why somitemes it works, sometimes doesn't. :-(

      Perhaps it's my fall but I have only one correlation: Build Options. See my previous message.

       
    • Anonymous

      Anonymous - 2004-01-23

      A few ../..'s shouldn't be a problem.

      But is there a reason why you're redirecting the output to different directories?  Do those directories exist?

       
      • Sergey Shandar

        Sergey Shandar - 2004-01-23

        >But is there a reason why you're redirecting the output to different directories?
        I just don't clear my source folder every time :-).
        Of course I can change the folders. The error is not a real problem. But I'm intrested why it happens.

        >Do those directories exist?
        Yes. They do.

        Step-by-step:
        1. open Dev-cpp.
        2. open my project.
        3. set default "Build options".
        4. compile. ==> Ok.
        5. set my "Build options".
        6. compile. ==> Ok.
        7. close Dev-cpp.
        8. open Dev-cpp.
        9. open my project.
        10. compile. ==> Error.
        11. set default "Build options".
        12. compile. ==> Error. :-( Even with default options.

        The steps I can repeat a lot of times on my computer and each time the result of compilation will be same.

         
    • Wayne Keen

      Wayne Keen - 2004-01-23

      Note that he is using Cygwin's gcc as his compiler, not MinGW.  And the Cygwin GCC version is not consistent with what Dev was built for....

      Wayne

       
      • Anonymous

        Anonymous - 2004-01-23

        Ah, OK.

        Watson (the pencil neck) Davis

         
      • Sergey Shandar

        Sergey Shandar - 2004-01-23

        That's right. Also my "Compiler Options/Directories/Binaries" is "c:/cygwin/bin".

         
      • Sergey Shandar

        Sergey Shandar - 2004-01-23

        >Note that he is using Cygwin's gcc as his compiler, not MinGW.
        Thank you for the note. But does it dependences on how dev-cpp build a make file? :-)

        I've tried to compile on MinGW. Same results.....

        Right, I can give my project and maybe someone try to compile it. :-(

         
        • Anonymous

          Anonymous - 2004-01-23

          Sure.

          How big is it?

          Watson (the pencil neck) Davis

           
    • Wayne Keen

      Wayne Keen - 2004-01-23

      Try to reduce things to a simple as possible example, and I am more than willing to try it out.

      Wayne

       
      • Sergey Shandar

        Sergey Shandar - 2004-01-23

        I made a simple project and folder structure in '.zip' file. How can I send it?

        You can download it from http://comer.pisem.net/blin.zip.

         
        • Wayne Keen

          Wayne Keen - 2004-01-23

          I will download it this weekend and take a look

          Wayne

           
          • Sergey Shandar

            Sergey Shandar - 2004-01-23

            Thank you, Wayne, for support.

             
        • Anonymous

          Anonymous - 2004-01-23

          Compiler: Default compiler
          Building Makefile: "C:\Programming\FromForum\blin\prj\cygwin\caf\Makefile.win"
          Executing  make clean
          rm -f ../../../tmp/cygwin/caf/test.o  ../../../lib/cygwin/libcaf.a

          make.exe: *** Warning: File `../../../src/caf/test.cpp' has modification time in the future (2004-01-24 00:54:56 > 2004-01-23 08:01:21)

          g++.exe -c ../../../src/caf/test.cpp -o ../../../tmp/cygwin/caf/test.o -I"C:/Dev-Cpp/include/c++"  -I"C:/Dev-Cpp/include/c++/mingw32"  -I"C:/Dev-Cpp/include/c++/backward"  -I"C:/Dev-Cpp/include" 

          ar r ../../../lib/cygwin/libcaf.a ../../../tmp/cygwin/caf/test.o

          ranlib ../../../lib/cygwin/libcaf.a

          make.exe: warning:  Clock skew detected.  Your build may be incomplete.

          Execution terminated
          Compilation successful

          ------------------------------------------------

          Looks like a good compile.  In the blin\lib\cygwin directory, I've got libcaf.a.

          Do you have a clean install of Dev-C++ on your system?

          Watson (the pencil neck) Davis

           
          • Sergey Shandar

            Sergey Shandar - 2004-01-23

            >Looks like a good compile. In the blin\lib\cygwin directory, I've got libcaf.a.
            That's bad. Because I don't know where the problem is :-(

            I've tried 4.9.8.5 and also version 4.9.8.6 from CVS... and can't compile the project (blin.zip).

            >Do you have a clean install of Dev-C++ on your system?
            Hm.... I was sure I have but now I'm not sure.

            May be I have wrong installation.
            What do I need to clear reinstall Dev-CPP?
            I have Dev-C++ 4.9.8.0 installation package and version from CVS 4.9.8.6.

             
            • Anonymous

              Anonymous - 2004-01-23

              The directions for removing and re-installing are in the "READ THIS BEFORE POSTING" thread.

              I'm at 4.9.8.5, btw.

               
              • Sergey Shandar

                Sergey Shandar - 2004-01-24

                Ok. I read it. I clear reinstalled and don't have any changes with compilation of my example.

                I have Windows XP Home Edition with the latest updates. One disk C: with NTFS.

                IMHO, problem is here:
                --- V5/source/compiler.pas -------------------------
                  fMakefile := fProject.Directory + DEV_MAKE_FILE;
                  DoLogEntry('Building Makefile: "'+fMakefile +'"');
                  Assignfile(F, fMakefile);
                  try
                    Rewrite(F);
                  except
                    MessageDlg('Could not create Makefile !!!', mtError, [mbOK], 0);
                    result := false;
                    exit;
                  end;
                ---------------------------------------------
                The 'Rewrite(F);' C_R_E_A_T_E_S the file 'Makefile.Win' but an exception occurs.
                :-(
                I'm intrested, if just ignore the exception (comment exit()), will I have a good Makefile.win? I don't have Delphi so I can't create the version. I will be happy if someone give me the compiled version with commented 'exit'.

                If you aren't intrested any more in the problem, just forget. I can work around but perhaps it's a some kind of a bug.

                 
    • Nobody/Anonymous

      try saveing your .cpp .h and all that and delete the file projectname.dev and make a new project then right click on the project manager a menu will popup click add to project add the files and then click compile if it dose not work go to project options and click use windows thems click ok then compile if that don't work make shure you have your compiler options the way you want then and then try again.

       
      • Paul van Zelst

        Paul van Zelst - 2004-01-25

        You're the same guy that's been posting in some other threads as well, right? Could you PLEASE learn how to use punctuation... it's giving me a headache trying to read any of your comments. It's just one huge stream of words, and it's left to the reader to figure out where any commas or periods were supposed to be.
        Also, improving your spelling would help things along quite a bit (or decrease your number of typos, either way).

        Paul

         
1 2 > >> (Page 1 of 2)

Log in to post a comment.

MongoDB Logo MongoDB