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 232574 - Relative path for generated output file can not be found by C compiler
Summary: Relative path for generated output file can not be found by C compiler
Status: RESOLVED INCOMPLETE
Alias: None
Product: cnd
Classification: Unclassified
Component: Project (show other bugs)
Version: 7.3.1
Hardware: PC Windows 7 x64
: P1 normal (vote)
Assignee: issues@cnd
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-07-11 16:08 UTC by agochee
Modified: 2013-07-11 17:18 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 agochee 2013-07-11 16:08:11 UTC
When setting up the Netbean's JNIDemo for 64 bit(ONLY; 32 bit works fine), the internal generated files(
                "build\Debug\Cygwin_4.x-Windows\_ext\2033191462\JNIDemo.o.d"
                "build\Debug\Cygwin_4.x-Windows\_ext\2033191462\JNIDemo.o")

Can not be created or used by the 64 bit C compiler due to the relative path:

                    --------------------------

Generated by Netbeans(Doesn't work) during 'Clean and Build' action:

x86_64-w64-mingw32-gcc -m64   -c -g -I/cygdrive/C/jdk1.7.0_21_64bit/include -I/cygdrive/C/jdk1.7.0_21_64bit/include/win32 -I/cygdrive/C/jdk1.7.0_21_64bit/include/win32/bridge  -MMD -MP -MF build/Debug/Cygwin_4.x-Windows/_ext/2033191462/JNIDemo.o.d -o build/Debug/Cygwin_4.x-Windows/_ext/2033191462/JNIDemo.o /cygdrive/C/NetBeansProjects/JNIDemoCdl/JNIDemo.c
x86_64-w64-mingw32-gcc: error: spawn: No such file or directory
nbproject/Makefile-Debug.mk:66: recipe for target `build/Debug/Cygwin_4.x-Windows/_ext/2033191462/JNIDemo.o' failed
make[2]: *** [build/Debug/Cygwin_4.x-Windows/_ext/2033191462/JNIDemo.o] Error 1


Generated manually with absolute path output files(Works!):

C:\NetBeansProjects>x86_64-w64-mingw32-gcc -m64   -c -g -I/cygdrive/C/jdk1.7.0_21_64bit/include -I/cygdrive/C/jdk1.7.0_2
1_64bit/include/win32 -I/cygdrive/C/jdk1.7.0_21_64bit/include/win32/bridge  -MMD -MP -MF /cygdrive/C/NetBeansProjects/JN
IDemoCdl/build/Debug/Cygwin_4.x-Windows/_ext/2033191462/JNIDemo.o.d -o /cygdrive/C/NetBeansProjects/JNIDemoCdl/build/Deb
ug/Cygwin_4.x-Windows/_ext/2033191462/JNIDemo.o /cygdrive/C/NetBeansProjects/JNIDemoCdl/JNIDemo.c


After working code is executed, I execute a build in netbeans and it executes properly.
Comment 1 agochee 2013-07-11 16:31:10 UTC
Correction:  NOT: After working code is executed, I execute a build in netbeans 
                  and it executes properly.

             CORRECT: After working command has executed, I execute a 'build' in 
                      netbeans and it executes properly.
Comment 2 Alexander Simon 2013-07-11 17:18:24 UTC
Please, provide:
- NB info (Help->About)
- version of tool collection (Tools->Options->C/C++->Build Tools->Versions) and screen shot of tool collection
- full build log

By the way, I hardly believe that compiler does not understand relative paths. Probably bug in compiler?