Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 288577 - dev-libs/glib-2.20.5 has parallel make issues in compile phase
Summary: dev-libs/glib-2.20.5 has parallel make issues in compile phase
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-11 16:11 UTC by Staser
Modified: 2010-04-01 17:08 UTC (History)
3 users (show)

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


Attachments
glib environment file (environment,113.50 KB, text/plain)
2010-01-30 18:35 UTC, Donald A. Tevault
Details
build-log for failed glib emerge (build.log.txt,146.80 KB, text/plain)
2010-01-30 18:36 UTC, Donald A. Tevault
Details
emerge output for failed glib build (glibs_info.txt,3.36 KB, text/plain)
2010-01-30 18:38 UTC, Donald A. Tevault
Details
Makefile for failed glib emerge (Makefile,19.13 KB, text/plain)
2010-01-30 18:40 UTC, Donald A. Tevault
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Staser 2009-10-11 16:11:24 UTC
-----
make[2]: Entering directory `/var/tmp/portage/dev-libs/glib-2.20.5/work/glib-2.20.5/gobject'
x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I..  -DG_LOG_DOMAIN=\"GLib-GObject\" -I.. -I../glib -I.. -DG_DISABLE_CAST_CHECKS -DG_DISABLE_DEPRECATED -DGOBJECT_COMPILATION -DG_DISABLE_CONST_RETURNS -DG_DISABLE_SINGLE_INCLUDES -pthread  -O3 -pipe -march=native -fomit-frame-pointer -Wall -MT glib-genmarshal.o -MD -MP -MF .deps/glib-genmarshal.Tpo -c -o glib-genmarshal.o glib-genmarshal.c
mv -f .deps/glib-genmarshal.Tpo .deps/glib-genmarshal.Po
/bin/sh ../libtool --tag=CC   --mode=link x86_64-pc-linux-gnu-gcc  -O3 -pipe -march=native -fomit-frame-pointer -Wall  -Wl,-O1 -o glib-genmarshal glib-genmarshal.o ../glib/libglib-2.0.la
libtool: link: x86_64-pc-linux-gnu-gcc -O3 -pipe -march=native -fomit-frame-pointer -Wall -Wl,-O1 -o .libs/glib-genmarshal glib-genmarshal.o  ../glib/.libs/libglib-2.0.so
make glib-genmarshal
make[3]: Entering directory `/var/tmp/portage/dev-libs/glib-2.20.5/work/glib-2.20.5/gobject'
make[3]: `glib-genmarshal' is up to date.
make[3]: Leaving directory `/var/tmp/portage/dev-libs/glib-2.20.5/work/glib-2.20.5/gobject'

***************

echo "#ifndef __G_MARSHAL_H__" > xgen-gmh \
        && echo "#define __G_MARSHAL_H__" >> xgen-gmh \
        && ./glib-genmarshal --nostdinc --prefix=g_cclosure_marshal ./gmarshal.list --header >> xgen-gmh \
        && echo "#endif /* __G_MARSHAL_H__ */" >> xgen-gmh \
        && (cmp -s xgen-gmh gmarshal.h 2>/dev/null || cp xgen-gmh gmarshal.h) \
        && rm -f xgen-gmh xgen-gmh~ \
        && echo timestamp > stamp-gmarshal.h
