Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
binutils-2.16.1-r3 failed @ sys/procfs.h [solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
turtles
Veteran
Veteran


Joined: 31 Dec 2004
Posts: 1353

PostPosted: Tue Jul 04, 2006 11:11 pm    Post subject: binutils-2.16.1-r3 failed @ sys/procfs.h [solved] Reply with quote

I updated world and got a new gcc. I am following the gcc upgrade guide
So far I have followed the guide:
  • re-emerge gcc to be shure, eventhough I saw it emerge in the world update.
    Code:
    livecd / # emerge -uav gcc

    These are the packages that would be merged, in order:

    Calculating dependencies... done!

    Total size of downloads: 0 kB

    Nothing to merge; would you like to auto-clean packages? [Yes/No] y
    >>> Auto-cleaning packages...

    >>> No outdated packages were found on your system.


     * Regenerating GNU info directory index...
     * Processed 90 info files.

  • Code:
    # emerge --oneshot -av libtool
  • Code:
    # emerge -eav system
    Fails here


Code:
/bin/sh ./libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I/var/tmp/portage/binuti        ls-2.16.1-r3/work/binutils-2.16.1/bfd -I. -D_GNU_SOURCE     -I. -I/var/tmp/portage        /binutils-2.16.1-r3/work/binutils-2.16.1/bfd -I/var/tmp/portage/binutils-2.16.1-r3        /work/binutils-2.16.1/bfd/../include  -I/var/tmp/portage/binutils-2.16.1-r3/work/b        inutils-2.16.1/bfd/../intl -I../intl   -W -Wall -Wstrict-prototypes -Wmissing-prot        otypes -O2 -mcpu=G3 -mtune=G3 -pipe -c -o elf.lo /var/tmp/portage/binutils-2.16.1-        r3/work/binutils-2.16.1/bfd/elf.c
gcc -DHAVE_CONFIG_H -I. -I/var/tmp/portage/binutils-2.16.1-r3/work/binutils-2.16.1        /bfd -I. -D_GNU_SOURCE -I. -I/var/tmp/portage/binutils-2.16.1-r3/work/binutils-2.1        6.1/bfd -I/var/tmp/portage/binutils-2.16.1-r3/work/binutils-2.16.1/bfd/../include         -I/var/tmp/portage/binutils-2.16.1-r3/work/binutils-2.16.1/bfd/../intl -I../intl -        W -Wall -Wstrict-prototypes -Wmissing-prototypes -O2 -mcpu=G3 -mtune=G3 -pipe -c /        var/tmp/portage/binutils-2.16.1-r3/work/binutils-2.16.1/bfd/elf.c  -fPIC -DPIC -o         .libs/elf.o
In file included from /var/tmp/portage/binutils-2.16.1-r3/work/binutils-2.16.1/bfd        /elf.c:6692:
/usr/include/sys/procfs.h:57: error: expected '=', ',', ';', 'asm' or '__attribute        __' before 'elf_vrreg_t'
/usr/include/sys/procfs.h:58: error: expected '=', ',', ';', 'asm' or '__attribute        __' before 'elf_vrregset_t'
make[3]: *** [elf.lo] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory `/var/tmp/portage/binutils-2.16.1-r3/work/build/bfd'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/binutils-2.16.1-r3/work/build/bfd'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/var/tmp/portage/binutils-2.16.1-r3/work/build/bfd'
make: *** [all-bfd] Error 2

!!! ERROR: sys-devel/binutils-2.16.1-r3 failed.
Call stack:
  ebuild.sh, line 1539:   Called dyn_compile
  ebuild.sh, line 939:   Called src_compile
  ebuild.sh, line 1248:   Called toolchain-binutils_src_compile
  toolchain-binutils.eclass, line 191:   Called die

!!! emake failed


EDIT: I found this in the log
Code:
checking sys/procfs.h presence... yes
configure: WARNING: sys/procfs.h: present but cannot be compiled
configure: WARNING: sys/procfs.h:     check for missing prerequisite headers?
configure: WARNING: sys/procfs.h: see the Autoconf documentation
configure: WARNING: sys/procfs.h:     section "Present But Cannot Be Compiled"
configure: WARNING: sys/procfs.h: proceeding with the preprocessor's result
configure: WARNING: sys/procfs.h: in the future, the compiler will take precedence
configure: WARNING:     ## ------------------------------------------ ##
configure: WARNING:     ## Report this to the AC_PACKAGE_NAME lists.  ##
configure: WARNING:     ## ------------------------------------------ ##
checking for sys/procfs.h... yes


emerge --info & other info for this system
Fix use of include guard in <sys/procfs.h> on redhat But I dont understand what file they are editing.

Code:
livecd / # find -iname 'sysdeps/unix/sysv/linux/powerpc/sys/procfs.h'

find: ./proc/1/task: Permission denied
find: ./proc/1/fd: Permission denied


EDIT: I checked my emerge log file and I emerged the package last night with the old gcc.
Bug report

UPDATE: recompiling glibc as bug report responce mentions.
_________________
Donate to Gentoo


Last edited by turtles on Fri Jul 07, 2006 7:40 pm; edited 1 time in total
Back to top
View user's profile Send private message
turtles
Veteran
Veteran


Joined: 31 Dec 2004
Posts: 1353

PostPosted: Fri Jul 07, 2006 7:40 pm    Post subject: Reply with quote

Solved by updating glibc with gcc 4.1.1
_________________
Donate to Gentoo
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC 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