|
[Sponsors] |
July 16, 2008, 06:31 |
Problems with wmake
|
#1 |
Senior Member
|
Hi to ervybody!
I have this problem with wmake: when I try to recompile something, i write wmake, but I get this message: ivan@bombadil:~/OpenFOAM/ivan-1.4.1/run$ wmake -bash: /opt/OpenFOAM/OpenFOAM-1.4.1/wmake/wmake: Permission denied What's happen? Thank you! |
|
July 16, 2008, 08:24 |
Probably a permissions problem
|
#2 |
Senior Member
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,715
Rep Power: 40 |
Probably a permissions problem if you are in a different group than the owner.
Try "chmod -R a+rX DIRNAME" as the owner (eg, root) and see if that fixes it. Note that 'X' is in uppercase - this will only add execution permission if it is already set. |
|
August 13, 2008, 10:44 |
Dear all!
I m about to try
|
#3 |
Senior Member
Aram Amouzandeh
Join Date: Mar 2009
Location: Vienna, Vienna, Austria
Posts: 190
Rep Power: 17 |
Dear all!
I m about to try understanding OF and its structure and want to see how to compile a new library. Therefore, I copied the kEpsilon turbulence model to the user directory, modified it a bit and changed the name to mykEpsilon (see also 3rd OF training/workshop, Milano). When compiling with the command wmake libso i get the following message: linuxGccDPOpt/options:5: *** missing separator. Stop. /home/E202/aa/OpenFOAM/OpenFOAM-1.4.1/wmake/wmake: cannot make, file Make/linuxGccDPOpt/objectFiles was not created successfully I was not able to find any hint in the discussion forum so can anybody give me one?? Thanks a lot in advance! Aram |
|
August 14, 2008, 17:58 |
The EXE_INC and LIB_LIBS have
|
#4 |
Senior Member
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,419
Rep Power: 26 |
The EXE_INC and LIB_LIBS have to be one file or use '\' as continuation symbol. Check that you have '\' and no space after it.
|
|
August 18, 2008, 10:48 |
thx mattijs for your respons!
|
#5 |
Senior Member
Aram Amouzandeh
Join Date: Mar 2009
Location: Vienna, Vienna, Austria
Posts: 190
Rep Power: 17 |
thx mattijs for your respons!
i put the EXE_INC and LIB_LIBS in the same file and also used '\' as continuation symbol. The /Make/options file looks like this: mykEpsilon.C EXE_LIBS = $(FOAM_USER_LIBBIN)/mylibTurbulenceModel EXE_INC = \ -I$(LIB_SRC)/finiteVolume/lnInclude \ -I$(LIB_SRC)/meshTools/lnInclude \ -I$(LIB_SRC)/thermophysicalModels/basic/lnInclude \ -I$(LIB_SRC)/turbulenceModels/incompressible/lnInclude producing the following Make/linuxGccDPOpt/options file: # 1 "options" # 1 "<built-in>" # 1 "<command>" # 1 "options" mykEpsilon.C EXE_LIBS = $(FOAM_USER_LIBBIN)/mylibTurbulenceModel EXE_INC = -I$(LIB_SRC)/finiteVolume/lnInclude -I$(LIB_SRC)/meshTools/lnInclude -I$(LIB_SRC)/thermophysicalModels/basic/lnInclude -I$(LIB_SRC)/turbulenceModels/incompressible/lnInclude not separating the exe_inc paths. I've no idea why. Aram |
|
August 18, 2008, 15:01 |
The mykEpsilon.C should be in
|
#6 |
Senior Member
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,419
Rep Power: 26 |
The mykEpsilon.C should be in Make/files, not options. Check any other library.
|
|
August 19, 2008, 05:52 |
Hi everyone,
I encountered
|
#7 |
New Member
Roberto Biollo
Join Date: Mar 2009
Posts: 5
Rep Power: 17 |
Hi everyone,
I encountered the following problem using wmake and I don't have a clear understanding of it. Is perhaps the file gambitToFoam.C missing? (OF is installed on Ubuntu 7.04) Thanks a lot in advance! Roberto simulation@roberto-desktop:~/OpenFOAM/OpenFOAM-1.4.1/applications/utilities/mesh /conversion/gambitToFoam$ wmake Making dependency list for source file gambitToFoam.L SOURCE=gambitToFoam.L ; flex++ -f $SOURCE ; mv lex.yy.cc Make/linuxGccDPOpt/gamb itToFoam.C ; g++ -m32 -Dlinux -DDP -Wall -Wno-strict-aliasing -Wextra -Wno-unuse d-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-40 -IlnInclud e -I. -I/home/simulation/OpenFOAM/OpenFOAM-1.4.1/src/OpenFOAM/lnInclude -fPIC -pthread -c Make/linuxGccDPOpt/gambitToFoam.C -o Make/linuxGccDPOpt/gambitToFoam .o /bin/sh: flex++: not found mv: cannot stat `lex.yy.cc': No such file or directory g++: Make/linuxGccDPOpt/gambitToFoam.C: No such file or directory g++: no input files make: *** [Make/linuxGccDPOpt/gambitToFoam.o] Error 1 |
|
August 19, 2008, 07:02 |
thx mattijs! wmake compiles no
|
#8 |
Senior Member
Aram Amouzandeh
Join Date: Mar 2009
Location: Vienna, Vienna, Austria
Posts: 190
Rep Power: 17 |
thx mattijs! wmake compiles now, and producing plenty errors as it doesn t find header files ... I've to look at it.
thx again for your help! aram |
|
August 19, 2008, 12:07 |
dear all!!
now I try to imp
|
#9 |
Senior Member
Aram Amouzandeh
Join Date: Mar 2009
Location: Vienna, Vienna, Austria
Posts: 190
Rep Power: 17 |
dear all!!
now I try to implement a new bc rampedFixedValueFvPatchField, copied and adjusted from oscillatingFixedValueFvPatchField. after fixing some mistakes while compiling I get an error I'm not able to cope with (see command lines below). could anybody give me a clue?? thx very much in advance!! aram *********************************************** [aa@lws16 icoFoamRamped]$ ll total 44 -rw-r----- 1 aa e202 1048 2008-08-19 11:03 createFields.H drwxr-xr-x 4 aa e202 4096 2008-08-19 11:03 FoamX -rw-r----- 1 aa e202 3293 2008-08-19 11:03 icoFoamRamped.C drwxr-xr-x 2 aa e202 4096 2008-08-19 16:55 Make -rw-r----- 1 aa e202 1909 2008-08-19 11:31 oscillatingFixedValueFvPatchFieldsFwd.H -rw-r----- 1 aa e202 5782 2008-08-19 16:40 rampedFixedValueFvPatchField.C -rw-r----- 1 aa e202 6223 2008-08-19 16:38 rampedFixedValueFvPatchField.H -rw-r----- 1 aa e202 1727 2008-08-19 15:57 rampedFixedValueFvPatchFields.C -rw-r----- 1 aa e202 1867 2008-08-19 15:55 rampedFixedValueFvPatchFields.H [aa@lws16 icoFoamRamped]$ wmake Making dependency list for source file icoFoamRamped.C Making dependency list for source file rampedFixedValueFvPatchFields.C SOURCE=icoFoamRamped.C ; g++ -m32 -Dlinux -DDP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-40 -I/home/E202/aa/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude -IlnInclude -I. -I/home/E202/aa/OpenFOAM/OpenFOAM-1.4.1/src/OpenFOAM/lnInclude -fPIC -pthread -c $SOURCE -o Make/linuxGccDPOpt/icoFoamRamped.o SOURCE=rampedFixedValueFvPatchFields.C ; g++ -m32 -Dlinux -DDP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -O3 -DNoRepository -ftemplate-depth-40 -I/home/E202/aa/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude -IlnInclude -I. -I/home/E202/aa/OpenFOAM/OpenFOAM-1.4.1/src/OpenFOAM/lnInclude -fPIC -pthread -c $SOURCE -o Make/linuxGccDPOpt/rampedFixedValueFvPatchFields.o rampedFixedValueFvPatchField.C: In constructor 'Foam::rampedFixedValueFvPatchField<type>::rampedF ixedValueFvPatchField(const Foam::fvPatch&, const Foam::Field<type>&, const Foam::dictionary&) [with Type = double]': /home/E202/aa/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/fvPatchField.H: 132: instantiated from 'static Foam::tmp<foam::fvpatchfield<type> > Foam::fvPatchField<type>::adddictionaryConstructor ToTable<fvpatchfieldtype>::New (const Foam::fvPatch&, const Foam::DimensionedField<type,>&, const Foam::dictionary&) [with fvPatchFieldType = Foam::rampedFixedValueFvPatchField<double>, Type = double]' /home/E202/aa/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/fvPatchField.H: 132: instantiated from 'Foam::fvPatchField<type>::adddictionaryConstructo rToTable<fvpatchfieldtype>:: adddictionaryConstructorToTable(const Foam::word&) [with fvPatchFieldType = Foam::rampedFixedValueFvPatchField<double>, Type = double]' rampedFixedValueFvPatchFields.C:38: instantiated from here rampedFixedValueFvPatchField.C:101: error: no matching function for call to 'Foam::fixedValueFvPatchField<double>::fixedValueF vPatchField(const Foam::fvPatch&, const Foam::Field<double>&)' /home/E202/aa/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/fixedValueFvPat chField.C:87: note: candidates are: Foam::fixedValueFvPatchField<type>::fixedValueFvPa tchField(const Foam::fixedValueFvPatchField<type>&, const Foam::DimensionedField<type,>&) [with Type = double] /home/E202/aa/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/fixedValueFvPat chField.C:76: note: Foam::fixedValueFvPatchField<type>::fixedValueFvPa tchField(const Foam::fixedValueFvPatchField<type>&) [with Type = double] /home/E202/aa/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/fixedValueFvPat chField.C:66: note: Foam::fixedValueFvPatchField<type>::fixedValueFvPa tchField(const Foam::fixedValueFvPatchField<type>&, const Foam::fvPatch&, const Foam::DimensionedField<type,>&, const Foam::fvPatchFieldMapper&) [with Type = double] /home/E202/aa/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/fixedValueFvPat chField.C:53: note: Foam::fixedValueFvPatchField<type>::fixedValueFvPa tchField(const Foam::fvPatch&, const Foam::DimensionedField<type,>&, const Foam::dictionary&) [with Type = double] /home/E202/aa/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/fixedValueFvPat chField.C:41: note: Foam::fixedValueFvPatchField<type>::fixedValueFvPa tchField(const Foam::fvPatch&, const Foam::DimensionedField<type,>&) [with Type = double] rampedFixedValueFvPatchField.C: In constructor 'Foam::rampedFixedValueFvPatchField<type>::rampedF ixedValueFvPatchField(const Foam::fvPatch&, const Foam::Field<type>&, const Foam::dictionary&) [with Type = Foam::Vector<double>]': /home/E202/aa/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/fvPatchField.H: 132: instantiated from 'static Foam::tmp<foam::fvpatchfield<type> > Foam::fvPatchField<type>::adddictionaryConstructor ToTable<fvpatchfieldtype>::New (const Foam::fvPatch&, const Foam::DimensionedField<type,>&, const Foam::dictionary&) [with fvPatchFieldType = Foam::rampedFixedValueFvPatchField<foam::vector<do uble> >, Type = Foam::Vector<double>]' /home/E202/aa/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/fvPatchField.H: 132: instantiated from 'Foam::fvPatchField<type>::adddictionaryConstructo rToTable<fvpatchfieldtype>:: adddictionaryConstructorToTable(const Foam::word&) [with fvPatchFieldType = Foam::rampedFixedValueFvPatchField<foam::vector<do uble> >, Type = Foam::Vector<double>]' rampedFixedValueFvPatchFields.C:38: instantiated from here rampedFixedValueFvPatchField.C:101: error: no matching function for call to 'Foam::fixedValueFvPatchField<foam::vector<double> >::fixedValueFvPatchField(const Foam::fvPatch&, const Foam::Field<foam::vector<double> >&)' /home/E202/aa/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/fixedValueFvPat chField.C:87: note: candidates are: Foam::fixedValueFvPatchField<type>::fixedValueFvPa tchField(const Foam::fixedValueFvPatchField<type>&, const Foam::DimensionedField<type,>&) [with Type = Foam::Vector<double>] /home/E202/aa/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/fixedValueFvPat chField.C:76: note: Foam::fixedValueFvPatchField<type>::fixedValueFvPa tchField(const Foam::fixedValueFvPatchField<type>&) [with Type = Foam::Vector<double>] /home/E202/aa/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/fixedValueFvPat chField.C:66: note: Foam::fixedValueFvPatchField<type>::fixedValueFvPa tchField(const Foam::fixedValueFvPatchField<type>&, const Foam::fvPatch&, const Foam::DimensionedField<type,>&, const Foam::fvPatchFieldMapper&) [with Type = Foam::Vector<double>] /home/E202/aa/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/fixedValueFvPat chField.C:53: note: Foam::fixedValueFvPatchField<type>::fixedValueFvPa tchField(const Foam::fvPatch&, const Foam::DimensionedField<type,>&, const Foam::dictionary&) [with Type = Foam::Vector<double>] /home/E202/aa/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/fixedValueFvPat chField.C:41: note: Foam::fixedValueFvPatchField<type>::fixedValueFvPa tchField(const Foam::fvPatch&, const Foam::DimensionedField<type,>&) [with Type = Foam::Vector<double>] rampedFixedValueFvPatchField.C: In constructor 'Foam::rampedFixedValueFvPatchField<type>::rampedF ixedValueFvPatchField(const Foam::fvPatch&, const Foam::Field<type>&, const Foam::dictionary&) [with Type = Foam::SphericalTensor<double>]': /home/E202/aa/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/fvPatchField.H: 132: instantiated from 'static Foam::tmp<foam::fvpatchfield<type> > Foam::fvPatchField<type>::adddictionaryConstructor ToTable<fvpatchfieldtype>::New (const Foam::fvPatch&, const Foam::DimensionedField<type,>&, const Foam::dictionary&) [with fvPatchFieldType = Foam::rampedFixedValueFvPatchField<foam::spherical tensor<double> >, Type = Foam::SphericalTensor<double>]' /home/E202/aa/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/fvPatchField.H: 132: instantiated from 'Foam::fvPatchField<type>::adddictionaryConstructo rToTable<fvpatchfieldtype>:: adddictionaryConstructorToTable(const Foam::word&) [with fvPatchFieldType = Foam::rampedFixedValueFvPatchField<foam::spherical tensor<double> >, Type = Foam::SphericalTensor<double>]' rampedFixedValueFvPatchFields.C:38: instantiated from here rampedFixedValueFvPatchField.C:101: error: no matching function for call to 'Foam::fixedValueFvPatchField<foam::sphericaltenso r<double> >::fixedValueFvPatchField(const Foam::fvPatch&, const Foam::Field<foam::sphericaltensor<double> >&)' /home/E202/aa/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/fixedValueFvPat chField.C:87: note: candidates are: Foam::fixedValueFvPatchField<type>::fixedValueFvPa tchField(const Foam::fixedValueFvPatchField<type>&, const Foam::DimensionedField<type,>&) [with Type = Foam::SphericalTensor<double>] /home/E202/aa/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/fixedValueFvPat chField.C:76: note: Foam::fixedValueFvPatchField<type>::fixedValueFvPa tchField(const Foam::fixedValueFvPatchField<type>&) [with Type = Foam::SphericalTensor<double>] /home/E202/aa/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/fixedValueFvPat chField.C:66: note: Foam::fixedValueFvPatchField<type>::fixedValueFvPa tchField(const Foam::fixedValueFvPatchField<type>&, const Foam::fvPatch&, const Foam::DimensionedField<type,>&, const Foam::fvPatchFieldMapper&) [with Type = Foam::SphericalTensor<double>] /home/E202/aa/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/fixedValueFvPat chField.C:53: note: Foam::fixedValueFvPatchField<type>::fixedValueFvPa tchField(const Foam::fvPatch&, const Foam::DimensionedField<type,>&, const Foam::dictionary&) [with Type = Foam::SphericalTensor<double>] /home/E202/aa/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/fixedValueFvPat chField.C:41: note: Foam::fixedValueFvPatchField<type>::fixedValueFvPa tchField(const Foam::fvPatch&, const Foam::DimensionedField<type,>&) [with Type = Foam::SphericalTensor<double>] rampedFixedValueFvPatchField.C: In constructor 'Foam::rampedFixedValueFvPatchField<type>::rampedF ixedValueFvPatchField(const Foam::fvPatch&, const Foam::Field<type>&, const Foam::dictionary&) [with Type = Foam::SymmTensor<double>]': /home/E202/aa/OpenFOAM/OpenFOAM-1.4.1/src/finiteVolume/lnInclude/fvPatchField.H: 132: instantiated from 'static Foam::tmp<foam::fvpatchfield<type> > Foam::fvPatchField<type>::adddictionaryConstructor ToTable<fvpatchfieldtype>::New (const Foam::fvPatch&, const Foam::DimensionedField<type,>&, const Foam::dictionary&) [with fvPatchFieldType = Foam::rampedFixedValueFvPatchField<foam::symmtenso r<double> >, Type = Foam::SymmTensor<double>]' |
|
August 20, 2008, 07:31 |
problem solved!
aram
|
#10 |
Senior Member
Aram Amouzandeh
Join Date: Mar 2009
Location: Vienna, Vienna, Austria
Posts: 190
Rep Power: 17 |
problem solved!
aram |
|
August 20, 2008, 08:30 |
Hello all,
I've got exactly
|
#11 |
New Member
Maria Magdalena Poschner
Join Date: Mar 2009
Location: München, Germany
Posts: 4
Rep Power: 17 |
Hello all,
I've got exactly the same problem as Roberto, when recompiling the combustion library. I think it's not a problem of OpenFOAM itself. I think it arises from the flex++ package which must be treated in any way different by Ubuntu and by SUSE linux. But I have not yet a solution for that problem. Maybe there is someone who, has had the same problem with OF on Ubuntu. I would be very grateful to get any hint, what to do. Thanks a lot! Maria Magdalena |
|
June 27, 2013, 17:58 |
Problem with bash/su permission
|
#14 |
New Member
Arthur Piquet
Join Date: Mar 2013
Posts: 18
Rep Power: 13 |
Hi,
I have a problem for couple of weeks now. I created some utilities for OpenFOAM for my cases and I compiled them using wmake in 'sudo bash' permission. On some utilities (the one that I copy/paste from the library), it work perfectly. But for them that I downloaded, I need to be in 'sudo bash' mode to actually see the utilities and execute them. I can't also wmake my file in normal mode (no sudo bash) and the 'sudo su' doesn't work at all... It's kind of annoying because all the file that I create in bash mode are protected when I return in normal mode. I hope it's clear, english is not my mother tong... Thank you though! |
|
June 30, 2013, 08:34 |
|
#15 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Greetings Arthur,
OK, let's address the two issues at hand:
Best regards, Bruno
__________________
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Wmake as User | sven82 | OpenFOAM Installation | 3 | August 14, 2013 04:23 |
Wmake error | murasaki | OpenFOAM | 6 | August 9, 2010 15:03 |
Wmake problem | thumthae | OpenFOAM Installation | 12 | December 3, 2008 10:30 |
Anyone using distcc with wmake | kar | OpenFOAM | 2 | March 14, 2008 06:13 |
Problems while wmake | evgenii | OpenFOAM Pre-Processing | 3 | November 24, 2005 10:24 |