From owner-freebsd-toolchain@freebsd.org Fri Feb 22 21:36:08 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 1179914FB80C for ; Fri, 22 Feb 2019 21:36:08 +0000 (UTC) (envelope-from tijl@freebsd.org) Received: from mailrelay112.isp.belgacom.be (mailrelay112.isp.belgacom.be [195.238.20.139]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "relay.skynet.be", Issuer "GlobalSign Organization Validation CA - SHA256 - G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4F5DF89480; Fri, 22 Feb 2019 21:36:07 +0000 (UTC) (envelope-from tijl@freebsd.org) X-Belgacom-Dynamic: yes X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: =?us-ascii?q?A2DPAgC2aXBc/99MQFdkHAEBAQQBAQc?= =?us-ascii?q?EAQGBVAQBAQsBAYICVmEBIBInjQCKegEBggw1AYlwj3OEeQKDfSM3Bg0BAwE?= =?us-ascii?q?BAgEBAm0oQgEQAYR3AQU6HCMQCxgJJQ8qHgYThRetBYkigQ6MX4F/g241imI?= =?us-ascii?q?CigqHEJI/CZJUJZMPnmAigVZNMAiDJ5BePgMwhSeKZAEB?= X-IPAS-Result: =?us-ascii?q?A2DPAgC2aXBc/99MQFdkHAEBAQQBAQcEAQGBVAQBAQsBA?= =?us-ascii?q?YICVmEBIBInjQCKegEBggw1AYlwj3OEeQKDfSM3Bg0BAwEBAgEBAm0oQgEQA?= =?us-ascii?q?YR3AQU6HCMQCxgJJQ8qHgYThRetBYkigQ6MX4F/g241imICigqHEJI/CZJUJ?= =?us-ascii?q?ZMPnmAigVZNMAiDJ5BePgMwhSeKZAEB?= Received: from 223.76-64-87.adsl-dyn.isp.belgacom.be (HELO kalimero.tijl.coosemans.org) ([87.64.76.223]) by relay.skynet.be with ESMTP; 22 Feb 2019 22:34:57 +0100 Received: from kalimero.tijl.coosemans.org (kalimero.tijl.coosemans.org [127.0.0.1]) by kalimero.tijl.coosemans.org (8.15.2/8.15.2) with ESMTP id x1MLYuHn005848; Fri, 22 Feb 2019 22:34:56 +0100 (CET) (envelope-from tijl@FreeBSD.org) Date: Fri, 22 Feb 2019 22:34:56 +0100 From: =?UTF-8?B?VMSzbA==?= Coosemans To: Willem Jan Withagen Cc: FreeBSD Toolchain , Ed Maste Subject: Re: Linking problem with lld Message-ID: <20190222223456.5d7840b7@kalimero.tijl.coosemans.org> In-Reply-To: <71079fbc-c3c0-9b93-0ae4-8ceda5d1f751@digiware.nl> References: <71079fbc-c3c0-9b93-0ae4-8ceda5d1f751@digiware.nl> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4F5DF89480 X-Spamd-Bar: ------ Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-6.98 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; REPLY(-4.00)[]; NEURAL_HAM_SHORT(-0.98)[-0.979,0] 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:36:08 -0000 On Fri, 22 Feb 2019 16:09:09 +0100 Willem Jan Withagen wrote: > Hi Ed ea, > > In het ceph project, they started to use library versioning, so it seems. > > But compiling/linking that now with Clang and lld I run into trouble > building the ceph-tools. > > This is what I get back of one of the Devs: > -------------- > 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. > > We just need to know the magic words to use for your compiler/linker to > change the symbol visibility to public for the API methods. > > -------------- > > Now I looked thru the options on both Clang and lld, but nothing > obviously springs into focus, as to add to change.... > > This is how librados is build: > /usr/bin/c++ -fPIC -Wall -Wtype-limits -Wignored-qualifiers > -Winit-self -Wpointer-arith -Werror=format-security -fno-strict-aliasing > -fsigned-char -Wno-unknown-pragmas -Wno-unused-function > -Wno-unused-local-typedef -Wno-varargs -Wno-gnu-designator > -Wno-missing-braces -Wno-parentheses -Wno-deprecated-register > -ftemplate-depth-1024 -Wnon-virtual-dtor -Wno-unknown-pragmas > -Wno-ignored-qualifiers -Wno-inconsistent-missing-override > -Wno-mismatched-tags -Wno-unused-private-field > -Wno-address-of-packed-member -DCEPH_DEBUG_MUTEX > -fdiagnostics-color=auto -fno-builtin-malloc -fno-builtin-calloc > -fno-builtin-realloc -fno-builtin-free -O0 -g > -Wno-unused-command-line-argument -fuse-ld=/usr/bin/ld.lld > -Wl,--exclude-libs,ALL > -Wl,--version-script=/home/jenkins/workspace/ceph-master/src/librados/librados.map Can you provide this librados.map file?