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

            Bug ID: 104217
           Summary: gcc-12-20220123 failure to build on Cygwin due to lack
                    of secure_getenv
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: bootstrap
          Assignee: unassigned at gcc dot gnu.org
          Reporter: mckelvey at maskull dot com
  Target Milestone: ---

Created attachment 52283
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=52283&action=edit
Tarball of attempted build

This bug has been around for a few snapshots so I'm reporting it now.

In file included from ../../../.././libstdc++-v3/src/c++17/fs_ops.cc:58:
../../../.././libstdc++-v3/src/c++17/../filesystem/ops-common.h: In function
‘const char* std::filesystem::get_temp_directory_from_env(std::error_code&)’:
../../../.././libstdc++-v3/src/c++17/../filesystem/ops-common.h:640:25: error:
‘::secure_getenv’ has not been declared
  640 |         auto tmpdir = ::secure_getenv(env);
                                ^~~~~~~~~~~~~
make[6]: *** [Makefile:585: fs_ops.lo] Error 1

Configured as: ./configure --enable-languages=c,c++ --enable-threads=posix

Run under up-to-date Cygwin using gcc-11-20220122.

cygcheck (cygwin) 3.3.3

Reply via email to