From owner-freebsd-stable@FreeBSD.ORG Tue Oct 2 07:53:50 2012 Return-Path: Delivered-To: stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 174C2106566C for ; Tue, 2 Oct 2012 07:53:50 +0000 (UTC) (envelope-from c.kworr@gmail.com) Received: from mail-pa0-f54.google.com (mail-pa0-f54.google.com [209.85.220.54]) by mx1.freebsd.org (Postfix) with ESMTP id DEE628FC0C for ; Tue, 2 Oct 2012 07:53:49 +0000 (UTC) Received: by padbi1 with SMTP id bi1so5679086pad.13 for ; Tue, 02 Oct 2012 00:53:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; bh=Qxiw6JC0sAaXBoLVZ4EM1fhmkQfy9+rpv6AKnP2Z2U0=; b=RmbkZq7WFhOJ/VaTi8hitL9JbhsUI7iU8249kn8MeSo8vVhnY+3U74UQGjBVuWMckZ MyRMoylJ7C0cfbmGrVu4zyZt9iDA8BEtx8Sl7uz5PfN6h8ndLpQajVmh13Dp0zAiIdgz BvBMBi31uG0WeZ9/4rgIIXBofBssYD1fQBKi5Pepx/+QSQsHiFtjPyBx0MsIVWZRw5yR TIAhgSZLQA2dKw4ifPj2NCohHV8ohPLiBn/4oQNM51csThwQkL17IKi3Vwdci2wGWI1u DINVAlAT6jW121GWuCE688qxXbqAufN8icPZzATUTIGNtQjzo+BfVz8vnoFPGMYOuDPP CxhQ== Received: by 10.68.191.101 with SMTP id gx5mr2410912pbc.0.1349164429380; Tue, 02 Oct 2012 00:53:49 -0700 (PDT) Received: from [192.168.1.132] (mau.donbass.com. [92.242.127.250]) by mx.google.com with ESMTPS id st6sm531232pbc.58.2012.10.02.00.53.47 (version=SSLv3 cipher=OTHER); Tue, 02 Oct 2012 00:53:48 -0700 (PDT) Message-ID: <506A9D89.80303@gmail.com> Date: Tue, 02 Oct 2012 10:53:45 +0300 From: Volodymyr Kostyrko User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:15.0) Gecko/20120924 Thunderbird/15.0.1 MIME-Version: 1.0 To: stable@freebsd.org Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: Missing lib on linking libc WITH_LIBCPLUSPLUS X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Oct 2012 07:53:50 -0000 Hi all. When enabling WITH_LIBCPLUSPLUS libc build fails with: /usr/local/libexec/ccache/clang++ -O2 -pipe -march=native -I/usr/src/lib/libc++/../../contrib/libc++/include -I/usr/src/lib/libc++/../../contrib/libcxxrt -nostdlib -DLIBCXXRT -Qunused-arguments -fstack-protector -Wno-empty-body -Wno-string-plus-int -Wno-tautological-compare -Wno-unused-value -Wno-parentheses-equality -Wno-unused-function -Wno-conversion -Wno-switch -Wno-switch-enum -Wno-parentheses -std=c++0x -c cxxrt_guard.cc -o cxxrt_guard.o building shared library libc++.so.1 FreeBSD clang version 3.1 (branches/release_31 156863) 20120523 Target: x86_64-unknown-freebsd9.0 Thread model: posix "/usr/bin/ld" --eh-frame-hdr -Bshareable -o libc++.so.1 /usr/lib/crti.o /usr/lib/crtbeginS.o -L/usr/lib -x --fatal-warnings --warn-shared-textrel -soname libc++.so.1 valarray.So utility.So typeinfo.So strstream.So regex.So random.So iostream.So debug.So chrono.So bind.So algorithm.So hash.So thread.So future.So exception.So locale.So mutex.So memory.So ios.So condition_variable.So system_error.So string.So stdexcept.So new.So -lcxxrt -lgcc --as-needed -lgcc_s --no-as-needed -lc -lgcc --as-needed -lgcc_s --no-as-needed /usr/lib/crtendS.o /usr/lib/crtn.o /usr/bin/ld: cannot find -lcxxrt clang: error: linker command failed with exit code 1 (use -v to see invocation) This lib was already built: # find /usr/obj -name libcxxrt.so /usr/obj/usr/src/tmp/usr/lib/libcxxrt.so /usr/obj/usr/src/lib/libcxxrt/libcxxrt.so But this error is only fixed after: # cd /usr/src/lib/libcxxrt ; make install Other irrelevant data: # uname -a FreeBSD ar1l0u 9.1-PRERELEASE FreeBSD 9.1-PRERELEASE #0 r241089M: Mon Oct 1 12:48:30 EEST 2012 arcade@ar1l0u:/usr/obj/usr/src/sys/MINIMAL amd64 World is built WITH_CLANG_IS_CC and with ccache. Modifications are tmpfs directory patch. -- Sphinx of black quartz judge my vow.