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 242437 - Problem recognizing GCC-TDM-64 tools
Summary: Problem recognizing GCC-TDM-64 tools
Status: VERIFIED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Toolchain (show other bugs)
Version: 8.0
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Alexander Simon
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-02-28 00:04 UTC by MackSix
Modified: 2014-04-24 02:12 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Screenshot A (32.16 KB, image/png)
2014-02-28 00:05 UTC, MackSix
Details
Screenshot B (77.23 KB, image/png)
2014-02-28 00:05 UTC, MackSix
Details
Screenshot C (214.56 KB, image/png)
2014-02-28 00:05 UTC, MackSix
Details
Screenshot D (82.71 KB, image/png)
2014-02-28 00:06 UTC, MackSix
Details
Screenshot E (26.28 KB, image/png)
2014-02-28 00:08 UTC, MackSix
Details

Note You need to log in before you can comment on or make changes to this bug.
Description MackSix 2014-02-28 00:04:38 UTC
Product Version: NetBeans IDE 8.0 RC1 (Build 201402242200)
Java: 1.8.0; Java HotSpot(TM) 64-Bit Server VM 25.0-b69
Runtime: Java(TM) SE Runtime Environment 1.8.0-b129
System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)

1. Setup MinGW on system along with MSYS and add bin directories to System path. Verify the path is correct.
2. Start NetBeans with new userdir & cachedir.
3. Goto Tools->Options->C/C++ and activate.
4. After activation, MinGW and MSYS make.exe is found through System path automatically and shows in the Build Tools tab. Projects build and run OK. 
5. Shutdown NetBeans
6. Install latest GCC-TDM-64 from http://tdm-gcc.tdragon.net/download
7. Choose _not_ to install in System path automatically. 
8. Change System path to previous MinGW to the TDM-GCC-64 bin directory.
9. Verify the changes to the System path are correct and then start NetBeans.
10. Goto Tools->Options->C/C++->Build Tools tab and click the Add button to add a new tool set. 
11. Browse to the GCC-TDM-64 bin folder and choose it.
12. Notice the tools are not detected and unknown. (See screenshot A)
13. Manually choose "GNU MinGW TDM" from "Tool Collection Family." and click OK.
14 Notice only gdm.exe is recognized from the GCC-TDM-64 bin directory. MSYS make.exe is found and recognized OK. (See screenshot B)
15. Manually add g++.exe, gcc.exe and as.exe. Click Apply or OK.
16. Change the build tools for a project to the newly added GCC-TDM-64 tool set.
17. Try to clean & build project and it works, but source files may show errors due to not recognizing any of the standard C/C++ libraries. (See screenshot C)
18. Restarting windows may fix errors in step 17.
19. Shutdown NetBeans and delete userdir and reactivate C/C++.
20. Notice GCC-TDM-64 is automatically detected and all tool chain fields are populated and it works OK. (See screenshot D)

Expected: GCC-TDM-64 should be detected when added in step 8 trough 12.
Comment 1 MackSix 2014-02-28 00:05:24 UTC
Created attachment 145649 [details]
Screenshot A
Comment 2 MackSix 2014-02-28 00:05:40 UTC
Created attachment 145650 [details]
Screenshot B
Comment 3 MackSix 2014-02-28 00:05:57 UTC
Created attachment 145651 [details]
Screenshot C
Comment 4 MackSix 2014-02-28 00:06:15 UTC
Created attachment 145652 [details]
Screenshot D
Comment 5 MackSix 2014-02-28 00:08:04 UTC
Created attachment 145653 [details]
Screenshot E

Screenshot E. Tools are recognized as tdm64 after deleting userdir.
Comment 6 Alexander Simon 2014-02-28 08:23:29 UTC
fixed step 12 in change set:
http://hg.netbeans.org/cnd-main/rev/189606f0dea0
Comment 7 Alexander Simon 2014-02-28 08:25:28 UTC
Hi MackSix,

Thank you for detailed steps.
It seems the 17 is a consequence of not finished yet at 15 installation process of 6.
I cannot reproduce the bug at 17 step.
Step 10 should be: "Goto Tools->Options->C/C++->Build Tools tab and click the Restore Defaults button".

Alexander
Comment 8 Quality Engineering 2014-03-01 06:15:25 UTC
Integrated into 'main-silver', will be available in build *201403010001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/189606f0dea0
User: Alexander Simon <alexvsimon@netbeans.org>
Log: fixed Bug #242437 - Problem recognizing GCC-TDM-64 tools
- fixed step 12
Comment 9 MackSix 2014-03-05 00:39:18 UTC
verified fixed:

Product Version: NetBeans IDE Dev (Build 201403040001)
Java: 1.8.0; Java HotSpot(TM) 64-Bit Server VM 25.0-b69
Runtime: Java(TM) SE Runtime Environment 1.8.0-b129
System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)
Comment 10 Quality Engineering 2014-04-24 02:12:21 UTC
Integrated into 'releases/release80', will be available in build *201404240045* or newer. Wait for official and publicly available build.

Changeset: http://hg.netbeans.org/releases/rev/125607a61ce3
User: Alexander Simon <alexvsimon@netbeans.org>
Log: fixed Bug #242437 - Problem recognizing GCC-TDM-64 tools
- fixed step 12
(transplanted from 189606f0dea070b95b1c0f8c2b8177ffdec29d0f)