Hi,
Thanks for the reply - helped me know where to look and gave me
confidence it was something to track down...
OK, so if I do:
qiy6 tmp: nvcc -I /usr/include/python2.6 -I /usr/lib64/python2.6/site-
packages/numpy/core/include/ /home/andrew/pkg/Theano/theano/sandbox/
cuda/
cuda_ndarray.cu
I see (note error at the end):
In file included from /usr/include/python2.6/Python.h:8,
from /home/andrew/pkg/Theano/theano/sandbox/cuda/
cuda_ndarray.cu:1:
/usr/include/python2.6/pyconfig.h:1055:1: warning: "_POSIX_C_SOURCE"
redefined
In file included from /usr/local/cuda/bin/../include/host_config.h:74,
from /usr/local/cuda/bin/../include/cuda_runtime.h:
45,
from <command-line>:0:
/usr/include/features.h:158:1: warning: this is the location of the
previous definition
In file included from /usr/include/python2.6/Python.h:8,
from /home/andrew/pkg/Theano/theano/sandbox/cuda/
cuda_ndarray.cu:1:
/usr/include/python2.6/pyconfig.h:1067:1: warning: "_XOPEN_SOURCE"
redefined
In file included from /usr/local/cuda/bin/../include/host_config.h:74,
from /usr/local/cuda/bin/../include/cuda_runtime.h:
45,
from <command-line>:0:
/usr/include/features.h:160:1: warning: this is the location of the
previous definition
In file included from /usr/include/python2.6/Python.h:8,
from /home/andrew/pkg/Theano/theano/sandbox/cuda/
cuda_ndarray.cu:1:
/usr/include/python2.6/pyconfig.h:1055:1: warning: "_POSIX_C_SOURCE"
redefined
In file included from /usr/local/cuda/bin/../include/host_config.h:74,
from /usr/local/cuda/bin/../include/cuda_runtime.h:
45,
from <command-line>:0:
/usr/include/features.h:158:1: warning: this is the location of the
previous definition
In file included from /usr/include/python2.6/Python.h:8,
from /home/andrew/pkg/Theano/theano/sandbox/cuda/
cuda_ndarray.cu:1:
/usr/include/python2.6/pyconfig.h:1067:1: warning: "_XOPEN_SOURCE"
redefined
In file included from /usr/local/cuda/bin/../include/host_config.h:74,
from /usr/local/cuda/bin/../include/cuda_runtime.h:
45,
from <command-line>:0:
/usr/include/features.h:160:1: warning: this is the location of the
previous definition
/usr/include/c++/4.4/x86_64-suse-linux/bits/c++locale.h: In function
‘int std::__convert_from_v(__locale_struct* const&, char*, int, const
char*, ...)’:
/usr/include/c++/4.4/x86_64-suse-linux/bits/c++locale.h:86: error:
‘__builtin_stdarg_start’ was not declared in this scope
I *think* this may be the source of the problem? Any ideas on how to
fix it? (C++ isn't my idea of fun).
Thanks,
Andrew