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 235349 - No rule to make target for C++ DLLs using absolute output path
Summary: No rule to make target for C++ DLLs using absolute output path
Status: RESOLVED WORKSFORME
Alias: None
Product: cnd
Classification: Unclassified
Component: Toolchain (show other bugs)
Version: 7.3.1
Hardware: PC Windows 8
: P2 normal (vote)
Assignee: Alexander Simon
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-08-31 16:53 UTC by jogshy
Modified: 2013-09-02 15:48 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 jogshy 2013-08-31 16:53:02 UTC
I'm trying to create a very simple DLL using NetBeans 7.3.1, C++(with MinGW64 TDM and G++ 4.7.1).

When I change the Linker->General->Output to an absolute path like "d:/kaka/libCppDynamicLibrary_1.dll" or "d:\kaka\libCppDynamicLibrary_1.dll" I get the following errors:



"d:/MinGW64/bin/make" -f nbproject/Makefile-Debug.mk QMAKE= SUBPROJECTS= .clean-conf
make[1]: Entering directory `D:/kaka/CppDynamicLibrary_1'
rm -f -r build/Debug
rm -f /d/kaka/libCppDynamicLibrary_1.dll
make[1]: Leaving directory `D:/kaka/CppDynamicLibrary_1'


CLEAN SUCCESSFUL (total time: 254ms)

"d:/MinGW64/bin/make" -f nbproject/Makefile-Debug.mk QMAKE= SUBPROJECTS= .build-conf
make[1]: Entering directory `D:/kaka/CppDynamicLibrary_1'
"d:/MinGW64/bin/make"  -f nbproject/Makefile-Debug.mk /d/kaka/libCppDynamicLibrary_1.dll
make[2]: Entering directory `D:/kaka/CppDynamicLibrary_1'
make[2]: Leaving directory `D:/kaka/CppDynamicLibrary_1'
make[2]: *** No rule to make target `d:/kaka/libCppDynamicLibrary_1.dll'.  Stop.
make[1]: *** [.build-conf] Error 2
make[1]: Leaving directory `D:/kaka/CppDynamicLibrary_1'
make: *** [.build-impl] Error 2


However, If I keep the Linker->General->Output as default:
${CND_DISTDIR}/${CND_CONF}/${CND_PLATFORM}libCppDynamicLibrary_1.${CND_DLIB_EXT} 

works ok.
So.. seems there is a bug when the user tries to specify an absolute path to output the DLLs.

Please, fix it. 
Thanks.
Comment 1 Alexander Simon 2013-09-02 08:45:20 UTC
Use MinGW style paths:
/d/kaka/libCppDynamicLibrary_1.dll
Comment 2 jogshy 2013-09-02 15:37:18 UTC
(In reply to Alexander Simon from comment #1)
> Use MinGW style paths:
> /d/kaka/libCppDynamicLibrary_1.dll

Neither works:

"d:/MinGW64/bin/make" -f nbproject/Makefile-Debug.mk QMAKE= SUBPROJECTS= .clean-conf
make[1]: Entering directory `D:/kaka/CppDynamicLibrary_1'
rm -f -r build/Debug
rm -f /d/kaka/libCppDynamicLibrary_1.dll
make[1]: Leaving directory `D:/kaka/CppDynamicLibrary_1'


CLEAN SUCCESSFUL (total time: 251ms)

"d:/MinGW64/bin/make" -f nbproject/Makefile-Debug.mk QMAKE= SUBPROJECTS= .build-conf
make[1]: Entering directory `D:/kaka/CppDynamicLibrary_1'
"d:/MinGW64/bin/make"  -f nbproject/Makefile-Debug.mk /d/kaka/libCppDynamicLibrary_1.dll
make[2]: Entering directory `D:/kaka/CppDynamicLibrary_1'
make[2]: Leaving directory `D:/kaka/CppDynamicLibrary_1'
make[2]: *** No rule to make target `d:/kaka/libCppDynamicLibrary_1.dll'.  Stop.
make[1]: *** [.build-conf] Error 2
make[1]: Leaving directory `D:/kaka/CppDynamicLibrary_1'
make: *** [.build-impl] Error 2


BUILD FAILED (exit value 2, total time: 303ms)
Comment 3 Alexander Simon 2013-09-02 15:48:35 UTC
Did you install msys?

Examlpe of build log in NB 7.4:

"/C/msys/1.0/bin/make.exe" -f nbproject/Makefile-Debug.mk QMAKE= SUBPROJECTS= .clean-conf
make.exe[1]: Entering directory `/c/Users/alex/Documents/NetBeansProjects/CppDynamicLibrary_2'
rm -f -r build/Debug
rm -f /c/Users/alex/qq.dll
make.exe[1]: Leaving directory `/c/Users/alex/Documents/NetBeansProjects/CppDynamicLibrary_2'


CLEAN SUCCESSFUL (total time: 2s)

"/C/msys/1.0/bin/make.exe" -f nbproject/Makefile-Debug.mk QMAKE= SUBPROJECTS= .build-conf
make.exe[1]: Entering directory `/c/Users/alex/Documents/NetBeansProjects/CppDynamicLibrary_2'
"/C/msys/1.0/bin/make.exe"  -f nbproject/Makefile-Debug.mk /c/Users/alex/qq.dll
make.exe[2]: Entering directory `/c/Users/alex/Documents/NetBeansProjects/CppDynamicLibrary_2'
mkdir -p build/Debug/MinGW-Windows
rm -f build/Debug/MinGW-Windows/newfile.o.d
gcc    -c -g  -MMD -MP -MF build/Debug/MinGW-Windows/newfile.o.d -o build/Debug/MinGW-Windows/newfile.o newfile.c
mkdir -p /c/Users/alex
gcc     -o /c/Users/alex/qq.dll build/Debug/MinGW-Windows/newfile.o  -shared
make.exe[2]: Leaving directory `/c/Users/alex/Documents/NetBeansProjects/CppDynamicLibrary_2'
make.exe[1]: Leaving directory `/c/Users/alex/Documents/NetBeansProjects/CppDynamicLibrary_2'


BUILD SUCCESSFUL (total time: 4s)