Menu

#2584 makefile.vc/rules.vc keep asking for cd insertion

obsolete: 8.5a0
closed
5
2004-02-26
2004-01-27
No

Various of the 'nmakehlp' commands executed by the
msvc++ build, e.g.:

nmakehlp -c -QI0f

prompt me with a windows dialog box titled "cl.exe - No
Disk", and a message "There is no disk in the drive.
Please insert a disk into drive D:.", with options
Cancel/Try Again/Continue.

If this only happened once or twice it would be ok, but
it happens about 20 times when I do 'nmake -f makefile.vc'.

Discussion

  • Don Porter

    Don Porter - 2004-01-27

    Logged In: YES
    user_id=80530

    I know nothing about this.
    Passing to someone I hope
    does.

     
  • Don Porter

    Don Porter - 2004-01-27
    • assigned_to: dgp --> davygrvy
     
  • David Gravereaux

    Logged In: YES
    user_id=7549

    This is wierd. what version of vc++? Is your local directory
    at the time you call nmake the win directory of the source?

     
  • Nobody/Anonymous

    Logged In: NO

    vc++ 5.2, and yes, I'm in the 'win' directory.

    I believe (but haven't 100% verified yet) that the problem
    doesn't arise when I first turn my laptop on without using
    the cd-rom (D: drive). However, once the cd-rom has been
    used once, then I'm always asked unless of course there is a
    disk already in it.

     
  • David Gravereaux

    Logged In: YES
    user_id=7549

    The problem is probably in nmakehlp.c, I use a source file
    name of 'nul'. Maybe '.\nul' would be more correct? Can you
    try it.

    *** nmakehlp.c 23 Dec 2003 03:58:58 -0000 1.4
    --- nmakehlp.c 28 Jan 2004 00:36:41 -0000
    ***************
    *** 137,143 ****
    /* append our option for testing */
    strcat(cmdline, option);
    /* filename to compile, which exists, but is nothing and
    empty. */
    ! strcat(cmdline, " nul");

    ok = CreateProcess(
    NULL, /* Module name. */
    --- 137,143 ----
    /* append our option for testing */
    strcat(cmdline, option);
    /* filename to compile, which exists, but is nothing and
    empty. */
    ! strcat(cmdline, " .\\nul");

    ok = CreateProcess(
    NULL, /* Module name. */

     
  • David Gravereaux

    Logged In: YES
    user_id=7549

    Oh, that seems to stop the console window from popping up,
    too. Also added a SetErrorMode() call to shutoff those
    messages.

    Just committed -r1.5 of nmakehlp.c
    Does this fix it?

     
  • David Gravereaux

    Logged In: YES
    user_id=7549

    PS. delete nmakehlp.exe manualy so it's rebuilt from the
    changed sourcefile (can't really add that as it wouldn't be
    graceful). nmake is such a limited tool.

     
  • Nobody/Anonymous

    Logged In: NO

    Hmm...Forget nmakehlp.exe for the moment (your changes
    didn't help, unfortunately). Just typing this on the
    command-line:

    cl.exe -nologo -c -TC Fdtemp .\nul

    asks me 6 times to insert a disk!!

     
  • David Gravereaux

    Logged In: YES
    user_id=7549

    It was wierd before, now it's more wierd.

    There's a file called tools.ini that might be located in %
    MSCDir%. I remember this from years ago, it can act as an
    over-ride and cause cl.exe to do strange stuff. Do you have
    a %CL% environment variable? That mess up cl.exe, too.
    Other that, I have no clue why msc is trying to read from the
    cd-rom drive.

     
  • David Gravereaux

    Logged In: YES
    user_id=7549

    cl.exe -nologo -c -TC -Zs -X .\nul

    Does that have the same behavior? I'm truly lost for how to
    help.

     
  • Vince Darley

    Vince Darley - 2004-01-29

    Logged In: YES
    user_id=32170

    That command just asks me twice to insert a disk...!

     
  • David Gravereaux

    Logged In: YES
    user_id=7549

    2/3rds of the problem is gone, then. hehe

    When you use the IDE, does that ever want to go to the cd-
    rom when you build?

     
  • Vince Darley

    Vince Darley - 2004-01-29

    Logged In: YES
    user_id=32170

    Just tried the IDE for the first time, and no, that never
    asks for the cd-rom!

     
  • David Gravereaux

    Logged In: YES
    user_id=7549

    I have no clue how to fix this. It doesn't make any sense. I
    can't reproduce it on my laptop (which has a cd-rom drive),
    VC++ 5, and runs w2k.

    When there's a disk in the drive, is there anyway to spy on
    what cl.exe is searching for?

     
  • David Gravereaux

    Logged In: YES
    user_id=7549

    Can't fix. I can't reproduce it here and have no ideas as to
    why it is happening.

     
  • David Gravereaux

    • status: open --> closed