Bug 158236 - Compiler errors are not shown in output window
Summary: Compiler errors are not shown in output window
Status: RESOLVED FIXED
Alias: None
Product: kdevelop
Classification: Applications
Component: Output Views (show other bugs)
Version: 3.5.1
Platform: unspecified Linux
: VHI critical
Target Milestone: ---
Assignee: Andreas Pakulat
URL:
Keywords:
: 158518 158531 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-02-22 19:29 UTC by Erich Runkalla
Modified: 2008-02-28 19:45 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Erich Runkalla 2008-02-22 19:29:31 UTC
Version:           3.5.1 (using 3.5.5, Debian Package 4:3.5.5a.dfsg.1-8etch1 (4.0))
Compiler:          Target: i486-linux-gnu
OS:                Linux (i686) release 2.6.18-6-686

The compiler errors are not shown in the output window.
In version 3.3.5 ist had worked properly, but in this version no error output is shown.

here is an example:
make all-recursive
Making all in src
if g++ -DHAVE_CONFIG_H -I. -I/home/martin/test1/src -I.. -g3 -MT test1.o -MD -MP -MF ".deps/test1.Tpo" -c -o test1.o /home/martin/test1/src/test1.cpp; then mv -f ".deps/test1.Tpo" ".deps/test1.Po"; else rm -f ".deps/test1.Tpo"; exit 1; fi
/home/martin/test1/src/test1.cpp: In function 'int main(int, char**)':
<br />
<br />
<br />
<br />
<br />
*** Beendet mit Status: 2 ***


If you execute the make in a terminal window the output is:


Making all in src
make[2]: Entering directory `/home/martin/eib/debug/src'
if g++ -DHAVE_CONFIG_H -I. -I/home/martin/eib/src -I..     -O0 -g3 -MT main.o -MD -MP -MF ".deps/main.Tpo" -c -o main.o /home/martin/eib/src/main.cpp; \
        then mv -f ".deps/main.Tpo" ".deps/main.Po"; else rm -f ".deps/main.Tpo"; exit 1; fi
/home/martin/eib/src/main.cpp: In function ‘int main(int, char**)’:
/home/martin/eib/src/main.cpp:54: error: ‘sHomeDir’ was not declared in this scope
/home/martin/eib/src/main.cpp:56: error: ‘sHomeDir’ was not declared in this scope
make[2]: *** [main.o] Fehler 1
make[2]: Leaving directory `/home/martin/eib/debug/src'
make[1]: *** [all-recursive] Fehler 1
make[1]: Leaving directory `/home/martin/eib/debug'
make: *** [all] Fehler 2
Comment 1 Andreas Pakulat 2008-02-22 21:04:33 UTC
You're the second to report this, however I can't reproduce this problem. So its almost impossible to fix this.

Apparently the error output from make doesn't reach the output plugin. I did some changes in that area before the 3.5.1 release, but as I said it all works fine over here.
Comment 2 Gabriele Menna 2008-02-26 18:21:06 UTC
I'm having the very same problem!

g++ -c -pipe -g -D_REENTRANT -Wall -W -DQT_SHARED -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I. -I. -o main.o main.cpp
main.cpp: In function 'int main(int, char**)':
<br />
<br />
make[1]: *** [main.o] Error 1
<br />
*** Exited with status: 2 ***

Kdevelop version: 3.5.1, kubuntu package 4:3.5.1-0; Kde version: 3.5.9.
Comment 3 Andreas Pakulat 2008-02-27 17:28:22 UTC
Finally I can reproduce this, so a fix shouldn't take long.
Comment 4 Andreas Pakulat 2008-02-27 22:26:05 UTC
SVN commit 780036 by apaku:

I hate it when I do such stupid, stupid mistakes and can't fix them before anybody notices...
This fixes empty lines in the build outputview.
BUG:158236


 M  +7 -4      makewidget.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=780036
Comment 5 Andreas Pakulat 2008-02-27 22:26:30 UTC
*** Bug 158518 has been marked as a duplicate of this bug. ***
Comment 6 Pino Toscano 2008-02-28 11:19:09 UTC
*** Bug 158531 has been marked as a duplicate of this bug. ***
Comment 7 Andreas Kofler 2008-02-28 12:03:53 UTC
I've tried to compile kdevelop with the patched makewidget.cpp, 
but the result is always the same, getting missing lines in the output.

~ andi
Comment 8 Andreas Pakulat 2008-02-28 18:51:50 UTC
Andreas I need more information. Especially:

Steps to repoduce, preferably with one of the existing application templates.

What error you're missing exactly - is it stderr or stdout? In which tab (I guess the Messages one for build messages, but I'd like to be sure).

Also did you do a make install after the make? Do you have a system-version installed (i.e. via package management)?

I can't reproduce the problem anymore, with any of the projects I have here and I could until I added the fix.
Comment 9 Andreas Kofler 2008-02-28 19:45:58 UTC
Hi,

I'm sorry, it was my mistake.
I didn't install the patched version, I just started the fresh compiled 
version out of the source-tree. Consequently the buggy installed modules were 
loaded. After installing it worked like expected.

Thanks for your help,
~ andi


On Thursday 28 Feb 2008, Andreas Pakulat wrote:
[bugs.kde.org quoted mail]