public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug bootstrap/67546] New: bootstrap broken on x86_64-w64-mingw32, error: '::unsetenv' has not been declared in gcc.c
@ 2015-09-11  6:21 rainer@emrich-ebersheim.de
  2015-09-11  9:04 ` [Bug bootstrap/67546] " ktietz at gcc dot gnu.org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: rainer@emrich-ebersheim.de @ 2015-09-11  6:21 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 67546
           Summary: bootstrap broken on x86_64-w64-mingw32, error:
                    '::unsetenv' has not been declared in gcc.c
           Product: gcc
           Version: 6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: bootstrap
          Assignee: unassigned at gcc dot gnu.org
          Reporter: rainer@emrich-ebersheim.de
  Target Milestone: ---

Bootstrapping trunk revision 227528, native x86_64-w64-mingw32, I get:

g++ -std=gnu++98 -fno-PIE -c  -DSTANDARD_STARTFILE_PREFIX=\"../../../\"
-DSTANDARD_EXEC_PREFIX=\"/opt/devel/gnu/gcc/MINGW_NT/x86_64-w64-mingw32/mingw-w64-runtime-trunk-svn/gcc-6.0.0/lib/gcc/\"
-DSTANDARD_LIBEXEC_PREFIX=\"/opt/devel/gnu/gcc/MINGW_NT/x86_64-w64-mingw32/mingw-w64-runtime-trunk-svn/gcc-6.0.0/libexec/gcc/\"
-DDEFAULT_TARGET_VERSION=\"6.0.0\"
-DDEFAULT_REAL_TARGET_MACHINE=\"x86_64-w64-mingw32\"
-DDEFAULT_TARGET_MACHINE=\"x86_64-w64-mingw32\"
-DSTANDARD_BINDIR_PREFIX=\"/opt/devel/gnu/gcc/MINGW_NT/x86_64-w64-mingw32/mingw-w64-runtime-trunk-svn/gcc-6.0.0/bin/\"
-DTOOLDIR_BASE_PREFIX=\"../../../../\" -DACCEL_DIR_SUFFIX=\"\"
-DTARGET_SYSTEM_ROOT=\"/x86_64-w64-trunk\"  -DENABLE_SHARED_LIBGCC
-DCONFIGURE_SPECS="\"\"" -g -DIN_GCC     -fno-exceptions -fno-rtti
-fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings
-Wcast-qual -Wno-format -Wmissing-format-attribute -Woverloaded-virtual
-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings  
-DHAVE_CONFIG_H -I. -I.
-I../../../../../../../opt/devel/gnu/src/gcc-mingw-w64/gcc-6.0.0/gcc
-I../../../../../../../opt/devel/gnu/src/gcc-mingw-w64/gcc-6.0.0/gcc/.
-I../../../../../../../opt/devel/gnu/src/gcc-mingw-w64/gcc-6.0.0/gcc/../include
-I./../intl
-I../../../../../../../opt/devel/gnu/src/gcc-mingw-w64/gcc-6.0.0/gcc/../libcpp/include
-I/opt/devel/SCRATCH/tmp.xPutziWahX/install/include
-I/opt/devel/SCRATCH/tmp.xPutziWahX/install/include
-I/opt/devel/SCRATCH/tmp.xPutziWahX/install/include 
-I../../../../../../../opt/devel/gnu/src/gcc-mingw-w64/gcc-6.0.0/gcc/../libdecnumber
-I../../../../../../../opt/devel/gnu/src/gcc-mingw-w64/gcc-6.0.0/gcc/../libdecnumber/bid
-I../libdecnumber
-I../../../../../../../opt/devel/gnu/src/gcc-mingw-w64/gcc-6.0.0/gcc/../libbacktrace
-I/opt/devel/SCRATCH/tmp.xPutziWahX/install/include  -o gcc.o -MT gcc.o -MMD
-MP -MF ./.deps/gcc.TPo
../../../../../../../opt/devel/gnu/src/gcc-mingw-w64/gcc-6.0.0/gcc/gcc.c
../../../../../../../opt/devel/gnu/src/gcc-mingw-w64/gcc-6.0.0/gcc/gcc.c: In
member function 'void env_manager::restore()':
../../../../../../../opt/devel/gnu/src/gcc-mingw-w64/gcc-6.0.0/gcc/gcc.c:154:2:
error: '::setenv' has not been declared
  ::setenv (item->m_key, item->m_value, 1);
  ^
../../../../../../../opt/devel/gnu/src/gcc-mingw-w64/gcc-6.0.0/gcc/gcc.c:156:2:
error: '::unsetenv' has not been declared
  ::unsetenv (item->m_key);
  ^
Makefile:1077: recipe for target 'gcc.o' failed
make[3]: *** [gcc.o] Error 1
make[3]: Leaving directory
'/opt/devel/SCRATCH/tmp.xPutziWahX/gcc-6.0.0/gcc-6.0.0/gcc'
Makefile:4379: recipe for target 'all-stage1-gcc' failed


configure:

../../../../../../opt/devel/gnu/src/gcc-mingw-w64/gcc-6.0.0/configure
--prefix=/opt/devel/gnu/gcc/MINGW_NT/x86_64-w64-mingw32/mingw-w64-runtime-trunk-svn/gcc-6.0.0
--with-gnu-as
--with-as=/opt/devel/gnu/gcc/MINGW_NT/x86_64-w64-mingw32/mingw-w64-runtime-trunk-svn/gcc-6.0.0/bin/as
--with-gnu-ld
--with-ld=/opt/devel/gnu/gcc/MINGW_NT/x86_64-w64-mingw32/mingw-w64-runtime-trunk-svn/gcc-6.0.0/bin/ld
--build=x86_64-w64-mingw32 --enable-threads=posix
--enable-languages=c,ada,c++,fortran,java,lto,objc,obj-c++
--with-gmp-include=/opt/devel/SCRATCH/tmp.xPutziWahX/install/include
--with-gmp-lib=/opt/devel/SCRATCH/tmp.xPutziWahX/install/lib64
--with-mpfr-include=/opt/devel/SCRATCH/tmp.xPutziWahX/install/include
--with-mpfr-lib=/opt/devel/SCRATCH/tmp.xPutziWahX/install/lib64
--with-mpc-include=/opt/devel/SCRATCH/tmp.xPutziWahX/install/include
--with-mpc-lib=/opt/devel/SCRATCH/tmp.xPutziWahX/install/lib64
--with-isl-include=/opt/devel/SCRATCH/tmp.xPutziWahX/install/include
--with-isl-lib=/opt/devel/SCRATCH/tmp.xPutziWahX/install/lib64
--with-local-prefix=/opt/devel/tec/devel/MINGW_NT/x86_64-w64-mingw32/mingw-w64-runtime-trunk-svn/gcc-6.0.0
--enable-libgomp --enable-fully-dynamic-string --disable-multilib
--enable-checking=release --disable-werror --with-sysroot=/x86_64-w64-trunk

Last known to work revision: 226966


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug bootstrap/67546] bootstrap broken on x86_64-w64-mingw32, error: '::unsetenv' has not been declared in gcc.c
  2015-09-11  6:21 [Bug bootstrap/67546] New: bootstrap broken on x86_64-w64-mingw32, error: '::unsetenv' has not been declared in gcc.c rainer@emrich-ebersheim.de
@ 2015-09-11  9:04 ` ktietz at gcc dot gnu.org
  2015-09-11 10:20 ` ktietz at gcc dot gnu.org
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: ktietz at gcc dot gnu.org @ 2015-09-11  9:04 UTC (permalink / raw)
  To: gcc-bugs

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

Kai Tietz <ktietz at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2015-09-11
                 CC|                            |ktietz at gcc dot gnu.org
     Ever confirmed|0                           |1

--- Comment #1 from Kai Tietz <ktietz at gcc dot gnu.org> ---
I added to mingw-w64's libwinpthread a work-a-round for this sloopy code in
libgomp.  Nevertheless issue should be fixed IMO in libgomp, too


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug bootstrap/67546] bootstrap broken on x86_64-w64-mingw32, error: '::unsetenv' has not been declared in gcc.c
  2015-09-11  6:21 [Bug bootstrap/67546] New: bootstrap broken on x86_64-w64-mingw32, error: '::unsetenv' has not been declared in gcc.c rainer@emrich-ebersheim.de
  2015-09-11  9:04 ` [Bug bootstrap/67546] " ktietz at gcc dot gnu.org