/var/tmp/portage/dev-libs/glib-2.20.5/work/glib-2.20.5/gobject/.libs/glib-genmarshal: error while loading shared libraries: libglib-2.0.so.0: cannot open shared object file: No such file or directory
make[2]: *** [stamp-gmarshal.h] Error 127
make[2]: Leaving directory `/var/tmp/portage/dev-libs/glib-2.20.5/work/glib-2.20.5/gobject'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/dev-libs/glib-2.20.5/work/glib-2.20.5'
make: *** [all] Error 2
 * ERROR: dev-libs/glib-2.20.5 failed:
 *   emake failed
 *
 * Call stack:
 *     ebuild.sh, line   49:  Called src_compile
 *   environment, line 2946:  Called _eapi2_src_compile
 *     ebuild.sh, line  638:  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.20.5',
 * the complete build log and the output of 'emerge -pqv =dev-libs/glib-2.20.5'.
 * The complete build log is located at '/var/tmp/portage/dev-libs/glib-2.20.5/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-libs/glib-2.20.5/temp/environment'.
 * S: '/var/tmp/portage/dev-libs/glib-2.20.5/work/glib-2.20.5'


Reproducible: Always

Steps to Reproduce:
1.Get Gentoo minimal install CD (AMD64)
2.Configure system, and at last step install additional packages, vixie-cron and this syslog-ng.


Expected Results:  
Installed syslog-ng

Reported error
Comment 1 Sebastian Luther (few) 2009-10-12 08:12:22 UTC
Please try again with MAKEOPTS="-j1". If it doesn't help, provide emerge --info.

OT: You shouldn't use -O3 unless you know what you are doing.
Comment 2 Staser 2009-10-12 12:49:26 UTC
I tried also -O1 and -J1, problem remains

(chroot) livecd linux # emerge --info
Portage 2.1.6.13 (default/linux/amd64/10.0/server, gcc-4.3.2, glibc-2.9_p20081201-r2, 2.6.30-gentoo-r4 x86_64)
=================================================================
System uname: Linux-2.6.30-gentoo-r4-x86_64-Intel-R-_Pentium-R-_4_CPU_3.20GHz-with-gentoo-1.12.11.1
Timestamp of tree: Mon, 12 Oct 2009 11:15:01 +0000
app-shells/bash:     3.2_p39
dev-lang/python:     2.6.2-r1
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.63-r1
sys-devel/automake:  1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O1 -pipe -mtune=nocona -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="{-O1 -pipe -mtune=nocona -fomit-frame-pointer}"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.tups.lv/source/ "
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j1"
PKGDIR="/usr/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.europe.gentoo.org/gentoo-portage"
USE="acl amd64 apache2 berkdb bzip2 cli cracklib crypt cups dri fortran gdbm gpm iconv isdnlog ldap mmx modules mudflap multilib mysql ncurses nls nptl nptlonly openmp pam pcre perl pppd python readline reflection session snmp spl sse sse2 sse3 ssl sysfs tcpd truetype unicode xml xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga neomagic nv r128 radeon savage sis tdfx trident vesa vga via vmware voodoo"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 3 Justin Lecher (RETIRED) gentoo-dev 2009-10-13 06:58:00 UTC
 * If you need support, post the output of 'emerge --info
=dev-libs/glib-2.20.5',
 * the complete build log and the output of 'emerge -pqv
=dev-libs/glib-2.20.5'.
 * The complete build log is located at
'/var/tmp/portage/dev-libs/glib-2.20.5/temp/build.log'.
 * The ebuild environment file is located at
'/var/tmp/portage/dev-libs/glib-2.20.5/temp/environment'.
Comment 4 Justin Lecher (RETIRED) gentoo-dev 2009-10-13 06:58:35 UTC
And please try it with -02, although I don't think thisis the problem.
Comment 5 Samuli Suominen (RETIRED) gentoo-dev 2009-10-13 07:46:45 UTC
Full build.log needed.

(That's -O2, not -02.)
Comment 6 Justin Lecher (RETIRED) gentoo-dev 2009-10-13 08:22:09 UTC
(In reply to comment #5)
> Full build.log needed.
> 
> (That's -O2, not -02.)
> 

Of course, ;).
Comment 7 Staser 2009-10-13 23:18:21 UTC
Well, I have good news for all, I have found error core, that was
in this line ->> CXXFLAGS="{-O1 -pipe -mtune=nocona -fomit-frame-pointer}" <<-

See that { and }, these are superfluous =)

Sorry for a carelessness, error was actually in make.conf -> CXXFLAGS="{$FLAGS}" but needed CXXFLAGS="$FLAGS"

Huh ;)

Thank you everyone (and sorry for my English)
Comment 8 Justin Lecher (RETIRED) gentoo-dev 2009-10-14 06:43:06 UTC
Reopen to close
Comment 9 Donald A. Tevault 2010-01-30 18:35:15 UTC
Created attachment 217931 [details]
glib environment file
Comment 10 Donald A. Tevault 2010-01-30 18:36:26 UTC
Created attachment 217932 [details]
build-log for failed glib emerge
Comment 11 Donald A. Tevault 2010-01-30 18:38:28 UTC
Created attachment 217934 [details]
emerge output for failed glib build
Comment 12 Donald A. Tevault 2010-01-30 18:40:05 UTC
Created attachment 217936 [details]
Makefile for failed glib emerge
Comment 13 Donald A. Tevault 2010-01-30 18:44:08 UTC
(In reply to comment #4)
> And please try it with -02, although I don't think thisis the problem.
> 

This is still a problem, as it has just happened to me.  (And, the "CXXFLAGS" error that a previous poster mentioned doesn't exist in my Makefile.)

I've attached the pertinent output files for your examination.
Comment 14 kfm 2010-04-01 17:08:43 UTC
Donald, your CXXFLAGS declaration is also invalid (just like the bug):

CXXFLAGS="march=athlon64 -O2 -pipe"

... should be:

CXXFLAGS="-march=athlon64 -O2 -pipe"

I would suggest using: CXXFLAGS="${CFLAGS}"