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 255091 - Verifiy custom mode (makefile)
Summary: Verifiy custom mode (makefile)
Status: RESOLVED INCOMPLETE
Alias: None
Product: cnd
Classification: Unclassified
Component: Project Discovery (show other bugs)
Version: 8.1
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Alexander Simon
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-09-08 12:43 UTC by jaska_tl
Modified: 2015-09-09 08:46 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Afterrebootexception (12.51 KB, application/octet-stream)
2015-09-08 12:43 UTC, jaska_tl
Details
Message log (143.93 KB, application/octet-stream)
2015-09-08 17:18 UTC, jaska_tl
Details
More logs - uigesture (338.12 KB, application/octet-stream)
2015-09-08 17:22 UTC, jaska_tl
Details
metrics (227.95 KB, application/octet-stream)
2015-09-08 17:27 UTC, jaska_tl
Details
Project (2.29 MB, application/octet-stream)
2015-09-08 18:07 UTC, jaska_tl
Details

Note You need to log in before you can comment on or make changes to this bug.
Description jaska_tl 2015-09-08 12:43:04 UTC
Created attachment 155962 [details]
Afterrebootexception

Link: http://services.netbeans.org/synergy/client/app/#/case/3815/suite/1913

Created test as it was on testcase. While building Netbeans goes out of memory - "java.long.OutOfMemoryError"
Comment 1 Alexander Simon 2015-09-08 13:54:13 UTC
Please, provide more information:
- IDE log
- heap dump
- attachment in readable format
Comment 2 jaska_tl 2015-09-08 17:18:00 UTC
Created attachment 155976 [details]
Message log

Excluded from my antivirus this pty file what gives on error on log...
Comment 3 jaska_tl 2015-09-08 17:20:32 UTC
This is hole test case where this error came - have to try to include also memory dump, why it wasn't included here was because of filesize.... too big

Verifiy custom mode (configure script) Test Case    Report issue ↗
Steps:
Download litesql's sources from http://wiki.netbeans.org/wiki/images/b/b5/TS_67_CNDlitesql-src-0.3.15.tar.gz
Unpack this file
New Project > C/C++ > C/C++ Project From Existing Code
Add path to litesql's sources into 'Specify the folder that contains existing sources' text field
Select Custom mode. Press Next button
Select 'Using the makefile generated by the 'configure' script' mode. Press Next button
Press Next button 3 times. Press Finish button
Result: Build successful, "Configuring project for code assistance was successful" balloon appears and project hasn't unresolved #include (Call context menu on project. 'Code Assistance > Failed #include/#error Directives...' menu item should be disabled.).
Comment 4 jaska_tl 2015-09-08 17:22:22 UTC
Created attachment 155977 [details]
More logs - uigesture
Comment 5 jaska_tl 2015-09-08 17:27:26 UTC
Created attachment 155978 [details]
metrics
Comment 6 jaska_tl 2015-09-08 17:28:17 UTC
Heapdump is 1,02 GB so i can't include it to here....
Comment 7 Alexander Simon 2015-09-08 17:50:02 UTC
Please, attach zipped nbproject folder from your project
It looks very strange.
Comment 8 jaska_tl 2015-09-08 18:07:25 UTC
Created attachment 155981 [details]
Project

This is project where this error came
Comment 9 Alexander Simon 2015-09-08 19:35:18 UTC
Hi,
Your project has two source roots. Root C:/Tools/cygwin/usr/include should not be in projects roots. I cannot believe that IDE added C:/Tools/cygwin/usr/include source root at project creation time.
The root C:/Tools/cygwin/usr/include contains more then 13K files and all marked as "include in parse". Result is IDE need at least 1.5G heap.

The second thing is: it seems you did not build project while creating project.

Alexander
Comment 10 jaska_tl 2015-09-08 20:26:59 UTC
OK... now I got it.. because 1. test case went OK... have to look project properties again....
Comment 11 jaska_tl 2015-09-09 06:57:51 UTC
One problem there is still. In configuration sourcepath is MAKEFILEe...
    <logicalFolder name="ExternalFiles"
                   displayName="Important Files"
                   projectFiles="false"
                   kind="IMPORTANT_FILES_FOLDER">
      <itemPath>Makefile</itemPath>
      <itemPath>configure</itemPath>
      <itemPath>nbproject/private/launcher.properties</itemPath>
    </logicalFolder>

When there is already file Makefile, this leads to error and build newer finish, if you don't add folder MAKEFILE.... as you can see from log:
C:/Tools/cmake-3.3.0/bin/cmake.exe -f Makefile
CMake Error: The source directory "D:/Download/litesql-src-0.3.15/Makefile" is a file, not a directory.
Specify --help for usage, or press the help button on the CMake GUI.
Comment 12 Alexander Simon 2015-09-09 08:46:58 UTC
(In reply to jaska_tl from comment #11)
> One problem there is still. In configuration sourcepath is MAKEFILEe...
>     <logicalFolder name="ExternalFiles"
>                    displayName="Important Files"
>                    projectFiles="false"
>                    kind="IMPORTANT_FILES_FOLDER">
>       <itemPath>Makefile</itemPath>
>       <itemPath>configure</itemPath>
>       <itemPath>nbproject/private/launcher.properties</itemPath>
>     </logicalFolder>
> 
> When there is already file Makefile, this leads to error and build newer
> finish, if you don't add folder MAKEFILE.... as you can see from log:
> C:/Tools/cmake-3.3.0/bin/cmake.exe -f Makefile
> CMake Error: The source directory "D:/Download/litesql-src-0.3.15/Makefile"
> is a file, not a directory.
> Specify --help for usage, or press the help button on the CMake GUI.

You have wrong tool collection or you mixed up make and cmake.
make is a program which interpret makefile and produce binary(ies).
cmake is a program which compile CMakeLists.txt and produce makefile.