From owner-freebsd-questions@FreeBSD.ORG Thu Aug 9 22:21:30 2012 Return-Path: Delivered-To: freebsd-questions@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 855A81065675 for ; Thu, 9 Aug 2012 22:21:30 +0000 (UTC) (envelope-from chertus@gmail.com) Received: from mail-we0-f182.google.com (mail-we0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id 14B178FC0C for ; Thu, 9 Aug 2012 22:21:29 +0000 (UTC) Received: by weyx56 with SMTP id x56so748104wey.13 for ; Thu, 09 Aug 2012 15:21:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=xXvkXtOoLt06GaDwscBULi90tLr7mG0ZVniI3BqftU0=; b=rb+8NiGz4un6aW73qxb4ZwZzcuYhxEYwyakd+XodiXLuDM5HkEHz9MTvy5wI1dbhbA 3gv9rud9Xg+vkgFWgvepZcoTFpm5sP33sZq6FdPlWgu5su1v1qh7S8LkUmv0/s7w/eft 8+fT4za/7keTIQUYY8OGoXIGky8/CfK3FXcPUB2d/kFaYhlBBePUirnLPOLsJsJpuCxJ BKiZ3d2fCkmax1UEnSI/HcAcYwu5IGdE/bmeyzu3Z3IDrOMUP17F0N+Ok1+grZR3/VyE SrE7DEQUYqE9bet0vBHOMiUNTg7hbuevXtyryjEtyn6NceuMm5+wwpnageGFFSmegjwV b3TQ== MIME-Version: 1.0 Received: by 10.180.104.197 with SMTP id gg5mr261514wib.9.1344550888731; Thu, 09 Aug 2012 15:21:28 -0700 (PDT) Received: by 10.223.198.130 with HTTP; Thu, 9 Aug 2012 15:21:28 -0700 (PDT) Date: Fri, 10 Aug 2012 02:21:28 +0400 Message-ID: From: =?KOI8-R?B?4dLUxc0g+tXKy8/X?= To: freebsd-questions@FreeBSD.org Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: Clang with libc++ doesn't find quuick_exit() X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Aug 2012 22:21:30 -0000 Hi, I can't build anything with clang & libc++ What am I doing wrong? > clang++ -stdlib=libc++ test1.cpp -o x In file included from test1.cpp:1: /usr/include/c++/v1/cstdlib:134:9: error: no member named 'at_quick_exit' in the global namespace using ::at_quick_exit; ~~^ /usr/include/c++/v1/cstdlib:135:9: error: no member named 'quick_exit' in the global namespace using ::quick_exit; ~~^ 2 errors generated. A part of /usr/include/stdlib.h #if __ISO_C_VISIBLE >= 2011 || __cplusplus >= 201103L _Noreturn void quick_exit(int); int at_quick_exit(void (*)(void)); #endif /* __ISO_C_VISIBLE >= 2011 */ > clang++ -v -stdlib=libc++ -D__ISO_C_VISIBLE=2011 test1.cpp -o x FreeBSD clang version 3.1 (branches/release_31 156863) 20120523 Target: x86_64-unknown-freebsd9.0 Thread model: posix "/usr/bin/clang++" -cc1 -triple x86_64-unknown-freebsd9.0 -emit-obj -mrelax-all -disable-free -main-file-name test1.cpp -mrelocation-model static -mdisable-fp-elim -masm-verbose -mconstructor-aliases -munwind-tables -target-cpu x86-64 -momit-leaf-frame-pointer -v -resource-dir /usr/bin/../lib/clang/3.1 -D __ISO_C_VISIBLE=2011 -fmodule-cache-path /var/tmp/clang-module-cache -stdlib=libc++ -fdeprecated-macro -fdebug-compilation-dir /home/42/gw/new-iface -ferror-limit 19 -fmessage-length 90 -mstackrealign -fgnu-runtime -fobjc-runtime-has-arc -fobjc-runtime-has-weak -fobjc-dispatch-method=non-legacy -fcxx-exceptions -fexceptions -fdiagnostics-show-option -fcolor-diagnostics -o /tmp/test1-jPurFk.o -x c++ test1.cpp clang -cc1 version 3.1 based upon LLVM 3.1 default target x86_64-unknown-freebsd9.0 ignoring nonexistent directory "/usr/bin/../lib/clang/3.1/include" #include "..." search starts here: #include <...> search starts here: /usr/include/c++/v1 /usr/include/clang/3.1 /usr/include End of search list. In file included from test1.cpp:1: /usr/include/c++/v1/cstdlib:134:9: error: no member named 'at_quick_exit' in the global namespace using ::at_quick_exit; ~~^ /usr/include/c++/v1/cstdlib:135:9: error: no member named 'quick_exit' in the global namespace using ::quick_exit; ~~^ 2 errors generated. Thanks!