Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Confused about qt-core (debug) emerge
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
cova
n00b
n00b


Joined: 12 Apr 2010
Posts: 26

PostPosted: Mon Apr 22, 2013 11:53 am    Post subject: Confused about qt-core (debug) emerge Reply with quote

Hi all,
I have a problem with qt, I fear answered before bu I'm unable to sort it out even browsing thru the forums.
Basically, I've set "debug" flag in order to obtain some data about crashes that I'm exepriencing in latest kde (4.10.2).

Code:

cat /etc/portage/package.env/debug
kde-base/kdelibs debug.conf
dev-qt/qtdeclarative debug.conf
dev-qt/qtscript debug.conf
dev-qt/qtcore debug.conf
dev-qt/qtdbus debug.conf


Code:

cat /etc/portage/env/debug.conf
CFLAGS="-march=native -mtune=native -O2 -pipe -ggdb"
CXXFLAGS="${CFLAGS}"
FEATURES="nostrip"
USE="debug"


now emerge complains with messages like this:
Code:

dev-qt/qtcore:4

  (dev-qt/qtcore-4.8.4-r5::gentoo, ebuild scheduled for merge) pulled in by
    ~dev-qt/qtcore-4.8.4[aqua=,debug=,qt3support] required by (dev-qt/qt3support-4.8.4::gentoo, ebuild scheduled for merge)
    ~dev-qt/qtcore-4.8.4[aqua=,debug=,glib=,qt3support=] required by (dev-qt/qtgui-4.8.4-r1::gentoo, ebuild scheduled for merge)
    ~dev-qt/qtcore-4.8.4[aqua=,debug=] required by (dev-qt/qtscript-4.8.4::gentoo, ebuild scheduled for merge)
    ~dev-qt/qtcore-4.8.4[aqua=,debug=,qt3support=] required by (dev-qt/qtsql-4.8.4::gentoo, ebuild scheduled for merge)
    ~dev-qt/qtcore-4.8.4[aqua=,debug=] required by (dev-qt/qtdbus-4.8.4::gentoo, ebuild scheduled for merge)

  (dev-qt/qtcore-4.8.4-r5::gentoo, installed) pulled in by
    ~dev-qt/qtcore-4.8.4[aqua=,debug=] required by (dev-qt/qtdbus-4.8.4::gentoo, installed)
    ~dev-qt/qtcore-4.8.4[aqua=,debug=] required by (dev-qt/qtbearer-4.8.4::gentoo, installed)
    ~dev-qt/qtcore-4.8.4[aqua=,debug=,qt3support] required by (dev-qt/qt3support-4.8.4::gentoo, installed)
    ~dev-qt/qtcore-4.8.4[aqua=,debug=] required by (dev-qt/qtsvg-4.8.4::gentoo, installed)
    ~dev-qt/qtcore-4.8.4[aqua=,debug=,qt3support=] required by (dev-qt/qtdeclarative-4.8.4::gentoo, installed)
    ~dev-qt/qtcore-4.8.4[aqua=,debug=] required by (dev-qt/qtmultimedia-4.8.4::gentoo, installed)
    ~dev-qt/qtcore-4.8.4[aqua=,debug=] required by (dev-qt/qtscript-4.8.4::gentoo, installed)
    ~dev-qt/qtcore-4.8.4[aqua=,debug=] required by (dev-qt/qtxmlpatterns-4.8.4::gentoo, installed)
    ~dev-qt/qtcore-4.8.4[aqua=,debug=] required by (dev-qt/qttest-4.8.4::gentoo, installed)
    ~dev-qt/qtcore-4.8.4[aqua=,debug=,qt3support=] required by (dev-qt/qtsql-4.8.4::gentoo, installed)
    ~dev-qt/qtcore-4.8.4[aqua=,debug=,ssl] required by (dev-qt/qtwebkit-4.8.4::gentoo, installed)
    ~dev-qt/qtcore-4.8.4[aqua=,debug=,qt3support=] required by (dev-qt/qtopengl-4.8.4::gentoo, installed)
    ~dev-qt/qtcore-4.8.4[aqua=,debug=,glib=,qt3support=] required by (dev-qt/qtgui-4.8.4-r1::gentoo, installed)


I have some problem in undestanding the message and I'm not sure how to get the desired result (qt-core and other packages compiled with debug infos)

Thanks for any hint.
Back to top
View user's profile Send private message
Maitreya
Guru
Guru


Joined: 11 Jan 2006
Posts: 441

PostPosted: Mon Apr 22, 2013 1:37 pm    Post subject: Reply with quote

Maybe the USE variable got reset in debug.conf

Does changing it to :

USE="${USE} debug"

