Menu

#462 Clean target uses non-native tool

open
nobody
None
5
2012-09-26
2004-12-02
No

The "clean" target which is executed via the IDE fails
because it tries to use "rm" to clear the files.
"rm" is not part of MingW but MSYS, and I doubt every
user has MSYS correctly installed.
So I suggest changing this to another built-in command

Discussion

  • Marek Januszewski

    Logged In: YES
    user_id=609236

    mingw doesn't not include rm, but we do (for the time
    being):
    http://sourceforge.net/project/shownotes.php?release_id=274022
    so rm is in c:\dev-cpp\bin directory, doesn't need to be
    installed separately.

     
  • Anonymous

    Anonymous - 2004-12-03

    Logged In: YES
    user_id=392303

    Im using Dev-C++ with an external MingW setup integrated so
    "rm" isnt there.
    Ive read the suggestion in the developer forum about the
    "Windows_NT" workaround and Id vote for it, since this
    dependancy on "rm" is the only exception where Dev-C++
    relies on something not included with stock MingW

     
  • Marek Januszewski

    Logged In: YES
    user_id=609236

    problem is when I do
    RM= del /f/q

    when dev-c++ rebuilds project by
    make -f Makefile.win clean all
    it fails when del /f/q returns error code when one of the
    files doesn't exist. rm -f doesn't return error when one of
    files doesn't exist

     
  • Anonymous

    Anonymous - 2004-12-05

    Logged In: YES
    user_id=392303

    Ok if Dev-C++ depends on it what about bundling it in a
    "tools" subdir independant of MingW being included or not,
    and using this copy of rm.

     
  • Marek Januszewski

    Logged In: YES
    user_id=609236

    I rolled back dev-cpp to use rm instead of del.
    see discussion:
    http://sourceforge.net/tracker/index.php?func=detail&aid=1081447&group_id=10639&atid=110639
    there are no problems with simple
    del file,
    but when you switch to del from rm, del accepts only \ as
    path delimiter, while rm on windows accepts both. additional
    problems occur when path and/or file name contains spaces:
    del accepts format "some dir\some file", but rm needs rm
    "some\ dir/some\ file" which causes all sorts of problems
    and clean section is no longer just "rm -f $(OBJ) $(BIN)".
    I'm reopening this bug report.

     
  • Anonymous

    Anonymous - 2004-12-12

    Logged In: YES
    user_id=392303

    So is something changed now?
    If "rm" is still used why isnt it bundled with the
    non-mingw version?

     
  • Marek Januszewski

    Logged In: YES
    user_id=609236

    it's definitely something to think about for next dev-c++.
    in meantime the best solution would be to unpack binutils
    devpack and copy rm.exe into your bin directory

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.