Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 215585 - libffi-3.4.3 fails to build on ppc64
Summary: libffi-3.4.3 fails to build on ppc64
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: PPC64 Linux
: High normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-03-31 14:33 UTC by Andrew John Hughes
Modified: 2008-04-07 11:48 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 Andrew John Hughes 2008-03-31 14:33:47 UTC
/var/tmp/portage/dev-libs/libffi-3.4.3/work/build/gcc/xgcc -B/var/tmp/portage/dev-libs/libffi-3.4.3/work/build/gcc/ -B/usr/powerpc64-unknown-linux-gnu/bin/ -B/usr/powerpc64-unknown-linux-gnu/lib/ -isystem /usr/powerpc64-unknown-linux-gnu/include -isystem /usr/powerpc64-unknown-linux-gnu/sys-include -O2 -DIN_GCC    -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition  -isystem ./include  -I. -I. -I/var/tmp/portage/dev-libs/libffi-3.4.3/work/gcc-3.4.3/gcc -I/var/tmp/portage/dev-libs/libffi-3.4.3/work/gcc-3.4.3/gcc/. -I/var/tmp/portage/dev-libs/libffi-3.4.3/work/gcc-3.4.3/gcc/../include   -g0 -finhibit-size-directive -fno-inline-functions -fno-exceptions -fno-zero-initialized-in-bss -fno-unit-at-a-time -msdata=none \
           -c /var/tmp/portage/dev-libs/libffi-3.4.3/work/gcc-3.4.3/gcc/crtstuff.c -DCRT_END \
          -o crtend.o
In file included from /usr/include/stdio.h:839,
                 from /var/tmp/portage/dev-libs/libffi-3.4.3/work/gcc-3.4.3/gcc/tsystem.h:79,
                 from /var/tmp/portage/dev-libs/libffi-3.4.3/work/gcc-3.4.3/gcc/crtstuff.c:62:
/usr/include/bits/stdio.h: In function `vprintf':
/usr/include/bits/stdio.h:36: error: parse error before "__restrict__"
/usr/include/bits/stdio.h: In function `getchar':
/usr/include/bits/stdio.h:43: error: parse error before "__restrict__"
/usr/include/bits/stdio.h:69: confused by earlier errors, bailing out
make[1]: *** [crtend.o] Error 1
make[1]: *** Waiting for unfinished jobs....
In file included from /usr/include/stdio.h:839,
                 from /var/tmp/portage/dev-libs/libffi-3.4.3/work/gcc-3.4.3/gcc/tsystem.h:79,
                 from /var/tmp/portage/dev-libs/libffi-3.4.3/work/gcc-3.4.3/gcc/crtstuff.c:62:
