x11-libs/gtk+-2.17.11-r1build results in strange build errors. Reproducible: Always Actual Results: i686-pc-linux-gnu-c++ -DHAVE_CONFIG_H -I. -I.. -I.. -I../gdk -I../gdk -DGDK_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED -DG_ENABLE_DEBUG -DG_ERRORCHECK_MUTEXES -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pango-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libpng12 -I/usr/include/atk-1.0 -I./dummy-headers -DHAVE_OBJC=1 -DG_DISABLE_SINGLE_INCLUDES -DATK_DISABLE_SINGLE_INCLUDES -DGDK_PIXBUF_DISABLE_SINGLE_INCLUDES -DGTK_DISABLE_SINGLE_INCLUDES -x objective-c++ -mtune=pentium-m -march=pentium-m -pipe -ggdb -w -O2 -MT autotestkeywords-autotestkeywords.o -MD -MP -MF .deps/autotestkeywords-autotestkeywords.Tpo -c -o autotestkeywords-autotestkeywords.o `test -f 'autotestkeywords.cc' || echo './'`autotestkeywords.cc mv -f .deps/autotestkeywords-autotestkeywords.Tpo .deps/autotestkeywords-autotestkeywords.Po /bin/sh ../libtool --tag=CXX --mode=link i686-pc-linux-gnu-c++ -x objective-c++ -mtune=pentium-m -march=pentium-m -pipe -ggdb -w -O2 -Wl,-O1 -Wl,--as-needed -Wl,--hash-style=both -Wl,--sort-common -o autotestkeywords autotestkeywords-autotestkeywords.o libtool: link: i686-pc-linux-gnu-c++ -x objective-c++ -mtune=pentium-m -march=pentium-m -pipe -ggdb -w -O2 -Wl,-O1 -Wl,--hash-style=both -Wl,--sort-common -o autotestkeywords autotestkeywords-autotestkeywords.o -Wl,--as-needed autotestkeywords-autotestkeywords.o:1: error: stray '\177' in program autotestkeywords-autotestkeywords.o:1: error: stray '\1' in program (lots of similar output) autotestkeywords-autotestkeywords.o:16: error: stray '\2' in program autotestkeywords-autotestkeywords.o:1: error: expected constructor, destructor, or type conversion before '(' token autotestkeywords-autotestkeywords.o:1: error: 'I' does not name a type autotestkeywords-autotestkeywords.o:2: error: expected unqualified-id before ':' token autotestkeywords-autotestkeywords.o:2: error: expected constructor, destructor, or type conversion before numeric constant autotestkeywords-autotestkeywords.o:4: error: expected unqualified-id before ':' token autotestkeywords-autotestkeywords.o:5: error: expected unqualified-id before ':' token autotestkeywords-autotestkeywords.o:5: error: expected constructor, destructor, or type conversion before numeric constant autotestkeywords-autotestkeywords.o:7: error: expected constructor, destructor, or type conversion before numeric constant autotestkeywords-autotestkeywords.o:7: error: expected constructor, destructor, or type conversion before '?' token make[2]: Leaving directory `/var/tmp/paludis/x11-libs-gtk+-2.17.11-r1/work/gtk+-2.17.11/tests' make[2]: *** [autotestkeywords] Error 1 make[1]: Leaving directory `/var/tmp/paludis/x11-libs-gtk+-2.17.11-r1/work/gtk+-2.17.11' make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2 /usr/libexec/paludis/utils/emake: emake returned error 2 !!! ERROR in x11-libs/gtk+-2.17.11-r1::gnome: !!! In default_src_compile at line 27 !!! emake failed !!! Call stack: !!! * default_src_compile (/usr/libexec/paludis/2/src_compile.bash:27) !!! * src_compile (/usr/libexec/paludis/2/src_compile.bash:33) !!! * ebuild_f_compile (/usr/libexec/paludis/2/src_compile.bash:56) !!! * ebuild_main (/usr/libexec/paludis/ebuild.bash:594) !!! * main (/usr/libexec/paludis/ebuild.bash:622) paludis 0.40.0 Paludis build information: Compiler: CXX: i686-pc-linux-gnu-g++ 4.4.1 CXXFLAGS: -Os -mtune=pentium-m -march=pentium-m -mfpmath=sse -pipe -momit-leaf-frame-pointer -w -ftree-vectorize -ftree-loop-optimize -ftree-loop-linear -freorder-blocks-and-partition -fgcse-sm -fgcse-las -fgcse-after-reload -ftracer -maccumulate-outgoing-args -findirect-inlining -floop-interchange -floop-block -floop-strip-mine -pedantic LDFLAGS: -Wl,-O1 -Wl,--as-needed -Wl,--hash-style=both -Wl,--sort-common DATE: 2009-09-09T07:18:03+0200 Libraries: C++ Library: GNU libstdc++ 20090722 Paths: DATADIR: /usr/share LIBDIR: /usr/lib LIBEXECDIR: /usr/libexec SYSCONFDIR: /etc PYTHONINSTALLDIR: /usr/lib/python2.6/site-packages RUBYINSTALLDIR: /usr/lib/ruby/site_ruby/1.8/i686-linux System: Linux kirk 2.6.30.5 #4 Tue Aug 25 01:52:51 CEST 2009 i686 Intel(R) Celeron(R) M processor 1.50GHz GenuineIntel GNU/Linux Reduced Privs: reduced_uid: 111 reduced_uid->name: paludisbuild reduced_uid->dir: /var/tmp/paludis reduced_gid: 1028 reduced_gid->name: paludisbuild Environment: Format: paludis Config dir: /etc/paludis World file: /var/db/pkg/world Package information: app-admin/eselect-compiler: (none) app-shells/bash: 4.0_p28 dev-java/java-config: 2.1.9 dev-lang/python: 2.6.2-r1 3.1.1 dev-python/pycrypto: 2.0.1-r8 dev-util/ccache: 2.4-r8 dev-util/cmake: 2.6.4-r2 dev-util/confcache: (none) sys-apps/baselayout: 2.0.1 sys-apps/openrc: 0.4.3-r3 sys-apps/sandbox: 2.1 sys-devel/autoconf: 2.13 2.63-r1 sys-devel/automake: 1.10.2 1.11 1.4_p6 1.5 1.7.9-r1 1.9.6-r2 sys-devel/binutils: 2.19.1-r1 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.6a virtual/os-headers: 2.6.30-r1 (for sys-kernel/linux-headers::installed) Package x11-libs/gtk+-2.17.10::installed: >>> Running ebuild phase killold as paludisbuild:paludisbuild... >>> Starting builtin_killold >>> Done builtin_killold >>> Completed ebuild phase killold >>> Running ebuild phases initmisc infovars info as paludisbuild:paludisbuild... >>> Starting builtin_initmisc bunzip2 < /var/db/pkg/x11-libs/gtk+-2.17.10/environment.bz2 > /var/tmp/paludis/environment-x11-libs-gtk+-2.17.10-16866 ebuild_scrub_environment /var/tmp/paludis/environment-x11-libs-gtk+-2.17.10-16866 ebuild_safe_source /var/tmp/paludis/environment-x11-libs-gtk+-2.17.10-16866 rm /var/tmp/paludis/environment-x11-libs-gtk+-2.17.10-16866 >>> Done builtin_initmisc >>> Starting builtin_infovars ACCEPT_KEYWORDS=x86 CBUILD=i686-pc-linux-gnu CFLAGS= -mtune=pentium-m -march=pentium-m -pipe -ggdb -w -O2 CHOST=i686-pc-linux-gnu CONFIG_PROTECT=/var/lib/hsqldb /etc CONFIG_PROTECT_MASK=/etc/gentoo-release /etc/sandbox.d /etc/env.d/java/ /etc/udev/rules.d /etc/fonts/fonts.conf /etc/gconf /etc/terminfo /etc/ca-certificates.conf /etc/texmf/web2c /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/env.d /etc/gconf CPPFLAGS= CTARGET= CXXFLAGS= -mtune=pentium-m -march=pentium-m -pipe -ggdb -w -O2 DISTDIR=/var/db/pkg/x11-libs/gtk+-2.17.10 FEATURES=collision-protect cvs digest multilib-strict sign splitdebug stricter userpriv usersandbox FFLAGS= GENTOO_MIRRORS= INSTALL_MASK= LANG= LC_ALL=C LDFLAGS=-Wl,-O1 -Wl,--as-needed -Wl,--hash-style=both -Wl,--sort-common LINGUAS=en_GB en_US pl MAKEOPTS= PORTAGE_COMPRESS= PORTAGE_COMPRESS_FLAGS= PORTAGE_CONFIGROOT= PORTAGE_RSYNC_EXTRA_OPTS= PORTAGE_RSYNC_OPTS= PORTAGE_TMPDIR=/var/tmp/paludis PORTDIR=/var/db/pkg/x11-libs/gtk+-2.17.10 PORTDIR_OVERLAY= SYNC= USE=X cups doc jpeg jpeg2k tiff x86 alsa_cards_atiixp alsa_pcm_plugins_adpcm alsa_pcm_plugins_alaw alsa_pcm_plugins_asym alsa_pcm_plugins_copy alsa_pcm_plugins_dmix alsa_pcm_plugins_dshare alsa_pcm_plugins_dsnoop alsa_pcm_plugins_empty alsa_pcm_plugins_extplug alsa_pcm_plugins_file alsa_pcm_plugins_hooks alsa_pcm_plugins_iec958 alsa_pcm_plugins_ioplug alsa_pcm_plugins_ladspa alsa_pcm_plugins_lfloat alsa_pcm_plugins_linear alsa_pcm_plugins_meter alsa_pcm_plugins_mmap_emul alsa_pcm_plugins_mulaw alsa_pcm_plugins_multi alsa_pcm_plugins_null alsa_pcm_plugins_plug alsa_pcm_plugins_rate alsa_pcm_plugins_route alsa_pcm_plugins_share alsa_pcm_plugins_shm alsa_pcm_plugins_softvol apache2_modules_actions apache2_modules_alias apache2_modules_auth_basic apache2_modules_authn_alias apache2_modules_authn_anon apache2_modules_authn_dbm apache2_modules_authn_default apache2_modules_authn_file apache2_modules_authz_dbm apache2_modules_authz_default apache2_modules_authz_groupfile apache2_modules_authz_host apache2_modules_authz_owner apache2_modules_authz_user apache2_modules_autoindex apache2_modules_cache apache2_modules_dav apache2_modules_dav_fs apache2_modules_dav_lock apache2_modules_deflate apache2_modules_dir apache2_modules_disk_cache apache2_modules_env apache2_modules_expires apache2_modules_ext_filter apache2_modules_file_cache apache2_modules_filter apache2_modules_headers apache2_modules_include apache2_modules_info apache2_modules_log_config apache2_modules_logio apache2_modules_mem_cache apache2_modules_mime apache2_modules_mime_magic apache2_modules_negotiation apache2_modules_rewrite apache2_modules_setenvif apache2_modules_speling apache2_modules_status apache2_modules_unique_id apache2_modules_userdir apache2_modules_usertrack apache2_modules_vhost_alias cameras_panasonic elibc_glibc input_devices_evdev kernel_linux lcd_devices_bayrad lcd_devices_cfontz lcd_devices_cfontz633 lcd_devices_glk lcd_devices_hd44780 lcd_devices_lb216 lcd_devices_lcdm001 lcd_devices_mtxorb lcd_devices_ncurses lcd_devices_text linguas_en_GB linguas_en_US linguas_pl netbeans_modules_ide netbeans_modules_java netbeans_modules_websvccommon qemu_softmmu_targets_i386 qemu_softmmu_targets_x86_64 qemu_user_targets_i386 qemu_user_targets_x86_64 sane_backends_gt68xx userland_GNU video_cards_radeon x86 >>> Done builtin_infovars >>> Starting pkg_info >>> Done pkg_info >>> Completed ebuild phases initmisc infovars info >>> Running ebuild phase tidyup as paludisbuild:paludisbuild... >>> Starting builtin_tidyup rm -fr /var/tmp/paludis/x11-libs-gtk+-2.17.10-info >>> Done builtin_tidyup >>> Completed ebuild phase tidyup Package x11-libs/gtk+-2.17.11-r1:2::gnome: >>> Running ebuild phase killold as paludisbuild:paludisbuild... >>> Starting builtin_killold >>> Done builtin_killold >>> Completed ebuild phase killold >>> Running ebuild phases initmisc infovars as paludisbuild:paludisbuild... >>> Starting builtin_initmisc >>> Done builtin_initmisc >>> Starting builtin_infovars ACCEPT_KEYWORDS=x86 CBUILD=i686-pc-linux-gnu CFLAGS=-Os -mtune=pentium-m -march=pentium-m -mfpmath=sse -pipe -momit-leaf-frame-pointer -ggdb -w -ftree-vectorize -ftree-loop-optimize -ftree-loop-linear -freorder-blocks-and-partition -fgcse-sm -fgcse-las -fgcse-after-reload -ftracer -maccumulate-outgoing-args -findirect-inlining -floop-interchange -floop-block -floop-strip-mine CHOST=i686-pc-linux-gnu CONFIG_PROTECT= CONFIG_PROTECT_MASK= CPPFLAGS= CTARGET= CXXFLAGS=-Os -mtune=pentium-m -march=pentium-m -mfpmath=sse -pipe -momit-leaf-frame-pointer -ggdb -w -ftree-vectorize -ftree-loop-optimize -ftree-loop-linear -freorder-blocks-and-partition -fgcse-sm -fgcse-las -fgcse-after-reload -ftracer -maccumulate-outgoing-args -findirect-inlining -floop-interchange -floop-block -floop-strip-mine DISTDIR=/var/tmp/distfiles FEATURES=collision-protect cvs digest multilib-strict sign splitdebug stricter userpriv usersandbox FFLAGS= GENTOO_MIRRORS= INSTALL_MASK= LANG= LC_ALL=C LDFLAGS=-Wl,-O1 -Wl,--as-needed -Wl,--hash-style=both -Wl,--sort-common LINGUAS=en_GB en_US pl MAKEOPTS= PORTAGE_COMPRESS= PORTAGE_COMPRESS_FLAGS= PORTAGE_CONFIGROOT= PORTAGE_RSYNC_EXTRA_OPTS= PORTAGE_RSYNC_OPTS= PORTAGE_TMPDIR=/var/tmp/paludis PORTDIR=/usr/portage PORTDIR_OVERLAY= SYNC= USE=X cups doc jpeg jpeg2k tiff x86 alsa_cards_atiixp alsa_pcm_plugins_adpcm alsa_pcm_plugins_alaw alsa_pcm_plugins_asym alsa_pcm_plugins_copy alsa_pcm_plugins_dmix alsa_pcm_plugins_dshare alsa_pcm_plugins_dsnoop alsa_pcm_plugins_empty alsa_pcm_plugins_extplug alsa_pcm_plugins_file alsa_pcm_plugins_hooks alsa_pcm_plugins_iec958 alsa_pcm_plugins_ioplug alsa_pcm_plugins_ladspa alsa_pcm_plugins_lfloat alsa_pcm_plugins_linear alsa_pcm_plugins_meter alsa_pcm_plugins_mmap_emul alsa_pcm_plugins_mulaw alsa_pcm_plugins_multi alsa_pcm_plugins_null alsa_pcm_plugins_plug alsa_pcm_plugins_rate alsa_pcm_plugins_route alsa_pcm_plugins_share alsa_pcm_plugins_shm alsa_pcm_plugins_softvol apache2_modules_actions apache2_modules_alias apache2_modules_auth_basic apache2_modules_authn_alias apache2_modules_authn_anon apache2_modules_authn_dbm apache2_modules_authn_default apache2_modules_authn_file apache2_modules_authz_dbm apache2_modules_authz_default apache2_modules_authz_groupfile apache2_modules_authz_host apache2_modules_authz_owner apache2_modules_authz_user apache2_modules_autoindex apache2_modules_cache apache2_modules_dav apache2_modules_dav_fs apache2_modules_dav_lock apache2_modules_deflate apache2_modules_dir apache2_modules_disk_cache apache2_modules_env apache2_modules_expires apache2_modules_ext_filter apache2_modules_file_cache apache2_modules_filter apache2_modules_headers apache2_modules_include apache2_modules_info apache2_modules_log_config apache2_modules_logio apache2_modules_mem_cache apache2_modules_mime apache2_modules_mime_magic apache2_modules_negotiation apache2_modules_rewrite apache2_modules_setenvif apache2_modules_speling apache2_modules_status apache2_modules_unique_id apache2_modules_userdir apache2_modules_usertrack apache2_modules_vhost_alias cameras_panasonic elibc_glibc input_devices_evdev kernel_linux lcd_devices_bayrad lcd_devices_cfontz lcd_devices_cfontz633 lcd_devices_glk lcd_devices_hd44780 lcd_devices_lb216 lcd_devices_lcdm001 lcd_devices_mtxorb lcd_devices_ncurses lcd_devices_text linguas_en_GB linguas_en_US linguas_pl netbeans_modules_ide netbeans_modules_java netbeans_modules_websvccommon qemu_softmmu_targets_i386 qemu_softmmu_targets_x86_64 qemu_user_targets_i386 qemu_user_targets_x86_64 sane_backends_gt68xx userland_GNU video_cards_radeon x86 >>> Done builtin_infovars >>> Completed ebuild phases initmisc infovars >>> Running ebuild phase tidyup as paludisbuild:paludisbuild... >>> Starting builtin_tidyup rm -fr /var/tmp/paludis/x11-libs-gtk+-2.17.11-r1-info >>> Done builtin_tidyup >>> Completed ebuild phase tidyup
removing "-x objective-c++" from command line like this: bin/sh ../libtool --tag=CXX --mode=link i686-pc-linux-gnu-c++ -g -O2 -o autotestkeywords autotestkeywords-autotestkeywords.o solves problem
another solution is use automake-1.7.x: diff --git a/x11-libs/gtk+/gtk+-2.17.11-r1.ebuild b/x11-libs/gtk+/gtk+-2.17.11-r1.ebuild index b2df09b..4cf6a08 100644 --- a/x11-libs/gtk+/gtk+-2.17.11-r1.ebuild +++ b/x11-libs/gtk+/gtk+-2.17.11-r1.ebuild @@ -4,8 +4,9 @@ EAPI="2" -inherit gnome.org flag-o-matic eutils libtool virtualx +inherit gnome.org flag-o-matic eutils autotools virtualx +WANT_AUTOMAKE=1.7 DESCRIPTION="Gimp ToolKit +" HOMEPAGE="http://www.gtk.org/" @@ -83,7 +84,7 @@ src_prepare() { -i gtk/tests/testing.c || die "sed 1 failed" sed '\%/recent-manager/add%,/recent_manager_purge/ d' \ -i gtk/tests/recentmanager.c || die "sed 2 failed" - elibtoolize + eautoreconf } src_configure() {
Created attachment 203772 [details, diff] back to automake-1.7 patch
For me this didn't solve the problem, because no automake-1.7 is installed. I had to change the ebuild as follows: -WANT_AUTOMAKE=1.7 +WANT_AUTOMAKE=1.9
Created attachment 204333 [details] gtk+-2.17.11-r1.ebuild When you WANT_AUTOMAKE=1.9 (or whatever version) you also must add that automake version as a dependency to the ebuild.
Whoops! The description to the attachment should say "fixed sys-devel/automake:1.9 dependency". I shold really consider getting more sleep.
(In reply to comment #5) > Created an attachment (id=204333) [edit] > gtk+-2.17.11-r1.ebuild This ebuild works for me.
(In reply to comment #5) > Created an attachment (id=204333) [edit] > gtk+-2.17.11-r1.ebuild > > When you WANT_AUTOMAKE=1.9 (or whatever version) you also must add that > automake version as a dependency to the ebuild. > Nop because this depend is implicitly handled by autotools.eclass.
Apparently duplicate of bug #285183 *** This bug has been marked as a duplicate of bug 285183 ***