[MBDyn-users] successful compilation of MBDyn-1.5.0 on Windows XP + Cygwin-1.7.16

Pierangelo Masarati masarati at aero.polimi.it
Fri Aug 31 16:39:44 CEST 2012


On 08/31/2012 01:26 PM, Rix, Patrick wrote:
> Hi Pierangelo,
>
> I wanted to give feedback about the compilation of the new MBDyn-1.5.0  release.
> I successfully compiled the package on my system which is:
>
>      Platform:    Windows XP(SP3) + Cygwin-1.7.16
>      Machine:    CPU: Intel Core 2 Quad Q9659 @ 3GHz / RAM: 3.25GB
>      Compiler:    GCC-4.5.3  +  gfortran-4.5.3
>      Debugger:    GDB-7.3.50
>      AutoBuildSys:    autobuild-5.3-1, autoconf-10.1, automake-4.10
>
>
> Used configure-command was:      ./configure  --with-rt=no
>
>
> Optional / additional packages on my system that were detected by configure:
> ·         NetCDF-4.2.1.1-1 (coming along with Cygwin)
> ·         HDF5-1.8.9-1  (coming along with Cygwin)
> ·         LAPACK-3.4.1-1 [+BLAS] (coming along with Cygwin)
> ·         ARPACK-3.1.0-1  (coming along with Cygwin)
> ·         SuiteSparse-3.7.0 (external sparse-solver-package including UMFPACK-5.5.2, KLU-1.1.3, AMD, COLAMD, CCOLAMD, CAMD, CHOLMOD, BTF)
>
>
> Resulting EXECTUABLE   mbdyn-1.5.0/mbdyn/.libs/mbdyn.exe   has a SIZE of   ~6MB / ~50MB  when stripped / with Debug-Info.
>
>
> PROBLEMS: running configure without any option gave the following ERROR during make stage:
> ------------------
> ...
> /bin/sh ../../libtool --tag=CXX    --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../include -I../../include  -I./../../include  -I./../../libraries/libmbc  -I./../../libraries/libmbutil  -I./../../libraries/libmbmath  -I./../../libraries/libmbwrap  -I./../../libraries/libann  -I./../../mbdyn  -I./../../mbdyn/base  -I./../../mbdyn/struct  -I./../../mbdyn/aero  -I./../../mbdyn/elec  -I./../../mbdyn/thermo  -I./../../mbdyn/hydr  -I./../../modules       -g -O2 -MT rtposixsolver.lo -MD -MP -MF .deps/rtposixsolver.Tpo -c -o rtposixsolver.lo rtposixsolver.cc
> libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I../../include -I../../include -I./../../include -I./../../libraries/libmbc -I./../../libraries/libmbutil -I./../../libraries/libmbmath -I./../../libraries/libmbwrap -I./../../libraries/libann -I./../../mbdyn -I./../../mbdyn/base -I./../../mbdyn/struct -I./../../mbdyn/aero -I./../../mbdyn/elec -I./../../mbdyn/thermo -I./../../mbdyn/hydr -I./../../modules -g -O2 -MT rtposixsolver.lo -MD -MP -MF .deps/rtposixsolver.Tpo -c rtposixsolver.cc  -DDLL_EXPORT -DPIC -o .libs/rtposixsolver.o
> rtposixsolver.cc: In member function 'virtual void RTPOSIXSolver::Setup()':
> rtposixsolver.cc:94:3: error: 'cpu_set_t' was not declared in this scope
> rtposixsolver.cc:94:13: error: expected ';' before 'cpuset'
> rtposixsolver.cc:96:13: error: 'cpuset' was not declared in this scope
> rtposixsolver.cc:96:19: error: 'CPU_ZERO' was not declared in this scope
> rtposixsolver.cc:99:25: error: 'CPU_SET' was not declared in this scope
> rtposixsolver.cc:103:54: error: 'sched_setaffinity' was not declared in this scope
> Makefile:653: recipe for target `rtposixsolver.lo' failed
> make[2]: *** [rtposixsolver.lo] Error 1
> make[2]: Leaving directory `/cygdrive/c/_WORK.MBDyn/mbdyn-1.5.0__BUILDS/mbdyn-1.5.0/mbdyn/base'
> Makefile:517: recipe for target `all-recursive' failed
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/cygdrive/c/_WORK.MBDyn/mbdyn-1.5.0__BUILDS/mbdyn-1.5.0/mbdyn'
> Makefile:429: recipe for target `all-recursive' failed
> make: *** [all-recursive] Error 1

Thank you.  Apparently, your system does not support sched_affinity(); 
I'm modifying configure to detect this and avoid support for CPU 
affinity accordingly.  Not a showstopper, I presume.

Cheers, p.

-- 
Pierangelo Masarati
Associate Professor
Dipartimento di Ingegneria Aerospaziale
Politecnico di Milano


More information about the MBDyn-users mailing list