From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id B180D3951C4F; Wed, 10 Mar 2021 16:20:15 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B180D3951C4F From: "unlvsur at live dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/99499] build failure for android bionic toolchains. error: '_U' was not declared in this scope Date: Wed, 10 Mar 2021 16:20:15 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 11.0 X-Bugzilla-Keywords: build X-Bugzilla-Severity: normal X-Bugzilla-Who: unlvsur 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: Message-ID: In-Reply-To: References: 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: Wed, 10 Mar 2021 16:20:15 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D99499 --- Comment #3 from cqwrteur --- (In reply to Jonathan Wakely from comment #2) > Obviously _U worked at some point when that file was added. CCing Maxim to > figure out what changed and whether we want to support the old ctype > constants as well as whatever Android defines now. I guess now Android has now shifted to LLVM and no one tested that on GCC anymore. I tweak around the value by myself and no it does not work, unfortunately. d:/msys64/x86_64-linux-android/bin/../lib/gcc/x86_64-linux-android/11.0.1/.= ./../../../x86_64-linux-android/bin/ld.exe: d:/msys64/x86_64-linux-android/bin/../lib/gcc/x86_64-linux-android/11.0.1/.= ./../../../x86_64-linux-android/lib/../lib64/libstdc++.so: undefined reference to `std::ctype::ctype(unsigned short const*, bool, unsigned long)' d:/msys64/x86_64-linux-android/bin/../lib/gcc/x86_64-linux-android/11.0.1/.= ./../../../x86_64-linux-android/bin/ld.exe: d:/msys64/x86_64-linux-android/bin/../lib/gcc/x86_64-linux-android/11.0.1/.= ./../../../x86_64-linux-android/lib/../lib64/libstdc++.so: undefined reference to `std::ctype::ctype(unsigned short const*, bool, unsigned long)' d:/msys64/x86_64-linux-android/bin/../lib/gcc/x86_64-linux-android/11.0.1/.= ./../../../x86_64-linux-android/bin/ld.exe: d:/msys64/x86_64-linux-android/bin/../lib/gcc/x86_64-linux-android/11.0.1/.= ./../../../x86_64-linux-android/lib/../lib64/libstdc++.so: undefined reference to `std::ctype::ctype(int*, unsigned short const*, bool, unsigned long)' collect2.exe: error: ld returned 1 exit status Looks like we need actual values.=