From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 923413858D35; Mon, 6 Jul 2020 16:43:37 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 923413858D35 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1594053817; bh=rKZQoltZkztL83Tyv9r6LjfgtbAAifX5pOnjUdeqCoM=; h=From:To:Subject:Date:From; b=MTRUp4IK0+VFPmqNx23Wa33XhpyRe3YohaOrwAoGwKCxhEHSPITMOuHqFgIfnbLEs ITX+PgPnMkpE+Mb51kXrG4WeJsUTkvCUefqUeBPSW/OOAAp4Mbwoid0C0NiW1EDGPr daEakTwNoHvLIMe7z0SR5LaqLP+rq3QHiYFUuJu0= From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/96083] New: Clang can't compile : error: use of undeclared identifier '__builtin_sprintf' Date: Mon, 06 Jul 2020 16:43:37 +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: 10.1.1 X-Bugzilla-Keywords: rejects-valid X-Bugzilla-Severity: normal X-Bugzilla-Who: redi 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 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: Mon, 06 Jul 2020 16:43:37 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D96083 Bug ID: 96083 Summary: Clang can't compile : error: use of undeclared identifier '__builtin_sprintf' Product: gcc Version: 10.1.1 Status: UNCONFIRMED Keywords: rejects-valid Severity: normal Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: redi at gcc dot gnu.org Target Milestone: --- $ clang++ -include bits/extc++.h -x c++ - :1: In file included from /usr/bin/../lib/gcc/x86_64-redhat-linux/9/../../../../include/c++/9/x86_64-= redhat-linux/bits/extc++.h:69: /usr/bin/../lib/gcc/x86_64-redhat-linux/9/../../../../include/c++/9/ext/thr= ow_allocator.h:316:7: error: use of undeclared identifier '__builtin_sprintf' __builtin_sprintf(buf, "%lu", l); ^ /usr/bin/../lib/gcc/x86_64-redhat-linux/9/../../../../include/c++/9/ext/thr= ow_allocator.h:321:7: error: use of undeclared identifier '__builtin_sprintf' __builtin_sprintf(buf, "%lu", l); ^ /usr/bin/../lib/gcc/x86_64-redhat-linux/9/../../../../include/c++/9/ext/thr= ow_allocator.h:325:7: error: use of undeclared identifier '__builtin_sprintf' __builtin_sprintf(buf, "%p", ref.first); ^ /usr/bin/../lib/gcc/x86_64-redhat-linux/9/../../../../include/c++/9/ext/thr= ow_allocator.h:338:7: error: use of undeclared identifier '__builtin_sprintf' __builtin_sprintf(buf, "%lu", l); ^ /usr/bin/../lib/gcc/x86_64-redhat-linux/9/../../../../include/c++/9/ext/thr= ow_allocator.h:342:7: error: use of undeclared identifier '__builtin_sprintf' __builtin_sprintf(buf, "%p", ref.first); ^ /usr/bin/../lib/gcc/x86_64-redhat-linux/9/../../../../include/c++/9/ext/thr= ow_allocator.h:575:4: error: use of undeclared identifier '__builtin_sprintf' __builtin_sprintf(buf, "%f", random); ^ 6 errors generated.=