Help?
Back to top
View user's profile Send private message
cova
n00b
n00b


Joined: 12 Apr 2010
Posts: 26

PostPosted: Mon Apr 22, 2013 8:36 pm    Post subject: Reply with quote

Maitreya wrote:
Maybe the USE variable got reset in debug.conf

Does changing it to :

USE="${USE} debug"

Help?


Thanks for the hint, but the situation does not changes.

My problem is that I don't really understand the difference between the two slots. Requirements seems the same to me.
Back to top
View user's profile Send private message
py-ro
Veteran
Veteran


Joined: 24 Sep 2002
Posts: 1734
Location: Velbert

PostPosted: Mon Apr 22, 2013 9:03 pm    Post subject: Reply with quote

All must build with the same setting, this is debug=, so if you build core with debug, all other must too.
Back to top
View user's profile Send private message
cova
n00b
n00b


Joined: 12 Apr 2010
Posts: 26

PostPosted: Tue Apr 23, 2013 2:13 pm    Post subject: Reply with quote

py-ro wrote:
All must build with the same setting, this is debug=, so if you build core with debug, all other must too.


Thanks for the hint; I've then added all requested flags with the same result.
What's makes me a bit confused is that emerge error messages reports use flags that are not even present in qtcore package:
Code:

  (dev-qt/qtcore-4.8.4-r5::gentoo, ebuild scheduled for merge) pulled in by
    ~dev-qt/qtcore-4.8.4[aqua=,debug=,qt3support] required by (dev-qt/qt3support-4.8.4::gentoo, ebuild scheduled for merge)
    ~dev-qt/qtcore-4.8.4[aqua=,debug=,glib=,qt3support=] required by (dev-qt/qtgui-4.8.4-r1::gentoo, ebuild scheduled for merge)
    ~dev-qt/qtcore-4.8.4[aqua=,debug=] required by (dev-qt/qtscript-4.8.4::gentoo, ebuild scheduled for merge)
    ~dev-qt/qtcore-4.8.4[aqua=,debug=,qt3support=] required by (dev-qt/qtsql-4.8.4::gentoo, ebuild scheduled for merge)
    ~dev-qt/qtcore-4.8.4[aqua=,debug=] required by (dev-qt/qtdbus-4.8.4::gentoo, ebuild scheduled for merge)

  (dev-qt/qtcore-4.8.4-r5::gentoo, installed) pulled in by
    ~dev-qt/qtcore-4.8.4[aqua=,debug=] required by (dev-qt/qtdbus-4.8.4::gentoo, installed)
    ~dev-qt/qtcore-4.8.4[aqua=,debug=] required by (dev-qt/qtbearer-4.8.4::gentoo, installed)
    ~dev-qt/qtcore-4.8.4[aqua=,debug=,qt3support] required by (dev-qt/qt3support-4.8.4::gentoo, installed)
    ~dev-qt/qtcore-4.8.4[aqua=,debug=] required by (dev-qt/qtsvg-4.8.4::gentoo, installed)
    ~dev-qt/qtcore-4.8.4[aqua=,debug=,qt3support=] required by (dev-qt/qtdeclarative-4.8.4::gentoo, installed)
    ~dev-qt/qtcore-4.8.4[aqua=,debug=] required by (dev-qt/qtmultimedia-4.8.4::gentoo, installed)
    ~dev-qt/qtcore-4.8.4[aqua=,debug=] required by (dev-qt/qtscript-4.8.4::gentoo, installed)
    ~dev-qt/qtcore-4.8.4[aqua=,debug=] required by (dev-qt/qtxmlpatterns-4.8.4::gentoo, installed)
    ~dev-qt/qtcore-4.8.4[aqua=,debug=] required by (dev-qt/qttest-4.8.4::gentoo, installed)
    ~dev-qt/qtcore-4.8.4[aqua=,debug=,qt3support=] required by (dev-qt/qtsql-4.8.4::gentoo, installed)
    ~dev-qt/qtcore-4.8.4[aqua=,debug=,ssl] required by (dev-qt/qtwebkit-4.8.4::gentoo, installed)
    ~dev-qt/qtcore-4.8.4[aqua=,debug=,qt3support=] required by (dev-qt/qtopengl-4.8.4::gentoo, installed)
    ~dev-qt/qtcore-4.8.4[aqua=,debug=,glib=,qt3support=] required by (dev-qt/qtgui-4.8.4-r1::gentoo, installed)

