Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 294648 - dev-libs/glib-2.22.2: can't build
Summary: dev-libs/glib-2.22.2: can't build
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Hardened (show other bugs)
Hardware: x86 Linux
: High minor (vote)
Assignee: The Gentoo Linux Hardened Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-25 21:55 UTC by Dudás László
Modified: 2010-03-18 00:51 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dudás László 2009-11-25 21:55:49 UTC
This is fresh installation. After the emere -ev system.

libtool: link: i686-pc-linux-gnu-gcc -g -O2 -mtune=pentium3 -march=pentium3 -pipe -msse -mmmx -Wall -Wl,-O1 -o .libs/scannerapi scannerapi.o  ../glib/.libs/libglib-2.0.so
i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I..  -I.. -I../glib -I../gmodule -DG_DISABLE_CAST_CHECKS -DG_DISABLE_SINGLE_INCLUDES -pthread -g -O2 -mtune=pentium3 -march=pentium3 -pipe -msse -mmmx -Wall -MT testglib.o -MD -MP -MF .deps/testglib.Tpo -c -o testglib.o testglib.c
testglib.c: In function 'various_string_tests':
testglib.c:1336: warning: assignment discards qualifiers from pointer target type
mv -f .deps/testglib.Tpo .deps/testglib.Po
/bin/sh ../libtool  --tag=CC   --mode=link i686-pc-linux-gnu-gcc -g -O2 -mtune=pentium3 -march=pentium3 -pipe -msse -mmmx -Wall  -Wl,-O1 -o testglib testglib.o ../glib/libglib-2.0.la 
libtool: link: i686-pc-linux-gnu-gcc -g -O2 -mtune=pentium3 -march=pentium3 -pipe -msse -mmmx -Wall -Wl,-O1 -o .libs/testglib testglib.o  ../glib/.libs/libglib-2.0.so
testglib.o: file not recognized: File format not recognized
collect2: ld returned 1 exit status
make[3]: *** [testglib] Error 1
make[3]: Leaving directory `/var/tmp/portage/dev-libs/glib-2.22.2/work/glib-2.22.2/tests'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/dev-libs/glib-2.22.2/work/glib-2.22.2/tests'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/dev-libs/glib-2.22.2/work/glib-2.22.2'
make: *** [all] Error 2
 * ERROR: dev-libs/glib-2.22.2 failed:
 *   emake failed
 * 
 * Call stack:
 *     ebuild.sh, line   55:  Called src_compile
 *   environment, line 2910:  Called _eapi2_src_compile
 *     ebuild.sh, line  635:  Called die
 * The specific snippet of code:
 *              emake || die "emake failed"
 * 
 * If you need support, post the output of 'emerge --info =dev-libs/glib-2.22.2',
 * the complete build log and the output of 'emerge -pqv =dev-libs/glib-2.22.2'.
 * The complete build log is located at '/var/tmp/portage/dev-libs/glib-2.22.2/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-libs/glib-2.22.2/temp/environment'.
 * S: '/var/tmp/portage/dev-libs/glib-2.22.2/work/glib-2.22.2'


Reproducible: Always

Steps to Reproduce:
1.emerge -av glib
2.eselect set gcc
3.make a new kernel... 



Actual Results:  
libtool: link: i686-pc-linux-gnu-gcc -g -O2 -mtune=pentium3 -march=pentium3 -pipe -msse -mmmx -Wall -Wl,-O1 -o .libs/scannerapi scannerapi.o  ../glib/.libs/libglib-2.0.so
i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I..  -I.. -I../glib -I../gmodule -DG_DISABLE_CAST_CHECKS -DG_DISABLE_SINGLE_INCLUDES -pthread -g -O2 -mtune=pentium3 -march=pentium3 -pipe -msse -mmmx -Wall -MT testglib.o -MD -MP -MF .deps/testglib.Tpo -c -o testglib.o testglib.c
testglib.c: In function 'various_string_tests':
testglib.c:1336: warning: assignment discards qualifiers from pointer target type
mv -f .deps/testglib.Tpo .deps/testglib.Po
/bin/sh ../libtool  --tag=CC   --mode=link i686-pc-linux-gnu-gcc -g -O2 -mtune=pentium3 -march=pentium3 -pipe -msse -mmmx -Wall  -Wl,-O1 -o testglib testglib.o ../glib/libglib-2.0.la 
libtool: link: i686-pc-linux-gnu-gcc -g -O2 -mtune=pentium3 -march=pentium3 -pipe -msse -mmmx -Wall -Wl,-O1 -o .libs/testglib testglib.o  ../glib/.libs/libglib-2.0.so
testglib.o: file not recognized: File format not recognized
collect2: ld returned 1 exit status
make[3]: *** [testglib] Error 1
make[3]: Leaving directory `/var/tmp/portage/dev-libs/glib-2.22.2/work/glib-2.22.2/tests'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/dev-libs/glib-2.22.2/work/glib-2.22.2/tests'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/dev-libs/glib-2.22.2/work/glib-2.22.2'
make: *** [all] Error 2
 * ERROR: dev-libs/glib-2.22.2 failed:
 *   emake failed
 * 
 * Call stack:
 *     ebuild.sh, line   55:  Called src_compile
 *   environment, line 2910:  Called _eapi2_src_compile
 *     ebuild.sh, line  635:  Called die
 * The specific snippet of code:
 *              emake || die "emake failed"
 * 
 * If you need support, post the output of 'emerge --info =dev-libs/glib-2.22.2',
 * the complete build log and the output of 'emerge -pqv =dev-libs/glib-2.22.2'.
 * The complete build log is located at '/var/tmp/portage/dev-libs/glib-2.22.2/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-libs/glib-2.22.2/temp/environment'.
 * S: '/var/tmp/portage/dev-libs/glib-2.22.2/work/glib-2.22.2'



