[gmx-users] make error when compiling for the parallel version

David van der Spoel spoel at xray.bmc.uu.se
Tue Oct 8 19:56:18 CEST 2002


On Tue, 8 Oct 2002, Tivadar Orban wrote:

>>> xutils.c:231: warning: invalid conversion from `void*' to `double*'
>>> xutils.c:232: warning: invalid conversion from `void*' to `double*'
>>> xutils.c:233: warning: invalid conversion from `void*' to `double*'
>>> xutils.c:238: warning: invalid conversion from `void*' to `double*'
>>> xutils.c:239: warning: invalid conversion from `void*' to `double*'
>>> xutils.c:240: warning: invalid conversion from `void*' to `double*'
>>> xutils.c:241: warning: invalid conversion from `void*' to `double*'
>>> xutils.c: In function `void update_forcefield(int, t_filenm*,
>>> t_forcerec*)':
>>> xutils.c:324: warning: invalid conversion from `void*' to `int*'
>>> make[1]: *** [xutils.o] Error 1
>>
It may actually be that gcc is to blame. The problem that the code does a
typecast:
double * = void *

You may try compiling like this:
make CFLAGS+="-Wno-bad-function-cast"
(remove the + in the above if it doesn't work)


>> Is that the only error you get?
>Yes that is the first error that I get, and the make process stops
>
>> Something is very weird indeed, since this
>> code is correct, and this type of statements is used in hundreds of  
>> places
>> in gromacs. Which version of gromacs is this,
>The version of GROMACS is 3.1.4.
>>  and did you check the list
>> for earlier OS X problems?
>I have checked the list for similar problems on OSX but those were not  
>the case. Can you give me a hint what should I try?
>
>Regards,
>Tivadar, Orban
>>
>> Groeten, David.
>> _______________________________________________________________________ 
>> _
>> Dr. David van der Spoel, 	Biomedical center, Dept. of Biochemistry
>> Husargatan 3, Box 576,  	75123 Uppsala, Sweden
>> phone:	46 18 471 4205		fax: 46 18 511 755
>> spoel at xray.bmc.uu.se	spoel at gromacs.org   http://xray.bmc.uu.se/~spoel
>> +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 
>> +
>>
>> _______________________________________________
>> gmx-users mailing list
>> gmx-users at gromacs.org
>> http://www.gromacs.org/mailman/listinfo/gmx-users
>> Please don't post (un)subscribe requests to the list. Use the
>> www interface or send it to gmx-users-request at gromacs.org.
>>
>
>_______________________________________________
>gmx-users mailing list
>gmx-users at gromacs.org
>http://www.gromacs.org/mailman/listinfo/gmx-users
>Please don't post (un)subscribe requests to the list. Use the 
>www interface or send it to gmx-users-request at gromacs.org.
>

Groeten, David.
________________________________________________________________________
Dr. David van der Spoel, 	Biomedical center, Dept. of Biochemistry
Husargatan 3, Box 576,  	75123 Uppsala, Sweden
phone:	46 18 471 4205		fax: 46 18 511 755
spoel at xray.bmc.uu.se	spoel at gromacs.org   http://xray.bmc.uu.se/~spoel
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++




More information about the gromacs.org_gmx-users mailing list