Code:
calvin ~ # equery uses dev-qt/qtcore
[ Legend : U - final flag setting for installation]
[        : I - package is installed with flag     ]
[ Colors : set, unset                             ]
 * Found these USE flags for dev-qt/qtcore-4.8.4-r5:
 U I
 - - c++0x      : Build Qt using the C++11 standard
 + - debug      : Enable extra debug codepaths, like asserts and extra output. If you want to get meaningful backtraces see
                  http://www.gentoo.org/proj/en/qa/backtraces.xml
 + + exceptions : Add support for exceptions - like catching them inside the event loop (recommended by Nokia)
 + + glib       : Enable dev-libs/glib eventloop support
 + + iconv      : Enable support for the iconv character set conversion library
 + + icu        : Enable ICU (Internationalization Components for Unicode) support, using dev-libs/icu
 - - pch        : Enable precompiled header support for faster compilation at the expense of disk space and memory
                  (>=sys-devel/gcc-3.4 only)
 + + qt3support : Enable the Qt3Support libraries for Qt4. Note that this does not mean you can compile pure Qt3 programs with
                  Qt4.
 + + ssl        : Adds support for Secure Socket Layer connections
Back to top
View user's profile Send private message
Veldrin
Veteran
Veteran


Joined: 27 Jul 2004
Posts: 1945
Location: Zurich, Switzerland

PostPosted: Tue Apr 23, 2013 2:39 pm    Post subject: Reply with quote

Quote:
Code:
 + - debug      : Enable extra debug codepaths, like asserts and extra output. If you want to get meaningful backtraces see
                  http://www.gentoo.org/proj/en/qa/backtraces.xml
if you are only interested in backtraces, then use the mentioned guide. enabling debug does not what you think it does.
_________________
read the portage output!
If my answer is too concise, ask for an explanation.
Back to top
View user's profile Send private message
cova
n00b
n00b


Joined: 12 Apr 2010
Posts: 26

PostPosted: Wed Apr 24, 2013 6:54 am    Post subject: Reply with quote

Veldrin wrote:
Quote:
Code:
 + - debug      : Enable extra debug codepaths, like asserts and extra output. If you want to get meaningful backtraces see
                  http://www.gentoo.org/proj/en/qa/backtraces.xml
if you are only interested in backtraces, then use the mentioned guide. enabling debug does not what you think it does.


I tried that, but gcc debug flags got stripped:
Code:
x86_64-pc-linux-gnu-g++ -c -o project.o -march=native -mtune=native -O2 -pipe   -pipe -DQMAKE_OPENSOURCE_EDITION -I. -Igenerators -Igenerators/unix -Igenerators/win32 -Igenerators/mac -Igenerators/symbian -Igenerators/integrity -I/var/tmp/portage/dev-qt/qtcore-4.8.4-r5/work/qt-everywhere-opensource-src-4.8.4/include -I/var/tmp/portage/dev-qt/qtcore-4.8.4-r5/work/qt-everywhere-opensource-src-4.8.4/include/QtCore -I/var/tmp/portage/dev-qt/qtcore-4.8.4-r5/work/qt-everywhere-opensource-src-4.8.4/src/corelib/global -I/var/tmp/portage/dev-qt/qtcore-4.8.4-r5/work/qt-everywhere-opensource-src-4.8.4/src/corelib/xml -I/var/tmp/portage/dev-qt/qtcore-4.8.4-r5/work/qt-everywhere-opensource-src-4.8.4/tools/shared -DQT_NO_PCRE -DQT_BUILD_QMAKE -DQT_BOOTSTRAPPED -DQLIBRARYINFO_EPOCROOT -DQT_NO_TEXTCODEC -DQT_NO_UNICODETABLES -DQT_NO_COMPONENT -DQT_NO_STL -DQT_NO_COMPRESS -I/var/tmp/portage/dev-qt/qtcore-4.8.4-r5/work/qt-everywhere-opensource-src-4.8.4/mkspecs/linux-g++ -DHAVE_QCONFIG_CPP -DQT_NO_THREAD -DQT_NO_QOBJECT -DQT_NO_GEOM_VARIANT -DQT_NO_DEPRECATED  project.cpp


So, I indeed read what you suggest, and moreover, I read the relevant documentation about qt-4

http://www.gentoo.org/proj/en/desktop/qt/qt4-based-ebuild-howto.xml

Code:
Debug and Release scope

Qt offers you the ability to build your applications using two different modes:

Release: Leads to smaller binaries, useful for the normal usage.
Debug: Leads to bigger binaries, useful for debugging during the development process.
Thus, qt4-r2 eclass can use the 'debug' use flag in order to build your application with debug symbols.

Code Listing 3.2: Add 'debug' use flag
IUSE="debug"
Important: 'debug' use flag usage implies that you have already followed the "How to get meaningful backtraces in Gentoo" tutorial.




So I still wondering what I'm doing wrong.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum