From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id A68F8386EC33; Tue, 15 Dec 2020 19:31:29 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A68F8386EC33 From: "euloanty at live dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug bootstrap/98300] New: GCC 11 failed to build on Windows 10. I guess the new module completely breaks this. Date: Tue, 15 Dec 2020 19:31:29 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: bootstrap X-Bugzilla-Version: 11.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: euloanty at live dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Dec 2020 19:31:29 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D98300 Bug ID: 98300 Summary: GCC 11 failed to build on Windows 10. I guess the new module completely breaks this. Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: bootstrap Assignee: unassigned at gcc dot gnu.org Reporter: euloanty at live dot com Target Milestone: --- x86_64-w64-mingw32-g++ -fno-PIE -c -DIN_GCC_FRONTEND -march=3Dx86-64 -mtune=3Dgeneric -O2 -pipe -DIN_GCC -fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wno-error=3Dformat-diag -Wmissing-format-attribute -Woverloaded-virtual -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -DHAVE_CONFIG_H -I. -Icp -I../../gcc-git/gcc -I../../gcc-git/gcc/cp -I../../gcc-git/gcc/../include -I../../gcc-git/gcc/../libcpp/include -I../../gcc-git/gcc/../libcody -I/mingw64/include -I/mingw64/include -I/mingw64/include=20 -I../../gcc-git/gcc/../libdecnumber -I../../gcc-git/gcc/../libdecnumber/bid -I../libdecnumber -I../../gcc-git/gcc/../libbacktrace -I/mingw64/include -D__USE_MINGW_ANSI_STDIO=3D1 -I/mingw64/include -o cp/name-lookup.o -MT cp/name-lookup.o -MMD -MP -MF cp/.deps/name-lookup.TPo ../../gcc-git/gcc/cp/name-lookup.c In file included from ../../gcc-git/gcc/cp/mapper-resolver.cc:27: ../../gcc-git/gcc/cp/../../c++tools/resolver.cc:31:10: fatal error: sys/mma= n.h: No such file or directory 31 | #include | ^~~~~~~~~~~~ compilation terminated. make[2]: *** [Makefile:1127: cp/mapper-resolver.o] Error 1 make[2]: *** Waiting for unfinished jobs.... ../../gcc-git/gcc/cp/mapper-client.cc: In static member function 'static module_client* module_client::open_module_client(location_t, const char*, v= oid (*)(const char*), const char*)': ../../gcc-git/gcc/cp/mapper-client.cc:171:42: error: 'O_CLOEXEC' was not declared in this scope 171 | ? O_RDWR | O_CLOEXEC : O_RDONLY | O_CLOEXEC; | ^~~~~~~~~ ../../gcc-git/gcc/cp/mapper-client.cc:188:42: error: 'O_CLOEXEC' was not declared in this scope 188 | ? O_RDWR | O_CLOEXEC : O_WRONLY | O_CLOEXEC; | ^~~~~~~~~ ../../gcc-git/gcc/cp/mapper-client.cc:260:50: error: 'O_CLOEXEC' was not declared in this scope 260 | int fd =3D open (name.c_str (), O_RDONLY | O_CLOEXEC); | ^~~~~~~~~ make[2]: *** [Makefile:1127: cp/mapper-client.o] Error 1 ../../gcc-git/gcc/cp/module.cc: In member function 'void bytes_out::printf(const char*, ...)': ../../gcc-git/gcc/cp/module.cc:1088:56: warning: function 'void bytes_out::printf(const char*, ...)' might be a candidate for 'gnu_printf' format attribute [-Wsuggest-attribute=3Dformat] 1088 | size_t actual =3D vsnprintf (ptr, len, format, args) + 1; | ^ ../../gcc-git/gcc/cp/module.cc: In member function 'const char* elf_in::read(data*, unsigned int, unsigned int)': ../../gcc-git/gcc/cp/module.cc:1659:45: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compa= re] 1659 | if (::read (fd, data->buffer, data->size) !=3D length) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~ ../../gcc-git/gcc/cp/module.cc: In member function 'unsigned int elf_out::write(const data&)': ../../gcc-git/gcc/cp/module.cc:2051:47: warning: comparison of integer expressions of different signedness: 'int' and 'const unsigned int' [-Wsign-compare] 2051 | if (::write (fd, buffer.buffer, buffer.pos) !=3D buffer.pos) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~ ../../gcc-git/gcc/cp/module.cc:2066:40: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compa= re] 2066 | if (::write (fd, &zero, padding) !=3D padding) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ rm gfdl.pod gcc.pod gcov-dump.pod gcov-tool.pod fsf-funding.pod gpl.pod cpp= .pod gcov.pod lto-dump.pod make[2]: Leaving directory '/home/unlvs/mingw-gcc-mcf-gthread/src/build-x86_64-w64-mingw32/gcc' make[1]: *** [Makefile:4446: all-gcc] Error 2 make[1]: Leaving directory '/home/unlvs/mingw-gcc-mcf-gthread/src/build-x86_64-w64-mingw32' make: *** [Makefile:973: all] Error 2 =3D=3D> ERROR: A failure occurred in build(). Aborting...=