From owner-freebsd-toolchain@freebsd.org Mon Dec 25 15:13:41 2017 Return-Path: Delivered-To: freebsd-toolchain@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 19676E9091F; Mon, 25 Dec 2017 15:13:41 +0000 (UTC) (envelope-from ohartmann@walstatt.org) Received: from mout.gmx.net (mout.gmx.net [212.227.17.21]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "mout.gmx.net", Issuer "TeleSec ServerPass DE-2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id A133567CFF; Mon, 25 Dec 2017 15:13:36 +0000 (UTC) (envelope-from ohartmann@walstatt.org) Received: from thor.intern.walstatt.dynvpn.de ([77.179.219.206]) by mail.gmx.com (mrgmx102 [212.227.17.168]) with ESMTPSA (Nemesis) id 0LdKs1-1fBNmY2vFh-00iS6D; Mon, 25 Dec 2017 16:13:27 +0100 Date: Mon, 25 Dec 2017 16:12:54 +0100 From: "O. Hartmann" To: FreeBSD CURRENT , freebsd-toolchain@FreeBSD.org Subject: BUG: LLVM: : CommandLine Error: Option 'enable-value-profiling' registered more than once! Message-ID: <20171225161321.52613f60@thor.intern.walstatt.dynvpn.de> In-Reply-To: References: Organization: WALSTATT User-Agent: OutScare 3.1415926 X-Operating-System: ImNotAnOperatingSystem 3.141592527 MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; boundary="Sig_/Ze6z_0og.4QZ2NhNKG7uuvI"; protocol="application/pgp-signature" X-Provags-ID: V03:K0:5AJ81/SHMKtTcRiSHtw24Z5V+OVvIGOhmtI5UqCNaFPqyqmd+qJ q8bpm1D0VQdIY9OmhJ8rMo27Jn5jt5k6vx+7j8cah8d70AAHnQkwtnevR2BonMYQtKevpaC twTKqgrr/Nn25n9xfFn9ixR1XRmz4VBMH3szUBsjRp6eUJtX4CcTJzEGeEnwZJWQ2R0+tbI YV519tM2FNZ/yK2J/t5Lg== X-UI-Out-Filterresults: notjunk:1;V01:K0:fMWYCBAEjaA=:j72S2d/sqrIYCr/9JpzsVQ 4Xh6sYWeAWMmAVAe4cfyStssTIpesJr8UcKf+TqQ6WADcMGv3vtjukK5uZw7Q2Xq/+ks4fmq5 X+qwkwqg1uz+nBdEa6G4pAINITRuaUMpIdX4IpgzK38vi+GHwu6TLivY/syFloMndhPYrNSSu UJLs7hcEgNEKpAXQ0PE0rRW9/QejitdpXBAObTp/V9g4MxOeOkeLVbqAXseTVULepR12qIi5e f3V70bepFPK39TQ0ZrBXAar34l6b1Es1b1rFKyvxvKoM76Jv1B89ClfXAYpSPtWOLm71ni8YO ZUS7N6Fyilxnfui3FZ3/66gYEKXq1lwFNwX5FKu0KcD3dQFyoee/Ld1LooSnuXbjNTwffSaGw +ZGucizfIZhEdd0jjhedVmEG4c5XZHfQqkZxkd5uMCi2rcOzDYtSGdH9JY2yc40z08KK7v6oh XJy1rfKSu+P3cST7BYo9/+1a36AonWi+j34vL9RZbT0CserSAMP/Ab2u7NhYWtv7NWvT3msJM As2HKz6cxipfPvHN3jC7F8q9AD9zaXCvR7a8gBC9aZjIUYAl7r+t7atpYFp9q31VnxrERC69L Ia7CPJfmmGiCykFZRCRfg709aP2YBQ0XvnpMBdeNVL1AOqanAWtJzbPDoswRoq9U2R2jQwyXC c7tez4BQbyNuvIiI8IS2qJ35fO6Fo1CEUcuhbNIE0MUKD4lVeaG4pmT1l3b6K4hI0SSPRPOxV 0kE5+/fgNZLtZg25hQTi858xsN+LP4pqGCUdq9oI1Ew4grnckzCkz768xH4CrSOVycKqRfbF/ ht7MkKXG+hb3QwDO5ZmvIkbEmcOJw== X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Dec 2017 15:13:41 -0000 --Sig_/Ze6z_0og.4QZ2NhNKG7uuvI Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable I'm not a compiler expert and I have some serious trouble getting port lang= /pocl to work properly. I'm on CURRENT (FreeBSD 12.0-CURRENT #79 r327170: Mon Dec 25 03:3= 5:27 CET 2017 amd64). The problem persits on both LLD_IS_LD set or not. Whenever lang/pocl in combination with devel/ocl-icd is installed and more = than one OpenCL ICD is installed with lang/pocl, any client (compiled with lang/pocl) or po= rt/package utilising OpenCL in any way (see graphics/blender PR23879 or devel/clinfo, = bails out with: : CommandLine Error: Option 'enable-value-profiling' registered more than o= nce! LLVM ERROR: inconsistency in registered CommandLine options Looking at the POCL repo at github gives noch much help about this, they cl= osed an error report stating it isn't POCL related, but a long-standig LLVM issue, please= see https://github.com/pocl/pocl/issues/474. Searching the net for this sepcific error reveals this bug at llvm.org's bu= g report: [...] Don't link ObjCARCOpts twice. Fixes PR22543 https://reviews.llvm.org/rL240104 Taken that information, the "bug" is considered solved - but it is lldb rel= ated, not lld or whatever is causing the error for POCL!=20 I also found this one, still open: [...] Bug 22952 - cl::opt + LLVM_BUILD_LLVM_DYLIB is completely broken=20 https://bugs.llvm.org/show_bug.cgi?id=3D22952 I do not have the experience, brains and resources to look into this matter= any deeper, so I'd appreciate someone with insight into LLVM could take a look at this. When I look what OpenCL ICDs are installed apart from lang/pocl on my boxes= , I see this installation: 5618138 -rw-r--r-- 1 root wheel - 33B Dec 25 03:35 intel-beignet.icd 5618040 -rw-r--r-- 1 root wheel - 19B Dec 17 15:48 mesa.icd [5617930 -rw-r--r-- 1 root wheel - 31B Dec 23 11:21 pocl.icd] Testing with port devel/clinfo and with(!) lang/pocl installed, gives the e= rror I stated initially. Deleting lang/pocl, devel/clinfo dies any way with this error: [...] Unable to find symbol pthread_mutexattr_setkind_np version (null). Aborting. Abort or it simply hangs [Ctrl-T]: load: 0.12 cmd: clinfo 82286 [uwait] 46.78r 0.02u 0.00s 0% 50964k Something isn't right here. A far more serious port is graphics/blender. With usage of OpenCL and havin= g lang/pocl installed, I receive the error initially mentioned.=20 I've provided a DIFF to to the (marked broken) lang/pocl version 0.14 (for = this sepcific PR see Bug 223032 - [PATCH] lang/pocl: pkg-static fails due to wrong pkg-pl= ist entries, look at https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D223032): POCL 1.0: Bug 224584 - [PATCH] lang/pocl: fix pkg-plist and update to POCL 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D224584 Hopefully,someone has the time to have a look into this. Kind regards, Oliver --=20 O. Hartmann Ich widerspreche der Nutzung oder =C3=9Cbermittlung meiner Daten f=C3=BCr Werbezwecke oder f=C3=BCr die Markt- oder Meinungsforschung (=C2=A7 28 Abs.= 4 BDSG). --Sig_/Ze6z_0og.4QZ2NhNKG7uuvI Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iLUEARMKAB0WIQQZVZMzAtwC2T/86TrS528fyFhYlAUCWkEVkQAKCRDS528fyFhY lJcaAgCC6Mrr0eOaS1TSpLLHOumzAh1xcocrmo84fIHk4tF10mtzuMe8h6CE03P6 YI9DR8Ukk6f3INhzdUsM8riaEee1Af9XsQoukj/dxzTl/Mg4bprLIB3z1VFSXWWd 9Dq5Azzxo19qQUDxAIg/BKKd6nuuLJ+Lo0usmCB9tejNclv8cI8f =7laV -----END PGP SIGNATURE----- --Sig_/Ze6z_0og.4QZ2NhNKG7uuvI--