Date: Mon, 25 Dec 2017 16:12:54 +0100 From: "O. Hartmann" <ohartmann@walstatt.org> To: FreeBSD CURRENT <freebsd-current@freebsd.org>, 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: <bug-223848-29464-iUzfDtmIL4@https.bugs.freebsd.org/bugzilla/> References: <bug-223848-29464@https.bugs.freebsd.org/bugzilla/> <bug-223848-29464-iUzfDtmIL4@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
--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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20171225161321.52613f60>