Hello,
I’m trying to compile palabos on a Mac Mini G4.
While version 1.5 works, I am unable to compile version 2.0.
I got the following output:
mini:~ utente$ cd /Users/utente/Desktop/palabos-v2.0r0/examples/showCases/cylinder2d
mini:cylinder2d utente$ make
python ../../../scons/scons.py -j 6 -f ../../../SConstruct palabosRoot=../../.. projectFiles="cylinder2d.cpp" optimize=true debug=false profile=false MPIparallel=false SMPparallel=false usePOSIX=true serialCXX=g++ parallelCXX=mpicxx compileFlags="-Wall -Wnon-virtual-dtor -Wno-deprecated-declarations -DPLB_MAC_OS_X" linkFlags="" optimFlags="-O3" debugFlags="-g" profileFlags="-pg" srcPaths="" libraryPaths="" includePaths="" libraries=""
scons: Reading SConscript files ...
scons: done reading SConscript files.
scons: Building targets ...
g++ -o cylinder2d.o -c -Wall -Wnon-virtual-dtor -Wno-deprecated-declarations -DPLB_MAC_OS_X -O3 -DPLB_USE_POSIX -I/Users/utente/Desktop/palabos-v2.0r0/src -I/Users/utente/Desktop/palabos-v2.0r0/externalLibraries cylinder2d.cpp
g++ -o /Users/utente/Desktop/palabos-v2.0r0/src/dataProcessors/metaStuffWrapper2D.o -c -Wall -Wnon-virtual-dtor -Wno-deprecated-declarations -DPLB_MAC_OS_X -O3 -DPLB_USE_POSIX -I/Users/utente/Desktop/palabos-v2.0r0/src -I/Users/utente/Desktop/palabos-v2.0r0/externalLibraries /Users/utente/Desktop/palabos-v2.0r0/src/dataProcessors/metaStuffWrapper2D.cpp
In file included from /Users/utente/Desktop/palabos-v2.0r0/src/dataProcessors/dataInitializerFunctional2D.h:34,
from /Users/utente/Desktop/palabos-v2.0r0/src/boundaryCondition/bounceBackModels2D.h:33,
from /Users/utente/Desktop/palabos-v2.0r0/src/boundaryCondition/headers2D.h:43,
from /Users/utente/Desktop/palabos-v2.0r0/src/palabos2D.h:30,
from cylinder2d.cpp:32:
/Users/utente/Desktop/palabos-v2.0r0/externalLibraries/sitmo/prng_engine.hpp:161: error: integer constant is too large for ‘long’ type
/Users/utente/Desktop/palabos-v2.0r0/externalLibraries/sitmo/prng_engine.hpp:162: error: integer constant is too large for ‘long’ type
/Users/utente/Desktop/palabos-v2.0r0/externalLibraries/sitmo/prng_engine.hpp:163: error: integer constant is too large for ‘long’ type
/Users/utente/Desktop/palabos-v2.0r0/externalLibraries/sitmo/prng_engine.hpp:164: error: integer constant is too large for ‘long’ type
/Users/utente/Desktop/palabos-v2.0r0/externalLibraries/sitmo/prng_engine.hpp:318: error: integer constant is too large for ‘long’ type
/Users/utente/Desktop/palabos-v2.0r0/externalLibraries/sitmo/prng_engine.hpp:364: error: integer constant is too large for ‘long’ type
In file included from /Users/utente/Desktop/palabos-v2.0r0/src/dataProcessors/dataInitializerFunctional2D.h:34,
from /Users/utente/Desktop/palabos-v2.0r0/src/dataProcessors/metaStuffWrapper2D.cpp:27:
/Users/utente/Desktop/palabos-v2.0r0/externalLibraries/sitmo/prng_engine.hpp:161: error: integer constant is too large for ‘long’ type
/Users/utente/Desktop/palabos-v2.0r0/externalLibraries/sitmo/prng_engine.hpp:162: error: integer constant is too large for ‘long’ type
/Users/utente/Desktop/palabos-v2.0r0/externalLibraries/sitmo/prng_engine.hpp:163: error: integer constant is too large for ‘long’ type
/Users/utente/Desktop/palabos-v2.0r0/externalLibraries/sitmo/prng_engine.hpp:164: error: integer constant is too large for ‘long’ type
/Users/utente/Desktop/palabos-v2.0r0/externalLibraries/sitmo/prng_engine.hpp:318: error: integer constant is too large for ‘long’ type
/Users/utente/Desktop/palabos-v2.0r0/externalLibraries/sitmo/prng_engine.hpp:364: error: integer constant is too large for ‘long’ type
g++ -o /Users/utente/Desktop/palabos-v2.0r0/src/dataProcessors/metaStuffWrapper3D.o -c -Wall -Wnon-virtual-dtor -Wno-deprecated-declarations -DPLB_MAC_OS_X -O3 -DPLB_USE_POSIX -I/Users/utente/Desktop/palabos-v2.0r0/src -I/Users/utente/Desktop/palabos-v2.0r0/externalLibraries /Users/utente/Desktop/palabos-v2.0r0/src/dataProcessors/metaStuffWrapper3D.cpp
In file included from /Users/utente/Desktop/palabos-v2.0r0/src/dataProcessors/dataInitializerFunctional3D.h:34,
from /Users/utente/Desktop/palabos-v2.0r0/src/dataProcessors/metaStuffWrapper3D.cpp:27:
/Users/utente/Desktop/palabos-v2.0r0/externalLibraries/sitmo/prng_engine.hpp:161: error: integer constant is too large for ‘long’ type
/Users/utente/Desktop/palabos-v2.0r0/externalLibraries/sitmo/prng_engine.hpp:162: error: integer constant is too large for ‘long’ type
/Users/utente/Desktop/palabos-v2.0r0/externalLibraries/sitmo/prng_engine.hpp:163: error: integer constant is too large for ‘long’ type
/Users/utente/Desktop/palabos-v2.0r0/externalLibraries/sitmo/prng_engine.hpp:164: error: integer constant is too large for ‘long’ type
/Users/utente/Desktop/palabos-v2.0r0/externalLibraries/sitmo/prng_engine.hpp:318: error: integer constant is too large for ‘long’ type
/Users/utente/Desktop/palabos-v2.0r0/externalLibraries/sitmo/prng_engine.hpp:364: error: integer constant is too large for ‘long’ type
g++ -o /Users/utente/Desktop/palabos-v2.0r0/src/gridRefinement/boxLogic3D.o -c -Wall -Wnon-virtual-dtor -Wno-deprecated-declarations -DPLB_MAC_OS_X -O3 -DPLB_USE_POSIX -I/Users/utente/Desktop/palabos-v2.0r0/src -I/Users/utente/Desktop/palabos-v2.0r0/externalLibraries /Users/utente/Desktop/palabos-v2.0r0/src/gridRefinement/boxLogic3D.cpp
g++ -o /Users/utente/Desktop/palabos-v2.0r0/src/gridRefinement/couplingInterfaceGenerator3D.o -c -Wall -Wnon-virtual-dtor -Wno-deprecated-declarations -DPLB_MAC_OS_X -O3 -DPLB_USE_POSIX -I/Users/utente/Desktop/palabos-v2.0r0/src -I/Users/utente/Desktop/palabos-v2.0r0/externalLibraries /Users/utente/Desktop/palabos-v2.0r0/src/gridRefinement/couplingInterfaceGenerator3D.cpp
g++ -o /Users/utente/Desktop/palabos-v2.0r0/src/gridRefinement/octree.o -c -Wall -Wnon-virtual-dtor -Wno-deprecated-declarations -DPLB_MAC_OS_X -O3 -DPLB_USE_POSIX -I/Users/utente/Desktop/palabos-v2.0r0/src -I/Users/utente/Desktop/palabos-v2.0r0/externalLibraries /Users/utente/Desktop/palabos-v2.0r0/src/gridRefinement/octree.cpp
g++ -o /Users/utente/Desktop/palabos-v2.0r0/src/gridRefinement/octreeGridGenerator.o -c -Wall -Wnon-virtual-dtor -Wno-deprecated-declarations -DPLB_MAC_OS_X -O3 -DPLB_USE_POSIX -I/Users/utente/Desktop/palabos-v2.0r0/src -I/Users/utente/Desktop/palabos-v2.0r0/externalLibraries /Users/utente/Desktop/palabos-v2.0r0/src/gridRefinement/octreeGridGenerator.cpp
scons: *** [/Users/utente/Desktop/palabos-v2.0r0/src/dataProcessors/metaStuffWrapper2D.o] Error 1
scons: *** [/Users/utente/Desktop/palabos-v2.0r0/src/dataProcessors/metaStuffWrapper3D.o] Error 1
/Users/utente/Desktop/palabos-v2.0r0/src/gridRefinement/octreeGridGenerator.hh: In member function ‘plb::OctreeGridStructure plb::OctreeGridGenerator<T>::generateOctreeGridStructure()’:
/Users/utente/Desktop/palabos-v2.0r0/src/gridRefinement/octreeGridGenerator.hh:1660: error: call of overloaded ‘pow(int, int&)’ is ambiguous
/usr/include/architecture/ppc/math.h:467: note: candidates are: double pow(double, double)
/usr/include/c++/4.0.0/cmath:344: note: float std::pow(float, float)
/usr/include/c++/4.0.0/cmath:348: note: long double std::pow(long double, long double)
/usr/include/c++/4.0.0/cmath:352: note: double std::pow(double, int)
/usr/include/c++/4.0.0/cmath:356: note: float std::pow(float, int)
/usr/include/c++/4.0.0/cmath:360: note: long double std::pow(long double, int)
/Users/utente/Desktop/palabos-v2.0r0/src/gridRefinement/octreeGridGenerator.hh:1693: error: call of overloaded ‘pow(int, int&)’ is ambiguous
/usr/include/architecture/ppc/math.h:467: note: candidates are: double pow(double, double)
/usr/include/c++/4.0.0/cmath:344: note: float std::pow(float, float)
/usr/include/c++/4.0.0/cmath:348: note: long double std::pow(long double, long double)
/usr/include/c++/4.0.0/cmath:352: note: double std::pow(double, int)
/usr/include/c++/4.0.0/cmath:356: note: float std::pow(float, int)
/usr/include/c++/4.0.0/cmath:360: note: long double std::pow(long double, int)
scons: *** [/Users/utente/Desktop/palabos-v2.0r0/src/gridRefinement/octreeGridGenerator.o] Error 1
scons: *** [cylinder2d.o] Error 1
scons: building terminated because of errors.
make: *** [compile] Error 2
Any idea to solve this problem will be greatly appreciated!
Thank you very much in advance,
Davide