Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 616154 - sys-devel/gcc-6.4.0 does not install omp_lib.mod for 32 bit gfortran compilation in /usr/lib64/gcc/x86_64-pc-linux-gnu/6.3.0/32/finclude directory (eg lapack-reference problem)
Summary: sys-devel/gcc-6.4.0 does not install omp_lib.mod for 32 bit gfortran compilat...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL: https://gcc.gnu.org/PR60670
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-04-20 19:13 UTC by milan hodoscek
Modified: 2020-02-03 09:51 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 milan hodoscek 2017-04-20 19:13:59 UTC
gcc-6.3.0 doesn't install omp_lib.mod for 32 bit fortran (gfortran -m32 -fopenmp) compilation in /usr/lib64/gcc/x86_64-pc-linux-gnu/6.3.0/32/finclude directory.
This prevents to compile any fortran program that uses openmp. For example lapack-reference does not compile. I put a link from ../../finclude and everything compiles OK. Although .mod files are now binary I guess they are the same for -m32 as for -m64 compilations, so the whole directory could be just a link ??

Easy to reproduce the problem with these commands:
cat > omp.f90
  use omp_lib
  write(*,*)'works...'
end program
<Ctrl-D>

gfortran -m32 -fopenmp omp.f90

This is my emerge --info:

Portage 2.3.5 (python 3.5.3-final-0, default/linux/amd64/13.0/systemd, gcc-6.3.0, glibc-2.24-r1, 4.10.0-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.10.0-gentoo-x86_64-Intel-R-_Xeon-R-_CPU_E31245_@_3.30GHz-with-gentoo-2.3
KiB Mem:    16325712 total,    713936 free
KiB Swap:    3940672 total,   3813500 free
Timestamp of repository gentoo: Thu, 20 Apr 2017 09:00:01 +0000
sh bash 4.4_p12
ld GNU ld (Gentoo 2.27 p1.0) 2.27
distcc 3.2rc1 x86_64-pc-linux-gnu [disabled]
app-shells/bash:          4.4_p12::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.24.1-r1::gentoo
dev-lang/python:          2.7.13::gentoo, 3.4.6::gentoo, 3.5.3::gentoo, 3.6.1::gentoo
dev-util/cmake:           3.8.0::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.3::gentoo
sys-apps/openrc:          0.25::gentoo
sys-apps/sandbox:         2.10-r4::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r2::gentoo
sys-devel/automake:       1.11.6-r2::gentoo, 1.13.4-r1::gentoo, 1.15-r2::gentoo
sys-devel/binutils:       2.27::gentoo
sys-devel/gcc:            4.8.5::gentoo, 5.4.0-r3::gentoo, 6.3.0::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r4::gentoo
sys-devel/make:           4.2.1-r1::gentoo
sys-kernel/linux-headers: 4.10::gentoo (virtual/os-headers)
sys-libs/glibc:           2.24-r1::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://s6/portage
    priority: -1000

local
    location: /usr/local/portage
    masters: gentoo
    priority: 0

flatpak-overlay
    location: /var/lib/layman/flatpak-overlay
    masters: gentoo
    priority: 50

kde
    location: /var/lib/layman/kde
    masters: gentoo
    priority: 50

science
    location: /var/lib/layman/science
    masters: gentoo
    priority: 50

Installed sets: @kde-apps-next, @kde-frameworks-live, @kde-plasma-live, @mykde
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=corei7"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /etc/stunnel/stunnel.conf /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/chromium/policies/managed/chrome-gnome-shell.json /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/opt/chrome/policies/managed/chrome-gnome-shell.json /etc/php/apache2-php7.1/ext-active/ /etc/php/cgi-php7.1/ext-active/ /etc/php/cli-php7.1/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 -pipe -march=corei7"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--quiet-build=n --with-bdeps=y"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs candy config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe -march=corei7"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.utf8"
LC_ALL="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j 8"
PKGDIR="/usr/portage/packages"
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 aacplus aalib acl alac alsa amd64 amr ansi apache2 apng applet assistant audacious audiofile autoipd avahi berkdb bitmapfonts bittorrent boost branding btrfs bzip2 cairo canna cdda cdio cdr cjk clang cli clozurecl clucene cracklib crossdev crypt css curl cxx daap dbus dconf dcraw declarative demosaic device-mapper dga dirac dri dv dvd dvdr dvdread eds egl emacs emovix encode exif extensions extra extras f77 faac faad fastcgi fdk ffmpeg flac fltk fontconfig foomaticdb fortran fortran2003 fortran95 frei0r g3dvl gcj gd gdbm gdu gif gimp gimpprint gkrellm glamor gles2 glib gnuplot gphoto2 gsf gstreamer gtk gtk3 gudev gzip hdri hwdb hwinfo iconv icu imagemagick infinality introspection ipv6 java javascript jbig jpeg jpeg2k kde kdenlive kdepim kdrive lapack latex lcms ldap legacy-systray libinput libkms libxml2 lxc mad matplotlib matroska mbox mdnsresponder-compat melt minizip mjpeg mng modemmanager modules mozilla mp3 mp4 mpm-itk multilib multiuser musepack musicbrainz mysql native-exceptions ncurses network networkmanager nftables nls nptl nsplugin nss numpy objc offensive ogg oggvorbis openbabel openexr opengl openmp opus pam pcntl pcre pcre16 pdf perl plasma plotutils png pnm policykit posix preview-latex printsupport private-headers pulseaudio python python3 qml qt3support qt5 rar readline rendering rle romio rtc sasl schroedinger scipy script scripttools sdl seccomp semantic-desktop session smp smpeg sna sndfile sockets socks5 sox speex spell sql sqlite ssl staging static-libs svc svg systemd tagwriting tbb tcl tcltk tcpd tetex tga theora threads tiff tk tracker truetype udev udisks unicode upcall usb uvm vaapi vala vcd vdr vhosts vim vim-pager vorbis vpx wav wavpack webm webp widgets winbind wmf wxgtk1 x264 xattr xcb xetex xft xinerama xkb xml xmp xorg xvfb xvid xvmc yv12 zlib" ABI_X86="64 32" 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="krita stage words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" CURL_SSL="nss" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="libinput" KERNEL="linux" L10N="us" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="us" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" PYTHON_SINGLE_TARGET="python3_5" PYTHON_TARGETS="python2_7 python3_5 python3_6" RUBY_TARGETS="ruby23 ruby24" USERLAND="GNU" VIDEO_CARDS="intel i965" 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"
USE_PYTHON="2.7 3.5 3.6"
Unset:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

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

sys-devel/gcc-6.3.0::gentoo was built with the following:
USE="cxx fortran (multilib) nls nptl objc openmp pch sanitize vtv (-altivec) (-awt) -cilk -debug -doc (-fixed-point) (-gcj) -go -graphite (-hardened) (-jit) (-libssp) -mpx -objc++ -objc-gc -pie -regression-test -ssp -vanilla" ABI_X86="64"
Comment 1 Andreas K. Hüttel archtester gentoo-dev 2017-10-03 18:06:25 UTC
Probably worth another look.
Comment 2 Andreas K. Hüttel archtester gentoo-dev 2017-10-22 21:41:33 UTC
This is also the case for 6.4.0.

However, it's not a regression compared with current stable, so it can't block stabilization.
Comment 3 Sergei Trofimovich (RETIRED) gentoo-dev 2020-02-02 20:43:35 UTC
That is known upstream as https://gcc.gnu.org/PR60670
Comment 4 Sergei Trofimovich (RETIRED) gentoo-dev 2020-02-02 21:16:01 UTC
Building gfrotran manually from head I see fincluse being installed correctly:

./lib/gcc/x86_64-pc-linux-gnu/10.0.1/finclude/omp_lib.mod
./lib/gcc/x86_64-pc-linux-gnu/10.0.1/finclude/omp_lib_kinds.mod
./lib/gcc/x86_64-pc-linux-gnu/10.0.1/32/finclude/omp_lib.mod
./lib/gcc/x86_64-pc-linux-gnu/10.0.1/32/finclude/omp_lib_kinds.mod

Let's see if it was fixed or toolchain.eclass mixes up things.
Comment 5 Sergei Trofimovich (RETIRED) gentoo-dev 2020-02-02 21:35:02 UTC
9.2.0 branch also installs correct files:

./lib/gcc/x86_64-pc-linux-gnu/9.2.0/finclude/omp_lib.h
./lib/gcc/x86_64-pc-linux-gnu/9.2.0/finclude/omp_lib.f90
./lib/gcc/x86_64-pc-linux-gnu/9.2.0/finclude/omp_lib.mod
./lib/gcc/x86_64-pc-linux-gnu/9.2.0/finclude/omp_lib_kinds.mod
./lib/gcc/x86_64-pc-linux-gnu/9.2.0/32/finclude/omp_lib.h
./lib/gcc/x86_64-pc-linux-gnu/9.2.0/32/finclude/omp_lib.f90
./lib/gcc/x86_64-pc-linux-gnu/9.2.0/32/finclude/omp_lib.mod
./lib/gcc/x86_64-pc-linux-gnu/9.2.0/32/finclude/omp_lib_kinds.mod

gcc-9_2_0 tag was installed as:

time { ../gcc/configure --disable-bootstrap --enable-languages=c,fortran --prefix="$(pwd)/../gcc-fortran-installed" && make -j9 && make install -j9; }

Looking at toolchain.eclass specifics.
Comment 6 Sergei Trofimovich (RETIRED) gentoo-dev 2020-02-03 00:08:20 UTC
9.2.0 ebuild also installes needed files. 6.5.0 does not. Must have been fixed upstream somewhere in that range. Let's see if I can bisect it.
Comment 7 Sergei Trofimovich (RETIRED) gentoo-dev 2020-02-03 00:14:04 UTC
7.5.0 ebuild installs correct files
Comment 8 Sergei Trofimovich (RETIRED) gentoo-dev 2020-02-03 09:51:50 UTC
Let's close as obsolete. gcc-7.5+ should be fine here.