* [gentoo-user] Compile something with debugging information
@ 2007-06-19 11:37 Alexander Skwar
2007-06-19 11:56 ` [gentoo-user] " Alexander Skwar
2007-06-19 12:27 ` [gentoo-user] " Alan McKinnon
0 siblings, 2 replies; 6+ messages in thread
From: Alexander Skwar @ 2007-06-19 11:37 UTC (permalink / raw
To: gentoo-user
Hello.
All of a sudden, I'm having problems with the Postfix installation on
my server. smtpd dies with a Signal 11.
To debug this, I'd like to build postfix again, but this time portage
should not strip the binaries and it should be compiled with debugging
information compiled in (ie. with -g).
How would I do that?
Thanks a lot,
Alexander Skwar
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 6+ messages in thread
* [gentoo-user] Re: Compile something with debugging information
2007-06-19 11:37 [gentoo-user] Compile something with debugging information Alexander Skwar
@ 2007-06-19 11:56 ` Alexander Skwar
2007-06-19 14:32 ` Daniel Pielmeier
` (2 more replies)
2007-06-19 12:27 ` [gentoo-user] " Alan McKinnon
1 sibling, 3 replies; 6+ messages in thread
From: Alexander Skwar @ 2007-06-19 11:56 UTC (permalink / raw
To: gentoo-user
Ingrid wrote:
> All of a sudden, I'm having problems with the Postfix installation on
> my server. smtpd dies with a Signal 11.
>
> To debug this, I'd like to build postfix again, but this time portage
> should not strip the binaries and it should be compiled with debugging
> information compiled in (ie. with -g).
>
> How would I do that?
FEATURES="nostrip -ccache keeptemp keepwork test noclean" \
CFLAGS="-march=athlon-xp -O0 -pipe -ggdb3" sudo emerge postfix
This seems to be at least one way to go.
Alexander Skwar
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-user] Re: Compile something with debugging information
2007-06-19 11:56 ` [gentoo-user] " Alexander Skwar
@ 2007-06-19 14:32 ` Daniel Pielmeier
2007-06-19 23:48 ` Iain Buchanan
2007-06-20 10:22 ` Bo Ørsted Andresen
2 siblings, 0 replies; 6+ messages in thread
From: Daniel Pielmeier @ 2007-06-19 14:32 UTC (permalink / raw
To: gentoo-user
> > To debug this, I'd like to build postfix again, but this time portage
> > should not strip the binaries and it should be compiled with debugging
> > information compiled in (ie. with -g).
> >
> > How would I do that?
There is a good howto which explains building packages with debug
information and generating backtraces at
http://www.gentoo.org/proj/en/qa/backtraces.xml.
> FEATURES="nostrip -ccache keeptemp keepwork test noclean" \
> CFLAGS="-march=athlon-xp -O0 -pipe -ggdb3" sudo emerge postfix
>
> This seems to be at least one way to go.
You can set this in /etc/portage/env/mail-mta/postfix to enable this
Features and Cflags only for this specific package.
Regards Daniel
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-user] Re: Compile something with debugging information
2007-06-19 11:56 ` [gentoo-user] " Alexander Skwar
2007-06-19 14:32 ` Daniel Pielmeier
@ 2007-06-19 23:48 ` Iain Buchanan
2007-06-20 10:22 ` Bo Ørsted Andresen
2 siblings, 0 replies; 6+ messages in thread
From: Iain Buchanan @ 2007-06-19 23:48 UTC (permalink / raw
To: gentoo-user
On Tue, 2007-06-19 at 13:56 +0200, Alexander Skwar wrote:
> Ingrid wrote:
>
> > All of a sudden, I'm having problems with the Postfix installation on
> > my server. smtpd dies with a Signal 11.
> >
> > To debug this, I'd like to build postfix again, but this time portage
> > should not strip the binaries and it should be compiled with debugging
> > information compiled in (ie. with -g).
> >
> > How would I do that?
>
> FEATURES="nostrip -ccache keeptemp keepwork test noclean" \
I use 'splitdebug' instead of 'nostrip', because it doesn't leave your
binaries full of debugging info, but puts it into /usr/lib/debug, which
you can then delete at your convenience, without rebuilding.
cya,
--
Iain Buchanan <iaindb at netspace dot net dot au>
Subject: Bug#42432: debian-policy: Proposal for CTV for Draft for Proof of
Concept for Draft for Proposal for Proposal for CTV for a CTV to decide on
a proposal for a CTV for the CTV on whether or not we shoud have a CTV on
the /usr/doc to /usr/share/doc transition now, or later.
-- Ed Lang
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-user] Re: Compile something with debugging information
2007-06-19 11:56 ` [gentoo-user] " Alexander Skwar
2007-06-19 14:32 ` Daniel Pielmeier
2007-06-19 23:48 ` Iain Buchanan
@ 2007-06-20 10:22 ` Bo Ørsted Andresen
2 siblings, 0 replies; 6+ messages in thread
From: Bo Ørsted Andresen @ 2007-06-20 10:22 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 1182 bytes --]
On Tuesday 19 June 2007 13:56:19 Alexander Skwar wrote:
> > To debug this, I'd like to build postfix again, but this time portage
> > should not strip the binaries and it should be compiled with debugging
> > information compiled in (ie. with -g).
> >
> > How would I do that?
>
> FEATURES="nostrip -ccache keeptemp keepwork test noclean" \
> CFLAGS="-march=athlon-xp -O0 -pipe -ggdb3" sudo emerge postfix
>
> This seems to be at least one way to go.
Why keeptemp keepwork noclean? keeptemp and keepwork are implied by noclean
anyway so it's quite redundant. If you just want the source kept have a look
at FEATURES=installsources in `man 5 make.conf`. Also have a look at
FEATURES=splitdebug as already mentioned. test is unrelated but might of
course be useful.
As mentioned by Daniel you can set FEATURES and CFLAGS on a per package basis
in /etc/portage/env/$CATEGORY/$PN. Alternatively you can set it in a
case; ...; esac construct in /etc/portage/bashrc (for multiple packages at
once). Do note that variables here don't automatically stack so you need to
either set everything you want or include $CFLAGS and $FEATURES.
--
Bo Andresen
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [gentoo-user] Compile something with debugging information
2007-06-19 11:37 [gentoo-user] Compile something with debugging information Alexander Skwar
2007-06-19 11:56 ` [gentoo-user] " Alexander Skwar
@ 2007-06-19 12:27 ` Alan McKinnon
1 sibling, 0 replies; 6+ messages in thread
From: Alan McKinnon @ 2007-06-19 12:27 UTC (permalink / raw
To: gentoo-user
On Tuesday 19 June 2007, Alexander Skwar wrote:
> Hello.
>
> All of a sudden, I'm having problems with the Postfix installation on
> my server. smtpd dies with a Signal 11.
>
> To debug this, I'd like to build postfix again, but this time portage
> should not strip the binaries and it should be compiled with
> debugging information compiled in (ie. with -g).
I've never tried this myself, but man 5 ebuild makes mention of
EXTRA_ECONF and that it is for users to use, not ebuild writers.
alan
--
Optimists say the glass is half full,
Pessimists say the glass is half empty,
Developers say wtf is the glass twice as big as it needs to be?
Alan McKinnon
alan at linuxholdings dot co dot za
+27 82, double three seven, one nine three five
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2007-06-20 10:27 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-06-19 11:37 [gentoo-user] Compile something with debugging information Alexander Skwar
2007-06-19 11:56 ` [gentoo-user] " Alexander Skwar
2007-06-19 14:32 ` Daniel Pielmeier
2007-06-19 23:48 ` Iain Buchanan
2007-06-20 10:22 ` Bo Ørsted Andresen
2007-06-19 12:27 ` [gentoo-user] " Alan McKinnon
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox