Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Altivec argument passed to unprototyped function [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
mounty1
Guru
Guru


Joined: 06 Jul 2006
Posts: 502
Location: Queensland

PostPosted: Sun May 23, 2010 12:09 pm    Post subject: Altivec argument passed to unprototyped function [SOLVED] Reply with quote

Multiple instances of the above error when attempting to build libmpeg2-0.5.1-r1 on ppc (32 bit userland). I've tried USE=-altivec for this package without benefit. Any ideas ?
emerge --info:
Portage 2.1.8.3 (default/linux/powerpc/ppc64/10.0/32bit-userland/desktop/kde, gcc-4.4.3, glibc-2.11.1-r0, 2.6.30-gentoo-r5-G5 ppc64)
=================================================================
System uname: Linux-2.6.30-gentoo-r5-G5-ppc64-PPC970,_altivec_supported-with-gentoo-2.0.1
Timestamp of tree: Fri, 21 May 2010 06:45:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     4.1_p7
dev-java/java-config: 2.1.11
dev-lang/python:     2.6.5-r2, 3.1.2-r3
dev-util/ccache:     2.4-r8
dev-util/cmake:      2.8.1-r1
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.1-r1
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.13, 2.65
sys-devel/automake:  1.6.3, 1.8.5-r4, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.3.2-r3, 4.4.3-r2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.33
ACCEPT_KEYWORDS="ppc ~ppc"
ACCEPT_LICENSE="* -@EULA"
CBUILD="powerpc-unknown-linux-gnu"
CFLAGS="-O2 -pipe -fomit-frame-pointer"
CHOST="powerpc-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests ccache distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://ftp.swin.edu.au/gentoo http://mirror.pacific.net.au/linux/Gentoo ftp://ftp.swin.edu.au/gentoo ftp://mirror.pacific.net.au/linux/Gentoo "
LDFLAGS="-Wl,-O1"
LINGUAS="en en_GB"
MAKEOPTS="-j4 -s"
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"
SYNC="rsync://rsync.au.gentoo.org/gentoo-portage"
USE="X a52 aac acl alsa altivec autoipd avahi berkdb bluetooth branding bzip2 cairo cdr cli consolekit cracklib crypt cups cxx dbus disk-partition doc dri dts dvd dvdr emboss encode exif extra extras fam firefox flac fortran gcc64 gdbm gif glibc-omitfp gpm hal handbook iconv jadetex java jpeg kde kontact kpathsea latex lcms ldap libnotify mad mikmod mmap mng modules mp3 mp4 mpeg msn mudflap ncurses networkmanager nls npp nptl nptlonly ogg opengl openmp oscar pam pango pcre pdf perl png policykit ppc ppds pppd python qt3support qt4 quicktime readline reflection ruby scanner sdl semantic-desktop session slang spell spl ssl startup-notification svg sysfs tcpd threads tiff truetype udev unicode usb v4l v4l2 vcd vim-syntax vnc vorbis wmf x264 xcb xcomposite xml xorg xpm xulrunner xv xvid yahoo zlib"
ALSA_CARDS="aoa aoa-fabric-layout aoa-onyx aoa-soundbus aoa-soundbus-i2s aoa-tas aoa-toonie powermac usb-audio via82xx"
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="evdev"
KERNEL="linux"
LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text"
LINGUAS="en en_GB"
RUBY_TARGETS="ruby18"
USERLAND="GNU"
VIDEO_CARDS="ati"
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, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY

_________________
Michael Mounteney


Last edited by mounty1 on Wed May 26, 2010 1:00 pm; edited 1 time in total
Back to top
View user's profile Send private message
JoseJX
Developer
Developer


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Tue May 25, 2010 5:28 pm    Post subject: Reply with quote

This was a bug with the way gcc-4.4 reported an error with the altivec function they were using to detect if altivec.h was required. It should be fixed in CVS now. If you have other issues like this, feel free to bring them up here, but it would be better to have them in bugzilla, just to keep everything in one place. Thanks!
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
mounty1
Guru
Guru


Joined: 06 Jul 2006
Posts: 502
Location: Queensland

PostPosted: Tue May 25, 2010 11:50 pm    Post subject: Easy solution ! Reply with quote

So one solution if using standard Gentoo tools such as emerge is to gcc-config a 4.3 compiler and build libmpeg2 with that. Thanks.

As far as bugzilla goes, if I knew the problem were from downstream, I could report it there; but this is a surprising regression.
_________________
Michael Mounteney
Back to top
View user's profile Send private message
JoseJX
Developer
Developer


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Wed May 26, 2010 12:29 pm    Post subject: Reply with quote

No, I've fixed the problem for all versions of gcc, this shouldn't be a problem any more.

It's not really a bug, but: In gcc-4.3, the vec_ld command is defined by altivec.h. In gcc-4.4, it's an intrinsic. Because of this change, detecting if altivec.h is required using vec_ld doesn't really work, as it reports a warning instead of the error given by gcc-4.3. I replaced it with a check for vec_add, which reports an error.
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
mounty1
Guru
Guru


Joined: 06 Jul 2006
Posts: 502
Location: Queensland

PostPosted: Wed May 26, 2010 12:59 pm    Post subject: Thanks Reply with quote

Great, thanks.
_________________
Michael Mounteney
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