[Bug libstdc++/105540] New: gcc-11-20220506 failure to build on Cygwin due to lack of secure_getenv
mckelvey at maskull dot com
gcc-bugzilla@gcc.gnu.org
Mon May 9 20:37:37 GMT 2022
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105540
Bug ID: 105540
Summary: gcc-11-20220506 failure to build on Cygwin due to lack
of secure_getenv
Product: gcc
Version: 11.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: libstdc++
Assignee: unassigned at gcc dot gnu.org
Reporter: mckelvey at maskull dot com
Target Milestone: ---
Created attachment 52945
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=52945&action=edit
Build.log showing error
make[6]: Entering directory
'/home/McKelvey/gcc-11-20220506/x86_64-pc-cygwin/libstdc++-v3/src/c++11'
make[6]: Nothing to be done for 'all'.
make[6]: Leaving directory
'/home/McKelvey/gcc-11-20220506/x86_64-pc-cygwin/libstdc++-v3/src/c++11'
Making all in c++17
make[6]: Entering directory
'/home/McKelvey/gcc-11-20220506/x86_64-pc-cygwin/libstdc++-v3/src/c++17'
/bin/sh ../../libtool --tag CXX --tag disable-shared --mode=compile
/home/McKelvey/gcc-11-20220506/host-x86_64-pc-cygwin/gcc/xgcc -shared-libgcc
-B/home/McKelvey/gcc-11-20220506/host-x86_64-pc-cygwin/gcc -nostdinc++
-L/home/McKelvey/gcc-11-20220506/x86_64-pc-cygwin/libstdc++-v3/src
-L/home/McKelvey/gcc-11-20220506/x86_64-pc-cygwin/libstdc++-v3/src/.libs
-L/home/McKelvey/gcc-11-20220506/x86_64-pc-cygwin/libstdc++-v3/libsupc++/.libs
-B/usr/local/x86_64-pc-cygwin/bin/ -B/usr/local/x86_64-pc-cygwin/lib/ -isystem
/usr/local/x86_64-pc-cygwin/include -isystem
/usr/local/x86_64-pc-cygwin/sys-include -fno-checking
-I/home/McKelvey/gcc-11-20220506/libstdc++-v3/../libgcc
-I/home/McKelvey/gcc-11-20220506/x86_64-pc-cygwin/libstdc++-v3/include/x86_64-pc-cygwin
-I/home/McKelvey/gcc-11-20220506/x86_64-pc-cygwin/libstdc++-v3/include
-I/home/McKelvey/gcc-11-20220506/libstdc++-v3/libsupc++ -std=gnu++17
-nostdinc++ -prefer-pic -D_GLIBCXX_SHARED -fno-implicit-templates -Wall
-Wextra -Wwrite-strings -Wcast-qual -Wabi=2 -fdiagnostics-show-location=once
-ffunction-sections -fdata-sections -frandom-seed=fs_ops.lo
-fimplicit-templates -g -O2 -c -o fs_ops.lo
../../../.././libstdc++-v3/src/c++17/fs_ops.cc
libtool: compile:
/home/McKelvey/gcc-11-20220506/host-x86_64-pc-cygwin/gcc/xgcc -shared-libgcc
-B/home/McKelvey/gcc-11-20220506/host-x86_64-pc-cygwin/gcc -nostdinc++
-L/home/McKelvey/gcc-11-20220506/x86_64-pc-cygwin/libstdc++-v3/src
-L/home/McKelvey/gcc-11-20220506/x86_64-pc-cygwin/libstdc++-v3/src/.libs
-L/home/McKelvey/gcc-11-20220506/x86_64-pc-cygwin/libstdc++-v3/libsupc++/.libs
-B/usr/local/x86_64-pc-cygwin/bin/ -B/usr/local/x86_64-pc-cygwin/lib/ -isystem
/usr/local/x86_64-pc-cygwin/include -isystem
/usr/local/x86_64-pc-cygwin/sys-include -fno-checking
-I/home/McKelvey/gcc-11-20220506/libstdc++-v3/../libgcc
-I/home/McKelvey/gcc-11-20220506/x86_64-pc-cygwin/libstdc++-v3/include/x86_64-pc-cygwin
-I/home/McKelvey/gcc-11-20220506/x86_64-pc-cygwin/libstdc++-v3/include
-I/home/McKelvey/gcc-11-20220506/libstdc++-v3/libsupc++ -std=gnu++17
-nostdinc++ -D_GLIBCXX_SHARED -fno-implicit-templates -Wall -Wextra
-Wwrite-strings -Wcast-qual -Wabi=2 -fdiagnostics-show-location=once
-ffunction-sections -fdata-sections -frandom-seed=fs_ops.lo
-fimplicit-templates -g -O2 -c ../../../.././libstdc++-v3/src/c++17/fs_ops.cc
-o fs_ops.o
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:600:25: error:
‘::secure_getenv’ has not been declared
600 | auto tmpdir = ::secure_getenv(env);
| ^~~~~~~~~~~~~
make[6]: *** [Makefile:577: fs_ops.lo] Error 1
Built with gcc-12-20220507
$ uname -r
3.3.4(0.341/5/3)
More information about the Gcc-bugs
mailing list