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.

Bug 193628 - NetBeans can't build project if it was created in NetBeans 6.5
Summary: NetBeans can't build project if it was created in NetBeans 6.5
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Project (show other bugs)
Version: 7.0
Hardware: PC All
: P2 normal (vote)
Assignee: issues@cnd
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-20 08:37 UTC by soldatov
Modified: 2010-12-23 07:07 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description soldatov 2010-12-20 08:37:05 UTC
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)
Comment 1 soldatov 2010-12-20 08:38:51 UTC
Workaround. Into Makefile add this line:

# include project make variables
include nbproject/Makefile-variables.mk
Comment 2 Thomas Preisler 2010-12-20 23:18:00 UTC
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.
Comment 3 Thomas Preisler 2010-12-20 23:41:01 UTC
I should say: ...not depend on the include from Makefile
                                                                           ^^^^^^^^^^^
Comment 4 Thomas Preisler 2010-12-20 23:54:12 UTC
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
Comment 5 Quality Engineering 2010-12-23 07:07:27 UTC
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