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

            Bug ID: 121147
           Summary: ../.././gcc/c/c-decl.cc:6192:21: error:
                    ‘ENABLE_OFFLOADING’ was not declared in this scope
           Product: gcc
           Version: 15.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: terryinzaghi at 163 dot com
  Target Milestone: ---

compile gcc-15.1.0 failed:
download-from : https://ftp.gnu.org/gnu/gcc/gcc-15.1.0/gcc-15.1.0.tar.xz


../gcc-15.1.0/configure  \
  --prefix=/home/cu-lib/GCC15/gcc15-installed \
  --enable-languages=c,c++ \
  --enable-bootstrap \
  --enable-checking=release \
  --enable-shared \
  --enable-threads=posix \
  --enable-libgomp \
  --enable-libatomic \
  --enable-libstdcxx-filesystem-ts \
  --enable-libstdcxx-time \
  --with-system-zlib \
  --with-system-libiconv \
  --enable-default-pie \
  --enable-default-ssp \
  --enable-libssp \
  --enable-cet=auto \
  --enable-linker-build-id \
  --with-tune=generic \
  --with-default-libstdcxx-abi=new \
  --enable-libstdcxx-debug \
  --enable-libstdcxx-parallel \
  --enable-nls \
  --disable-multilib \
  --enable-decimal-float=bid


../.././gcc/c/c-decl.cc: In function ‘void finish_decl(tree, location_t, tree,
tree, tree)’:
../.././gcc/c/c-decl.cc:6192:21: error: ‘ENABLE_OFFLOADING’ was not declared in
this scope
 6192 |                 if (ENABLE_OFFLOADING)
      |                     ^~~~~~~~~~~~~~~~~
../.././gcc/c-family/c-cppbuiltin.cc: In function ‘void
c_cpp_builtins(cpp_reader*)’:
../.././gcc/c-family/c-cppbuiltin.cc:1674:7: error: ‘ENABLE_DECIMAL_FLOAT’ was
not declared in this scope; did you mean ‘MODE_DECIMAL_FLOAT’?
 1674 |   if (ENABLE_DECIMAL_FLOAT && ENABLE_DECIMAL_BID_FORMAT)
      |       ^~~~~~~~~~~~~~~~~~~~
      |       MODE_DECIMAL_FLOAT
../.././gcc/c/c-parser.cc: In function ‘void c_parser_oacc_declare(c_parser*)’:
../.././gcc/c/c-parser.cc:21777:23: error: ‘ENABLE_OFFLOADING’ was not declared
in this scope
21777 |                   if (ENABLE_OFFLOADING)
      |                       ^~~~~~~~~~~~~~~~~
../.././gcc/c-family/c-cppbuiltin.cc:1674:31: error:
‘ENABLE_DECIMAL_BID_FORMAT’ was not declared in this scope
 1674 |   if (ENABLE_DECIMAL_FLOAT && ENABLE_DECIMAL_BID_FORMAT)
      |                               ^~~~~~~~~~~~~~~~~~~~~~~~~
make[3]: *** [Makefile:1210: c-family/c-cppbuiltin.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: *** [Makefile:1210: c/c-decl.o] Error 1
../.././gcc/c/c-parser.cc: In function ‘void
c_parser_omp_declare_target(c_parser*)’:
../.././gcc/c/c-parser.cc:27591:19: error: ‘ENABLE_OFFLOADING’ was not declared
in this scope
27591 |               if (ENABLE_OFFLOADING)
      |                   ^~~~~~~~~~~~~~~~~
../.././gcc/c-family/c-pch.cc: In function ‘void
c_common_pch_pragma(cpp_reader*, const char*)’:
../.././gcc/c-family/c-pch.cc:410:8: error: ‘open’ was not declared in this
scope; did you mean ‘popen’?
  410 |   fd = open (name, O_RDONLY | O_BINARY, 0666);
      |        ^~~~
      |        popen
make[3]: *** [Makefile:1210: c-family/c-pch.o] Error 1
make[3]: *** [Makefile:1210: c/c-parser.o] Error 1
Shared 87642 out of 154040 states by creating 14936 new states, saving 72706

Reply via email to