Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 179493 - emake fails while make does it
Summary: emake fails while make does it
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-05-23 08:57 UTC by Petric Frank
Modified: 2007-05-23 19:59 UTC (History)
0 users

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 Petric Frank 2007-05-23 08:57:01 UTC
I try to build the suspend package (ebuild from Bug #156431). The build failed:

-------------------- cut --------------------
 * suspend-0.5.tar.gz MD5 ;-) ...                                                                    [ ok ]
 * suspend-0.5.tar.gz RMD160 ;-) ...                                                                 [ ok ]
 * suspend-0.5.tar.gz SHA1 ;-) ...                                                                   [ ok ]
 * suspend-0.5.tar.gz SHA256 ;-) ...                                                                 [ ok ]
 * suspend-0.5.tar.gz size ;-) ...                                                                   [ ok ]
 * checking ebuild checksums ;-) ...                                                                 [ ok ]
 * checking auxfile checksums ;-) ...                                                                [ ok ]
 * checking miscfile checksums ;-) ...                                                               [ ok ]
 * checking suspend-0.5.tar.gz ;-) ...                                                               [ ok ]
>>> Unpacking source...
>>> Unpacking suspend-0.5.tar.gz to /var/tmp/portage/sys-power/suspend-0.5/work
 * Applying suspend-0.5-build.patch ...                                                              [ ok ]
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/sys-power/suspend-0.5/work/suspend-0.5 ...
i686-pc-linux-gnu-gcc -march=pentium4 -O2 -pipe -c vt.c -o vt.o
i686-pc-linux-gnu-gcc -march=pentium4 -O2 -pipe -DHAVE_INTTYPES_H -DHAVE_STDINT_H -c md5.c -o md5.o
i686-pc-linux-gnu-gcc -march=pentium4 -O2 -pipe -DHAVE_INTTYPES_H -DHAVE_STDINT_H  -c encrypt.c -o encrypt.o
i686-pc-linux-gnu-gcc -march=pentium4 -O2 -pipe  -c config.c -o config.o
i686-pc-linux-gnu-gcc -g -march=pentium4 -O2 -pipe  -c bootsplash.c -o bootsplash.o
i686-pc-linux-gnu-gcc -g -march=pentium4 -O2 -pipe  -c splashy_funcs.c -o splashy_funcs.o
i686-pc-linux-gnu-gcc -march=pentium4 -O2 -pipe -c vbetool/lrmi.c -o vbetool/lrmi.o
i686-pc-linux-gnu-gcc -march=pentium4 -O2 -pipe -c vbetool/x86-common.c -o vbetool/x86-common.o
i686-pc-linux-gnu-gcc -march=pentium4 -O2 -pipe -DS2RAM -c vbetool/vbetool.c -o vbetool/vbetool.o
i686-pc-linux-gnu-gcc -march=pentium4 -O2 -pipe -DS2RAM -c radeontool.c -o radeontool.o
i686-pc-linux-gnu-gcc -march=pentium4 -O2 -pipe -DS2RAM -c dmidecode.c -o dmidecode.o
i686-pc-linux-gnu-gcc swap-offset.c -o swap-offset
i686-pc-linux-gnu-gcc -g -march=pentium4 -O2 -pipe  -c splash.c -o splash.o
i686-pc-linux-gnu-gcc -g -march=pentium4 -O2 -pipe  vt.o md5.o encrypt.o config.o suspend.c -o s2disk splash.o bootsplash.o
i686-pc-linux-gnu-gcc -march=pentium4 -O2 -pipe   md5.o encrypt.o config.o vt.o resume.c splash.o bootsplash.o  -static -o resume
i686-pc-linux-gnu-gcc -g -march=pentium4 -O2 -pipe -DCONFIG_BOTH  md5.o encrypt.o config.o suspend.c s2ram.c -o s2both vt.o vbetool/lrmi.o vbetool/x86-common.o vbetool/vbetool.o radeontool.o dmidecode.o splash.o bootsplash.o   -lpci
i686-pc-linux-gnu-gcc -march=pentium4 -O2 -pipe -g s2ram.c vt.o vbetool/lrmi.o vbetool/x86-common.o vbetool/vbetool.o radeontool.o dmidecode.o -lpci -o s2ram
/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/../../../../i686-pc-linux-gnu/bin/ld: BFD 2.16.1 internal error, aborting at /var/tmp/portage/binutils-2.16.1-r3/work/binutils-2.16.1/bfd/merge.c line 841 in _bfd_merged_section_offset

