Hello,
I get the following error message compiling pmemd.cuda on my machine
(GNU 4.4.1 compilers, Ubuntu 9.10, CUDA 3 release).
gcc -O3 -mtune=generic -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
-DBINTRAJ -DCUDA -I/usr/local/cuda/include -c gpu.cpp
gcc -O3 -mtune=generic -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
-DBINTRAJ -DCUDA -I/usr/local/cuda/include -c gputypes.cpp
/usr/local/cuda/bin/nvcc -use_fast_math -O3 -gencode
arch=compute_13,code=sm_13 -gencode arch=compute_20,code=sm_20 -DCUDA
-I/usr/local/cuda/include -c kForcesUpdate.cu
/usr/include/string.h:43: error: inline function ‘void* memcpy(void*,
const void*, size_t)’ cannot be declared weak
/usr/include/string.h:64: error: inline function ‘void* memset(void*,
int, size_t)’ cannot be declared weak
/usr/include/bits/string3.h:49: error: inline function ‘void*
memcpy(void*, const void*, size_t)’ cannot be declared weak
/usr/include/bits/string3.h:78: error: inline function ‘void*
memset(void*, int, size_t)’ cannot be declared weak
/usr/local/cuda/bin/../include/common_functions.h:59: error: inline
function ‘void* memset(void*, int, size_t)’ cannot be declared weak
/usr/local/cuda/bin/../include/common_functions.h:62: error: inline
function ‘void* memcpy(void*, const void*, size_t)’ cannot be declared
weak
/usr/local/cuda/bin/../include/math_functions.h:422: error: inline
function ‘int __signbit(double)’ cannot be declared weak
/usr/local/cuda/bin/../include/math_functions.h:427: error: inline
function ‘int __signbitf(float)’ cannot be declared weak
/usr/local/cuda/bin/../include/math_functions.h:440: error: inline
function ‘int __signbitl(long double)’ cannot be declared weak
/usr/include/bits/mathcalls.h:350: error: inline function ‘int
__signbit(double)’ cannot be declared weak
/usr/include/bits/mathcalls.h:350: error: inline function ‘int
__signbitf(float)’ cannot be declared weak
/usr/include/bits/mathcalls.h:350: error: inline function ‘int
__signbitl(long double)’ cannot be declared weak
/usr/include/bits/mathinline.h:36: error: inline function ‘int
__signbitf(float)’ cannot be declared weak
/usr/include/bits/mathinline.h:42: error: inline function ‘int
__signbit(double)’ cannot be declared weak
/usr/include/bits/mathinline.h:48: error: inline function ‘int
__signbitl(long double)’ cannot be declared weak
make[3]: *** [kForcesUpdate.o] Error 1
make[3]: Leaving directory
`/home/swails/newamber/04.01.10/amber11/src/pmemd/src/cuda'
make[2]: *** [-L/usr/local/cuda/lib64] Error 2
make[2]: Leaving directory
`/home/swails/newamber/04.01.10/amber11/src/pmemd/src'
make[1]: *** [cuda] Error 2
make[1]: Leaving directory `/home/swails/newamber/04.01.10/amber11/src/pmemd'
make: *** [cuda] Error 2
Any ideas?
Thanks!
Jason
--
---------------------------------------
Jason M. Swails
Quantum Theory Project,
University of Florida
Ph.D. Graduate Student
352-392-4032
_______________________________________________
AMBER-Developers mailing list
AMBER-Developers.ambermd.org
http://lists.ambermd.org/mailman/listinfo/amber-developers
Received on Fri Apr 02 2010 - 14:30:04 PDT