espressomd-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ESPResSo-users] compilation error


From: Xikai Jiang
Subject: Re: [ESPResSo-users] compilation error
Date: Mon, 24 Mar 2014 17:28:03 -0400

Thank you for your time and help.

Yes, the fix hadn't made in Konrad's branch. I've deleted three lines from /mpifake/mpi.h according to the link provided by Florian and also I need to replace mpi.cpp with that from master. With these changes, now I can compile the no-mpi version!

Best regards.

Jimmy


Date: Mon, 24 Mar 2014 19:25:29 +0100
Subject: Re: [ESPResSo-users] compilation error
From: address@hidden
To: address@hidden
CC: address@hidden; address@hidden; address@hidden

Hi,
there was a bug some time ago, it was fixed in the master, but it seems that the fix hasn't made it into Konrads repository.
This is the fix:
https://github.com/espressomd/espresso/commit/af49ebeab9ce0695fc8b0565e636a191a79c4ed6
If you don't now how to merge that, have a look at the change, it can easily be applied by hand.

Best,
Florian


On Mon, Mar 24, 2014 at 7:08 PM, Axel Arnold <address@hidden> wrote:
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.

Hi!

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 Stuttgart


-- 
JP Dr. Axel Arnold
ICP, Universität Stuttgart
Allmandring 3
70569 Stuttgart, Germany
Email: address@hidden
Tel: +49 711 685 67609


reply via email to

[Prev in Thread] Current Thread [Next in Thread]