From owner-freebsd-stable@FreeBSD.ORG Tue Oct 2 17:28:30 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 1E160106564A for ; Tue, 2 Oct 2012 17:28:30 +0000 (UTC) (envelope-from lists@eitanadler.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 DE7EF8FC08 for ; Tue, 2 Oct 2012 17:28:29 +0000 (UTC) Received: by padbi1 with SMTP id bi1so6197218pad.13 for ; Tue, 02 Oct 2012 10:28:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=eitanadler.com; s=0xdeadbeef; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=4TrR5ujpTSEIijYH7ilnXp0By7OjOvJ2hw+2r4Dw1x8=; b=YvXjBJcfJ+Nmr+CfKY53MN5MArbCjdPmQ3TRaJjBENws0brq+QCjvp61D45VaqL0R5 awIU8NgKbjr1QpIFlchU2xQg/OWydNv8FCir1lKJ7Ek7wHaskLkHuvogpYVKUJvRsuHi qX4I3/o9v9PYwVhTH5Ebt+yOLqF9qjHpahkPg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:x-gm-message-state; bh=4TrR5ujpTSEIijYH7ilnXp0By7OjOvJ2hw+2r4Dw1x8=; b=ML/CQ3MAlaOZfYsiXSbVlGbGgM8Gxb4fhUmJUXkDfiriZL5qCbBCyMnQ+RpTCQg8A9 r7ftpt7NE6aDOH6d1O2x0mQJ9ABf4AFQ2BB/2guVHeV/8e2CE40pYW01T/l2AFGY769Y bvqPBRWVTec76jLW+kQbTAaQqpSv8XSD464lkEZ7VscbDGe4IKQXv5GmwqC3tyLOuWt8 dn3xTl+gXlDrd3qfHZ40ZoSzwGzAZgul7NSx9cOdIfYodSR0YkiR8EE7Y28jkjqShARw zIIVaFXOM3r6Nsc1mKFRyhJr8T+qd7OsAJ8CQ+GjknrezxHIvwZa9pEZhs2a8U26Xlv9 mH3A== Received: by 10.66.87.66 with SMTP id v2mr45608149paz.71.1349198909485; Tue, 02 Oct 2012 10:28:29 -0700 (PDT) MIME-Version: 1.0 Received: by 10.66.190.164 with HTTP; Tue, 2 Oct 2012 10:27:59 -0700 (PDT) In-Reply-To: <506B0FF5.5050505@gmail.com> References: <506A9D89.80303@gmail.com> <506AB019.70501@andric.com> <506B0FF5.5050505@gmail.com> From: Eitan Adler Date: Tue, 2 Oct 2012 13:27:59 -0400 Message-ID: To: Volodymyr Kostyrko Content-Type: text/plain; charset=UTF-8 X-Gm-Message-State: ALoCoQnTRVOZ6ZvSUk34jUCGyqF//tckNrYJHu3/O8g/fdexwdLIHHtYaCUwEX5J97flh1IDj4gR Cc: Dimitry Andric , stable@freebsd.org Subject: Re: 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 17:28:30 -0000 On 2 October 2012 12:01, Volodymyr Kostyrko wrote: > 02.10.2012 12:12, Dimitry Andric wrote: >> >> On 2012-10-02 09:53, Volodymyr Kostyrko wrote: >>> >>> 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 >> >> >> Are you getting this error as part of buildworld, or when you build >> libc++ by hand? > > > As part of the buildworld. I feel that it looks for the lib in the system > skipping /usr/obj. > > >> Also, an obvious question is: does it work when you disable ccache? > > > Bingo. Yes, disabling ccache makes everything work. please ping the ccache folk about this. It *shouldn't* matter. :) -- Eitan Adler