/usr/include/bits/stdio.h: In function `vprintf':
/usr/include/bits/stdio.h:36: error: parse error before "__restrict__"
In file included from /usr/include/stdio.h:839,
                 from /var/tmp/portage/dev-libs/libffi-3.4.3/work/gcc-3.4.3/gcc/tsystem.h:79,
                 from /var/tmp/portage/dev-libs/libffi-3.4.3/work/gcc-3.4.3/gcc/crtstuff.c:62:
/usr/include/bits/stdio.h: In function `vprintf':
/usr/include/bits/stdio.h:36: error: parse error before "__restrict__"/usr/include/bits/stdio.h: In function `getchar':
/usr/include/bits/stdio.h:43: error: parse error before "__restrict__"
/usr/include/bits/stdio.h:69: confused by earlier errors, bailing out

In file included from /usr/include/stdio.h:839,
                 from /var/tmp/portage/dev-libs/libffi-3.4.3/work/gcc-3.4.3/gcc/tsystem.h:79,
                 from /var/tmp/portage/dev-libs/libffi-3.4.3/work/gcc-3.4.3/gcc/crtstuff.c:62:
/usr/include/bits/stdio.h: In function `vprintf':
/usr/include/bits/stdio.h:36: error: parse error before "__restrict__"
/usr/include/bits/stdio.h: In function `getchar':
/usr/include/bits/stdio.h:43: error: parse error before "__restrict__"
/usr/include/bits/stdio.h: In function `getchar':
/usr/include/bits/stdio.h:43: error: parse error before "__restrict__"
/usr/include/bits/stdio.h:69: confused by earlier errors, bailing out
make[1]: *** [crtbeginS.o] Error 1
/usr/include/bits/stdio.h:69: confused by earlier errors, bailing out
make[1]: *** [crtbegin.o] Error 1
make[1]: *** [crtbeginT.o] Error 1
make[1]: Leaving directory `/var/tmp/portage/dev-libs/libffi-3.4.3/work/build/gcc'
make: *** [all-gcc] Error 2


Reproducible: Always




Portage 2.1.4.4 (default-linux/ppc/ppc64/2007.0/64bit-userland/970/pmac, gcc-4.1.2, glibc-2.6.1-r0, 2.6.23-gentoo-r8.omega ppc64)
=================================================================
System uname: 2.6.23-gentoo-r8.omega ppc64 PPC970MP, altivec supported
Timestamp of tree: Fri, 28 Mar 2008 13:30:01 +0000
distcc 2.18.3 powerpc64-unknown-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p17-r1
dev-java/java-config: 1.3.7, 2.1.4
dev-lang/python:     2.4.4-r6
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
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.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="ppc64"
CBUILD="powerpc64-unknown-linux-gnu"
CFLAGS="-O1 -mtune=970 -mcpu=970 -mabi=altivec -pipe -ggdb"
CHOST="powerpc64-unknown-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/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O1 -mtune=970 -mcpu=970 -mabi=altivec -pipe -ggdb"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks metadata-transfer sandbox sfperms splitdebug strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.blueyonder.co.uk ftp://mirrors.blueyonder.co.uk/mirrors/gentoo http://www.mirrorservice.org/sites/www.ibiblio.org/gentoo/ ftp://ftp.mirrorservice.org/sites/www.ibiblio.org/gentoo/ "
LINGUAS="en_GB"
MAKEOPTS="-j5"
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"
PORTDIR_OVERLAY="/usr/portage/local/layman/java-overlay /usr/portage/local/layman/java-gcj-overlay /usr/local/portage /usr/portage/local/gnu_andrew_overlay /usr/portage/local/andys_overlay"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acl addbookmarks alias alsa altivec asf autoreplace avahi bash-completion berkdb bluetooth bzip2 cairo caps cdda cddb cdparanoia cdr cjk cli connectionstatus contactnotes cpudetection cracklib crypt cups curl daap dbus dia djvu doc dri dts dv dvd dvdnav dvdr dvdread dvi effects emacs emf encode examples fame ffmpeg flac fping gadu gcj gdbm gif gmp gnutls gpac gpgme gpm groupwise gtk hal hfs highlight history iconv idn ieee1394 imagemagick imap imlib ipod ipv6 irc isdnlog jack javascript jingle jpeg jpeg2k kde ladspa lame latex lcms ldap libnotify live lzo mad matroska mbox midi mjpeg mmap mng mp2 mp3 mpeg mplayer mudflap musepack musicbrainz ncurses netmeeting network nls nntp nowlistening nptl nptlonly nsplugin objc objc++ objc-gc ogg openal opengl openmp optimisememory oss pam pcre pdf perl plotutils png pnm pop postscript ppc64 ppds pppd python qt qt3 qt4 quicktime readline reflection rtc samba sametime sasl sdl session shout slp smime smp sms smtp snmp sox speex spell spl sqlite ssl statistics stream subtitles svg syslog t1lib tcpd tetex texteffect tga theora threads tiff translator truetype unicode usb v4l2 vcd visualization vorbis vram webpresence winpopup wmf x264 xanim xchattext xcomposite xine xinerama xml xorg xscreensaver xv xvid xvmc yahoo zlib" 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" 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" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_GB" USERLAND="GNU" VIDEO_CARDS="nv fbdev"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Markus Rothe (RETIRED) gentoo-dev 2008-03-31 20:15:37 UTC
yes, this is a known problem: gcc-3.4.x won't build on ppc64 using gcc-4.x.

what do you need libffi for?
Comment 2 Markus Rothe (RETIRED) gentoo-dev 2008-04-07 11:48:03 UTC
Please reopen if this error is still relevant.

[ You might want to check if the libffi use flag from gcc helps you ]