Skip to content

John

Forum Replies Created

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • John
    Member

    Hi Thomas,rnI reinstalled “make” and “gcc” without errors. Then run “make” again. It is working. Thanks a lot for the help from you and Mathias.rnJohnrn

    John
    Member

    Hi Thomas,rnI removed minw64, Cygwin and OpenLB, reinstalled Cygwin and OpenLB. There are extraction errors (Unable to extract /usr/bin/ — corrrupt package?””) during the installation of “make” and “gcc”. Click “OK” the installation will continue and the installation was finished.rnrnRunning make produces permission error, see the outputs below. The folder “Temp” has all the rwx permissions. I also changed the permission of folder “Local” using “chmod –R 777”. But it does not fix the problem. Thanks,rnrnFolder “Temp” permission:rndrwxrwxrwx 1 0 Mar 17 14:54 TemprnrnOutputs error:rnrn$ makernCreate dependencies for cylinder2d.cpprnCompile cylinder2d.cpprng++ -DOLB_PRECOMPILED -O3 -Wall -std=c++0x -I../../src -I../../src/ -I../../src/external -c cylinder2d.cpp -o /cygdrive/d/Research01/SRV_resonance/LBcode/OpenLB/olb-1.0r0/examples/cylinder2d/cylinder2d.orncc1plus: fatal error: can’t open ‘/cygdrive/d/Users/204052~1/AppData/Local/Temp/ccVp8J3H.s’ for writing: Permission deniedrncompilation terminated.rnMakefile:63: recipe for target ‘/cygdrive/d/Research01/SRV_resonance/LBcode/OpenLB/olb-1.0r0/examples/cylinder2d/cylinder2d.o’ failedrnmake: *** [/cygdrive/d/Research01/SRV_resonance/LBcode/OpenLB/olb-1.0r0/examples/cylinder2d/cylinder2d.o] Error 1rnrn

    John
    Member

    Hi Mathias,rnThe errors are similar for solution 1/ shown below . Thank you.rnrn$ make cleanbuildrnClean olb mainrnmake[1]: Entering directory `/cygdrive/d/Research01/SRV_resonance/LBcode/OpenLB/olb-1.0r0’rn


    rn– Clean object, dependencies and library files in ´precompiled’rn


    rn


    rn– Entering src/boundary (clean)rnmake[2]: Entering directory `/cygdrive/d/Research01/SRV_resonance/LBcode/OpenLB/olb-1.0r0/src/boundary’rnClean rubbish filesrnClean object filesrnClean dependencies filesrn…….rn…….rnrn$ make cleanrnClean rubbish filesrnClean object filesrnClean dependencies filesrnrn$ makernCreate dependencies for cylinder2d.cpprnCompile cylinder2d.cpprng++ -DOLB_PRECOMPILED -O3 -Wall -std=c++0x -I../../src -I../../src/ -I../../src/external -c cylinder2d.cpp -o /cygdrive/d/Research01/SRV_resonance/LBcode/OpenLB/olb-1.0r0/examples/cylinder2d/cylinder2d.ornAssembler messages:rnFatal error: can’t create /cygdrive/d/Research01/SRV_resonance/LBcode/OpenLB/olb-1.0r0/examples/cylinder2d/cylinder2d.o: No such file or directoryrnmake: *** [/cygdrive/d/Research01/SRV_resonance/LBcode/OpenLB/olb-1.0r0/examples/cylinder2d/cylinder2d.o] Error 1rn

    John
    Member

    Hi Mathias,rnBelow are the errors outputs of solution 1/ and 2/: Thanks,rnrnSolution 1/ Outputs:rnrn$ makernCreate dependencies for cylinder2d.cpprnCompile cylinder2d.cpprng++ -DOLB_PRECOMPILED -O3 -Wall -std=c++0x -I../../src -I../../src/ -I../../src/external -c cylinder2d.cpp -o /cygdrive/d/Research01/SRV_resonance/LBcode/OpenLB/olb-1.0r0/examples/cylinder2d/cylinder2d.ornAssembler messages:rnFatal error: can’t create /cygdrive/d/Research01/SRV_resonance/LBcode/OpenLB/olb-1.0r0/examples/cylinder2d/cylinder2d.o: No such file or directoryrnmake: *** [/cygdrive/d/Research01/SRV_resonance/LBcode/OpenLB/olb-1.0r0/examples/cylinder2d/cylinder2d.o] Error 1rnrnrnSolution 2/ Outputs:rnrn$ makernCreate dependencies for cylinder2d.cpprnCompile cylinder2d.cpprng++ -DOLB_PRECOMPILED -O3 -Wall -std=c++0x -I../../src -I../../src/ -I../../src/external -c cylinder2d.cpp -o /cygdrive/d/Research01/SRV_resonance/LBcode/OpenLB/olb-1.0r0/examples/cylinder2d/cylinder2d.ornIn file included from ../../src/core/units.h:38:0,rn from ../../src/functors/blockBaseF3D.h:31,rn from ../../src/functors/superBaseF3D.h:30,rn from ../../src/functors/indicator/indicatorBaseF3D.h:33,rn from ../../src/functors/indicator/indicatorF3D.h:28,rn from ../../src/functors/analyticalF.h:31,rn from ../../src/core/blockLatticeStructure2D.h:38,rn from ../../src/boundary/boundaryCondition2D.h:29,rn from ../../src/boundary/boundary2D.h:28,rn from ../../src/olb2D.h:1,rn from cylinder2d.cpp:41:rn../../src/core/singleton.h: In member function ‘void olb::singleton::Directories::createDirectory(std::__cxx11::string)’:rn../../src/core/singleton.h:104:38: error: no matching function for call to ‘stat::stat(const char*, stat*)’rn if (stat(path.c_str(), &statbuf) != 0) {rn ^rnIn file included from C:/TDM-GCC-64/x86_64-w64-mingw32/include/wchar.h:384:0,rn from C:/TDM-GCC-64/lib/gcc/x86_64-w64-mingw32/5.1.0/include/c++/cwchar:44,rn from C:/TDM-GCC-64/lib/gcc/x86_64-w64-mingw32/5.1.0/include/c++/bits/postypes.h:40,rn from C:/TDM-GCC-64/lib/gcc/x86_64-w64-mingw32/5.1.0/include/c++/iosfwd:40,rn from C:/TDM-GCC-64/lib/gcc/x86_64-w64-mingw32/5.1.0/include/c++/ios:38,rn from C:/TDM-GCC-64/lib/gcc/x86_64-w64-mingw32/5.1.0/include/c++/ostream:38,rn from C:/TDM-GCC-64/lib/gcc/x86_64-w64-mingw32/5.1.0/include/c++/iostream:39,rn from ../../src/core/olbDebug.h:28,rn from ../../src/core/cell.h:30,rn from ../../src/core/blockLatticeStructure2D.h:31,rn from ../../src/boundary/boundaryCondition2D.h:29,rn from ../../src/boundary/boundary2D.h:28,rn from ../../src/olb2D.h:1,rn from cylinder2d.cpp:41:rnC:/TDM-GCC-64/x86_64-w64-mingw32/include/_mingw_stat64.h:34:10: note: candidate: stat::stat()rn struct stat {rn ^rnC:/TDM-GCC-64/x86_64-w64-mingw32/include/_mingw_stat64.h:34:10: note: candidate expects 0 arguments, 2 providedrnC:/TDM-GCC-64/x86_64-w64-mingw32/include/_mingw_stat64.h:34:10: note: candidate: constexpr stat::stat(const stat&)rnC:/TDM-GCC-64/x86_64-w64-mingw32/include/_mingw_stat64.h:34:10: note: candidate expects 1 argument, 2 providedrnC:/TDM-GCC-64/x86_64-w64-mingw32/include/_mingw_stat64.h:34:10: note: candidate: constexpr stat::stat(stat&&)rnC:/TDM-GCC-64/x86_64-w64-mingw32/include/_mingw_stat64.h:34:10: note: candidate expects 1 argument, 2 providedrnmake: *** [/cygdrive/d/Research01/SRV_resonance/LBcode/OpenLB/olb-1.0r0/examples/cylinder2d/cylinder2d.o] Error 1

    John
    Member

    Hi Mathias,rnI commented the 5 lines shown below. The errors are similar (Also attached below). Where can I get a 64 bit singleton.h file? Thank you for your help,rn/*rn#ifdef _WIN32rn#include <direct.h>rn#else //f defined __linux__rn#include <sys/stat.h>rn#endifrn*/rnrnError outputs:rnrn$ makernCreate dependencies for cylinder2d.cpprnCompile cylinder2d.cpprng++ -DOLB_PRECOMPILED -O3 -Wall -std=c++0x -I../../src -I../../src/ -I../../src/external -c cylinder2d.cpp -o /cygdrive/d/Research01/SRV_resonance/LBcode/OpenLB/olb-1.0r0/examples/cylinder2d/cylinder2d.ornIn file included from ../../src/core/units.h:38:0,rn from ../../src/functors/blockBaseF3D.h:31,rn from ../../src/functors/superBaseF3D.h:30,rn from ../../src/functors/indicator/indicatorBaseF3D.h:33,rn from ../../src/functors/indicator/indicatorF3D.h:28,rn from ../../src/functors/analyticalF.h:31,rn from ../../src/core/blockLatticeStructure2D.h:38,rn from ../../src/boundary/boundaryCondition2D.h:29,rn from ../../src/boundary/boundary2D.h:28,rn from ../../src/olb2D.h:1,rn from cylinder2d.cpp:41:rn../../src/core/singleton.h: In member function ‘void olb::singleton::Directories::createDirectory(std::__cxx11::string)’:rn../../src/core/singleton.h:97:38: error: no matching function for call to ‘stat::stat(const char*, stat*)’rn if (stat(path.c_str(), &statbuf) != 0) {rn ^rnIn file included from C:/TDM-GCC-64/x86_64-w64-mingw32/include/wchar.h:384:0,rn from C:/TDM-GCC-64/lib/gcc/x86_64-w64-mingw32/5.1.0/include/c++/cwchar:44,rn from C:/TDM-GCC-64/lib/gcc/x86_64-w64-mingw32/5.1.0/include/c++/bits/postypes.h:40,rn from C:/TDM-GCC-64/lib/gcc/x86_64-w64-mingw32/5.1.0/include/c++/iosfwd:40,rn from C:/TDM-GCC-64/lib/gcc/x86_64-w64-mingw32/5.1.0/include/c++/ios:38,rn from C:/TDM-GCC-64/lib/gcc/x86_64-w64-mingw32/5.1.0/include/c++/ostream:38,rn from C:/TDM-GCC-64/lib/gcc/x86_64-w64-mingw32/5.1.0/include/c++/iostream:39,rn from ../../src/core/olbDebug.h:28,rn from ../../src/core/cell.h:30,rn from ../../src/core/blockLatticeStructure2D.h:31,rn from ../../src/boundary/boundaryCondition2D.h:29,rn from ../../src/boundary/boundary2D.h:28,rn from ../../src/olb2D.h:1,rn from cylinder2d.cpp:41:rnC:/TDM-GCC-64/x86_64-w64-mingw32/include/_mingw_stat64.h:34:10: note: candidate: stat::stat()rn struct stat {rn ^rnC:/TDM-GCC-64/x86_64-w64-mingw32/include/_mingw_stat64.h:34:10: note: candidate expects 0 arguments, 2 providedrnC:/TDM-GCC-64/x86_64-w64-mingw32/include/_mingw_stat64.h:34:10: note: candidate: constexpr stat::stat(const stat&)rnC:/TDM-GCC-64/x86_64-w64-mingw32/include/_mingw_stat64.h:34:10: note: candidate expects 1 argument, 2 providedrnC:/TDM-GCC-64/x86_64-w64-mingw32/include/_mingw_stat64.h:34:10: note: candidate: constexpr stat::stat(stat&&)rnC:/TDM-GCC-64/x86_64-w64-mingw32/include/_mingw_stat64.h:34:10: note: candidate expects 1 argument, 2 providedrnIn file included from ../../src/core/units.h:38:0,rn from ../../src/functors/blockBaseF3D.h:31,rn from ../../src/functors/superBaseF3D.h:30,rn from ../../src/functors/indicator/indicatorBaseF3D.h:33,rn from ../../src/functors/indicator/indicatorF3D.h:28,rn from ../../src/functors/analyticalF.h:31,rn from ../../src/core/blockLatticeStructure2D.h:38,rn from ../../src/boundary/boundaryCondition2D.h:29,rn from ../../src/boundary/boundary2D.h:28,rn from ../../src/olb2D.h:1,rn from cylinder2d.cpp:41:rn../../src/core/singleton.h:99:27: error: ‘mkdir’ was not declared in this scopern mkdir(path.c_str());rn ^rnmake: *** [/cygdrive/d/Research01/SRV_resonance/LBcode/OpenLB/olb-1.0r0/examples/cylinder2d/cylinder2d.o] Error 1

Viewing 5 posts - 1 through 5 (of 5 total)