Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 423659 - dev-libs/dbus-glib-0.98 - src_compile(): segmentation fault in ../../dbus/dbus-binding-tool
Summary: dev-libs/dbus-glib-0.98 - src_compile(): segmentation fault in ../../dbus/db...
Status: RESOLVED DUPLICATE of bug 328903
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Freedesktop bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-06-26 14:51 UTC by Anton
Modified: 2022-04-03 08:45 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info '=dev-libs/dbus-glib-0.98' (emerge--info-dbus-glib-0.98,5.22 KB, text/plain)
2012-06-26 14:51 UTC, Anton
Details
Building log of package (build.log,25.57 KB, text/plain)
2012-06-27 06:38 UTC, Anton
Details
Environment (environment,74.61 KB, text/plain)
2012-06-27 06:39 UTC, Anton
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Anton 2012-06-26 14:51:18 UTC
Created attachment 316305 [details]
emerge --info '=dev-libs/dbus-glib-0.98'

Can't install, failed with error:

Making all in examples
make[3]: Entering directory `/var/tmp/portage/dev-libs/dbus-glib-0.98/work/dbus-glib-0.98-build/dbus/examples'
/bin/sh ../../libtool --mode=execute ../../dbus/dbus-binding-tool --prefix=some_object --mode=glib-server --output=example-service-glue.h /var/tmp/portage/dev-libs/dbus-glib-0.98/work/dbus-glib-0.98/dbus/examples/example-service.xml
/bin/sh ../../libtool --mode=execute ../../dbus/dbus-binding-tool --prefix=test_object --mode=glib-server --output=example-signal-emitter-glue.h /var/tmp/portage/dev-libs/dbus-glib-0.98/work/dbus-glib-0.98/dbus/examples/example-signal-emitter.xml
make[3]: *** [example-service-glue.h] segmentation fault
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2012-06-27 02:40:22 UTC
Please attach the entire build log to this bug report.
Comment 2 Anton 2012-06-27 06:38:43 UTC
Created attachment 316381 [details]
Building log of package
Comment 3 Anton 2012-06-27 06:39:45 UTC
Created attachment 316383 [details]
Environment
Comment 4 W. Trevor King 2012-06-27 11:09:10 UTC
(In reply to comment #0)
> Can't install, failed with error:
> …
> make[3]: *** [example-service-glue.h] segmentation fault

A more descriptive summary would probably be:

  dev-libs/dbus-glib-0.98 - install fails with example-service-glue.h segfault

The current

  dev-libs/dbus-glib-0.98 - ?

doesn't describe the problem or the symptoms ;).
Comment 5 Anton 2012-06-27 12:56:19 UTC
Thanks. Subject updated. =)
Comment 6 Samuli Suominen (RETIRED) gentoo-dev 2012-06-27 13:58:06 UTC
CFLAGS="-march=native -pipe"? 

1. -march=native will *not* work for i5 on gcc-4.5 as it gets misdetected
2. missing -O optimization flag, like -O2, is a very bad idea and might cause miscompiling

Please update to sane flags, like CFLAGS="-march=core2 -pipe -O2" and try again.
Comment 7 Anton 2012-06-27 17:49:22 UTC
It doesn't help... Have same error.
Comment 8 Samuli Suominen (RETIRED) gentoo-dev 2012-06-27 17:57:10 UTC

*** This bug has been marked as a duplicate of bug 328903 ***
Comment 9 Samuli Suominen (RETIRED) gentoo-dev 2012-06-27 18:00:25 UTC
(In reply to comment #7)
> It doesn't help... Have same error.

Same error as in bug 328903. Need to find a way to attach gdb to the crashing command within /var/tmp/portage/dev-libs/dbus-glib/... like mentioned in bug 328903.

But everytime I've seen this error (and I've seen it multiple times) it has gone away by rebuilding the reverse dependencies with __sane *FLAGS__:

emerge -e dbus-glib
Comment 10 Anton 2012-06-28 05:04:04 UTC
Thanks. It's works (emerge -e dev-libs/dbus-glib-0.98) with CFLAGS="-march=core2 -pipe -O2"
Comment 11 Anton 2012-06-28 10:52:21 UTC
Where can I find sane CFLAGS?
Here - http://en.gentoo-wiki.com/wiki/Safe_Cflags#-march.3Dnative - I read that "-march=native" is good practice.
Comment 12 Samuli Suominen (RETIRED) gentoo-dev 2012-06-28 11:03:28 UTC
(In reply to comment #11)
> Where can I find sane CFLAGS?
> Here - http://en.gentoo-wiki.com/wiki/Safe_Cflags#-march.3Dnative - I read
> that "-march=native" is good practice.

native is perfect except when when the compiler doesn't have full support for the used CPU

( and gentoo-wiki.com is not official, the wiki is http://wiki.gentoo.org/ )

i'd go for gcc-4.6 if I were you, it's about to go stable anyway
Comment 13 Anton 2012-06-28 14:29:45 UTC
Thx