You are not logged in.

#1 2010-03-30 00:48:35

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

nvidia-texture-tools building without makepkg, failing with makepkg

I have puzzled a PKGBUILD together for nvidia-texture-tools, after some unorthodox hacking to get it to work. I had to patch the CMake stuff to get GCC to use pthreads, then to remove an inline declaration that made the compiler break on a weak declaration (twice - once in the nvidia-texture-tools sourcecode, the second time in a cuda header in /usr/include/cuda_runtime.h).

If a helpful soul could help me reproduce and narrow down this error, I'be very grateful.

This is the PKGBUILD.

CMake patch is here.

The weak declaration errors are here, the nvidia-texture-tools one is fixed in the PKGBUILD, the other one can be fixed by this patch:

--- cuda_runtime.h      2010-03-30 00:33:13.000000000 +0200
+++ cuda_runtime.h.new  2010-03-30 01:25:02.484315953 +0200
@@ -181,7 +181,7 @@
 }

 template<class T>
-__inline__ __host__ cudaError_t cudaMemcpyToSymbol(
+__host__ cudaError_t cudaMemcpyToSymbol(
   const T                   &symbol,
   const void                *src,
         size_t               count,

This is the error log I get with the PKGBUILD:

-- Build files have been written to: /home/stijn/pkgbuilds/nvidia-texture-tools/src/nvidia-texture-tools-read-only-build/build

Your configure completed successfully, now type make

make[1]: warning: jobserver unavailable: using -j1.  Add `+' to parent make rule.
Scanning dependencies of target nvcore
[  1%] Building CXX object src/nvcore/CMakeFiles/nvcore.dir/Memory.cpp.o
c++: no input files
/bin/sh: -lpthread: command not found
make[3]: *** [src/nvcore/CMakeFiles/nvcore.dir/Memory.cpp.o] Error 127
make[2]: *** [src/nvcore/CMakeFiles/nvcore.dir/all] Error 2
make[1]: *** [all] Error 2
make: *** [all] Error 2
==> ERROR: Build Failed.

/bin/sh: -lpthread: command not found is what intrigues me. I don't know what it is but I suspect the wrapper script must be causing it. I think the C++ error is related to it. If I don't apply the pthreads patch I'll still see the same error, so the patch is not causing it.


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

#2 2010-04-01 18:10:19

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: nvidia-texture-tools building without makepkg, failing with makepkg

Bump


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

Board footer

Powered by FluxBB