Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Metacity 2.26.0 fails to compile (Gnome-Overlay)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
gruftie
Apprentice
Apprentice


Joined: 24 Sep 2002
Posts: 182

PostPosted: Thu Apr 02, 2009 1:08 pm    Post subject: [SOLVED] Metacity 2.26.0 fails to compile (Gnome-Overlay) Reply with quote

i'm trying to compile metacity-2.26.0 and it always ends with:
Code:
/bin/sh ../../libtool --tag=CC   --mode=link x86_64-pc-linux-gnu-gcc  -march=native -mtune=native -O3 -pipe -Wall -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wcast-align -Wsign-compare -Wall -Werror -ansi  -Wl,-O1 -o test-gravity test-gravity.o -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lgdk_pixbuf-2.0 -lpangocairo-1.0 -lcairo -lfreetype -lfontconfig -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -lgconf-2 -lglib-2.0 -lstartup-notification-1 -lXcomposite -lXrender -lX11 -lXdamage -lXfixes -lXcursor   -lXext -lXrandr -lXext   -lSM -lICE -lX11  -lm
/bin/sh: warning: setlocale: LC_ALL: cannot change locale (en)
cc1: warnings being treated as errors
test-resizing.c: In function 'main':
test-resizing.c:82: error: 'height' is used uninitialized in this function
test-resizing.c:94: note: 'height' was declared here
make[4]: *** [test-resizing.o] Error 1
make[4]: *** Waiting for unfinished jobs....
mv -f .deps/main.Tpo .deps/main.Po
libtool: link: x86_64-pc-linux-gnu-gcc -march=native -mtune=native -O3 -pipe -Wall -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wcast-align -Wsign-compare -Wall -Werror -ansi -Wl,-O1 -o test-gravity test-gravity.o  /usr/lib64/libgtk-x11-2.0.so /usr/lib64/libgdk-x11-2.0.so /usr/lib64/libatk-1.0.so /usr/lib64/libgdk_pixbuf-2.0.so /usr/lib64/libgio-2.0.so /usr/lib64/libpangocairo-1.0.so -L/usr/lib64 /usr/lib64/libpangoft2-1.0.so /usr/lib64/libcairo.so /usr/lib64/libpixman-1.so /usr/lib64/libglitz-glx.so /usr/lib64/libGL.so /usr/lib64/libglitz.so /usr/lib64/libpng12.so /usr/lib64/libxcb-render-util.so /usr/lib64/libxcb-render.so /usr/lib64/libfontconfig.so /usr/lib64/libfreetype.so -lz /usr/lib64/libexpat.so /usr/lib64/libpango-1.0.so /usr/lib64/libgconf-2.so /usr/lib64/libORBit-2.so /usr/lib64/libgmodule-2.0.so /usr/lib64/libgthread-2.0.so -lpthread -lrt /usr/lib64/libdbus-glib-1.so /usr/lib64/libdbus-1.so /usr/lib64/libgobject-2.0.so /usr/lib64/libglib-2.0.so /usr/lib64/libstartup-notification-1.so /usr/lib64/libXcomposite.so /usr/lib64/libXdamage.so /usr/lib64/libXcursor.so /usr/lib64/libXfixes.so /usr/lib64/libXrandr.so /usr/lib64/libXrender.so /usr/lib64/libXext.so /usr/lib64/libSM.so -luuid /usr/lib64/libICE.so /usr/lib64/libX11.so /usr/lib64/libxcb-xlib.so /usr/lib64/libxcb.so /usr/lib64/libXau.so /usr/lib64/libXdmcp.so -ldl -lm -pthread
make[4]: Leaving directory `/var/tmp/portage/x11-wm/metacity-2.26.0/work/metacity-2.26.0/src/wm-tester'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/var/tmp/portage/x11-wm/metacity-2.26.0/work/metacity-2.26.0/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/var/tmp/portage/x11-wm/metacity-2.26.0/work/metacity-2.26.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/x11-wm/metacity-2.26.0/work/metacity-2.26.0'
make: *** [all] Error 2
 *
 * ERROR: x11-wm/metacity-2.26.0 failed.
 * Call stack:
 *               ebuild.sh, line   48:  Called src_compile
 *             environment, line 2746:  Called gnome2_src_compile
 *             environment, line 2099:  Called die
 * The specific snippet of code:
 *       emake || die "compile failure"
 *  The die message:
 *   compile failure
 *
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/x11-wm/metacity-2.26.0/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/x11-wm/metacity-2.26.0/temp/environment'.
 * This ebuild is from an overlay named 'gnome': '/usr/local/portage/layman/gnome/'
 *


however, if i copy the configure options as shown during the emerge process, i am able to build metacity manually without the above error.
i run:
Code:
./configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --libdir=/usr/lib64 --enable-compositor --enable-render --enable-shape --enable-sm --enable-startup-notification --enable-xsync --disable-xinerama


and if i then run "make" it all compiles fine. so something in the ebuild seems to do strange things. the ebuild looks like this:
Code:
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/x11-wm/metacity/metacity-2.24.0-r1.ebuild,v 1.1 2009/02/08 21:31:50 eva Exp $
EAPI=2

inherit eutils gnome2

DESCRIPTION="GNOME default window manager"
HOMEPAGE="http://blogs.gnome.org/metacity/"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd"
IUSE="test xinerama"

RDEPEND=">=x11-libs/gtk+-2.10
   >=x11-libs/pango-1.2[X]
   >=gnome-base/gconf-2
   >=dev-libs/glib-2.6
   >=x11-libs/startup-notification-0.7
   >=x11-libs/libXcomposite-0.2
   x11-libs/libXfixes
   x11-libs/libXrender
   x11-libs/libXdamage
   x11-libs/libXcursor
   x11-libs/libX11
   xinerama? ( x11-libs/libXinerama )
   x11-libs/libXext
   x11-libs/libXrandr
   x11-libs/libSM
   x11-libs/libICE
   gnome-extra/zenity
   !x11-misc/expocity"
DEPEND="${RDEPEND}
   >=app-text/gnome-doc-utils-0.8
   sys-devel/gettext
   >=dev-util/pkgconfig-0.9
   >=dev-util/intltool-0.35
   test? ( app-text/docbook-xml-dtd:4.5 )
   xinerama? ( x11-proto/xineramaproto )
   x11-proto/xextproto
   x11-proto/xproto"

DOCS="AUTHORS ChangeLog HACKING NEWS README *.txt doc/*.txt"

pkg_setup() {
   G2CONF="${G2CONF}
      --enable-compositor
      --enable-render
      --enable-shape
      --enable-sm
      --enable-startup-notification
      --enable-xsync
      $(use_enable xinerama)"
}


anyone any clue, what messes up the build process?


Last edited by gruftie on Fri Apr 03, 2009 7:06 pm; edited 1 time in total
Back to top
View user's profile Send private message
tomj44
n00b
n00b


Joined: 12 Sep 2005
Posts: 37
Location: Nantes France

PostPosted: Fri Apr 03, 2009 9:05 am    Post subject: Reply with quote

I have same error in my gentoo amd64 , but compile work fine with x86.
I have tried many things but no clue.
Back to top
View user's profile Send private message
tomj44
n00b
n00b


Joined: 12 Sep 2005
Posts: 37
Location: Nantes France

PostPosted: Fri Apr 03, 2009 4:44 pm    Post subject: Reply with quote

same error with metacity 2.27

This is the UNSTABLE branch of metacity
Use 2.26.x for stable (gnome-2-26 branch in Subversion)
>>> Source configured.
>>> Compiling source in /var/tmp/portage/x11-wm/metacity-2.27.0/work/metacity-2.27.0 ...
make -j4 -s
Making all in src
Making all in wm-tester
cc1: warnings being treated as errors
test-resizing.c: In function ‘main’:
test-resizing.c:82: error: ‘height’ is used uninitialized in this function
test-resizing.c:94: note: ‘height’ was declared here
make[4]: *** [test-resizing.o] Error 1
make[4]: *** Waiting for unfinished jobs....
make[3]: *** [all-recursive] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
*
* ERROR: x11-wm/metacity-2.27.0 failed.
* Call stack:
* ebuild.sh, line 48: Called src_compile
* environment, line 2758: Called gnome2_src_compile
* environment, line 2110: Called die
* The specific snippet of code:
* emake || die "compile failure"
* The die message:
* compile failure
*
* If you need support, post the topmost build error, and the call stack if relevant.
* A complete build log is located at '/var/tmp/portage/x11-wm/metacity-2.27.0/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/x11-wm/metacity-2.27.0/temp/environment'.
* This ebuild is from an overlay named 'gnome': '/usr/local/portage/layman/gnome/'
*

* Messages for package x11-wm/metacity-2.27.0:

*
* ERROR: x11-wm/metacity-2.27.0 failed.
* Call stack:
* ebuild.sh, line 48: Called src_compile
* environment, line 2758: Called gnome2_src_compile
* environment, line 2110: Called die
* The specific snippet of code:
* emake || die "compile failure"
* The die message:
* compile failure
*
* If you need support, post the topmost build error, and the call stack if relevant.
* A complete build log is located at '/var/tmp/portage/x11-wm/metacity-2.27.0/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/x11-wm/metacity-2.27.0/temp/environment'.
* This ebuild is from an overlay named 'gnome': '/usr/local/portage/layman/gnome/'
Back to top
View user's profile Send private message
tomj44
n00b
n00b


Joined: 12 Sep 2005
Posts: 37
Location: Nantes France

PostPosted: Fri Apr 03, 2009 4:49 pm    Post subject: Reply with quote

https://bugs.gentoo.org/show_bug.cgi?format=multiple&id=259179
Back to top
View user's profile Send private message
tomj44
n00b
n00b


Joined: 12 Sep 2005
Posts: 37
Location: Nantes France

PostPosted: Fri Apr 03, 2009 4:58 pm    Post subject: Reply with quote

solved for me , add -w in your CFLAGS
Back to top
View user's profile Send private message
gruftie
Apprentice
Apprentice


Joined: 24 Sep 2002
Posts: 182

PostPosted: Fri Apr 03, 2009 7:07 pm    Post subject: Reply with quote

solved it for me too.
Back to top
View user's profile Send private message
Ray ishido
Tux's lil' helper
Tux's lil' helper


Joined: 17 Jan 2006
Posts: 141
Location: Piracicaba (Brazil)

PostPosted: Sat Apr 04, 2009 1:39 pm    Post subject: Reply with quote

Solved for me too, thanks.

Btw, what is the "-w" CFLAGS for?

EDIT: found here: http://gcc.gnu.org/onlinedocs/gcc-4.1.1/gcc/Warning-Options.html#Warning-Options

Quote:
-w
Inhibit all warning messages.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software 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