Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
error on binutils emerge [Solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
oc666
Guru
Guru


Joined: 15 May 2006
Posts: 330
Location: Israel

PostPosted: Fri Sep 30, 2011 4:40 pm    Post subject: error on binutils emerge [Solved] Reply with quote

Hey
When updating world I'm getting error on compiling binutils package. Here is the output:
Code:

x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I/var/tmp/portage/sys-devel/binutils-2.21.1-r1/work/binutils-2.21.1/gold  -I/var/tmp/portage/sys-devel/binutils-2.21.1-r1/work/binutils-2.21.1/gold -I/var/tmp/portage/sys-devel/binutils-2.21.1-r1/work/binutils-2.21.1/gold/../include -I/var/tmp/portage/sys-devel/binutils-2.21.1-r1/work/binutils-2.21.1/gold/../elfcpp -DLOCALEDIR="\"/usr/share/binutils-data/x86_64-pc-linux-gnu/2.21.1/locale\"" -DBINDIR="\"/usr/x86_64-pc-linux-gnu/binutils-bin/2.21.1\"" -DTOOLBINDIR="\"/usr/x86_64-pc-linux-gnu/bin\""   -W -Wall    -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -frandom-seed=sparc.o -O2 -pipe -MT sparc.o -MD -MP -MF .deps/sparc.Tpo -c -o sparc.o /var/tmp/portage/sys-devel/binutils-2.21.1-r1/work/binutils-2.21.1/gold/sparc.cc
{standard input}: Assembler messages:
{standard input}:58054: Warning: end of file not at end of a line; newline inserted
{standard input}:58879: Error: open CFI at the end of file; missing .cfi_endproc directive
x86_64-pc-linux-gnu-g++: Internal error: Killed (program cc1plus)
Please submit a full bug report.
See <http://bugs.gentoo.org/> for instructions.
make[4]: *** [output.o] 1 הלקת
make[4]: *** ...ומייתסנ םרטש תודובעל ןיתממ
mv -f .deps/x86_64.Tpo .deps/x86_64.Po
mv -f .deps/sparc.Tpo .deps/sparc.Po
make[4]: Leaving directory `/var/tmp/portage/sys-devel/binutils-2.21.1-r1/work/build/gold'
make[3]: *** [all-recursive] 1 הלקת
make[3]: Leaving directory `/var/tmp/portage/sys-devel/binutils-2.21.1-r1/work/build/gold'
make[2]: *** [all] 2 הלקת
make[2]: Leaving directory `/var/tmp/portage/sys-devel/binutils-2.21.1-r1/work/build/gold'
make[1]: *** [all-gold] 2 הלקת
make[1]: Leaving directory `/var/tmp/portage/sys-devel/binutils-2.21.1-r1/work/build'
make: *** [all] 2 הלקת
emake failed
 * ERROR: sys-devel/binutils-2.21.1-r1 failed (compile phase):
 *   emake failed
 *
 * Call stack:
 *     ebuild.sh, line   56:  Called src_compile
 *   environment, line 3266:  Called toolchain-binutils_src_compile
 *   environment, line 3960:  Called die
 * The specific snippet of code:
 *       emake all || die "emake failed";
 *
 * If you need support, post the output of 'emerge --info =sys-devel/binutils-2.21.1-r1',
 * the complete build log and the output of 'emerge -pqv =sys-devel/binutils-2.21.1-r1'.
 * The complete build log is located at '/var/tmp/portage/sys-devel/binutils-2.21.1-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sys-devel/binutils-2.21.1-r1/temp/environment'.
 * S: '/var/tmp/portage/sys-devel/binutils-2.21.1-r1/work/binutils-2.21.1'

>>> Failed to emerge sys-devel/binutils-2.21.1-r1, Log file:


Here is the info of the emerge:
Code:

www ~ # emerge --info =sys-devel/binutils-2.21.1-r1
Portage 2.1.10.11 (default/linux/amd64/10.0, gcc-4.4.4, glibc-2.12.2-r0, 2.6.39.1-x86_64-linode19 x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-2.6.39.1-x86_64-linode19-x86_64-Intel-R-_Xeon-R-_CPU_L5520_@_2.27GHz-with-gentoo-2.0.3
Timestamp of tree: Fri, 30 Sep 2011 09:45:01 +0000
app-shells/bash:          4.1_p9
dev-lang/python:          2.6.6-r1, 2.7.1-r1, 3.1.3-r1
dev-util/cmake:           2.8.4-r1
dev-util/pkgconfig:       0.25-r2
sys-apps/baselayout:      2.0.3
sys-apps/openrc:          0.8.3-r1
sys-apps/sandbox:         2.4
sys-devel/autoconf:       2.68
sys-devel/automake:       1.11.1
sys-devel/binutils:       2.20.1-r1
sys-devel/gcc:            4.4.4-r2
sys-devel/gcc-config:     1.4.1-r1
sys-devel/libtool:        2.2.10
sys-devel/make:           3.82-r1
sys-kernel/linux-headers: 2.6.36.1 (virtual/os-headers)
sys-libs/glibc:           2.12.2
Repositories: gentoo
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://mirror.mcs.anl.gov/pub/gentoo/ ftp://mirror.mcs.anl.gov/pub/gentoo/ http://www.gtlib.gatech.edu/pub/gentoo ftp://ftp.gtlib.gatech.edu/pub/gentoo"
LANG="he_IL.UTF-8"
LC_ALL="he_IL.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="he en"
MAKEOPTS="-j3"
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"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
USE="acl amd64 bash-completion berkdb bzip2 cli cracklib crypt cxx dri fortran gdbm geoip gpm iconv ipv6 json mmx modules mudflap multilib mysql mysqli ncurses nginx nls nptl nptlonly openmp pam pcre pdo perl php pppd python readline session soap sse sse2 ssl svn sysfs tcpd unicode utf utf8 vhosts 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 cgi cgid 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" CALLIGRA_FEATURES="kexi words flow plan stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="he en" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga neomagic nouveau nv r128 radeon savage sis tdfx trident vesa via vmware dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


Here is the build.log.

Thanks
_________________
embAD-new way to insert ads to your website


Last edited by oc666 on Sat Oct 01, 2011 11:49 pm; edited 1 time in total
Back to top
View user's profile Send private message
mv
Watchman
Watchman


Joined: 20 Apr 2005
Posts: 6747

PostPosted: Fri Sep 30, 2011 5:40 pm    Post subject: Re: error on binutils emerge Reply with quote

oc666 wrote:
Code:
x86_64-pc-linux-gnu-g++: Internal error: Killed (program cc1plus)

This usually means that you are running our of memory. If you are low on memory try adding more swap and remove MAKEOPTS="-j3".
Back to top
View user's profile Send private message
oc666
Guru
Guru


Joined: 15 May 2006
Posts: 330
Location: Israel

PostPosted: Fri Sep 30, 2011 6:51 pm    Post subject: Re: error on binutils emerge Reply with quote

mv wrote:
oc666 wrote:
Code:
x86_64-pc-linux-gnu-g++: Internal error: Killed (program cc1plus)

This usually means that you are running our of memory. If you are low on memory try adding more swap and remove MAKEOPTS="-j3".

Hey
Thanks for the quick reply.
How could I adding more swap?? It looks like very hard task to production system.
About the change MAKEOPTS - is this change only for the specific emerge or change it permanent?
_________________
embAD-new way to insert ads to your website
Back to top
View user's profile Send private message
mv
Watchman
Watchman


Joined: 20 Apr 2005
Posts: 6747

PostPosted: Fri Sep 30, 2011 8:00 pm    Post subject: Re: error on binutils emerge Reply with quote

oc666 wrote:
How could I adding more swap?

Code:
dd if=/dev/zero of=/tmp/swapfile bs=1K count=1MB
mkswap /tmp/swapfile
swapon /tmp/swapfile

If you want to make this permanent, you should put the file to another directory, of course (and add the swapon to some init-script).
However, if this is a serious production system you should have enough RAM anyway (1 GB should be more than enough for compiling binutils, even with -J3).
Quote:
About the change MAKEOPTS - is this change only for the specific emerge or change it permanent?

binutils is not a very RAM hungry program to compile. So if you are running out of RAM already for binutils, you will have problems with a lot more packages.

Or maybe you were just running something else simultaneously which needed almost all of your RAM? You should have a look with "free" or "top"/"htop". (Finally, there might also be other causes for the "killed" message although I never have met any).
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 7470

PostPosted: Fri Sep 30, 2011 10:58 pm    Post subject: Reply with quote

for me you're gcc was killed because of the previous error in the assembler file. And running without -march=something is certainly causing that issue.
you can also remove -pipe to save ram, but i doubt a xeon cpu is feed with a poor amount of ram.
try rebuild it with -march=native in your cflags
Back to top
View user's profile Send private message
mv
Watchman
Watchman


Joined: 20 Apr 2005
Posts: 6747

PostPosted: Sat Oct 01, 2011 7:05 am    Post subject: Reply with quote

krinn wrote:
for me you're gcc was killed because of the previous error in the assembler file.

Almost certainly not: An error in a file should not be able to kill gcc - even an internal error in gcc should lead to a segfault and not to a kill signal.
Quite the opposite is right: If gcc is killed, it produces a wrong assembler file (ending abruptly in the middle of the line as the error message states) which causes the assembler to die with an error message.
Quote:
And running without -march=something is certainly causing that issue.

No. Without -march=something, gcc assumes the safest defaults. (And even if the resulting CPU should be inappropriate it should be the produced code which is failing, not the compiling itself.)
Quote:
but i doubt a xeon cpu is feed with a poor amount of ram.

This depends of course completely on the system - oc666 will know how much ram he has. As I said, if the system has sufficient ram (like 1GB), I conjecture that a ram intensive task (or maybe a task with a memory leak) was running in parallel.
Back to top
View user's profile Send private message
oc666
Guru
Guru


Joined: 15 May 2006
Posts: 330
Location: Israel

PostPosted: Sat Oct 01, 2011 12:06 pm    Post subject: Reply with quote

Hey Again,
The server have 512MB RAM. The server is LNMP (Linux, Nginx, MySQL, PHP). I'll try to reduce the nginx pm_servers when the site is not too busy and recompile that. Another thing I could do is to make the emerge on other system, but I'm not familiar with that. Is there any good guide for that?

Thanks
_________________
embAD-new way to insert ads to your website
Back to top
View user's profile Send private message
oc666
Guru
Guru


Joined: 15 May 2006
Posts: 330
Location: Israel

PostPosted: Sat Oct 01, 2011 11:49 pm    Post subject: Reply with quote

oc666 wrote:
Hey Again,
I'll try to reduce the nginx pm_servers when the site is not too busy and recompile that.
Thanks

I've stop the nginx, mysql, php-fpm services on compile (when the site was down for maintaining) and it's compiled successfully.
Thanks for helpers.
_________________
embAD-new way to insert ads to your website
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming 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