|
From: | Florian Weik |
Subject: | Re: [ESPResSo-users] compilation error |
Date: | Mon, 24 Mar 2014 19:25:29 +0100 |
Hi!On 03/24/2014 06:01 PM, Xikai Jiang wrote:
Sure! The config.log file is attached.
One strange thing is that, for the development code from Espressomd Github, I can compile without any problems.
The even more strange thing is that configure according to config.log still can compile against malloc, while later mpi.cpp cannot. malloc is usually defined in stdlib.h, which in turn is included in our mpi.h. Can you rerun the compile command with "-E" instead of "-c" to run the preprocessor and check which mpi.h is included? Maybe some other header is sneaking in, although according to config.log, there are no additional include paths.
Axel
From: address@hidden
Date: Mon, 24 Mar 2014 17:55:57 +0100
Subject: Re: [ESPResSo-users] compilation error
To: address@hidden
CC: address@hidden
Hi!
Could you please send us the file "config.log" that you should find in the directory where you ran configure.
Olaf
2014-03-24 17:00 GMT+01:00 Xikai Jiang <address@hidden>:
Dear Espresso:
I'm using the latest development code from the branch of Konrad. When I compile the source code (configure --without-mpi --without-cuda), I met many error messages with mpi.cpp:
source/src/mpifake/mpi.cpp(45): error: identifier "malloc" is undefined
ntype = *newtype = malloc(sizeof(struct mpifake_dtype));
source/src/mpifake/mpi.cpp(45): error: a value of type "MPI_Datatype" cannot be assigned to an entity of type "mpifake_dtype *"
ntype = *newtype = malloc(sizeof(struct mpifake_dtype));
source/src/mpifake/mpi.cpp(47): error: pointer to incomplete class type is not allowed
ntype->format = LAM_DTSTRUCT;
I also tried to compile with mpi, but still errors with:
undefined reference to 'ompi_mpi_double'
undefined reference to 'MPI_Bcast'
I'm not sure where the problem is, any help are appreciated!
Thanks!
Jimmy
--
Dr. rer. nat. Olaf Lenz
Institut für Computerphysik, Allmandring 3, D-70569 StuttgartPhone: +49-711-685-63607
-- JP Dr. Axel Arnold ICP, Universität Stuttgart Allmandring 3 70569 Stuttgart, Germany Email: address@hidden Tel: +49 711 685 67609
[Prev in Thread] | Current Thread | [Next in Thread] |