Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compiler error #4

Open
ZhongshengSang opened this issue Apr 25, 2018 · 16 comments
Open

Compiler error #4

ZhongshengSang opened this issue Apr 25, 2018 · 16 comments

Comments

@ZhongshengSang
Copy link

(1) I can not find the space package in step 4 ("How to compile?" page) even I install the exact same version with your LAMMPS;

(2) I can not understand the step 8 and could you help me in the specific commands that I should use?

(3) My compiling process was terminated because of lack of a file named "laminar.H" which confused me a lot.

Error code:
In step 5 and 7:
No rule to make target '../../lib/gpu/Makefile.lammps
Makefile:77: recipe for target 'shanghailinux' failed
make: *** [shanghailinux] Error 2

In step 9:
Error: binding 'comst Foam::Field' to reference of type 'Foam::scalarField& {aka Foam::Field}' discards qualifiers
scalarField& KWenYu = tKWenYu();
make: *** [make/linux64Gcc62DPInt320pt/ErgunWenYu/ErgunWenYu.o] Error 1

@JoshYEn
Copy link

JoshYEn commented May 1, 2018

I'm not the official developer of sediFoam. Just some suggestions.

  1. space package is already not available in LAMMPS 1feb14 ver. There're some detailed info down below in "How to compile?" section:

Some common errors:

Step 4: Note: packages of space and fld might not be found in the newer version of lammps. Use command 'make no-USER-QUIP' if error message "*** Environment variable QUIP_ROOT must be set.. Stop." occurs.

  1. Please google soft link then you'll know the meaning. Or you can just simply copy liblammps_shanghailinux.so file to $FOAM_USER_LIBBIN.

@iurnus
Copy link
Collaborator

iurnus commented May 3, 2018

I have seen this error when compiling the sediFoam code using the newest OpenFOAM 5.0.0. Since sediFoam does not support OpenFOAM 5.0.0, I think you should install OpenFOAM 2.3 or 3.0 instead.

In step 9:
Error: binding 'comst Foam::Field' to reference of type 'Foam::scalarField& {aka Foam::Field}' discards qualifiers
scalarField& KWenYu = tKWenYu();
make: *** [make/linux64Gcc62DPInt320pt/ErgunWenYu/ErgunWenYu.o] Error 1

@ZhongshengSang
Copy link
Author

ZhongshengSang commented May 3, 2018 via email

@zhazhazhaz
Copy link

I also have the similar question:ErgunWenYu/ErgunWenYu.C:119:34: error: binding ‘const Foam::Field’ to reference of type ‘Foam::scalarField& {aka Foam::Field&}’ discards qualifiers
scalarField& KWenYu = tKWenYu()
however,i can't install openfoam3 because i can't install ubuntu14.04,my OS is ubuntu16.04,is there any else answer to deal with the error, this troublesome question has troubled me for 3weeks

@ZhongshengSang
Copy link
Author

ZhongshengSang commented Nov 20, 2018 via email

@zhazhazhaz
Copy link

however my graphics card is too superior to install ubuntu14.04,is there any command or file to deal with it without buying new graphics

@zhazhazhaz
Copy link

my graphics card is AMD Firepro W2100 which support ubuntu 18.04 or ubuntu16.04

@ZhongshengSang
Copy link
Author

ZhongshengSang commented Nov 20, 2018 via email

@zhazhazhaz
Copy link

i have try so many times to deal with it. however all my trial failed

@zhazhazhaz
Copy link

thank you ,dude!!

@ZhongshengSang
Copy link
Author

ZhongshengSang commented Nov 20, 2018 via email

@zhazhazhaz
Copy link

sorry ,dude ,I meet a new question :/opt/openfoam30/src/OpenFOAM/lnInclude/dimensionedType.C:197:25: note: candidate expects 3 arguments, 4 provided
In file included from lammpsFoam.C:64:0:
/opt/openfoam30/src/finiteVolume/lnInclude/initContinuityErrs.H:37:8: warning: unused variable ‘cumulativeContErr’ [-Wunused-variable]
scalar cumulativeContErr =0;
^
make: *** [/opt/openfoam30/platforms/linux64GccDPInt32Opt/applications/solvers/lagrangian/DEMFoam/lammpsFoam/lammpsFoam.o] Error 1
dell@dell-Precision-Tower-3620:/opt/openfoam30/applications/solvers/lagrangian/DEMFoam/lammpsFoam/Make$
I have change my openfoam to openfoam3.0,but there is also a error during my compiling

@zhazhazhaz
Copy link

when i was compiling using command 'wmake' in directory:lammpsFoam i meet this error:
/opt/openfoam30/src/OpenFOAM/lnInclude/dimensionedType.C:197:25: note: static Foam::dimensioned Foam::dimensioned::lookupOrDefault(const Foam::word&, const Foam::dictionary&, const Type&) [with Type = double]
Foam::dimensioned Foam::dimensioned::lookupOrDefault
^
/opt/openfoam30/src/OpenFOAM/lnInclude/dimensionedType.C:197:25: note: candidate expects 3 arguments, 4 provided
make: *** [/opt/openfoam30/platforms/linux64GccDPInt32Opt/applications/solvers/lagrangian/DEMFoam/lammpsFoam/lammpsFoam.o] Error 1

@zhazhazhaz
Copy link

I finally make it!my OS is ubuntu14.04.5,openfoam2.4.0! thank you ! dude!

1 similar comment
@zhazhazhaz
Copy link

I finally make it!my OS is ubuntu14.04.5,openfoam2.4.0! thank you ! dude!

@ZhongshengSang
Copy link
Author

ZhongshengSang commented Nov 24, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants