Bug 527913 - CDT managed build failed first time after put project under Source Control
Summary: CDT managed build failed first time after put project under Source Control
Status: NEW
Alias: None
Product: CDT
Classification: Tools
Component: cdt-build-managed (show other bugs)
Version: 9.2.0   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Jonah Graham CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-11-29 07:26 EST by Stanislav Perepelitsa CLA
Modified: 2020-09-04 15:17 EDT (History)
1 user (show)

See Also:


Attachments
Testcase project zipped (4.35 KB, application/octet-stream)
2017-11-29 07:43 EST, Stanislav Perepelitsa CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Stanislav Perepelitsa CLA 2017-11-29 07:26:39 EST
This problem reproduced for any C/C++ project with cross GNU toolchain.
Steps to reproduce positively or negatively in 3 cases:

1) Case_1 (positive)

- Open the project from zip; 
- right-click on project -> Team -> Share… -> Create new repository -> Finish; 
- Build project for the first time -> error; 

Console output: 
 make all 
Building file: ../src/main.c
Invoking: Cross GCC Compiler
gcc -I"D:/test/inc" -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"src/main.d" -MT"src/main.o" -o "src/main.o" "../src/main.c"
../src/main.c:2:16: fatal error: my.h: No such file or directory
#include "my.h"
                ^
compilation terminated.
make: *** [src/subdir.mk:20: src/main.o] Error 1

- Try to Build one more time:

Console output:
make all 
Building file: ../src/main.c
Invoking: Cross GCC Compiler
gcc -I"C:/git_new/test/inc" -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"src/main.d" -MT"src/main.o" -o "src/main.o" "../src/main.c"
Finished building: ../src/main.c

Building target: test
Invoking: Cross GCC Linker
gcc  -o "test"  ./src/main.o   
Finished building target: test

2) Case_2 (negative)
- Open the project from zip; 
- BUILD project; 
- right-click on project -> Team -> Share… -> Create new repository -> Finish; - Build project for the first time -> build finished successfully; 

Console output: make all 
make: Nothing to be done for 'all'.

3) Case_3 (negative)

 - Open the project from zip; 
 - right-click on project -> Team -> Share… -> Check “Use or create repository in parent folder of project” -> Create repository -> Finish; 
- Build project for the first time -> build finished successfully; 

Console output:
make all 
Building file: ../src/main.c
Invoking: Cross GCC Compiler
gcc -I"D:/test/inc" -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"src/main.d" -MT"src/main.o" -o "src/main.o" "../src/main.c"
Finished building: ../src/main.c

Building target: test
Invoking: Cross GCC Linker
gcc  -o "test"  ./src/main.o   
Finished building target: test
Comment 1 Stanislav Perepelitsa CLA 2017-11-29 07:43:34 EST
Created attachment 271694 [details]
Testcase project zipped