Bug#930628: flang-7: Flang-7 20190329-1 Does Not See Its Standard Modules

Ron Lovell ron163264 at gmail.com
Sun Jun 16 21:58:02 BST 2019


Package: flang-7
Version: 20190329-1
Severity: important

Dear Maintainer,

A program which uses iso_fortran_env fails to compile using the
20190329-1 build of flang-7 because flang cannot find the module:

flang -Ifortran_characters at exe -I. -I.. -Xclang -fcolor-diagnostics -pipe -D_FILE_OFFSET_BITS=64 -Minform=inform -O3 -march=native -fstack-protector-strong -std=f2003 -module fortran_characters at exe   -o 'fortran_characters at exe/globals.f90.o' -c ../globals.f90
F90-F-0004-Unable to open MODULE file iso_fortran_env.mod (../globals.f90: 2)
F90/x86-64 Linux Flang - 1.5 2017-05-01: compilation aborted

The same program compiles successfully using the 20181226-2 build of
flang-7.

The problem can be worked around by adding this compiler option:

    -I /usr/lib/x86_64-linux-gnu/fortran/flang-mod-34

In the upgrade from 20181226-2 to 20190329-1 the *.mod files moved from
a subdirectory flang-mod-33 to flang-mod-34. Does something need to be
updated in flang-7 to adjust the default module search path?


-- System Information:
Debian Release: 10.0
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.19.0-5-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages flang-7 depends on:
ii  libc6         2.28-10
ii  libflang-dev  20190329-1
ii  libflang0d-7  20190329-1
ii  libgcc1       1:8.3.0-7
ii  libllvm7      1:7.0.1-8
ii  libomp-7-dev  1:7.0.1-8
ii  libstdc++6    8.3.0-7

flang-7 recommends no packages.

flang-7 suggests no packages.

-- no debconf information



More information about the Pkg-llvm-team mailing list