From owner-freebsd-ports@FreeBSD.ORG Sat Jul 27 17:51:15 2013 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id B7CEDF56 for ; Sat, 27 Jul 2013 17:51:15 +0000 (UTC) (envelope-from coder@tuxfamily.org) Received: from smtp6-g21.free.fr (smtp6-g21.free.fr [IPv6:2a01:e0c:1:1599::15]) by mx1.freebsd.org (Postfix) with ESMTP id 463E22E7B for ; Sat, 27 Jul 2013 17:51:13 +0000 (UTC) Received: from bureau (unknown [88.184.220.77]) by smtp6-g21.free.fr (Postfix) with ESMTP id E5E3482267; Sat, 27 Jul 2013 19:51:07 +0200 (CEST) Date: Sat, 27 Jul 2013 19:51:06 +0200 From: lbartoletti To: Tijl Coosemans Subject: Re: Freeocl build but doesn't work Message-ID: <20130727195106.6ae79995@bureau> In-Reply-To: <20130725113623.1a9ad58d@kalimero.tijl.coosemans.org> References: <20130725091756.4a01c51d@bureau> <20130725113623.1a9ad58d@kalimero.tijl.coosemans.org> X-Mailer: Claws Mail 3.9.2 (GTK+ 2.24.19; amd64-portbld-freebsd9.1) Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: ohartman@zedat.fu-berlin.de, freebsd-ports@freebsd.org X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 27 Jul 2013 17:51:15 -0000 Le Thu, 25 Jul 2013 11:36:23 +0200, Tijl Coosemans a =C3=A9crit : > On Thu, 25 Jul 2013 09:17:56 +0200 lbartoletti wrote: > > Hello, > >=20 > > I try to work with opencl via Freeocl but it doesn't work. > >=20 > > When i build a test, it's ok (except with gcc46), but when i run > > it, it doesn't work : > > ": version GLIBCXX_3.4.11 required > > by /usr/local/lib/libOpenCL.so.1 not found" > >=20 > >=20 > > here some logs and the source code for test. > >=20 > > Thank your for your help >=20 > Compiling C++ code with gcc ports is a little tricky because they > insist on using their own runtime libraries > (/usr/local/lib/gcc46/libstdc++.so.6) instead of the base system > libraries (/usr/lib/libstdc++.so.6). >=20 > So try to compile your test with "gcc46 > -Wl,-rpath=3D/usr/local/lib/gcc46". Hello, It doesn't work. I tried it with FreeBSD amd64 9.1 and 10.0 and FreeOCL / OpenCL require GLIBCXX_3.4.11 into libstdc++...