Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 312701 - sys-devel/gcc-4.3.4 ebuild borked? rsync mirror problem?
Summary: sys-devel/gcc-4.3.4 ebuild borked? rsync mirror problem?
Status: RESOLVED DUPLICATE of bug 302984
Alias: None
Product: Mirrors
Classification: Unclassified
Component: Server Problem (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Mirror Admins
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-04-01 20:29 UTC by Adam Pyschny
Modified: 2010-04-02 14:24 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 Adam Pyschny 2010-04-01 20:29:28 UTC
I tried this several times now, have no other explanation as that the ebuild is damaged - I can not reemerge it, it fails in several ways, check the Stepsto reproduce for details.



Reproducible: Always

Steps to Reproduce:
To reproduce do the following:
On AMD64 (not tried on any othe plattform) do:
emerge --sync
then emerge gcc

the result:
SERVER=> FieserServer ~ # emerge -1 gcc
Calculating dependencies... done!

>>> Verifying ebuild manifests

!!! Digest verification failed:
!!! /usr/portage/sys-devel/gcc/files/gcc-spec-env.patch
!!! Reason: Failed on RMD160 verification
!!! Got: 1d217929d0cd4f3493f732ebc125785d6af8cd79
!!! Expected: c3b9071296dbb7a37901714ef4db75bf04211381

Ok, repair the digest going into /usr/portage/sys-devel/gcc and typing
ebuild gcc-4.3.4.ebuild digest

emerge gcc works now, it downloads everything, runs configure, starts compiling and then fails:

/var/tmp/portage/sys-devel/gcc-4.3.4/work/gcc-4.3.4/gcc/gcc.c: In function ‘main’:
/var/tmp/portage/sys-devel/gcc-4.3.4/work/gcc-4.3.4/gcc/gcc.c:6482: error: stray ‘`’ in program
/var/tmp/portage/sys-devel/gcc-4.3.4/work/gcc-4.3.4/gcc/gcc.c:6482: error: ‘xm’ undeclared (first use in this function)
/var/tmp/portage/sys-devel/gcc-4.3.4/work/gcc-4.3.4/gcc/gcc.c:6482: error: (Each undeclared identifier is reported only once
/var/tmp/portage/sys-devel/gcc-4.3.4/work/gcc-4.3.4/gcc/gcc.c:6482: error: for each function it appears in.)
/var/tmp/portage/sys-devel/gcc-4.3.4/work/gcc-4.3.4/gcc/gcc.c:6482: error: expected ‘,’ or ‘;’ before ‘lloc’
make[3]: *** [gcc.o] Error 1
make[3]: *** Waiting for unfinished jobs....

So i checked that one, and really  gcc-spec-env.patch inerts this line to that file:
+            xm`lloc (sizeof (struct user_specs));

obviously a typo. So I fixed that one, reran ebuild digest and reran emerge gcc.
It started fine but then:

gcc.o: In function `main':
gcc.c:(.text+0x9fe9): undefined reference to `xmlloc'
collect2: ld returned 1 exit status
make[3]: *** [xgcc] Error 1
make[3]: *** Waiting for unfinished jobs....
rm gcc.pod

xmlloc? looks like another typo, haven't investigated further. any ideas anyone on this? Or is my system borked? I repeated that procedure several times, but the errors are always exact the same, unlikely that its my ram or harddrive which produces biterrors.
Actual Results:  
Typo after typo to fix...

Expected Results:  
gcc should be build without any problems. I ran a complete emerge --deep --emptytree world and it went all fine but gcc.

I already deleted gcc from portage tree and resynced to verify that that is not just some rsync weirdness, but no change...

emerge --info output:
SERVER=> FieserServer ~ # emerge --info
Portage 2.1.7.17 (default/linux/amd64/10.0/no-multilib, gcc-4.3.4, glibc-2.10.1-r1, 2.6.33-zen1 x86_64)
=================================================================
System uname: Linux-2.6.33-zen1-x86_64-Intel-R-_Atom-TM-_CPU_D510_@_1.66GHz-with-gentoo-1.12.13
Timestamp of tree: Thu, 01 Apr 2010 18:45:03 +0000
app-shells/bash:     4.0_p35
dev-lang/python:     2.6.4-r1
dev-util/cmake:      2.6.4-r3
sys-apps/baselayout: 1.12.13
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.63-r1
sys-devel/automake:  1.10.3
sys-devel/binutils:  2.18-r3
sys-devel/gcc:       4.3.4
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -O2 -pipe -mtune=generic -fomit-frame-pointer -mssse3 -mfpmath=sse"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=core2 -O2 -pipe -mtune=generic -fomit-frame-pointer -mssse3 -mfpmath=sse"
DISTDIR="/var/portage/distfiles"
FEATURES="assume-digests distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror/ ftp://mirror.netcologne.de/gentoo/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo "
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="en de"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--exclude ChangeLog --delete-excluded"
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 acpi amd64 apache2 bash-completion berkdb bzip2 cli cracklib crypt cups cxx dedicated encode fortran gdbm hddtemp iconv ipv6 java6 mmx modules mudflap ncurses nls nptl nptlonly openmp pam pcre perl pppd python readline reflection samba session sharedmem smp spl sse sse2 sse3 ssl sysfs tcpd threads unicode usb vim-syntax wifi 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" LINGUAS="en de" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga neomagic nv r128 radeon savage sis tdfx trident vesa via vmware voodoo" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTDIR_OVERLAY
Comment 1 Adam Pyschny 2010-04-01 22:39:41 UTC
Ok, it seems the only bug here is that typo line in /usr/portage/sys-devel/gcc/files/gcc-spec-env.patch and the ebuilds digest.

I s/xm`lloc/xmalloc and it compiled fine now..
could also be just a mirror issue..
Comment 2 SpanKY gentoo-dev 2010-04-02 08:46:01 UTC
that file hasnt changed in years.  if you have such a file, it's a problem with rsync.  look at your logs to find out what machine you last synced against.
Comment 3 Adam Pyschny 2010-04-02 10:03:38 UTC
yah, it was the rsync server, taking another one worked:

This is the failing one from the logs, but I checked it just now, the file there is ok now.

1270152005: >>> Starting rsync with rsync://89.206.169.171/gentoo-portage
1270152023: === Sync completed with rsync://89.206.169.171/gentoo-portage
1270152024:  *** terminating.
1270152087: Started emerge on: Apr 01, 2010 22:01:27
1270152087:  *** emerge  gcc
1270152089:  *** exiting unsuccessfully with status '1'.
1270152089:  *** terminating.

That bug can be closed now, sorry for wasting your time...
Comment 4 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2010-04-02 14:23:29 UTC
reopen
Comment 5 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2010-04-02 14:24:02 UTC
Hi, there is something going on with some of the europe nodes. Hard to isolate...Sorry for the trouble.

*** This bug has been marked as a duplicate of bug 302984 ***