/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/../../../../i686-pc-linux-gnu/bin/ld: Please report this bug.

collect2: ld returned 1 exit status
distcc[10433] ERROR: compile (null) on localhost failed
make: *** [resume] Error 1
make: *** Waiting for unfinished jobs....

!!! ERROR: sys-power/suspend-0.5 failed.
Call stack:
  ebuild.sh, line 1614:   Called dyn_compile
  ebuild.sh, line 971:   Called qa_call 'src_compile'
  environment, line 3113:   Called src_compile
  suspend-0.5.ebuild, line 27:   Called die

!!! (no error message)
!!! 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/sys-power/suspend-0.5/temp/build.log'.

!!! This ebuild is from an overlay: '/usr/local/portage'
-------------------- cut --------------------

Anyhow if i do:

ebuild suspend-0.0.ebuild unpack
cd /var/tmp/.../suspend-0.5
make

everything works ok.

Reproducible: Always

Steps to Reproduce:
1.take ebuild (and patch) from Bug #156431 and put it to portage overlay
2.get source from http://suspend.sf.net and put it to distfiles
3.emerge suspend
Actual Results:  
Compile fails

Expected Results:  
Install suspend programs

Portage 2.1.2.2 (default-linux/x86/2006.1, gcc-4.1.1, glibc-2.5-r0, 2.6.18-suspend2-r1 i686)
=================================================================
System uname: 2.6.18-suspend2-r1 i686 Intel(R) Pentium(R) 4 CPU 2.80GHz
Gentoo Base System release 1.12.9
Timestamp of tree: Tue, 15 May 2007 01:47:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
dev-java/java-config: 1.3.7, 2.0.31
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.14
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium4 -O2 -pipe"
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/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/php/apache1-php5/ext-active/ /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-march=pentium4 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distcc distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="en_US"
LINGUAS="en de"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="X acpi alsa apache2 arts audiofile berkdb bitmap-fonts bzip2 cdr cli cracklib crypt cups dbus dga dri dvd dvdr dvdread exif fastcgi ffmpeg foomaticdb fortran ftp gdbm gif gnome gpm gtk gtk2 hal iconv isdnlog java jikes jpeg kde kdehiddenvisibility ldap libg++ lm_sensors midi mmx mozilla mysql mysqli ncurses nis nls nptl nptlonly opengl pam pcre pdf perl png ppds pppd python qt qt3 readline reflection samba session spl ssl tcpd tidy tiff truetype truetype-fonts type1-fonts unicode usb vorbis win32codecs x86 xml xml2 xorg xpm xv zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 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 mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en de" USERLAND="GNU" VIDEO_CARDS="i810 vesa vga"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Petric Frank 2007-05-23 09:09:07 UTC
If i use -j1 as make option (in /etc/make.conf) everything goes well.

But the reverse test running with "make -j5" was also successful.

Any ideas ?
Comment 2 Carsten Lohrke (RETIRED) gentoo-dev 2007-05-23 15:45:34 UTC
We do not support ebuilds, which are not in the repository. 
Comment 3 Petric Frank 2007-05-23 19:59:12 UTC
Sorry to hear that, because is (in my opinion) not a problem of this specific ebuild. It seems to be more a problem of usage of emake inside an ebuild.

I hoped to get a hint here where to look out for a fix. Maybe someone also got a similar binutils behaviour and can give me an idea where to look out.