External Issue: Unexpected module search behavior change 1.26 pre-release

18743, "jlbyrne-hpe", "Unexpected module search behavior change 1.26 pre-release", "2021-11-18T00:03:39Z"

Summary of Problem

With the 1.26 pre-release compiler, "use FormattedIO:" fails unless "use IO;" comes first. This is not the behavior of 1.25.0.

Steps to Reproduce

Source Code: foo.chpl

module Foo {
     // use IO; // FormattedIO not found if commented out.
    use FormattedIO;
}

Compile command:
chpl ~/foo.chpl
foo.chpl:3: error: Cannot find module or enum 'FormattedIO'

Configuration Information

I did configure the compiler to install into another directory.

  • Output of chpl --version:
    chpl version 1.26.0 pre-release (b3897ad)
    built with LLVM version 11.0.1
  • Output of $CHPL_HOME/util/printchplenv --anonymize:
    Output of $CHPL_HOME/util/printchplenv --anonymize:
    CHPL_TARGET_PLATFORM: linux64
    CHPL_TARGET_COMPILER: clang *
    CHPL_TARGET_ARCH: x86_64
    CHPL_TARGET_CPU: native *
    CHPL_LOCALE_MODEL: flat
    CHPL_COMM: none *
    CHPL_TASKS: qthreads
    CHPL_LAUNCHER: none
    CHPL_TIMERS: generic
    CHPL_UNWIND: none
    CHPL_MEM: jemalloc
    CHPL_ATOMICS: cstdlib
    CHPL_GMP: bundled
    CHPL_HWLOC: bundled
    CHPL_RE2: bundled *
    CHPL_LLVM: bundled *
    CHPL_AUX_FILESYS: none
  • Back-end compiler and version, e.g. gcc --version or clang --version:
    clang version 11.0.1 (git@github.com:chapel-lang/chapel.git b3897ad)
    Target: x86_64-unknown-linux-gnu
    Thread model: posix