Accéder au contenu.
Menu Sympa

starpu-devel - Re: [Starpu-devel] Linker errors in make while trying to build starpu

Objet : Developers list for StarPU

Archives de la liste

Re: [Starpu-devel] Linker errors in make while trying to build starpu


Chronologique Discussions 
  • From: ASUDE ASUDE <ajitsdeshpande@gmail.com>
  • To: Samuel Thibault <samuel.thibault@ens-lyon.org>, starpu-devel@lists.gforge.inria.fr
  • Subject: Re: [Starpu-devel] Linker errors in make while trying to build starpu
  • Date: Mon, 14 Nov 2011 17:40:47 +0000
  • List-archive: <http://lists.gforge.inria.fr/pipermail/starpu-devel>
  • List-id: "Developers list. For discussion of new features, code changes, etc." <starpu-devel.lists.gforge.inria.fr>

Thank you Samuel. Indeed that was the problem(Multiple LDFLAGS..) use it once only and its fine.

Appreciate your prompt and useful replies.

thanks.


On Mon, Nov 14, 2011 at 2:56 PM, Samuel Thibault <samuel.thibault@ens-lyon.org> wrote:
ASUDE ASUDE, le Mon 14 Nov 2011 14:30:14 +0000, a écrit :
>   $ ./configure --with-opencl-include-dir=/usr/include/CL/ --with-opencl-lib-dir=/home/deshpandea/moviSimStarPU/trunk/moviSim CFLAGS=-I/home/deshpandea/lpng155/ -I/home/deshpandea/moviSimStarPU/trunk/examples/basic_examples/ -I/home/deshpandea/zlib-1.2.5/ LIBS=/lib/x86_64-linux-gnu/libpng12.so.0.44.0 LIBS=/lib/x86_64-linux-gnu/libz.so.1.2.3.4 LIBS=/home/deshpandea/moviSimStarPU/trunk/moviSim/moviSimDll.so LIBS=/usr/lib32/libm.a LDFLAGS=-l:/usr/lib32/libstdc++.so.6.0.14 LDFLAGS=-l:/usr/local/cuda/lib64/libcudart.so LDFLAGS=-l:/usr/local/cuda/lib64/libcublas.so LIBS=/usr/lib/libOpenCL.so.1.0.0 --enable-debug --enable-verbose --disable-cudamake

You have to define LIBS and LDFLAGS only once, else only the last
definition is kept. Also, avoid mixing both LIBS and LDFLAGS, just use
LIBS:

./configure --with-opencl-include-dir=/usr/include/CL/ --with-opencl-lib-dir=/home/deshpandea/moviSimStarPU/trunk/moviSim CFLAGS="-I/home/deshpandea/lpng155/ -I/home/deshpandea/moviSimStarPU/trunk/examples/basic_examples/ -I/home/deshpandea/zlib-1.2.5/" LIBS="/lib/x86_64-linux-gnu/libpng12.so.0.44.0 /lib/x86_64-linux-gnu/libz.so.1.2.3.4 /home/deshpandea/moviSimStarPU/trunk/moviSim/moviSimDll.so /usr/lib32/libm.a /usr/lib32/libstdc++.so.6.0.14 /usr/local/cuda/lib64/libcudart.so /usr/local/cuda/lib64/libcublas.so /usr/lib/libOpenCL.so.1.0.0" --enable-debug --enable-verbose --disable-cudamake

Samuel




Archives gérées par MHonArc 2.6.19+.

Haut de le page