@ 2015-09-11 10:20 ` ktietz at gcc dot gnu.org
  2015-09-11 10:29 ` ktietz at gcc dot gnu.org
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: ktietz at gcc dot gnu.org @ 2015-09-11 10:20 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from Kai Tietz <ktietz at gcc dot gnu.org> ---
Thanks Rainer for pointing on this.  Yes, comment wasn't intended for this bug.
 I added comment to proper pr ...

This issue is related to the fact that msvcrt doesn't provide unsetenv (as it
doesn't provide setenv).  Instead all this functionality needs to be expressed
via getenv/putenv instead.


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug bootstrap/67546] bootstrap broken on x86_64-w64-mingw32, error: '::unsetenv' has not been declared in gcc.c
  2015-09-11  6:21 [Bug bootstrap/67546] New: bootstrap broken on x86_64-w64-mingw32, error: '::unsetenv' has not been declared in gcc.c rainer@emrich-ebersheim.de
  2015-09-11  9:04 ` [Bug bootstrap/67546] " ktietz at gcc dot gnu.org
  2015-09-11 10:20 ` ktietz at gcc dot gnu.org
@ 2015-09-11 10:29 ` ktietz at gcc dot gnu.org
  2015-09-11 13:09 ` dmalcolm at gcc dot gnu.org
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: ktietz at gcc dot gnu.org @ 2015-09-11 10:29 UTC (permalink / raw)
  To: gcc-bugs

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

