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

            Bug ID: 98732
           Summary: libbacktrace could not find executable to open
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libbacktrace
          Assignee: unassigned at gcc dot gnu.org
          Reporter: jettzheng at foxmail dot com
                CC: ian at gcc dot gnu.org
  Target Milestone: ---

Created attachment 49995
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49995&action=edit
zip with all files needed

gcc version:
GNU C++20 (GCC) version 11.0.0 20210118 (experimental) (x86_64-w64-mingw32)
compiled by GNU C version 10.2.1 20201125, GMP version 6.2.0, MPFR version
4.0.2, MPC version 1.1.0, isl version isl-0.22-GMP

system type:
Windows 10 Insider Preview Dev Channel Build 21286.1000 64-bit x86_64

gcc options:
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=c:/gcc/gcc/bin/../libexec/gcc/x86_64-w64-mingw32/11/lto-wrapper.exe
Target: x86_64-w64-mingw32
Configured with: ../configure --target=x86_64-w64-mingw32
--host=x86_64-w64-mingw32 --disable-bootstrap --enable-libstdcxx-debug
--with-tune=znver1 --prefix=/mnt/c/GCC
--with-sysroot=/mnt/c/GCC-Build/NewestLinux
--with-build-sysroot=/mnt/c/GCC-Build/NewestLinux --disable-libstdcxx-pch
--disable-multilib --enable-libgomp --with-cross-host
--with-libiconv-prefix=/mnt/c/GCC-Build/NewestLinux/Libraries
--disable-libstdcxx-verbose --enable-languages=c,c++,fortran,lto,objc,obj-c++
--disable-nls --disable-win32-registry --enable-shared --with-gnu-as
--with-gnu-ld --enable-threads=posix --program-suffix=-11
--enable-version-specific-runtime-libs --with-gcc-major-version-only
--enable-__cxa_atexit --enable-plugin --program-prefix= : (reconfigured)
../configure --target=x86_64-w64-mingw32 --host=x86_64-w64-mingw32
--disable-bootstrap --enable-libstdcxx-debug --with-tune=znver1
--prefix=/mnt/c/GCC --with-sysroot=/mnt/c/GCC-Build/NewestLinux
--with-build-sysroot=/mnt/c/GCC-Build/NewestLinux --disable-libstdcxx-pch
--disable-multilib --enable-libgomp --with-cross-host
--with-libiconv-prefix=/mnt/c/GCC-Build/NewestLinux/Libraries
--disable-libstdcxx-verbose --enable-languages=c,c++,fortran,lto,objc,obj-c++
--disable-nls --disable-win32-registry --enable-shared --with-gnu-as
--with-gnu-ld --enable-threads=posix --program-suffix=-11
--enable-version-specific-runtime-libs --with-gcc-major-version-only
--enable-__cxa_atexit --enable-plugin --program-prefix=
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 11.0.0 20210118 (experimental) (GCC) 
COLLECT_GCC_OPTIONS='-std=gnu++20' '-fmodules-ts' '-o' 'demo.exe' '-v' '-Wall'
'-Wextra' '-fno-strict-aliasing' '-fwrapv' '-fno-aggressive-loop-optimizations'
'-fsanitize=undefined' '-save-temps' '-shared-libgcc' '-mtune=znver1'
'-march=x86-64' '-dumpdir' 'demo-'

command line:
g++ prime.cpp demo.cpp -std=gnu++20 -fmodules-ts -o demo.exe -v -Wall -Wextra
-fno-strict-aliasing -fwrapv -fno-aggressive-loop-optimizations
-fsanitize=undefined -save-temps

output:
prime.cpp:4:9: internal compiler error: in tree_node, at cp/module.cc:9134
    4 | export module prime;
      |         ^~~~~~
libbacktrace could not find executable to open
Please submit a full bug report,
with preprocessed source if appropriate.
See <https://gcc.gnu.org/bugs/> for instructions.

and

In module imported at demo.cpp:1:1:
prime: error: failed to read compiled module: No such file or directory
prime: note: compiled module file is 'gcm.cache/prime.gcm'
prime: note: imports must be built before being imported
prime: fatal error: returning to the gate for a mechanical issue

preprocessed files are with the attatchment


anyways, my libbacktrace won't work

Reply via email to