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.
NetBeans can't build project if it was created in NetBeans 6.5 (Sun Studio 12.1) Scenario: - Launch NetBeans 6.5 - Create C/C++ Application project newmain.c file - Close NetBeans - Launch NetBeans 7.0 - Open project - Build it ===> "/usr/bin/gmake" -f nbproject/Makefile-Debug.mk QMAKE= SUBPROJECTS= .build-conf gmake[1]: Entering directory `/export/NB/Application_1' "/usr/bin/gmake" -f nbproject/Makefile-Debug.mk dist/Debug/GNU-Linux-x86/application_1 gmake[2]: Entering directory `/export/NB/Application_1' mkdir -p /Debug/GNU-Linux-x86 gmake[2]: Leaving directory `/export/NB/Application_1' gmake[1]: Leaving directory `/export/NB/Application_1' mkdir: cannot create directory `/Debug': Permission denied gmake[2]: *** [/Debug/GNU-Linux-x86/newmain.o] Error 1 gmake[1]: *** [.build-conf] Error 2 gmake: *** [.build-impl] Error 2 BUILD FAILED (exit value 2, total time: 77ms)
Workaround. Into Makefile add this line: # include project make variables include nbproject/Makefile-variables.mk
It is probably a regression caused by the changes done around makefile variables. 6.9.1 works fine with these projects even include nbproject/Makefile-variables.mk is not inthe main makefile. I think fix is to include CND_BUILDDIR=build in generated makefiles. It will make the project not depend on the include.
I should say: ...not depend on the include from Makefile ^^^^^^^^^^^
Fixed: changeset: 185202:1c4721f1e793 tag: tip user: Thomas Preisler <thp@netbeans.org> date: Mon Dec 20 15:30:17 2010 -0800 summary: #193628 - NetBeans can't build project if it was created in NetBeans 6.5
Integrated into 'main-golden', will be available in build *201012230001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/1c4721f1e793 User: Thomas Preisler <thp@netbeans.org> Log: #193628 - NetBeans can't build project if it was created in NetBeans 6.5