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

obsolete: 8.5a0
closed
5
2004-02-26
2004-01-27
Vince Darley
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

1 2 > >> (Page 1 of 2)
  • 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
     
  • 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?

     
  • 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.

     
  • 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. */

     
  • 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?

     
  • 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.

     
  • 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!!

     
  • 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.

     
  • 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.

     
1 2 > >> (Page 1 of 2)