Kai Tietz <ktietz at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Target|x86_64-w64-mingw32          |*-*-mingw32
           Priority|P3                          |P1
                 CC|                            |dmalcolm at gcc dot gnu.org

--- Comment #4 from Kai Tietz <ktietz at gcc dot gnu.org> ---
Hi David,

this issue was introduced by your commit done at 2015-08-25


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug bootstrap/67546] bootstrap broken on x86_64-w64-mingw32, error: '::unsetenv' has not been declared in gcc.c
  2015-09-11  6:21 [Bug bootstrap/67546] New: bootstrap broken on x86_64-w64-mingw32, error: '::unsetenv' has not been declared in gcc.c rainer@emrich-ebersheim.de
                   ` (2 preceding siblings ...)
  2015-09-11 10:29 ` ktietz at gcc dot gnu.org
@ 2015-09-11 13:09 ` dmalcolm at gcc dot gnu.org
  2015-09-11 13:17 ` ktietz at gcc dot gnu.org
  2015-09-11 22:49 ` rainer@emrich-ebersheim.de
  5 siblings, 0 replies; 7+ messages in thread
From: dmalcolm at gcc dot gnu.org @ 2015-09-11 13:09 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #5 from David Malcolm <dmalcolm at gcc dot gnu.org> ---
Is this a duplicate of PR 67363?


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug bootstrap/67546] bootstrap broken on x86_64-w64-mingw32, error: '::unsetenv' has not been declared in gcc.c
  2015-09-11  6:21 [Bug bootstrap/67546] New: bootstrap broken on x86_64-w64-mingw32, error: '::unsetenv' has not been declared in gcc.c rainer@emrich-ebersheim.de
                   ` (3 preceding siblings ...)
  2015-09-11 13:09 ` dmalcolm at gcc dot gnu.org
@ 2015-09-11 13:17 ` ktietz at gcc dot gnu.org
  2015-09-11 22:49 ` rainer@emrich-ebersheim.de
  5 siblings, 0 replies; 7+ messages in thread
From: ktietz at gcc dot gnu.org @ 2015-09-11 13:17 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #6 from Kai Tietz <ktietz at gcc dot gnu.org> ---
Initially in PR/67363 just the missing strndup due failed libiberty-linking was
noticed.  Later comments are duplicate of this.
So feel free to mark one of these bugs as duplicate, if you prefer.


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug bootstrap/67546] bootstrap broken on x86_64-w64-mingw32, error: '::unsetenv' has not been declared in gcc.c
  2015-09-11  6:21 [Bug bootstrap/67546] New: bootstrap broken on x86_64-w64-mingw32, error: '::unsetenv' has not been declared in gcc.c rainer@emrich-ebersheim.de
                   ` (4 preceding siblings ...)
  2015-09-11 13:17 ` ktietz at gcc dot gnu.org
@ 2015-09-11 22:49 ` rainer@emrich-ebersheim.de
  5 siblings, 0 replies; 7+ messages in thread
From: rainer@emrich-ebersheim.de @ 2015-09-11 22:49 UTC (permalink / raw)
  To: gcc-bugs

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

Rainer Emrich <rainer@emrich-ebersheim.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |DUPLICATE

--- Comment #7 from Rainer Emrich <rainer@emrich-ebersheim.de> ---
I think it's really a duplicate of 67363.

*** This bug has been marked as a duplicate of bug 67363 ***


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2015-09-11 22:49 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-09-11  6:21 [Bug bootstrap/67546] New: bootstrap broken on x86_64-w64-mingw32, error: '::unsetenv' has not been declared in gcc.c rainer@emrich-ebersheim.de
2015-09-11  9:04 ` [Bug bootstrap/67546] " ktietz at gcc dot gnu.org
2015-09-11 10:20 ` ktietz at gcc dot gnu.org
2015-09-11 10:29 ` ktietz at gcc dot gnu.org
2015-09-11 13:09 ` dmalcolm at gcc dot gnu.org
2015-09-11 13:17 ` ktietz at gcc dot gnu.org
2015-09-11 22:49 ` rainer@emrich-ebersheim.de

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).