Author Topic: With Custom makefiles, "Build workspace" option throws error....  (Read 3441 times)

Prashanth

  • Guest
With Custom makefiles, "Build workspace" option throws error....
« on: February 03, 2008, 09:18:26 am »
Hi,
I am new to C::B.

Platform: Linux (Debian)
Build: SVN 4853 (debian package from http://jens.lody.name/debian/)

Till now I have been using VIM for my development. I am planning to move to CB.... I am impressed by the features of C::B.... Hats off to the team......

The application has a set of custom makefiles..... I configured C::B to use custom makefiles...
When I select the project, right click and select "Build" C::B correctly picks the custom makefile and compiles without any error.

When I do "Build -> Build Workspace" it first uses the custom makefile and then tries to compile the files again using the compiler directly which throws error....... :(

Example log from "Build Log window"
===================================================================================
make[1]: Entering directory `/tmp/alps/src/abstractionLayer/linux64'
    alpsDateTime.cpp
g++ -fPIC -Wall -pthread -g -I/home/prashanth/new/src/ -I/home/prashanth/new/src/abstractionLayer/linux64 -I/home/prashanth/new/3rdParty//include  -c -o /home/prashanth/new/build/objs/alpsDateTime.o alpsDateTime.cpp
    alpsRandom.cpp
g++ -fPIC -Wall -pthread -g -I/home/prashanth/new/src/ -I/home/prashanth/new/src/abstractionLayer/linux64 -I/home/prashanth/new/3rdParty//include  -c -o /home/prashanth/new/build/objs/alpsRandom.o alpsRandom.cpp
    alpsThreadCond.cpp
g++ -fPIC -Wall -pthread -g -I/home/prashanth/new/src/ -I/home/prashanth/new/src/abstractionLayer/linux64 -I/home/prashanth/new/3rdParty//include  -c -o /home/prashanth/new/build/objs/alpsThreadCond.o alpsThreadCond.cpp
    alpsThreadMutex.cpp
g++ -fPIC -Wall -pthread -g -I/home/prashanth/new/src/ -I/home/prashanth/new/src/abstractionLayer/linux64 -I/home/prashanth/new/3rdParty//include  -c -o /home/prashanth/new/build/objs/alpsThreadMutex.o alpsThreadMutex.cpp
    alpsOsThread.cpp
g++ -fPIC -Wall -pthread -g -I/home/prashanth/new/src/ -I/home/prashanth/new/src/abstractionLayer/linux64 -I/home/prashanth/new/3rdParty//include  -c -o /home/prashanth/new/build/objs/alpsOsThread.o alpsOsThread.cpp
    alpsFile.cpp
g++ -fPIC -Wall -pthread -g -I/home/prashanth/new/src/ -I/home/prashanth/new/src/abstractionLayer/linux64 -I/home/prashanth/new/3rdParty//include  -c -o /home/prashanth/new/build/objs/alpsFile.o alpsFile.cpp
    alpsDir.cpp
g++ -fPIC -Wall -pthread -g -I/home/prashanth/new/src/ -I/home/prashanth/new/src/abstractionLayer/linux64 -I/home/prashanth/new/3rdParty//include  -c -o /home/prashanth/new/build/objs/alpsDir.o alpsDir.cpp
    alpsTransport.cpp
g++ -fPIC -Wall -pthread -g -I/home/prashanth/new/src/ -I/home/prashanth/new/src/abstractionLayer/linux64 -I/home/prashanth/new/3rdParty//include  -c -o /home/prashanth/new/build/objs/alpsTransport.o alpsTransport.cpp
   ++++Creating /home/prashanth/new/build/libs/libplatform.so
g++ -o /home/prashanth/new/build/libs/libplatform.so /home/prashanth/new/build/objs/alpsDateTime.o /home/prashanth/new/build/objs/alpsRandom.o /home/prashanth/new/build/objs/alpsThreadCond.o /home/prashanth/new/build/objs/alpsThreadMutex.o /home/prashanth/new/build/objs/alpsOsThread.o /home/prashanth/new/build/objs/alpsFile.o /home/prashanth/new/build/objs/alpsDir.o /home/prashanth/new/build/objs/alpsTransport.o -L/home/prashanth/new/build/libs/ -L/home/prashanth/new/3rdParty//libs  -shared -Wl,-soname,libplatform.so 
make[1]: Leaving directory `/tmp/alps/src/abstractionLayer/linux64'


-------------- Build: all in al ---------------

g++      -c /tmp/alps/src/abstractionLayer/linux64/alpsDateTime.cpp -o obj/Debug/linux64/alpsDateTime.o
/tmp/alps/src/abstractionLayer/linux64/alpsDateTime.cpp:7:43: error: abstractionLayer/alpsDateTime.h: No such file or directory
/tmp/alps/src/abstractionLayer/linux64/alpsDateTime.cpp:11: error: ‘ALPS_UINT64’ does not name a type
/tmp/alps/src/abstractionLayer/linux64/alpsDateTime.cpp:16: error: ‘ALPS_UINT64’ does not name a type
/tmp/alps/src/abstractionLayer/linux64/alpsDateTime.cpp:30: error: ‘ALPS_UINT64’ does not name a type
/tmp/alps/src/abstractionLayer/linux64/alpsDateTime.cpp:51: error: variable or field ‘alpsIntervalTimer’ declared void
/tmp/alps/src/abstractionLayer/linux64/alpsDateTime.cpp:51: error: ‘ALPS_UINT32’ was not declared in this scope
/tmp/alps/src/abstractionLayer/linux64/alpsDateTime.cpp:52: error: expected ‘,’ or ‘;’ before ‘{’ token
Process terminated with status 1 (0 minutes, 1 seconds)

7 errors, 0 warnings
===================================================================================
Blue : Is the custom Make file commands
Red : Is the direct compiler invocation by C::B!!!

I am sure of missing some setting...... I google'd but couldn't find anything.... :( Any pointers to solve this issue would be of help.....

Thanks,
Prashanth
« Last Edit: February 03, 2008, 09:58:24 am by Prashanth »

Offline Biplab

  • Developer
  • Lives here!
  • *****
  • Posts: 1874
    • Biplab's Blog
Re: With Custom makefiles, "Build workspace" option throws error....
« Reply #1 on: February 03, 2008, 02:05:14 pm »
Please file a bug report at Berlios, possibly with a sample test case to reproduce this bug.

Quote
http://developer.berlios.de/bugs/?group_id=5358

Best Regards,

Biplab
Be a part of the solution, not a part of the problem.

Prashanth

  • Guest
Re: With Custom makefiles, "Build workspace" option throws error....
« Reply #2 on: February 03, 2008, 07:01:47 pm »
Thanks a lot Biplab.... Have submitted a bug with ID Bug #13070.....