From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 4DAC23858406; Tue, 18 Jan 2022 02:10:16 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4DAC23858406 From: "hp at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/104080] New: [12 Regression] newlib doesn't have endian.h causing build failure with 2800bc08e4ab r12-6646 Date: Tue, 18 Jan 2022 02:10:16 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 12.0 X-Bugzilla-Keywords: build X-Bugzilla-Severity: normal X-Bugzilla-Who: hp at gcc dot gnu.org 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 keywords bug_severity priority component assigned_to reporter cc target_milestone cf_gcctarget 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, 18 Jan 2022 02:10:16 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D104080 Bug ID: 104080 Summary: [12 Regression] newlib doesn't have endian.h causing build failure with 2800bc08e4ab r12-6646 Product: gcc Version: 12.0 Status: UNCONFIRMED Keywords: build Severity: normal Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: hp at gcc dot gnu.org CC: ppalka at gcc dot gnu.org Target Milestone: --- Target: cris-elf With a commit in the range a81f6092350c..490e23032baa, most likely 2800bc08= e4ab a.k.a. r12-6646, newlib targets such as cris-elf has started failing at bui= ld time of libstdc++ thus: make[5]: Entering directory '/X-obj/cris-elf/libstdc++-v3/src/c++17' /bin/sh ../../libtool --tag CXX --tag disable-shared --mode=3Dcompile /X-obj/./gcc/xgcc -shared-libgcc -B/X-obj/./gcc -nostdinc++ -L/X-obj/cris-elf/libstdc++-v3/src -L/X-obj/cris-elf/libstdc++-v3/src/.libs -L/X-obj/cris-elf/libstdc++-v3/libsupc++/.libs -nostdinc -B/X-obj/cris-elf/newlib/ -isystem /X-obj/cris-elf/newlib/targ-include -isy= stem /X-gccsrc/newlib/libc/include -B/X-obj/cris-elf/libgloss/cris -L/X-obj/cris-elf/libgloss/libnosys -L/X-gccsrc/libgloss/cris -B/X/pre/cris-elf/bin/ -B/X/pre/cris-elf/lib/ -isystem /X/pre/cris-elf/incl= ude -isystem /X/pre/cris-elf/sys-include -I/X-gccsrc/libstdc++-v3/../libgcc -I/X-obj/cris-elf/libstdc++-v3/include/cris-elf -I/X-obj/cris-elf/libstdc++-v3/include -I/X-gccsrc/libstdc++-v3/libsupc++= =20=20 -std=3Dgnu++17 -nostdinc++ -fno-implicit-templates -Wall -Wextra -Wwrite-strings -Wcast-qual -Wabi=3D2 -fdiagnostics-show-location=3Donce= =20=20 -ffunction-sections -fdata-sections -frandom-seed=3Dfloating_from_chars.lo= =20 -fimplicit-templates -g -O2 -c -o floating_from_chars.lo /X-gccsrc/libstdc++-v3/src/c++17/floating_from_chars.cc libtool: compile: /X-obj/./gcc/xgcc -shared-libgcc -B/X-obj/./gcc -nostdin= c++ -L/X-obj/cris-elf/libstdc++-v3/src -L/X-obj/cris-elf/libstdc++-v3/src/.libs -L/X-obj/cris-elf/libstdc++-v3/libsupc++/.libs -nostdinc -B/X-obj/cris-elf/newlib/ -isystem /X-obj/cris-elf/newlib/targ-include -isy= stem /X-gccsrc/newlib/libc/include -B/X-obj/cris-elf/libgloss/cris -L/X-obj/cris-elf/libgloss/libnosys -L/X-gccsrc/libgloss/cris -B/X/pre/cris-elf/bin/ -B/X/pre/cris-elf/lib/ -isystem /X/pre/cris-elf/incl= ude -isystem /X/pre/cris-elf/sys-include -I/X-gccsrc/libstdc++-v3/../libgcc -I/X-obj/cris-elf/libstdc++-v3/include/cris-elf -I/X-obj/cris-elf/libstdc++-v3/include -I/X-gccsrc/libstdc++-v3/libsupc++ -std=3Dgnu++17 -nostdinc++ -fno-implicit-templates -Wall -Wextra -Wwrite-st= rings -Wcast-qual -Wabi=3D2 -fdiagnostics-show-location=3Donce -ffunction-sections -fdata-sections -frandom-seed=3Dfloating_from_chars.lo -fimplicit-templates= -g -O2 -c /X-gccsrc/libstdc++-v3/src/c++17/floating_from_chars.cc -o floating_from_chars.o In file included from /X-gccsrc/libstdc++-v3/src/c++17/floating_from_chars.cc:65: /X-gccsrc/libstdc++-v3/src/c++17/fast_float/fast_float.h:139:10: fatal erro= r: endian.h: No such file or directory 139 | #include | ^~~~~~~~~~ compilation terminated. make[5]: *** [Makefile:585: floating_from_chars.lo] Error 1 make[5]: Leaving directory '/X-obj/cris-elf/libstdc++-v3/src/c++17' Newlib doesn't have endian.h, but it does have machine/endian.h. An obvious patch is being tested.=