Build Fails

José Fonseca jose.r.fonseca at gmail.com
Wed Jan 23 06:55:14 PST 2013


On Sat, Jan 19, 2013 at 12:28 AM, Rajib Nath <rknath at ucsd.edu> wrote:
> Hello
> My APITRACE build fails here ...
> any help / direction will be appreciated.
> thanks
> rajib
>
> [ 67%] Building CXX object
> retrace/CMakeFiles/retrace_common.dir/retrace_main.cpp.o
> /home/rknath/Research/MobileGPU/apitrace/apitrace/retrace/retrace_main.cpp:
> In constructor ‘retrace::RelayRunner::RelayRunner(retrace::RelayRace*,
> unsigned int)’:
> /home/rknath/Research/MobileGPU/apitrace/apitrace/retrace/retrace_main.cpp:269:
> error: no matching function for call to ‘os::thread::thread(void*
> ()(retrace::RelayRunner*), retrace::RelayRunner* const)’
> /home/rknath/Research/MobileGPU/apitrace/apitrace/common/os_thread.hpp:310:
> note: candidates are: os::thread::thread(Function&, Arg) [with Function =
> void* ()(retrace::RelayRunner*), Arg = retrace::RelayRunner*]

It should be matching this template method. I suspect that seomthing
in that template body is failing, but the compiler is not providing
useful error message.

Try this patch:

diff --git a/common/os_thread.hpp b/common/os_thread.hpp
index 9dc656e..86894bd 100644
--- a/common/os_thread.hpp
+++ b/common/os_thread.hpp
@@ -312,7 +312,7 @@ namespace os {
             DWORD id = 0;
             _native_handle = CreateThread(NULL, 0,
(LPTHREAD_START_ROUTINE)f, (LPVOID)arg, 0, &id);
 #else
-            pthread_create(&_native_handle, NULL, ( void *(*) (void *))f, arg);
+            pthread_create(&_native_handle, NULL, ( void *(*) (void
*))f, (void *)arg);
 #endif
         }



> /home/rknath/Research/MobileGPU/apitrace/apitrace/common/os_thread.hpp:304:
> note:                 os::thread::thread(const os::thread&)
> /home/rknath/Research/MobileGPU/apitrace/apitrace/common/os_thread.hpp:298:
> note:                 os::thread::thread()
> make[2]: *** [retrace/CMakeFiles/retrace_common.dir/retrace_main.cpp.o]
> Error 1
> make[2]: Leaving directory
> `/home/rknath/Research/MobileGPU/apitrace/apitrace/build'
> make[1]: *** [retrace/CMakeFiles/retrace_common.dir/all] Error 2
> make[1]: Leaving directory
> `/home/rknath/Research/MobileGPU/apitrace/apitrace/build'
> make: *** [all] Error 2
> make: Leaving directory
> `/home/rknath/Research/MobileGPU/apitrace/apitrace/build'
>
>
> --
>
>
> _______________________________________________
> apitrace mailing list
> apitrace at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/apitrace
>


More information about the apitrace mailing list