Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 721858 - sci-libs/arpack-3.5.0 fails with gcc-10 - Error: Rank mismatch
Summary: sci-libs/arpack-3.5.0 fails with gcc-10 - Error: Rank mismatch
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Science Related Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: gcc-10
  Show dependency tree
 
Reported: 2020-05-09 13:33 UTC by Michelangelo Scopelliti
Modified: 2020-06-07 21:11 UTC (History)
1 user (show)

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


Attachments
build log with MAKEOPTS="-j1" (arpack-3.5.0:20200509-132008.log.gz,6.60 KB, application/gzip)
2020-05-09 13:36 UTC, Michelangelo Scopelliti
Details
build log (build-python2_7.log-tar.bz2,35.73 KB, application/x-bzip)
2020-05-29 15:10 UTC, Geoff Madden
Details
emerge info (emerge.inf,5.41 KB, text/plain)
2020-05-29 15:11 UTC, Geoff Madden
Details
2nd build log (build.log.tar.bz2,4.12 KB, application/x-bzip)
2020-05-29 15:38 UTC, Geoff Madden
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michelangelo Scopelliti 2020-05-09 13:33:37 UTC
When compiled with gcc-10,sci-libs/arpack-3.5.0 fails with error

libtool: compile:  x86_64-pc-linux-gnu-gfortran -march=native -mtune=native -O2 -pipe -c snaitr.f  -fPIC -o .libs/snaitr.o
snaitr.f:658:35:

  376 |             call svout (logfil, 1, rnorm, ndigit,
      |                                   2
......
  658 |             call svout (logfil, 2, xtemp, ndigit,
      |                                   1
Error: Rank mismatch between actual argument at (1) and actual argument at (2) (scalar and rank-1)

A workaround is available: adding "-fallow-argument-mismatch" to F{,C}FLAGS fixes the issue.

See https://gcc.gnu.org/gcc-10/changes.html (Fortran changes)

Reproducible: Always




Portage 2.3.99 (python 3.7.7-final-0, default/linux/amd64/17.1, gcc-10.1.0, glibc-2.31-r2, 5.6.11 x86_64)
=================================================================
System uname: Linux-5.6.11-x86_64-Intel-R-_Core-TM-_i7-7700_CPU_@_3.60GHz-with-gentoo-2.7
KiB Mem:    32592860 total,  25195968 free
KiB Swap:   33554428 total,  33554428 free
Head commit of repository gentoo: 0818344e4dfe29af3a8e6e18d53611b61467799d

Head commit of repository libressl: ad08d4df67f1e2235ae1847448ed4e2c35d87ab5

sh bash 5.0_p17
ld GNU gold (Gentoo 2.34 p1 2.34.0) 1.16
app-shells/bash:          5.0_p17::gentoo
dev-java/java-config:     2.2.0-r4::gentoo
dev-lang/perl:            5.30.2::gentoo
dev-lang/python:          2.7.18::gentoo, 3.7.7-r2::gentoo, 3.8.2-r2::gentoo
dev-util/cmake:           3.17.2::gentoo
sys-apps/baselayout:      2.7::gentoo
sys-apps/openrc:          0.42.1::gentoo
sys-apps/sandbox:         2.18::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r5::gentoo
sys-devel/automake:       1.13.4-r2::gentoo, 1.16.2::gentoo
sys-devel/binutils:       2.34::gentoo
sys-devel/gcc:            10.1.0::gentoo
sys-devel/gcc-config:     2.2.1::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.3::gentoo
sys-kernel/linux-headers: 5.6::gentoo (virtual/os-headers)
sys-libs/glibc:           2.31-r2::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: git
    sync-uri: https://github.com/gentoo/gentoo.git
    priority: -1000

kernelpanic
    location: /var/db/repos/kernelpanic
    masters: gentoo
    priority: 0

libressl
    location: /var/db/repos/libressl
    sync-type: git
    sync-uri: https://github.com/gentoo/libressl.git
    masters: gentoo

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="@FREE @BINARY-REDISTRIBUTABLE @EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -mtune=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /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"
CXXFLAGS="-march=native -mtune=native -O2 -pipe"
DISTDIR="/var/cache/distfiles"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-march=native -mtune=native -O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs cgroup clean-logs compress-build-logs config-protect-if-modified distlocks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms split-elog split-log strict unknown-features-warn unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=native -mtune=native -O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="it_IT.UTF-8"
LDFLAGS="-Wl,-O2 -Wl,--as-needed"
MAKEOPTS="-j9"
PKGDIR="/var/cache/binpkgs"
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 --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac acl acpi alsa amd64 ao berkdb blas bluray branding bzip2 cairo cdda cjk clang cli crypt cups curl dbus djvu dri dvb dvd elogind encode eselect-ldso exif ffmpeg fftw flac fontconfig fortran gdbm gif gimp gmp gnome-keyring gsm harfbuzz heif iconv icu imlib inotify ipv6 jbig jemalloc jit jpeg jpeg2k lapack latex lcms libass libnotify libressl libtirpc lto lz4 lzma lzo mms mng mp3 mpeg multilib natspec ncurses nls nptl nss offensive ogg openal opencl opencv openexr opengl openmp opus pam pango pcre pdf plotutils png policykit postproc postscript pulseaudio raw readline scanner seccomp smp sndfile sound sox speex spell spice split-usr ssl startup-notification svg theora threads tiff truetype udev udisks unicode usb vaapi vim-syntax vorbis vpx vulkan wavpack webp wmf x264 xattr xcb xcomposite xml xmp xpm xv xvid zip zlib zstd" ABI_X86="64" ADA_TARGET="gnat_2018" 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" 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="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" CURL_SSL="libressl" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput" KERNEL="linux" L10N="it en" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_7" PYTHON_TARGETS="python2_7 python3_7" RUBY_TARGETS="ruby27" SANE_BACKENDS="hp" USERLAND="GNU" VIDEO_CARDS="intel i965 iris" 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, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Michelangelo Scopelliti 2020-05-09 13:36:17 UTC
Created attachment 637040 [details]
build log with MAKEOPTS="-j1"
Comment 2 Ross Hayward 2020-05-10 12:51:05 UTC
GCC-10 includes some improvements in the Fortran compiler. To compile something that compiled under the previous compiler the FFLAGS environment variable can be set. 

FFLAGS="-std=legacy" emerge -1 arpack
Comment 3 Michelangelo Scopelliti 2020-05-10 13:49:27 UTC
(In reply to Ross Hayward from comment #2)
> GCC-10 includes some improvements in the Fortran compiler. To compile
> something that compiled under the previous compiler the FFLAGS environment
> variable can be set. 
> 
> FFLAGS="-std=legacy" emerge -1 arpack

Yes, -std=legacy implies -fallow-argument-mismatch. But -std=legacy suppresses other warnings about obsolete extensions, becoming too intrusive. Just my 2c.
Comment 4 Geoff Madden 2020-05-29 11:11:10 UTC
Used the suggested f flags adjustment,then scipy-python2-1.2.3 fell over with a similar fault
Comment 5 Geoff Madden 2020-05-29 15:10:08 UTC
follow on comment 4 arpack still falls over with the package.use statement FFlags="-std=legacy".
though it did build previously as an emerge statement. but the following build fell over in a similar way.
Comment 6 Geoff Madden 2020-05-29 15:10:52 UTC
Created attachment 642534 [details]
build log
Comment 7 Geoff Madden 2020-05-29 15:11:27 UTC
Created attachment 642536 [details]
emerge info
Comment 8 Geoff Madden 2020-05-29 15:38:44 UTC
Created attachment 642566 [details]
2nd build log
Comment 9 Michelangelo Scopelliti 2020-05-31 10:08:29 UTC
(In reply to Geoff Madden from comment #4)
> Used the suggested f flags adjustment,then scipy-python2-1.2.3 fell over
> with a similar fault

Yes, of course. See bug #721860.
Comment 10 Michelangelo Scopelliti 2020-05-31 10:10:32 UTC
(In reply to Geoff Madden from comment #5)
> follow on comment 4 arpack still falls over with the package.use statement
> FFlags="-std=legacy".
> though it did build previously as an emerge statement. but the following
> build fell over in a similar way.

It fails because FFLAGS is not in IUSE. If you want to change FFLAGS (or other env variables), you have to use package.env (see https://wiki.gentoo.org/wiki//etc/portage/package.env)
Comment 11 Larry the Git Cow gentoo-dev 2020-06-07 21:11:36 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=56bb49e97ee1dc6ee5a257bed3e45c2154b87dab

commit 56bb49e97ee1dc6ee5a257bed3e45c2154b87dab
Author:     Alexey Shvetsov <alexxy@gentoo.org>
AuthorDate: 2020-06-07 21:11:18 +0000
Commit:     Alexey Shvetsov <alexxy@gentoo.org>
CommitDate: 2020-06-07 21:11:30 +0000

    sci-libs/arpack: Fix build with gcc10
    
    Closes: https://bugs.gentoo.org/721858
    Package-Manager: Portage-2.3.100, Repoman-2.3.22
    Signed-off-by: Alexey Shvetsov <alexxy@gentoo.org>

 sci-libs/arpack/arpack-3.4.0.ebuild | 13 +++++++------
 sci-libs/arpack/arpack-3.5.0.ebuild | 11 ++++++-----
 sci-libs/arpack/arpack-9999.ebuild  | 10 +++++-----
 3 files changed, 18 insertions(+), 16 deletions(-)