Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 560884 - kde-base/kdeplasma-addons-4.14.3 kde-apps/step-4.14.3 - In file included from .../work/step-4.14.3/stepcore/object.cc:19: usr/include/eigen2/Eigen/src/Core/arch/AltiVec/PacketMath.h:194:40: error: declaration does not declare anything [-fpermissive]
Summary: kde-base/kdeplasma-addons-4.14.3 kde-apps/step-4.14.3 - In file included from...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: PPC64 Linux
: Normal normal (vote)
Assignee: Gentoo KDE team
URL: http://eigen.tuxfamily.org/index.php?...
Whiteboard:
Keywords:
Depends on:
Blocks: 550740
  Show dependency tree
 
Reported: 2015-09-20 07:57 UTC by Jeroen Roovers (RETIRED)
Modified: 2015-10-11 06:42 UTC (History)
3 users (show)

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


Attachments
kde-apps:step-4.14.3:20150920-075309.log (20150920-075309.log,71.25 KB, text/plain)
2015-09-20 07:57 UTC, Jeroen Roovers (RETIRED)
Details
kde-base:kdeplasma-addons-4.14.3:20150923-043218.log.xz (20150923-043218.log.xz,46.37 KB, application/x-xz)
2015-09-23 05:55 UTC, Jeroen Roovers (RETIRED)
Details
kde-base:kdeplasma-addons-4.14.3:20150926-065408.log.xz (20150926-065408.log.xz,45.50 KB, application/x-xz)
2015-09-26 07:20 UTC, Jeroen Roovers (RETIRED)
Details
kde-apps:step-4.14.3:20150926-071912.log (20150926-071912.log,30.46 KB, text/plain)
2015-09-26 07:21 UTC, Jeroen Roovers (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jeroen Roovers (RETIRED) gentoo-dev 2015-09-20 07:57:04 UTC
Created attachment 412318 [details]
kde-apps:step-4.14.3:20150920-075309.log

In file included from /usr/include/eigen2/Eigen/Core:112:0,
                 from /var/tmp/portage/kde-apps/step-4.14.3/work/step-4.14.3/stepcore/object.h:29,
                 from /var/tmp/portage/kde-apps/step-4.14.3/work/step-4.14.3/stepcore/object.cc:19:
/usr/include/eigen2/Eigen/src/Core/arch/AltiVec/PacketMath.h: In function ‘typename Eigen::ei_packet_traits<T>::type Eigen::ei_pset1
(const Scalar&) [with Scalar = float; typename Eigen::ei_packet_traits<T>::type = __vector(4) float]’:
/usr/include/eigen2/Eigen/src/Core/arch/AltiVec/PacketMath.h:194:40: error: declaration does not declare anything [-fpermissive]
   float __attribute__(aligned(16)) af[4];
                                        ^
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2015-09-20 07:57:51 UTC
Sun Sep 20 09:57:21 CEST 2015
emerge --info dev-cpp/eigen kde-apps/step
Portage 2.2.20.1 (python 3.4.1-final-0, default/linux/powerpc/ppc64/13.0/64bit-userland, gcc-4.8.5, glibc-2.20-r2, 4.0.5-gentoo ppc64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.0.5-gentoo-ppc64-PPC970FX,_altivec_supported-with-gentoo-2.2
KiB Mem:     8071168 total,   1460948 free
KiB Swap:    1048572 total,   1035380 free
Timestamp of repository gentoo: Sun, 20 Sep 2015 03:45:02 +0000
sh bash 4.3_p39
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
distcc 3.1 powerpc64-unknown-linux-gnu [enabled]
app-shells/bash:          4.3_p39::gentoo
dev-lang/perl:            5.20.2::gentoo
dev-lang/python:          2.7.9-r1::gentoo, 3.3.5-r1::gentoo, 3.4.1::gentoo
dev-util/cmake:           3.2.2::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.17::gentoo
sys-apps/sandbox:         2.6-r1::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69::gentoo
sys-devel/automake:       1.11.6-r1::gentoo, 1.12.6::gentoo, 1.13.4::gentoo, 1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.24-r3::gentoo, 2.25.1-r1::gentoo
sys-devel/gcc:            4.7.4::gentoo, 4.8.4::gentoo, 4.8.5::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.6::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 3.18::gentoo (virtual/os-headers)
sys-libs/glibc:           2.20-r2::gentoo
Repositories:

gentoo
    location: /world/gentoo/portage
    sync-type: rsync
    sync-uri: rsync://rsync.nl.gentoo.org/gentoo-portage
    priority: 0

JeR
    location: /keeps/gentoo/local
    masters: gentoo
    priority: 10000

ACCEPT_KEYWORDS="ppc64"
ACCEPT_LICENSE="*"
CBUILD="powerpc64-unknown-linux-gnu"
CFLAGS="-O2 -mcpu=G5 -mtune=G5 -maltivec -Wall"
CHOST="powerpc64-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib/ccache/bin /usr/lib/distcc/bin /usr/share/config /usr/share/gnupg/qualified.txt /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.4/ext-active/ /etc/php/apache2-php5.5/ext-active/ /etc/php/apache2-php5.6/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cgi-php5.6/ext-active/ /etc/php/cli-php5.4/ext-active/ /etc/php/cli-php5.5/ext-active/ /etc/php/cli-php5.6/ext-active/ /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"
CXXFLAGS="-O2 -mcpu=G5 -mtune=G5 -maltivec -Wall"
DISTDIR="/aches/gentoo/distfiles"
EMERGE_DEFAULT_OPTS="--autounmask=n"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs buildpkg cgroup compressdebug config-protect-if-modified distcc distlocks ebuild-locks fixlafiles merge-sync metadata-transfer multilib-strict news parallel-fetch preserve-libs protect-owned sandbox sfperms sign splitdebug strict test test-fail-continue unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS=" http://mirror.netcologne.de/gentoo/ http://ftp.snt.utwente.nl/pub/os/linux/gentoo http://gentoo.tiscali.nl/ http://mirror.leaseweb.com/gentoo/ "
LANG="en_GB.utf8"
LC_ALL="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed"
MAKEOPTS="-j3"
PKGDIR="/aches/gentoo/packages/martijn"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
USE="X acl alsa altivec apache2 berkdb botan bzip2 cairo cli consolekit cracklib crypt cups cxx dri drm evdev fontforge fortran fusionsound gadu gdbm gstreamer http2 ibm iconv idn introspection ipv6 jpeg jpeg2k kerberos lcms lensfun lua modules mpi multilib multislot multitarget natspec ncurses nethack nls nptl offensive ofono-headset opengl openmp pam pcre png ppc64 qt3support qt4 r600-llvm-compiler raw readline rubberband scanner session ssl tcl tcmalloc tcpd theora threads tiff tk truetype unicode vpx webp zlib" ABI_PPC="64" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd 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 cgi cgid 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" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CURL_SSL="gnutls" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en_GB en nl" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3 python3_4" RUBY_TARGETS="ruby19 ruby20 ruby21" USERLAND="GNU" VIDEO_CARDS="modesetting radeon" 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:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

=================================================================
                        Package Settings
=================================================================

dev-cpp/eigen-2.0.17::gentoo was built with the following:
USE="-debug -doc -examples"
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2015-09-23 05:55:42 UTC
Created attachment 412616 [details]
kde-base:kdeplasma-addons-4.14.3:20150923-043218.log.xz
Comment 3 Michael Palimaka (kensington) gentoo-dev 2015-09-23 14:03:18 UTC
It looks like it could be caused by vectorisation, potentially triggered on ppc by -maltivec. If that's the case, does it make sense to filter the flag? I don't know much about ppc.
Comment 4 François Bissey 2015-09-24 00:15:12 UTC
(In reply to Michael Palimaka (kensington) from comment #3)
> It looks like it could be caused by vectorisation, potentially triggered on
> ppc by -maltivec. If that's the case, does it make sense to filter the flag?
> I don't know much about ppc.

Note that the file where the error is produced is named "/usr/include/eigen2/Eigen/src/Core/arch/AltiVec/PacketMath.h" so we are supposed to be in an altivec section. The only thing I can think of is that -maltivec should be used together with -mabi=altivec, but the -mcpu and -mtune flag should take care of that. Could we have a serial build log (-j1 instaed of -j3) to be sure of where the fault is?
Comment 5 Jeroen Roovers (RETIRED) gentoo-dev 2015-09-26 06:53:19 UTC
Oddly enough, -maltivec wasn't solely to blame. Removing -mcpu=G5 -mtune=G5 as well did work around the issue.
Comment 6 Jeroen Roovers (RETIRED) gentoo-dev 2015-09-26 07:20:40 UTC
Created attachment 412930 [details]
kde-base:kdeplasma-addons-4.14.3:20150926-065408.log.xz

With MAKEOPTS=-j1
Comment 7 Jeroen Roovers (RETIRED) gentoo-dev 2015-09-26 07:21:25 UTC
Created attachment 412932 [details]
kde-apps:step-4.14.3:20150926-071912.log

With MAKEOPTS=-j1
Comment 8 François Bissey 2015-09-26 09:03:40 UTC
From "info gcc" (sub-model section):
     The `-mcpu' options automatically enable or disable the following
     options:

          -maltivec  -mfprnd  -mhard-float  -mmfcrf  -mmultiple
          -mpopcntb -mpopcntd  -mpowerpc64
          -mpowerpc-gpopt  -mpowerpc-gfxopt  -msingle-float -mdouble-float
          -msimple-fpu -mstring  -mmulhw  -mdlmzb  -mmfpgpr -mvsx
          -mcrypto -mdirect-move -mpower8-fusion -mpower8-vector
          -mquad-memory -mquad-memory-atomic


so "-mcpu=G5 -maltivec" is redundant. Alternatively you could try "-mcpu=G5 -mno-altivec".
Comment 9 François Bissey 2015-09-26 09:06:55 UTC
I also notice you are using distcc. Do you have a small(may be not so small) cluster of G5?
Comment 10 Jeroen Roovers (RETIRED) gentoo-dev 2015-09-26 09:43:53 UTC
(In reply to Francois Bissey from comment #9)
> I also notice you are using distcc. Do you have a small(may be not so small)
> cluster of G5?

No, I have a couple of systems with cross-compilers for PPC64 installed. Since those do not have the eigen headers installed, it shouldn't matter at the preprocessor stage. Additionally, distcc on the remote hosts fails, so it's being retried locally anyway. As the cross-compilers seem to work fine when CXXFLAGS are changed as noted in comment #5, that should rule out that distcc is causing or contributing to this issue or otherwise interfering.
Comment 11 Michael Palimaka (kensington) gentoo-dev 2015-10-10 11:04:09 UTC
What should we do about this - append-flags -mno-altivec for ppc and/or ppc64? I don't have access to any hardware to test.
Comment 12 Jeroen Roovers (RETIRED) gentoo-dev 2015-10-10 12:42:49 UTC
(In reply to Michael Palimaka (kensington) from comment #11)
> What should we do about this - append-flags -mno-altivec for ppc and/or
> ppc64? I don't have access to any hardware to test.

Yes, that would work for PPC64. I have no idea if this problem affects PPC32 at all.
Comment 13 Michael Palimaka (kensington) gentoo-dev 2015-10-10 17:52:18 UTC
Thanks, fixed in git.

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=abba0f36c52ed8455d3164e3c40b41feb41fed83
Comment 14 Jeroen Roovers (RETIRED) gentoo-dev 2015-10-11 04:59:51 UTC
You didn't fix kde-base/kdeplasma-addons-4.14.3.
Comment 15 Michael Palimaka (kensington) gentoo-dev 2015-10-11 06:42:15 UTC
Sorry, my mistake. Thanks for taking care of it.