From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mark Kirkwood Subject: Re: Ceph master - build broken unless --enable-debug specified Date: Fri, 17 Apr 2015 12:34:20 +1200 Message-ID: <5530550C.7080808@catalyst.net.nz> References: <5529E9BC.2090203@catalyst.net.nz> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: Received: from bertrand.catalyst.net.nz ([202.78.240.40]:38816 "EHLO mail.catalyst.net.nz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750856AbbDQAeW (ORCPT ); Thu, 16 Apr 2015 20:34:22 -0400 In-Reply-To: Sender: ceph-devel-owner@vger.kernel.org List-ID: To: Gregory Farnum , Josh Durgin Cc: "ceph-devel@vger.kernel.org" On 17/04/15 12:27, Gregory Farnum wrote: > On Sat, Apr 11, 2015 at 8:42 PM, Mark Kirkwood > wrote: >> Hi, >> >> Building without --enable-debug produces: >> >> ceph_fuse.cc: In member function =E2=80=98virtual void* main(int, co= nst char**, >> const char**)::RemountTest::entry()=E2=80=99: >> ceph_fuse.cc:146:15: warning: ignoring return value of =E2=80=98int = system(const >> char*)=E2=80=99, declared with attribute warn_unused_result [-Wunuse= d-result] >> system(buf); >> ^ >> CXX ceph_osd.o >> CXX ceph_mds.o >> make[3]: *** No rule to make target '../src/gmock/lib/libgmock_main.= la', >> needed by 'unittest_librbd'. Stop. >> make[3]: *** Waiting for unfinished jobs.... >> CXX test/erasure-code/ceph_erasure_code_non_regression.o >> make[3]: Leaving directory '/home/markir/develop/c/ceph/src' >> Makefile:20716: recipe for target 'all-recursive' failed >> make[2]: *** [all-recursive] Error 1 >> make[2]: Leaving directory '/home/markir/develop/c/ceph/src' >> Makefile:8977: recipe for target 'all' failed >> make[1]: *** [all] Error 2 >> make[1]: Leaving directory '/home/markir/develop/c/ceph/src' >> Makefile:467: recipe for target 'all-recursive' failed >> make: *** [all-recursive] Error 1 >> >> >> Adding in --enable-debug gives a successful build. >> >> This is on Ubuntu 14.10 64 bit, and the build procedure is: >> >> $ git pull >> $ git submodule update --init >> $ ./autogen.sh >> $ ./configure --prefix=3D/usr --sysconfdir=3D/etc --localstatedir=3D= /var \ >> [--with-debug \ ] >> --with-nss \ >> --with-radosgw \ >> --with-librocksdb-static=3Dcheck \ >> >> $ make [ -j4 ] > > Yep, looks like the unittest_librbd binary is in the noinst_PROGRAMS > target (whatever that is) rather than the check_PROGRAMS target. > Changing that seems to work =E2=80=94 I pushed a branch wip-nodebug-b= uild > fixing it, but if you have your own fix a PR is welcome. If not I'll > make a PR in the next couple days. I had not looked very closely at what the exact problem was - your=20 analysis looks good to me, I'll leave you to file a PR :-) Cheers Mark -- To unsubscribe from this list: send the line "unsubscribe ceph-devel" i= n the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html