Date: Sun, 18 Dec 2011 17:40:36 +0900 From: Jan Beich <jbeich@tormail.net> To: David Chisnall <theraven@FreeBSD.org> Cc: freebsd-current@FreeBSD.org Subject: Re: Heads up: New C++ stack Message-ID: <1RcCLJ-000MeI-MC@internal.tormail.net> References: <55EF58C0-0E9A-4701-B309-95317913A384@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
David Chisnall <theraven@FreeBSD.org> writes: [...] > libcxxrt and libc++ are now in contrib and building with the base > system, but are not used by anything (and are only built if you set > WITH_LIBCPLUSPLUS=yes when building world, not by default). If you > want to test some code with the new stack, you need to build it and > then specify -stdlib=libc++ to clang++ (both when compiling and > linking). Does the option work when building world with -jX ? $ make -sj2 buildworld [...] ===> lib/libcompiler_rt (obj,depend,all,install) ===> lib/libc (obj,depend,all,install) ===> lib/libcxxrt (obj,depend,all,install) /usr/obj/usr/src/tmp/usr/bin/ld: cannot find -lgcc_s clang: error: linker command failed with exit code 1 (use -v to see invocation) *** [libcxxrt.so.1] Error code 1 And later in silent build --verbose in LDFLAGS for libc++ produces noise that's neither a warning nor a build directory. ===> lib/libcxxrt (all) ===> lib/libc++ (all) FreeBSD clang version 3.0 (tags/RELEASE_30/final 145349) 20111210 Target: x86_64-unknown-freebsd10.0 Thread model: posix "/usr/obj/usr/src/tmp/usr/bin/ld" --eh-frame-hdr -Bshareable -o libc++.so.1 /usr/obj/usr/src/tmp/usr/lib/crti.o /usr/obj/usr/src/tmp/usr/lib/crtbeginS.o -L/usr/obj/usr/src/lib/libc++/../libcxxrt/ -L/usr/obj/usr/src/tmp/usr/lib -x --fatal-warnings --warn-shared-textrel -soname libc++.so.1 valarray.So utility.So strstream.So regex.So random.So iostream.So debug.So chrono.So bind.So algorithm.So hash.So thread.So future.So new.So locale.So typeinfo.So mutex.So memory.So ios.So condition_variable.So system_error.So string.So stdexcept.So exception.So -lcxxrt -lgcc --as-needed -lgcc_s --no-as-needed -lc -lgcc --as-needed -lgcc_s --no-as-needed /usr/obj/usr/src/tmp/usr/lib/crtendS.o /usr/obj/usr/src/tmp/usr/lib/crtn.o
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1RcCLJ-000MeI-MC>