Project Home
Project Home
Trackers
Trackers
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - C++ Make project - 'RM := del' in makefile: (3 Items)
   
C++ Make project - 'RM := del' in makefile  
QNX 6.4.1 IDE 4.6 Windows host

Customer reported, and I reproduced that if you follow the IDE doc instructions for 'Creating the equivalent of a make 
project' and set the 'Generate Makefiles automatically' option like it says, the resulting makefile starts:

################################################################################
# Automatically-generated file. Do not edit!
################################################################################
"
-include ../makefile.init

RM := del
[snip]
"

If you run a 'make clean', it fails to find 'del' :
"

**** Clean-only build of configuration QNX QCC for project testmake ****

make clean 
del  ./testmake.d  testmake
process_begin: CreateProcess(NULL, del ./testmake.d testmake, ...) failed.
make (e=2): The system cannot find the file specified.

make: [clean] Error 2 (ignored)
"

Known issue ? Any workaround ?

Thanks

Dave
Re: C++ Make project - 'RM := del' in makefile  
That's bizarre.  I can reproduce this, too.

If you just create a managed-make project to begin with, then you get
the correct result (which is "RM := rm -rf").  It is simpler to start
with a managed project (e.g., the "Empty Project" or "Hello World ANSI C
Project" template in the "Executable" category of the wizard) and just
change the builder to "Gnu Make Builder" from "CDT Internal Builder."
That requires fewer steps and produces the correct result.

As for why the other procedure results in "del" being used as the RM
command, I suspect that the change from non-managed to managed build
didn't pick up the QCC toolchain's specification of the default RM
command, because the project "remembers" a different default.  Feel free
to raise an IDE PR for that.

Cheers,

Christian



On Tue, 2009-11-03 at 13:38 -0500, Dave Bott wrote:

> QNX 6.4.1 IDE 4.6 Windows host
> 
> Customer reported, and I reproduced that if you follow the IDE doc instructions for 'Creating the equivalent of a make
 project' and set the 'Generate Makefiles automatically' option like it says, the resulting makefile starts:
> 
> ################################################################################
> # Automatically-generated file. Do not edit!
> ################################################################################
> "
> -include ../makefile.init
> 
> RM := del
> [snip]
> "
> 
> If you run a 'make clean', it fails to find 'del' :
> "
> 
> **** Clean-only build of configuration QNX QCC for project testmake ****
> 
> make clean 
> del  ./testmake.d  testmake
> process_begin: CreateProcess(NULL, del ./testmake.d testmake, ...) failed.
> make (e=2): The system cannot find the file specified.
> 
> make: [clean] Error 2 (ignored)
> "
> 
> Known issue ? Any workaround ?
> 
> Thanks
> 
> Dave
> 
> 
> 
> _______________________________________________
> 
> General
> http://community.qnx.com/sf/go/post41248
> 


________________________________________________________________________

Christian W. Damus
Software Developer, IDE Team
QNX Software Systems
Re: C++ Make project - 'RM := del' in makefile  
Thanks Christian - PR72476 tracks this.

Cheers

Dave

Christian Damus wrote:
>
> That's bizarre.  I can reproduce this, too.
>
> If you just create a managed-make project to begin with, then you get
> the correct result (which is "RM := rm -rf").  It is simpler to start
> with a managed project (e.g., the "Empty Project" or "Hello World ANSI C
> Project" template in the "Executable" category of the wizard) and just
> change the builder to "Gnu Make Builder" from "CDT Internal Builder."
> That requires fewer steps and produces the correct result.
>
> As for why the other procedure results in "del" being used as the RM
> command, I suspect that the change from non-managed to managed build
> didn't pick up the QCC toolchain's specification of the default RM
> command, because the project "remembers" a different default.  Feel free
> to raise an IDE PR for that.
>
> Cheers,
>
> Christian
>
>
>
> On Tue, 2009-11-03 at 13:38 -0500, Dave Bott wrote:
>
> > QNX 6.4.1 IDE 4.6 Windows host
> >
> > Customer reported, and I reproduced that if you follow the IDE doc 
> instructions for 'Creating the equivalent of a make project' and set 
> the 'Generate Makefiles automatically' option like it says, the 
> resulting makefile starts:
> >
> > 
> ################################################################################
> > # Automatically-generated file. Do not edit!
> > 
> ################################################################################
> > "
> > -include ../makefile.init
> >
> > RM := del
> > [snip]
> > "
> >
> > If you run a 'make clean', it fails to find 'del' :
> > "
> >
> > **** Clean-only build of configuration QNX QCC for project testmake ****
> >
> > make clean
> > del  ./testmake.d  testmake
> > process_begin: CreateProcess(NULL, del ./testmake.d testmake, ...) 
> failed.
> > make (e=2): The system cannot find the file specified.
> >
> > make: [clean] Error 2 (ignored)
> > "
> >
> > Known issue ? Any workaround ?
> >
> > Thanks
> >
> > Dave
> >
> >
> >
> > _______________________________________________
> >
> > General
> > http://community.qnx.com/sf/go/post41248
> >
>
>
> ________________________________________________________________________
>
> Christian W. Damus
> Software Developer, IDE Team
> QNX Software Systems
>
>
>
>
> _______________________________________________
>
> General
> http://community.qnx.com/sf/go/post41265
>


-- 
Dave Bott (dbott@qnx.com)	Field Applications Engineer 
QNX Software Systems, Inc.	Cell:408 391-3535
San Jose CA

Join Foundry27 <http://community.qnx.com>;  - the new QNX developer forum.