https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116293

            Bug ID: 116293
           Summary: ICE when failing to open module mapper (error: unknown
                    Compiled Module Interface: no such module)
           Product: gcc
           Version: 15.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: sjames at gcc dot gnu.org
  Target Milestone: ---

Created attachment 58873
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=58873&action=edit
vulkan.cppm.ii.xz

I hit this as well as PR116291 when running a command in the wrong directory.

```
$ g++ -MF /tmp/i-do-not-exist/vulkan.cppm.o.d -fmodules-ts
-fmodule-mapper=/tmp/i-do-not-exist -c vulkan.cppm  -MD
vulkan.cppm: error: failed opening mapper ‘/tmp/i-do-not-exist’
vulkan.cppm:20:8: error: unknown Compiled Module Interface: no such module
   20 | export module vulkan_hpp;
      |        ^
vulkan.cppm:4888:1: internal compiler error: Segmentation fault
 4888 | }  // namespace VULKAN_HPP_NAMESPACE
      | ^
0x55bb8c50138c internal_error(char const*, ...)
       
/usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/diagnostic-global-context.cc:491
0x55bb8bd80e8d crash_signal
        /usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/toplev.cc:321
0x55bb8c662bcd xstrdup
       
/usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/libiberty/xstrdup.c:33
0x55bb8c58db5c deps_add_module_target(mkdeps*, char const*, char const*, bool,
bool)
       
/usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/libcpp/mkdeps.cc:362
0x55bb8bbab398 preprocessed_module(cpp_reader*)
       
/usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/cp/module.cc:20446
0x55bb8ac36bd0 module_token_cdtor(cpp_reader*, unsigned long)
        /usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/cp/lex.cc:582
0x55bb8ac91109 cp_lexer_new_main
       
/usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/cp/parser.cc:769
0x55bb8ac91109 c_parse_file()
       
/usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/cp/parser.cc:51816
0x55bb8cfd14bb c_common_parse_file()
       
/usr/src/debug/sys-devel/gcc-15.0.9999/gcc-15.0.9999/gcc/c-family/c-opts.cc:1315
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
Please include the complete backtrace with any bug report.
See <https://bugs.gentoo.org/> for instructions.
```

```
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-pc-linux-gnu/15/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with:
/var/tmp/portage/sys-devel/gcc-15.0.9999/work/gcc-15.0.9999/configure
--host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --prefix=/usr
--bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/15
--includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/15/include
--datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/15
--mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/15/man
--infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/15/info
--with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/15/include/g++-v15
--disable-silent-rules --disable-dependency-tracking
--with-python-dir=/share/gcc-data/x86_64-pc-linux-gnu/15/python
--enable-languages=c,c++,fortran --enable-obsolete --enable-secureplt
--disable-werror --with-system-zlib --enable-nls --without-included-gettext
--disable-libunwind-exceptions --enable-checking=yes,extra,rtl,df
--with-bugurl=https://bugs.gentoo.org/ --with-pkgversion='Gentoo 15.0.9999 p,
commit 767d91209f8983d23caae12e2337eca6c2b5dbdb' --with-gcc-major-version-only
--enable-libstdcxx-time --enable-lto --disable-libstdcxx-pch --enable-shared
--enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu
--enable-multilib --with-multilib-list=m32,m64 --disable-fixed-point
--enable-targets=all --enable-libgomp --disable-libssp --disable-libada
--disable-cet --disable-systemtap --disable-valgrind-annotations
--disable-vtable-verify --disable-libvtv --with-zstd --without-isl
--enable-default-pie --enable-host-pie --disable-host-bind-now
--enable-default-ssp --disable-fixincludes --with-build-config='bootstrap-O3
bootstrap-lto'
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 15.0.0 20240808 (experimental)
4d44f3fc387815eb232d7757352857993a1d21d9 (Gentoo 15.0.9999 p, commit
767d91209f8983d23caae12e2337eca6c2b5dbdb)
```

Reply via email to