Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 256627 - sys-devel/gcc-4.1.2: gcc/unwind-dw2-fde-glibc.c:94: error: expected ':', ',', ';', '}' or '__attribute__' before '*' token due to local /usr/local/include/link.h file (overriding /usr/include/link.h)
Summary: sys-devel/gcc-4.1.2: gcc/unwind-dw2-fde-glibc.c:94: error: expected ':', ',',...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-01-28 13:17 UTC by Yuval Hager
Modified: 2013-12-25 08:35 UTC (History)
0 users

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


Attachments
full build log (using portage) (build.log,466.41 KB, text/plain)
2009-01-30 11:12 UTC, Yuval Hager
Details
/usr/include/link.h (link.h,7.05 KB, text/plain)
2009-03-14 21:22 UTC, Yuval Hager
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Yuval Hager 2009-01-28 13:17:00 UTC
r/tmp/paludis/sys-devel-gcc-4.1.2/work/gcc-4.1.2/gcc/unwind-dw2-fde-glibc.c -o libgcc/./unwind-dw2-fde-glibc.o
/var/tmp/paludis/sys-devel-gcc-4.1.2/work/gcc-4.1.2/gcc/unwind-dw2-fde-glibc.c:94: error: expected ':', ',', ';', '}' or '__attribute__' before '*' token
/var/tmp/paludis/sys-devel-gcc-4.1.2/work/gcc-4.1.2/gcc/unwind-dw2-fde-glibc.c:127: warning: 'struct dl_phdr_info' declared inside parameter list
/var/tmp/paludis/sys-devel-gcc-4.1.2/work/gcc-4.1.2/gcc/unwind-dw2-fde-glibc.c:127: warning: its scope is only this definition or declaration, which is probably not what you want
/var/tmp/paludis/sys-devel-gcc-4.1.2/work/gcc-4.1.2/gcc/unwind-dw2-fde-glibc.c: In function '_Unwind_IteratePhdrCallback':
/var/tmp/paludis/sys-devel-gcc-4.1.2/work/gcc-4.1.2/gcc/unwind-dw2-fde-glibc.c:130: warning: type qualifiers ignored on function return type
/var/tmp/paludis/sys-devel-gcc-4.1.2/work/gcc-4.1.2/gcc/unwind-dw2-fde-glibc.c:130: warning: return type defaults to 'int'
/var/tmp/paludis/sys-devel-gcc-4.1.2/work/gcc-4.1.2/gcc/unwind-dw2-fde-glibc.c:130: warning: function declaration isn't a prototype
/var/tmp/paludis/sys-devel-gcc-4.1.2/work/gcc-4.1.2/gcc/unwind-dw2-fde-glibc.c: In function 'ElfW':
/var/tmp/paludis/sys-devel-gcc-4.1.2/work/gcc-4.1.2/gcc/unwind-dw2-fde-glibc.c:130: error: expected declaration specifiers before '*' token
/var/tmp/paludis/sys-devel-gcc-4.1.2/work/gcc-4.1.2/gcc/unwind-dw2-fde-glibc.c:144: error: expected specifier-qualifier-list before 'ElfW'
/var/tmp/paludis/sys-devel-gcc-4.1.2/work/gcc-4.1.2/gcc/unwind-dw2-fde-glibc.c:150: warning: empty declaration
/var/tmp/paludis/sys-devel-gcc-4.1.2/work/gcc-4.1.2/gcc/unwind-dw2-fde-glibc.c:152: error: expected declaration specifiers before 'match'
/var/tmp/paludis/sys-devel-gcc-4.1.2/work/gcc-4.1.2/gcc/unwind-dw2-fde-glibc.c:153: error: expected declaration specifiers before 'phdr'
/var/tmp/paludis/sys-devel-gcc-4.1.2/work/gcc-4.1.2/gcc/unwind-dw2-fde-glibc.c:154: error: expected declaration specifiers before 'load_base'
/var/tmp/paludis/sys-devel-gcc-4.1.2/work/gcc-4.1.2/gcc/unwind-dw2-fde-glibc.c:155: error: expected declaration specifiers before 'p_eh_frame_hdr'
/var/tmp/paludis/sys-devel-gcc-4.1.2/work/gcc-4.1.2/gcc/unwind-dw2-fde-glibc.c:156: error: expected declaration specifiers before 'p_dynamic'
/var/tmp/paludis/sys-devel-gcc-4.1.2/work/gcc-4.1.2/gcc/unwind-dw2-fde-glibc.c:158: error: parameter 'prev_cache_entry' is initialized
/var/tmp/paludis/sys-devel-gcc-4.1.2/work/gcc-4.1.2/gcc/unwind-dw2-fde-glibc.c:159: error: parameter 'last_cache_entry' is initialized
/var/tmp/paludis/sys-devel-gcc-4.1.2/work/gcc-4.1.2/gcc/unwind-dw2-fde-glibc.c:161: error: expected declaration specifiers before 'if'
/var/tmp/paludis/sys-devel-gcc-4.1.2/work/gcc-4.1.2/gcc/unwind-dw2-fde-glibc.c:228: error: expected declaration specifiers before 'if'
/var/tmp/paludis/sys-devel-gcc-4.1.2/work/gcc-4.1.2/gcc/unwind-dw2-fde-glibc.c:232: error: parameter 'pc_low' is initialized
/var/tmp/paludis/sys-devel-gcc-4.1.2/work/gcc-4.1.2/gcc/unwind-dw2-fde-glibc.c:232: error: parameter 'pc_high' is initialized
/var/tmp/paludis/sys-devel-gcc-4.1.2/work/gcc-4.1.2/gcc/unwind-dw2-fde-glibc.c:236: error: expected declaration specifiers before 'for'
/var/tmp/paludis/sys-devel-gcc-4.1.2/work/gcc-4.1.2/gcc/unwind-dw2-fde-glibc.c:236: error: expected declaration specifiers before '--' token
/var/tmp/paludis/sys-devel-gcc-4.1.2/work/gcc-4.1.2/gcc/unwind-dw2-fde-glibc.c:236: error: expected declaration specifiers before 'phdr'
/var/tmp/paludis/sys-devel-gcc-4.1.2/work/gcc-4.1.2/gcc/unwind-dw2-fde-glibc.c:255: error: expected declaration specifiers before 'if'
/var/tmp/paludis/sys-devel-gcc-4.1.2/work/gcc-4.1.2/gcc/unwind-dw2-fde-glibc.c:258: error: expected declaration specifiers before 'if'
/var/tmp/paludis/sys-devel-gcc-4.1.2/work/gcc-4.1.2/gcc/unwind-dw2-fde-glibc.c:277: error: expected declaration specifiers before 'found'
/var/tmp/paludis/sys-devel-gcc-4.1.2/work/gcc-4.1.2/gcc/unwind-dw2-fde-glibc.c:283: error: expected declaration specifiers before 'hdr'
/var/tmp/paludis/sys-devel-gcc-4.1.2/work/gcc-4.1.2/gcc/unwind-dw2-fde-glibc.c:285: error: expected declaration specifiers before 'if'
/var/tmp/paludis/sys-devel-gcc-4.1.2/work/gcc-4.1.2/gcc/unwind-dw2-fde-glibc.c:312: error: expected declaration specifiers before 'p'
/var/tmp/paludis/sys-devel-gcc-4.1.2/work/gcc-4.1.2/gcc/unwind-dw2-fde-glibc.c:321: error: expected declaration specifiers before 'if'
/var/tmp/paludis/sys-devel-gcc-4.1.2/work/gcc-4.1.2/gcc/unwind-dw2-fde-glibc.c:383: error: expected declaration specifiers before 'ob'
/var/tmp/paludis/sys-devel-gcc-4.1.2/work/gcc-4.1.2/gcc/unwind-dw2-fde-glibc.c:384: error: expected declaration specifiers before 'ob'
/var/tmp/paludis/sys-devel-gcc-4.1.2/work/gcc-4.1.2/gcc/unwind-dw2-fde-glibc.c:385: error: expected declaration specifiers before 'ob'
/var/tmp/paludis/sys-devel-gcc-4.1.2/work/gcc-4.1.2/gcc/unwind-dw2-fde-glibc.c:386: error: expected declaration specifiers before 'ob'
/var/tmp/paludis/sys-devel-gcc-4.1.2/work/gcc-4.1.2/gcc/unwind-dw2-fde-glibc.c:387: error: expected declaration specifiers before 'ob'
/var/tmp/paludis/sys-devel-gcc-4.1.2/work/gcc-4.1.2/gcc/unwind-dw2-fde-glibc.c:388: error: expected declaration specifiers before 'ob'
/var/tmp/paludis/sys-devel-gcc-4.1.2/work/gcc-4.1.2/gcc/unwind-dw2-fde-glibc.c:389: error: expected declaration specifiers before 'data'
/var/tmp/paludis/sys-devel-gcc-4.1.2/work/gcc-4.1.2/gcc/unwind-dw2-fde-glibc.c:390: error: expected declaration specifiers before 'if'
/var/tmp/paludis/sys-devel-gcc-4.1.2/work/gcc-4.1.2/gcc/unwind-dw2-fde-glibc.c:400: error: expected declaration specifiers before 'return'
/var/tmp/paludis/sys-devel-gcc-4.1.2/work/gcc-4.1.2/gcc/unwind-dw2-fde-glibc.c:401: error: expected declaration specifiers before '}' token
/var/tmp/paludis/sys-devel-gcc-4.1.2/work/gcc-4.1.2/gcc/unwind-dw2-fde-glibc.c:405: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
/var/tmp/paludis/sys-devel-gcc-4.1.2/work/gcc-4.1.2/gcc/unwind-dw2-fde-glibc.c:430: warning: old-style function definition
/var/tmp/paludis/sys-devel-gcc-4.1.2/work/gcc-4.1.2/gcc/unwind-dw2-fde-glibc.c:430: warning: type of 'Phdr' defaults to 'int'
/var/tmp/paludis/sys-devel-gcc-4.1.2/work/gcc-4.1.2/gcc/unwind-dw2-fde-glibc.c:232: error: declaration for parameter 'pc_high' but no such parameter
/var/tmp/paludis/sys-devel-gcc-4.1.2/work/gcc-4.1.2/gcc/unwind-dw2-fde-glibc.c:232: error: declaration for parameter 'pc_low' but no such parameter
/var/tmp/paludis/sys-devel-gcc-4.1.2/work/gcc-4.1.2/gcc/unwind-dw2-fde-glibc.c:159: error: declaration for parameter 'last_cache_entry' but no such parameter
/var/tmp/paludis/sys-devel-gcc-4.1.2/work/gcc-4.1.2/gcc/unwind-dw2-fde-glibc.c:158: error: declaration for parameter 'prev_cache_entry' but no such parameter
/var/tmp/paludis/sys-devel-gcc-4.1.2/work/gcc-4.1.2/gcc/unwind-dw2-fde-glibc.c:140: error: declaration for parameter 'ob' but no such parameter
/var/tmp/paludis/sys-devel-gcc-4.1.2/work/gcc-4.1.2/gcc/unwind-dw2-fde-glibc.c:139: error: declaration for parameter 'eh_frame' but no such parameter
/var/tmp/paludis/sys-devel-gcc-4.1.2/work/gcc-4.1.2/gcc/unwind-dw2-fde-glibc.c:138: error: declaration for parameter 'hdr' but no such parameter
/var/tmp/paludis/sys-devel-gcc-4.1.2/work/gcc-4.1.2/gcc/unwind-dw2-fde-glibc.c:137: error: declaration for parameter 'p' but no such parameter
/var/tmp/paludis/sys-devel-gcc-4.1.2/work/gcc-4.1.2/gcc/unwind-dw2-fde-glibc.c:135: error: declaration for parameter 'load_base' but no such parameter
/var/tmp/paludis/sys-devel-gcc-4.1.2/work/gcc-4.1.2/gcc/unwind-dw2-fde-glibc.c:131: error: declaration for parameter 'match' but no such parameter
/var/tmp/paludis/sys-devel-gcc-4.1.2/work/gcc-4.1.2/gcc/unwind-dw2-fde-glibc.c:131: error: declaration for parameter 'n' but no such parameter
/var/tmp/paludis/sys-devel-gcc-4.1.2/work/gcc-4.1.2/gcc/unwind-dw2-fde-glibc.c:430: error: expected '{' at end of input
/var/tmp/paludis/sys-devel-gcc-4.1.2/work/gcc-4.1.2/gcc/unwind-dw2-fde-glibc.c: In function '_Unwind_IteratePhdrCallback':
/var/tmp/paludis/sys-devel-gcc-4.1.2/work/gcc-4.1.2/gcc/unwind-dw2-fde-glibc.c:430: error: expected declaration or statement at end of input
/var/tmp/paludis/sys-devel-gcc-4.1.2/work/gcc-4.1.2/gcc/unwind-dw2-fde-glibc.c: At top level:
/var/tmp/paludis/sys-devel-gcc-4.1.2/work/gcc-4.1.2/gcc/unwind-dw2-fde-glibc.c:129: warning: unused variable 'data'
make[3]: *** [libgcc/./unwind-dw2-fde-glibc.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory `/var/tmp/paludis/sys-devel-gcc-4.1.2/work/build/gcc'
make[2]: *** [stmp-multilib] Error 2
rm gfortran.pod
make[2]: Leaving directory `/var/tmp/paludis/sys-devel-gcc-4.1.2/work/build/gcc'
make[1]: *** [stage1_build] Error 2
make[1]: Leaving directory `/var/tmp/paludis/sys-devel-gcc-4.1.2/work/build/gcc'
make: *** [bootstrap-lean] Error 2
/usr/libexec/paludis/utils/emake: emake returned error 2

!!! ERROR in sys-devel/gcc-4.1.2:
!!! In gcc_do_make at line 3760
!!! emake failed with bootstrap-lean

!!! Call stack:
!!!    * gcc_do_make (/var/tmp/paludis/sys-devel-gcc-4.1.2/temp/loadsaveenv:3760)
!!!    * gcc_src_compile (/var/tmp/paludis/sys-devel-gcc-4.1.2/temp/loadsaveenv:3969)
!!!    * toolchain_src_compile (/var/tmp/paludis/sys-devel-gcc-4.1.2/temp/loadsaveenv:6467)
!!!    * src_compile (/var/tmp/paludis/sys-devel-gcc-4.1.2/temp/loadsaveenv:5949)
!!!    * ebuild_f_compile (/usr/libexec/paludis/0/src_compile.bash:49)
!!!    * ebuild_main (/usr/libexec/paludis/ebuild.bash:482)
!!!    * main (/usr/libexec/paludis/ebuild.bash:498)

diefunc: making ebuild PID 28257 exit with error
die trap: exiting with error.

Install error:
  * In program paludis --install --dl-reinstall if-use-changed --continue-on-failure if-satisfied sys-devel/gcc:
  * When performing install action from command line:
  * When executing install task:
  * When installing 'sys-devel/gcc-4.1.2:4.1::gentoo':
  * When running an ebuild command on 'sys-devel/gcc-4.1.2:4.1::gentoo':
  * Install error: Install failed for 'sys-devel/gcc-4.1.2:4.1::gentoo'


Reproducible: Always

Steps to Reproduce:
1. emerge =sys-devel/gcc-4.1.2
2.
3.




Using paludis for the package management, so here is paludis --info:

paludis 0.32.3
Paludis build information:
    Compiler:
        CXX:                   x86_64-pc-linux-gnu-g++ 4.1.2 (Gentoo 4.1.2 p1.1)
        CXXFLAGS:              -march=athlon64 -msse3 -O2 -pipe
        LDFLAGS:               -Wl,-O1
        DATE:                  2008-12-19T13:22:17+0200

    Libraries:
        C++ Library:           GNU libstdc++ 20070214

    Reduced Privs:
        reduced_uid:           116
        reduced_uid->name:     paludisbuild
        reduced_uid->dir:      /var/tmp/paludis
        reduced_gid:           1024
        reduced_gid->name:     paludisbuild

    Paths:
        DATADIR:               /usr/share
        LIBDIR:                /usr/lib64
        LIBEXECDIR:            /usr/libexec
        SYSCONFDIR:            /etc
        PYTHONINSTALLDIR:      /usr/lib64/python2.5/site-packages
        RUBYINSTALLDIR:        /usr/lib64/ruby/site_ruby/1.8/x86_64-linux

Environment:
    Format:                    paludis
    Config dir:                /etc/paludis
    World file:                /var/db/pkg/world

Repository layman:
    format:                    unavailable
    location:                  /var/db/paludis/repositories/layman
    sync:                      tar+http://git.exherbo.org/layman_repositories.tar.bz2
    sync_options:

Repository installed-virtuals:
    format:                    installed_virtuals
    root:                      /

Repository virtuals:
    format:                    virtuals

Repository installed:
    format:                    vdb
    location:                  /var/db/pkg
    builddir:                  /var/tmp/paludis
    names_cache:               /var/db/pkg/.cache/names
    provides_cache:            /var/db/pkg/.cache/provides
    root:                      /

Repository gentoo:
    format:                    ebuild
    location:                  /usr/portage
    append_repository_name_to_write_cache: true
    binary_destination:        false
    binary_keywords:
    binary_uri_prefix:
    builddir:                  /var/tmp/paludis
    cache:                     /usr/portage/metadata/cache
    distdir:                   /usr/portage/distfiles
    eapi_when_unknown:         0
    eapi_when_unspecified:     0
    eclassdirs:                /usr/portage/eclass
    ignore_deprecated_profiles: false
    layout:                    traditional
    names_cache:               /usr/portage/.cache/names
    newsdir:                   /usr/portage/metadata/news
    profile_eapi:              0
    profiles:                  /usr/portage/profiles/default/linux/amd64/2008.0/desktop
    securitydir:               /usr/portage/metadata/glsa
    setsdir:                   /usr/portage/sets
    sync:                      rsync://rsync.gentoo.org/gentoo-portage
    sync_options:
    use_manifest:              use
    write_cache:               /var/cache/paludis/metadata

    Package information:
        app-admin/eselect-compiler: (none)
        app-shells/bash:       3.2_p39
        dev-java/java-config:  1.3.7-r1 2.1.6-r1
        dev-lang/python:       2.4.4-r14 2.5.2-r7
        dev-python/pycrypto:   2.0.1-r6
        dev-util/ccache:       2.4-r7
        dev-util/cmake:        2.4.6-r1
        dev-util/confcache:    (none)
        sys-apps/baselayout:   1.12.11.1
        sys-apps/openrc:       (none)
        sys-apps/sandbox:      1.2.18.1-r2
        sys-devel/autoconf:    2.13 2.63
        sys-devel/automake:    1.10.2 1.4_p6 1.5 1.6.3 1.7.9-r1 1.8.5-r3 1.9.6-r2
        sys-devel/binutils:    2.18-r3
        sys-devel/gcc-config:  1.4.0-r4
        sys-devel/libtool:     1.5.26
        virtual/os-headers:    2.6.27-r2 (for sys-kernel/linux-headers::installed)
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2009-01-29 20:16:40 UTC
(In reply to comment #0)
> Steps to Reproduce:
> 1. emerge =sys-devel/gcc-4.1.2

You didn't use emerge at all, did you?
Comment 2 SpanKY gentoo-dev 2009-01-29 20:41:10 UTC
post the full build log as an attachment and your `emerge --info`
Comment 3 Yuval Hager 2009-01-29 21:14:04 UTC
(In reply to comment #2)
> post the full build log as an attachment and your `emerge --info`
> 

(In reply to comment #1)
> (In reply to comment #0)
> > Steps to Reproduce:
> > 1. emerge =sys-devel/gcc-4.1.2
> 
> You didn't use emerge at all, did you?
> 

No, that was emerge as a verb, not as a command :)

Anyway, I'll rerun the build and post the full logs soon.
Comment 4 Yuval Hager 2009-01-30 11:12:44 UTC
Created attachment 180246 [details]
full build log (using portage)
Comment 5 Yuval Hager 2009-01-30 11:14:28 UTC
# emerge --info
Portage 2.1.6.4 (default/linux/amd64/2008.0/desktop, gcc-4.1.2, glibc-2.6.1-r0, 2.6.27-gentoo-r8 x86_64)
=================================================================
System uname: Linux-2.6.27-gentoo-r8-x86_64-AMD_Sempron-tm-_Processor_2800+-with-glibc2.2.5
Timestamp of tree: Wed, 28 Jan 2009 09:05:01 +0000
ccache version 2.4 [disabled]
app-shells/bash:     3.2_p39
dev-java/java-config: 1.3.7-r1, 2.1.6-r1
dev-lang/python:     2.4.4-r14, 2.5.2-r7
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
dev-util/cmake:      2.4.6-r1
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.63
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.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1"
PKGDIR="/usr/portage/packages"
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.gentoo.org/gentoo-portage"
USE="X acl acpi alsa amd64 berkdb bluetooth branding bzip2 cairo cdr cli cracklib crypt cups dbus dri dvd dvdr dvdread eds emboss encode esd evo fam firefox fortran gdbm gif gnome gpm gstreamer gtk hal iconv ipv6 isdnlog jpeg kde ldap libnotify mad midi mikmod mmx mp3 mpeg mudflap multilib ncurses nls nptl nptlonly ogg opengl openmp pam pcre pdf perl png ppds pppd python qt3 qt3support qt4 quicktime readline reflection sdl session spell spl sse sse2 ssl startup-notification svg sysfs tcpd tiff truetype unicode usb vorbis xml xorg xulrunner xv 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 i810 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, LC_ALL, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY

Comment 6 SpanKY gentoo-dev 2009-03-14 15:02:21 UTC
that error suggests your link.h is corrupt

line 94 is this:
  const ElfW(Phdr) *p_eh_frame_hdr;

and ElfW() is one of the first defines in link.h

re-emerge glibc
Comment 7 Yuval Hager 2009-03-14 21:21:35 UTC
I've re-emerged glibc and I get the same thing. 
Attached is my link.h.
Comment 8 Yuval Hager 2009-03-14 21:22:20 UTC
Created attachment 185005 [details]
/usr/include/link.h
Comment 9 Yuval Hager 2009-03-15 12:40:19 UTC
To exclude hardware problems, this is not a new machine, it's more than two years old.
I have just ran sci-mathematics/gimps for more than 5 hours with no errors, so I assume the HW is okay.
Comment 10 Mark Loeser (RETIRED) gentoo-dev 2009-05-02 02:13:51 UTC
Clearly this is something with your machine since no one else has run into it.  Please try installing the newest stable gcc and open a new bug if you have problems with that.
Comment 11 Yuval Hager 2009-05-14 06:17:46 UTC
I understand this is something specific here, but I would appreciate any pointers about where to look at it...

I've tried gcc-4.3.2 and I am getting the same error. compilation of wine also fails with a similar error (expected specifier-qualifier-list before 'ElfW').

*any* ideas would be welcomed! 

reopenning, hope it's fine with you..

thanks!
Comment 12 Yuval Hager 2009-05-17 14:39:20 UTC
I've had a stray /usr/local/include/link.h that is totally unrelated to /usr/include/link.h. 

It got there when I made some hasty "./configure && make install". Sorry for wasting everybody's time, the good guys at #paludis helped me resolve this.

Thanks for everyone who helped!