Re: error compiling gadget

From: Cynthia Saad (Student) <"Cynthia>
Date: Tue, 28 Nov 2017 09:10:16 +0000

Hello

i'm really sorry, but i am still stuck with this. i was following this http://wwwmpa.mpa-garching.mpg.de/gadget/gadget-list/0171.html

Re: Illegal Instruction error ... from Yves Revaz on 2007 ...<http://wwwmpa.mpa-garching.mpg.de/gadget/gadget-list/0171.html>
wwwmpa.mpa-garching.mpg.de
From: Yves Revaz <yves.revaz_at_obspm.fr> Date: Sun, 23 Sep 2007 21:46:58 +0200 Here are my notes concerning the installation of fftw for Gadget-2 :


i configured fftw3 with --enable-typre-prefix, but it says

configure: WARNING: unrecognized options: --enable-type-prefix

i uncommented
OPT += -DNOTYPEPREFIX_FFTW


but i am still getting

pm_periodic.c:16:30: fatal error: rfftw_mpi.h: No such file or directory
 #include <rfftw_mpi.h>
                              ^
compilation terminated.

when compiling gadget2.


thank you for your time

________________________________
From: Jared Coughlin <Jared.W.Coughlin.29_at_nd.edu>
Sent: Monday, November 20, 2017 10:34:33 PM
To: Gadget General Discussion
Subject: Re: [gadget-list] error compiling gadget

Hello! That error means that you have to compile fftw with the type prefixes on and choose the correct type (floating point or double) in the Makefile .
http://www.fftw.org/fftw2_doc/fftw_6.html<https://emea01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.fftw.org%2Ffftw2_doc%2Ffftw_6.html&data=02%7C01%7Ccrs07%40mail.aub.edu%7C9754aba657074cefbbb408d530567fe3%7Cc7ba5b1a41b643e9a1206ff654ada137%7C1%7C0%7C636468070480979364&sdata=imPuBJNTwG8oKvPSB3NnO4ip07IHK%2BTw%2BydOxJTLb8o%3D&reserved=0>

Hope that helps!
-Jared

On Mon, Nov 20, 2017 at 3:26 PM, Yves Revaz <yves.revaz_at_epfl.ch<mailto:yves.revaz_at_epfl.ch>> wrote:
On 20/11/17 21:18, Cynthia Saad (Student) wrote:

right, i was just reading this. i added

OPT += -DH5_USE_16_API
to the makefile.

then make gives me this



pm_periodic.c:21:28: fatal error: srfftw_mpi.h: No such file or directory

srfftw_mpi.h missing from the fftw lib.

They are some detailed instructions on how to compile gadget-2 (and fftw) on mac os or linux here:
https://obswww.unige.ch/lastro/conferences/sf2013/handson.cgi<https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fobswww.unige.ch%2Flastro%2Fconferences%2Fsf2013%2Fhandson.cgi&data=02%7C01%7Ccrs07%40mail.aub.edu%7C9754aba657074cefbbb408d530567fe3%7Cc7ba5b1a41b643e9a1206ff654ada137%7C1%7C0%7C636468070480979364&sdata=xnGhHLUNv8Mt7wsCtXnFlF7CMDGzVGkwi%2Bh5YrU7s%2F8%3D&reserved=0>

Cheers,

yves



 #include <srfftw_mpi.h>
                            ^
compilation terminated.
<builtin>: recipe for target 'pm_periodic.o' failed
make: *** [pm_periodic.o] Error 1



excuse my ignorance

________________________________
From: Yves Revaz <yves.revaz_at_epfl.ch><mailto:yves.revaz_at_epfl.ch>
Sent: Monday, November 20, 2017 10:14:01 PM
To: gadget-list_at_MPA-Garching.MPG.DE<mailto:gadget-list_at_MPA-Garching.MPG.DE>
Subject: Re: [gadget-list] error compiling gadget


Dear Cynthia,

It seems that you are linking with the wrong version of HDF5.
See

