This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Upgraded from 6.9 to 7.0 now my remote project does not build: exec: $(MAKE): not found Going to project properties and resetting make commands to default turns $(MAKE) into ${MAKE} and now everything works.
Thomas, please, looks like we forgot to convert parens into curlies when loading pre-70 projects
Problem confirmed: if you in NB 6.9.1 and earlier versions create a Project with existing Sources (Automatic mode), the build commands uses $(MAKE) (regular parenthesis) which is not a problem in these versions of NB but in NB 7.0 the build commands are now executed as shell commands and the make macro syntax is causing problems for the shell. In 7.0 we use curly parenthesizes which is accepted by both make and shell but 7.0 doesn't work with a 6.9.1 project. Work-around is to manually change $(MAKE) to ${MAKE} in the project properties and things should be fine. I will implement a fix that automatically detects the former style in build commands and convert them into the latter. I also found two cases (qt projects) where we still used $(MAKE) in 7.0. I fixed both.
Fixed: changeset: 192879:9e8a18e984c6 user: Thomas Preisler <thp@netbeans.org> date: Fri Apr 22 16:20:23 2011 -0700 summary: #197975 - Projects from 6.9 do not build because of invalid $(MAKE) reference
*** Bug 197937 has been marked as a duplicate of this bug. ***
fix failed in trunk build 20110513 Thomas, please fix it ASAP.
My fix is in trunk (just verified it) and it also does work for me. At least my test case works. Two questions: What are the fill build/clean command? Pls copy/paste into here. What is the project version number? Can you pls attach the project that is failing?
Here is how I have tested it: - Create Project With Existing Sources with a NB 6.9. Project has (MAKE) in build command. Project version is 69. - Open the project with latest trunk build and the build command should automatically been converted to use {MAKE}. Check the properties. - Build the project, and it should build fine.
Created attachment 108313 [details] the project to reproduce the bug
Thomas, I use absolutely the same steps as you do. I use nb 6.9.1 to create a project with existing source then open it using the latest NB from trunk or even from branch 7.0.1 and the project version is changing from 69 to 79. But in my case Build Command: $(MAKE) -f Makefile Clean Command: $(Make) -f Makefile Clean I've attached my project.
Created attachment 108351 [details] project created with nb 6.9.1 Here is the makefile based project created on my Ubuntu using NB 6.9.1
Looks like Thomas have not pushed fix mentioned in http://netbeans.org/bugzilla/show_bug.cgi?id=197975#c3
http://hg.netbeans.org/releases/rev/1c26e8429af7 Please, verify in 7.0.1
i18 http://hg.netbeans.org/releases/rev/092f00549594
verified in dev cnd build #5382 on 20110517 Please push the fix into patch branch.
Thomas, Please, review the fix.
1c26e8429af7 transplanted to 151e5c6e10dd 092f00549594 transplanted to 7c9b60624b04 spec version: http://hg.netbeans.org/releases/rev/db29546cb780
Integrated into 'main-golden', will be available in build *201105200400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/24c2db60dcad User: Vladimir Voskresensky <vv159170@netbeans.org> Log: fixed #197975 - Projects from 6.9 do not build because of invalid $(MAKE) reference (transplanted from 1c26e8429af702ca65d3c9c70cc233ba09f61863)
verified in patch1 candidate
Should be added to test scenarios.