sleep / # emerge --info 
Portage 2.1.7.6 (hardened/linux/x86/10.0, gcc-4.3.4-hardenednopie, glibc-2.11-r0, 2.6.31-gentoo-r5 i686)
=================================================================
System uname: Linux-2.6.31-gentoo-r5-i686-Pentium_III_-Coppermine-with-gentoo-2.0.1
Timestamp of tree: Wed, 25 Nov 2009 17:30:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     4.0_p35
dev-lang/python:     2.6.4, 3.1.1-r1
dev-util/ccache:     2.4-r8
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.5.2-r2
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.64
sys-devel/automake:  1.10.2, 1.11
sys-devel/binutils:  2.20
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="x86 ~x86"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -mtune=pentium3 -march=pentium3 -pipe -msse -mmmx"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -mtune=pentium3 -march=pentium3 -pipe -msse -mmmx"
DISTDIR="/var/gentoo/portage/distfiles"
FEATURES="assume-digests ccache distlocks fixpackages metadata-transfer news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LDFLAGS="-Wl,-O1"
LINGUAS="hu"
PKGDIR="/var/gentoo/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="acl berkdb bzip2 cli cracklib crypt cups dri gdbm gpm hardened iconv modules mudflap ncurses nls nptl nptlonly openmp pam pcre perl pic pppd python readline reflection session spl ssl sysfs tcpd urandom x86 xorg zlib" ALSA_CARDS="via82xx sbawe" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="hu" LIRC_DEVICES="serial" SANE_BACKENDS="AGFA-Gevaert NV SnapScan 1212U" USERLAND="GNU" VIDEO_CARDS="nv nouveau" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Dudás László 2009-11-25 21:59:16 UTC
ohh sorry :(
2.eselect set gcc = gcc-config i686-pc-linux-gnu-4.3.4-hardenednopie
Comment 2 Jory A. Pratt gentoo-dev 2009-12-31 01:39:09 UTC
Please disable ccache and retest.
Comment 3 Jory A. Pratt gentoo-dev 2010-02-08 04:26:13 UTC
Can we please get a report as to weather disabling ccache has resolved your problem please. I have tested on both x86 and x86_64 and been unable to reproduce this with your exact setup.
Comment 4 Jory A. Pratt gentoo-dev 2010-03-18 00:51:08 UTC
Request for info was made and no response from reporter closing needinfo, if someone disagrees you can close test-request.