Re: Help to build Gadget-2 on OpenBSD machine.

From: Christer Eriksson <agkbill_at_gmail.com>
Date: Fri, 16 Dec 2011 08:06:59 +0100

Dear Christian and Boris,

Thank you for the help!

I managed to build Gadget, got a executable Gadget2 file. Have not run any
simulations yet but it looks ok.


The reason that nothing at all happen with my first try was "make" utility
in OpenBSD. OpenBSD did have "gmake" as package so I could just do "pkg_add
-v gmake" and then I had gmake.

I also replaced FFTW 3.x with 2.x

First try to build did not work. Then I thought that if make in OpenBSD was
made with there make and not gmake maybe that was the problem. All need to
be made with the same gmake.

So I uninstalled FFTW, MPICH and also GSL that I installed using OpenBSD
packaged.

Downloaded GSL source, then I build and installed everything with gmake.

That was the trick.

The small test I did with one of the examples showed that Gadget2 had
detected my four CPU, then it show a error for something wrong in the
header.

Well, now time for next step, to get some simulations running.

Thank you for help!

Best regards,
/Christer



On Thu, Dec 15, 2011 at 10:45 AM, Boris Rozenshteyn <rozboris_at_gmail.com>wrote:

> Based on a brief googling, I can suppose that you need to run gmake
> instead of make on OpenBSD. Please, try and sorry, if it won't help.
>
> Regards,
> Boris Rozenshteyn
>
>
>
> On Thu, Dec 15, 2011 at 1:33 PM, Christian Schultz <
> schultz.christian_at_gmail.com> wrote:
>
>> The public version of Gadget2 is not compatible with FFTW version 3.x, so
>> you will have to use version 2.x instead (the library interfaces changed).
>> This is not your problem however. Can you post the whole makefile (and also
>> the line numbers)?
>>
>> Christian Schultz
>>
>>
>> Den 15/12/2011 kl. 10.08 skrev Christer Eriksson:
>>
>> Dear Gadget-2 users,
>>
>>
>> Would need help to get Gadget-2 up and running. I do not manage to get it
>> to build.
>>
>>
>> I am working on a project with the goal to generate a audio experience
>> from the interaction of cosmological objects.
>>
>>
>> To generate the raw date I bought a used SUN Sunfire V440 server.
>>
>> I have installed OpenBSD as operation system and are now trying to get
>> Gadget-2 up and running.
>>
>>
>> I believe that I successfully installed MPICH, GSL, and FFTW.
>>
>>
>> Background my setup.
>>
>>
>> Computer, SUN, Sunfire V440 with 4 UltraSPARC IIIi, 1.593 GHz and 16 GB
>> memory.
>>
>> OpenBSD 5.0, sparc64.
>>
>>
>> MPICH I downloaded from
>> http://www.mcs.anl.gov/research/projects/mpich2/downloads/index.php?s=downloads
>>
>> "mpich2-1.5a1.tar.gz" (MPICH2-1.4.1p1 did not compile ok)
>>
>>
>> GSL I used the one supplied by OpenBSD, "gsl-1.15.tgz" from
>> ftp://ftp.eu.openbsd.org/pub/OpenBSD/5.0/packages/sparc64/gsl-1.15.tgz
>>
>>
>> FFTW I downloaded from http://fftw.org/download.html
>>
>> "fftw-3.3.tar.gz"
>>
>>
>> hdf5 I do not think that I need.
>>
>>
>>
>> --------------------------------------------------------------
>>
>>
>> MPICH is installed in /home/christer/mpich2-install
>>
>> with, bin etc include lib sbin share
>>
>>
>> GSL and FFTW are in /usr/local.
>>
>> /usr/local/lib
>>
>> X11 libcharset.a libfftw3_mpi.la
>> libgettextsrc.la libgslcblas.la libidn.la
>>
>> charset.alias libcharset.la libgettextlib.la
>> libgettextsrc.so.3.0 libgslcblas.so.1.0 libidn.so.17.0
>>
>> gettext libcharset.so.1.1 libgettextlib.so.3.0
>> libgsl.a libiconv.a libintl.a
>>
>> libasprintf.a libfftw3.a libgettextpo.a
>> libgsl.la libiconv.la libintl.la
>>
>> libasprintf.la libfftw3.la libgettextpo.la
>> libgsl.so.12.0 libiconv.so.6.0 libintl.so.5.0
>>
>> libasprintf.so.1.0 libfftw3_mpi.a libgettextpo.so.4.0
>> libgslcblas.a libidn.a pkgconfig
>>
>>
>>
>> /usr/local/include
>>
>> autosprintf.h fftw3.f gettext-po.h idn-free.h
>> libcharset.h pr29.h tld.h
>>
>> fftw3-mpi.f03 fftw3.f03 gsl idn-int.h
>> libintl.h punycode.h
>>
>> fftw3-mpi.h fftw3.h iconv.h idna.h
>> localcharset.h stringprep.h
>>
>>
>>
>> -------------------------------------------------------------------------
>>
>>
>> Well, this is how far I have managed. Building and installing MPICH, GSL
>> and FFTW.
>>
>>
>> In /home/christer/Gadget-2.0.7/Gadget2 I edit the Makefile
>>
>>
>>
>>
>>
>> This is the first part of the Makefile.
>>
>>
>>
>> #----------------------------------------------------------------------
>>
>> # From the list below, please activate/deactivate the options that
>>
>> # apply to your run. If you modify any of these options, make sure
>>
>> # that you recompile the whole code by typing "make clean; make".
>>
>> #
>>
>> # Look at end of file for a brief guide to the compile-time options.
>>
>> #----------------------------------------------------------------------
>>
>>
>>
>> #--------------------------------------- Basic operation mode of code
>>
>> OPT += -DPERIODIC
>>
>> OPT += -DUNEQUALSOFTENINGS
>>
>>
>>
>> #--------------------------------------- Things that are always
>> recommended
>>
>> OPT += -DPEANOHILBERT
>>
>> OPT += -DWALLCLOCK
>>
>>
>>
>> #--------------------------------------- TreePM Options
>>
>> OPT += -DPMGRID=128
>>
>> #OPT += -DPLACEHIGHRESREGION=3
>>
>> #OPT += -DENLARGEREGION=1.2
>>
>> #OPT += -DASMTH=1.25
>>
>> #OPT += -DRCUT=4.5
>>
>>
>>
>> #--------------------------------------- Single/Double Precision
>>
>> #OPT += -DDOUBLEPRECISION
>>
>> #OPT += -DDOUBLEPRECISION_FFTW
>>
>>
>>
>> #--------------------------------------- Time integration options
>>
>> OPT += -DSYNCHRONIZATION
>>
>> #OPT += -DFLEXSTEPS
>>
>> #OPT += -DPSEUDOSYMMETRIC
>>
>> #OPT += -DNOSTOP_WHEN_BELOW_MINTIMESTEP
>>
>> #OPT += -DNOPMSTEPADJUSTMENT
>>
>>
>>
>> #--------------------------------------- Output
>>
>> #OPT += -DHAVE_HDF5
>>
>> #OPT += -DOUTPUTPOTENTIAL
>>
>> #OPT += -DOUTPUTACCELERATION
>>
>> #OPT += -DOUTPUTCHANGEOFENTROPY
>>
>> #OPT += -DOUTPUTTIMESTEP
>>
>>
>>
>> #--------------------------------------- Things for special behaviour
>>
>> #OPT += -DNOGRAVITY
>>
>> #OPT += -DNOTREERND
>>
>> OPT += -DNOTYPEPREFIX_FFTW
>>
>> #OPT += -DLONG_X=60
>>
>> #OPT += -DLONG_Y=5
>>
>> #OPT += -DLONG_Z=0.2
>>
>> #OPT += -DTWODIMS
>>
>> #OPT += -DSPH_BND_PARTICLES
>>
>> #OPT += -DNOVISCOSITYLIMITER
>>
>> #OPT += -DCOMPUTE_POTENTIAL_ENERGY
>>
>> #OPT += -DLONGIDS
>>
>> #OPT += -DISOTHERM_EQS
>>
>> #OPT += -DADAPTIVE_GRAVSOFT_FORGAS
>>
>> #OPT += -DSELECTIVE_NO_GRAVITY=2+4+8+16
>>
>>
>> #--------------------------------------- Testing and Debugging options
>>
>> #OPT += -DFORCETEST=0.1
>>
>>
>>
>> #--------------------------------------- Glass making
>>
>> #OPT += -DMAKEGLASS=262144
>>
>>
>>
>>
>> #----------------------------------------------------------------------
>>
>> # Here, select compile environment for the target machine. This may need
>>
>> # adjustment, depending on your local system. Follow the examples to add
>>
>> # additional target platforms, and to get things properly compiled.
>>
>> #----------------------------------------------------------------------
>>
>>
>> #--------------------------------------- Select some defaults
>>
>>
>> CC = mpicc # sets the C-compiler
>>
>> OPTIMIZE = -O2 -Wall -g # sets optimization and warning flags
>>
>> MPICHLIB = -lmpich
>>
>>
>>
>> #--------------------------------------- Select target computer
>>
>>
>> SYSTYPE="MPA"
>>
>> #SYSTYPE="Mako"
>>
>> #SYSTYPE="Regatta"
>>
>> #SYSTYPE="RZG_LinuxCluster"
>>
>> #SYSTYPE="RZG_LinuxCluster-gcc"
>>
>> #SYSTYPE="OpteronMPA"
>>
>> #SYSTYPE="OPA-Cluster32"
>>
>> #SYSTYPE="OPA-Cluster64"
>>
>>
>>
>> #--------------------------------------- Adjust settings for target
>> computer
>>
>>
>> ifeq ($(SYSTYPE),"MPA")
>>
>> CC = /home/christer/mpich2-install/bin/mpicc
>>
>> OPTIMIZE = -O3 -Wall
>>
>> GSL_INCL = -I/usr/local/include
>>
>> GSL_LIBS = -L/usr/local/lib -Wl,"-R /usr/local/lib"
>>
>> FFTW_INCL= -I/usr/local/include
>>
>> FFTW_LIBS= -L/usr/local/lib
>>
>> MPICHLIB = -L/home/christer/mpich2-install/lib
>>
>> #HDF5INCL =
>>
>> #HDF5LIB = -lhdf5 -lz
>>
>> endif
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> When I do "sudo make" I get:
>>
>>
>> $ sudo make
>>
>> Password:
>>
>> "Makefile", line 101: Missing dependency operator
>>
>> "Makefile", line 111: Need an operator
>>
>> "Makefile", line 114: Missing dependency operator
>>
>> "Makefile", line 124: Need an operator
>>
>> "Makefile", line 127: Missing dependency operator
>>
>> "Makefile", line 137: Need an operator
>>
>> "Makefile", line 140: Missing dependency operator
>>
>> "Makefile", line 150: Need an operator
>>
>> "Makefile", line 153: Missing dependency operator
>>
>> "Makefile", line 163: Need an operator
>>
>> "Makefile", line 166: Missing dependency operator
>>
>> "Makefile", line 176: Need an operator
>>
>> "Makefile", line 179: Missing dependency operator
>>
>> "Makefile", line 188: Need an operator
>>
>> "Makefile", line 191: Missing dependency operator
>>
>> "Makefile", line 200: Need an operator
>>
>> "Makefile", line 203: Missing dependency operator
>>
>> "Makefile", line 206: Need an operator
>>
>> "Makefile", line 228: Missing dependency operator
>>
>> "Makefile", line 230: Need an operator
>>
>> "Makefile", line 231: Missing dependency operator
>>
>> "Makefile", line 233: Need an operator
>>
>> "Makefile", line 235: Need an operator
>>
>> "Makefile", line 236: Need an operator
>>
>> Fatal errors encountered -- cannot continue
>>
>> $
>>
>>
>>
>>
>>
>> Any idea what I made for mistake?
>>
>>
>> All input would be most appreciated.
>>
>>
>> Best regards,
>>
>> /Christer
>>
>>
>>
>> Christer Eriksson
>>
>> Sweden
>>
>>
>> agkbill_at_gmail.com
>>
>>
>> -----------------------------------------------------------
>>
>> If you wish to unsubscribe from this mailing, send mail to
>> 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
>>
>>
>>
>>
>> -----------------------------------------------------------
>>
>> If you wish to unsubscribe from this mailing, send mail to
>> 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
>>
>>
>
>
> -----------------------------------------------------------
>
> If you wish to unsubscribe from this mailing, send mail to
> 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
>
>
Received on 2011-12-16 08:07:01

This archive was generated by hypermail 2.3.0 : 2014-03-18 17:20:52 CET