https://wwwmpa.mpa-garching.mpg.de/gadget/gadget-list/0432.html<https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwwwmpa.mpa-garching.mpg.de%2Fgadget%2Fgadget-list%2F0432.html&data=02%7C01%7Ccrs07%40mail.aub.edu%7C853708b765564ae8bc4108d530539995%7Cc7ba5b1a41b643e9a1206ff654ada137%7C1%7C0%7C636468057989353575&sdata=9CKxsQq3YqQ7eOomN5XmhiIUFGCsuFSRCZLz4UmU%2BP0%3D&reserved=0>

for more informations.


Cheers,

yves

On 20/11/17 21:09, Cynthia Saad (Student) wrote:

Dear all,

I am new with GADGET and having trouble compiling it. make gives me this error and i can't figure out what to do. https://justpaste.it/1dqg0<https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fjustpaste.it%2F1dqg0&data=02%7C01%7Ccrs07%40mail.aub.edu%7C853708b765564ae8bc4108d530539995%7Cc7ba5b1a41b643e9a1206ff654ada137%7C1%7C0%7C636468057989353575&sdata=VKWpZNkFf8VeoQkaIQzsKcx9ozL645ApM82wDVrCJgY%3D&reserved=0>

what am i doing wrong?

thank you for your much appreciated help,

cynthia


--
---------------------------------------------------------------------
  Dr. Yves Revaz
  Laboratory of Astrophysics
  Ecole Polytechnique Fédérale de Lausanne (EPFL)
  Observatoire de Sauverny     Tel : +41 22 379 24 28<tel:+41%2022%20379%2024%2028>
  51. Ch. des Maillettes       Fax : +41 22 379 22 05<tel:+41%2022%20379%2022%2005>
  1290 Sauverny             e-mail : Yves.Revaz_at_epfl.ch<mailto:Yves.Revaz_at_epfl.ch>
  SWITZERLAND                  Web : http://people.epfl.ch/yves.revaz<https://emea01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fpeople.epfl.ch%2Fyves.revaz&data=02%7C01%7Ccrs07%40mail.aub.edu%7C853708b765564ae8bc4108d530539995%7Cc7ba5b1a41b643e9a1206ff654ada137%7C1%7C0%7C636468057989353575&sdata=tS%2Fmf4BJPSBfg0%2FBM2SyYLRNli7Gj1x4wFqxXFxj5PE%3D&reserved=0>
---------------------------------------------------------------------
--
---------------------------------------------------------------------
  Dr. Yves Revaz
  Laboratory of Astrophysics
  Ecole Polytechnique Fédérale de Lausanne (EPFL)
  Observatoire de Sauverny     Tel : +41 22 379 24 28<tel:+41%2022%20379%2024%2028>
  51. Ch. des Maillettes       Fax : +41 22 379 22 05<tel:+41%2022%20379%2022%2005>
  1290 Sauverny             e-mail : Yves.Revaz_at_epfl.ch<mailto:Yves.Revaz_at_epfl.ch>
  SWITZERLAND                  Web : http://people.epfl.ch/yves.revaz<https://emea01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fpeople.epfl.ch%2Fyves.revaz&data=02%7C01%7Ccrs07%40mail.aub.edu%7C9754aba657074cefbbb408d530567fe3%7Cc7ba5b1a41b643e9a1206ff654ada137%7C1%7C0%7C636468070480979364&sdata=YmBtr2k4vNg9nIChxiLtRJDddeyUD73qJ%2Bqp2BgyYP0%3D&reserved=0>
---------------------------------------------------------------------
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
minimalist_at_MPA-Garching.MPG.de<mailto:minimalist_at_MPA-Garching.MPG.de> with a subject of:  unsubscribe gadget-list
A web-archive of this mailing list is available here:
http://www.mpa-garching.mpg.de/gadget/gadget-list<https://emea01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.mpa-garching.mpg.de%2Fgadget%2Fgadget-list&data=02%7C01%7Ccrs07%40mail.aub.edu%7C9754aba657074cefbbb408d530567fe3%7Cc7ba5b1a41b643e9a1206ff654ada137%7C1%7C0%7C636468070480979364&sdata=GudH7%2FNzJQawl1qywJAxvnnc7a92O3SSLpz3RHp6IgA%3D&reserved=0>
Received on 2017-11-28 10:10:23

This archive was generated by hypermail 2.3.0 : 2023-01-10 10:01:32 CET