From owner-freebsd-toolchain@freebsd.org Fri Feb 22 21:25:32 2019 Return-Path: Delivered-To: freebsd-toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 600F714FB585 for ; Fri, 22 Feb 2019 21:25:32 +0000 (UTC) (envelope-from wjw@digiware.nl) Received: from smtp.digiware.nl (smtp.digiware.nl [IPv6:2001:4cb8:90:ffff::3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 98A3F89052; Fri, 22 Feb 2019 21:25:31 +0000 (UTC) (envelope-from wjw@digiware.nl) Received: from router.digiware.nl (localhost.digiware.nl [127.0.0.1]) by smtp.digiware.nl (Postfix) with ESMTP id E0338B7567; Fri, 22 Feb 2019 22:25:28 +0100 (CET) X-Virus-Scanned: amavisd-new at digiware.com Received: from smtp.digiware.nl ([127.0.0.1]) by router.digiware.nl (router.digiware.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id P1MCy564GuzP; Fri, 22 Feb 2019 22:25:27 +0100 (CET) Received: from [192.168.10.9] (vaio [192.168.10.9]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.digiware.nl (Postfix) with ESMTPSA id 46A42B7554; Fri, 22 Feb 2019 22:25:27 +0100 (CET) Subject: Re: Linking problem with lld To: Ed Maste Cc: FreeBSD Toolchain References: <71079fbc-c3c0-9b93-0ae4-8ceda5d1f751@digiware.nl> From: Willem Jan Withagen Message-ID: <65b98b4e-9239-2449-b39c-b0720ad4a0f2@digiware.nl> Date: Fri, 22 Feb 2019 22:25:27 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.5.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: nl X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Feb 2019 21:25:32 -0000 On 22-2-2019 21:09, Ed Maste wrote: > On Fri, 22 Feb 2019 at 10:09, Willem Jan Withagen wrote: >> My guess is that your linker doesn't support the new symbol versioning >> exports and since the symbols are hidden by default they aren't visible >> in the shared library. Previously there was a bug (since Luminous and >> the switch the cmake) where every public and private symbol was exported >> by librados. > lld is largely compatible with GNU ld / gold on the command-line and > in linker scripts and version scripts. Can you provide the error you > see or an example of one of the symbols with incorrect visibility? It could very be that the way versioning is introduced in the project is not compatible with Clang, since the general compiler used is GCC. I was afraid that that was going to be the counter question?? 8-( This occurs while building Ceph, which is a "rather" large package with a lot of include subpackages... and some local patches for things that have not been send upstream. But lets start with the error reported: ld.lld: error: undefined symbol: rados_aio_get_return_value referenced by cls_journal_client.cc:29 (/home/jenkins/workspace/ceph-master/src/cls/journal/cls_journal_client.cc:29) cls_journal_client.cc.o:(cls::journal::client::(anonymous namespace)::C_AioExec::rados_callback(void*, void*)) in archive ../../../lib/libcls_journal_client.a c++: error: linker command failed with exit code 1 (use -v to see invocation) gmake[2]: *** [src/test/cls_journal/CMakeFiles/ceph_test_cls_journal.dir/build.make:129: bin/ceph_test_cls_journal] Error 1 gmake[2]: Leaving directory '/home/jenkins/workspace/ceph-master/build' gmake[1]: *** [CMakeFiles/Makefile2:11020: src/test/cls_journal/CMakeFiles/ceph_test_cls_journal.dir/all] Error 2 =========== Not sure what you can make of this. --WjW