Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 10 Aug 2012 02:21:28 +0400
From:      =?KOI8-R?B?4dLUxc0g+tXKy8/X?= <chertus@gmail.com>
To:        freebsd-questions@FreeBSD.org
Subject:   Clang with libc++ doesn't find quuick_exit()
Message-ID:  <CAHCVeqNQcD-B54USZWfNyRqd_UgzO4TbuF9EeaDm4qa45BYPtg@mail.gmail.com>

Next in thread | Raw E-Mail | Index | Archive | Help
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!



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?CAHCVeqNQcD-B54USZWfNyRqd_UgzO4TbuF9EeaDm4qa45BYPtg>