X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0618F3857723 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1688489299; bh=AZqEnvdIGL8kmIuizDUaPEwZJ9Tg99z8hGovR5BclEE=; h=Date:Subject:To:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=byPpa4XSpCqUY5vIO4SZ3fXYAOEflFsPDz9Hro5wUcsSn62HHybzs7kJRWYr8aMDS HcP8VKrYDLtjvuJmETKBz2OKq/lB8Kfin7neK28l4czMFsyfE8TXdbvBL6rtKCBS38 r0KIKm7xARmH9L6Y9ICqMhcxKCN/6C3y3I1H49bU= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org BB3103858D35 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688489260; x=1691081260; h=content-transfer-encoding:content-language:to:subject:from :user-agent:mime-version:date:message-id:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=Nk/65PN+i4JNdirRwzFIcgHogKao2mFizojaZeeAOuc=; b=jRIOpD36+tAWmbssYr+LwbTPeaEwgKK+Life14NsUV2iYsms4j6XQqzCVy9Ix7sGX2 GwOZId8FYMObcJCd9SgjylWiTNCfAo4bftGfa2ydCURiC1B/FQ9zwjmHzwjrXIBnzG39 xoR4pEXGdqpP7RTCK/8yuZ7svbrSM5sIHSa6uMBKHuHuT2YFbVc7LHwLU34kGFbYJ6lP MsgxioiSpqiRiEAohogCXjjgqAg7SGnI9S5ilDDySY9VDua0zvUKccjyuqIiywqr0m9x 2Z8jzRhEoo3scZAGZF/R1xkVKJ6B6c31SPAyo1cVdVGNJZ7tAbYewXJ9iiBgBLLJlffY UI8g== X-Gm-Message-State: ABy/qLbsgwbP9B4I5yet2reTkFc/ZJsKgxBdVDVO7W1qM2nE0Q5CjIzS hu6ZCgJw2m57/E4vvj9iuka22ZgGOIncvg== X-Google-Smtp-Source: APBJJlHFr6IHQ1ij91bdyeFqxSRYpTFb85BDBewxiw2D1psX/tfa602dosmWLLbAL5vOy+h0MxiM1w== X-Received: by 2002:a05:6a20:7346:b0:12f:3be3:f922 with SMTP id v6-20020a056a20734600b0012f3be3f922mr2038348pzc.35.1688489260198; Tue, 04 Jul 2023 09:47:40 -0700 (PDT) Message-ID: <7e07e251-2ec6-b7a5-62da-8578eb638993@gmail.com> Date: Wed, 5 Jul 2023 01:48:08 +0900 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 Subject: iostream doesn't work (clang++) To: cygwin AT cygwin DOT com Content-Language: en-US X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.29 List-Id: General Cygwin discussions and problem reports List-Archive: List-Post: List-Help: List-Subscribe: , From: ggl329 via Cygwin Reply-To: ggl329 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Sender: "Cygwin" Hi, clang++ fails with iostream. Does it go well in your environment? # I noticed that clang is orphaned. clang requires a maintainer? $ cat sample.cc #include int main() { std::cout << "Hello World.\n"; return 0; } $ g++ sample.cc $ ./a Hello World. $ clang++ sample.cc In file included from sample.cc:1: In file included from /usr/lib/gcc/x86_64-pc-cygwin/11/include/c++/iostream:39: In file included from /usr/lib/gcc/x86_64-pc-cygwin/11/include/c++/ostream:38: In file included from /usr/lib/gcc/x86_64-pc-cygwin/11/include/c++/ios:42: In file included from /usr/lib/gcc/x86_64-pc-cygwin/11/include/c++/bits/ios_base.h:39: In file included from /usr/lib/gcc/x86_64-pc-cygwin/11/include/c++/ext/atomicity.h:35: In file included from /usr/lib/gcc/x86_64-pc-cygwin/11/include/c++/x86_64-pc-cygwin/bits/gthr.h:148: In file included from /usr/lib/gcc/x86_64-pc-cygwin/11/include/c++/x86_64-pc-cygwin/bits/gthr-default.h:35: In file included from /usr/include/pthread.h:11: In file included from /usr/include/sys/types.h:221: In file included from /usr/include/sys/_pthreadtypes.h:12: /usr/include/sys/cpuset.h:45:24: error: use of undeclared identifier '__builtin_malloc'; did you mean '__builtin_alloca'? return (cpu_set_t *) __builtin_malloc (CPU_ALLOC_SIZE(num)); ^ /usr/include/sys/cpuset.h:45:24: note: '__builtin_alloca' declared here /usr/include/sys/cpuset.h:52:3: error: use of undeclared identifier '__builtin_free' __builtin_free (set); ^ 2 errors generated. Package version information which may be related. Cygwin Package Information Package Version binutils 2.40-1 clang 8.0.1-1 compiler-rt 8.0.1-1 cygwin 3.4.7-1 cygwin-devel 3.4.7-1 gcc-core 11.4.0-1 gcc-g++ 11.4.0-1 libc++-devel 8.0.1-1 libc++1 8.0.1-1 libc++abi-devel 8.0.1-1 libc++abi1 8.0.1-1 libclang-devel 8.0.1-1 libclang8 8.0.1-1 libllvm-devel 8.0.1-1 libllvm8 8.0.1-1 libpolly-devel 8.0.1-1 libpolly8 8.0.1-1 libstdc++6 11.4.0-1 libunwind-devel 8.0.1-1 libunwind1 8.0.1-1 llvm 8.0.1-1 -- ggl329 -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation: https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple