0
我試圖編譯在我的Mac v10.10mpicxx:不兼容的庫版本
一個C++代碼的動態鏈接庫我跑在我的目錄wmake libso
在那裏我有我的所有代碼。
,並得到如下讀出:
SOURCE=gammaReThetatSST/gammaReThetatSST.C ; mpicxx -m64 -fsignaling-nans -ftrapping-math -DdarwinIntel64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O2 -DNoRepository -ftemplate-depth-100 -I/Users/oscarwilsby/OpenFOAM/OpenFOAM-2.3.x/src/turbulenceModels -I/Users/ow222/OpenFOAM/OpenFOAM-2.3.x/src/transportModels -I/Users/ow222/OpenFOAM/OpenFOAM-2.3.x/src/finiteVolume/lnInclude -I/Users/ow222/OpenFOAM/OpenFOAM-2.3.x/src/meshTools/lnInclude -I/Users/ow222/OpenFOAM/OpenFOAM-2.3.x/src/turbulenceModels/incompressible/RAS/lnInclude -IlnInclude -I. -I/Users/ow222/OpenFOAM/OpenFOAM-2.3.x/src/OpenFOAM/lnInclude -I/Users/ow222/OpenFOAM/OpenFOAM-2.3.x/src/OSspecific/POSIX/lnInclude -fPIC -Ddarwin -c $SOURCE -o Make/darwinIntel64GccDPOpt/gammaReThetatSST.o
dyld: Library not loaded: /usr/local/Cellar/open-mpi/1.8.4/lib/libopen-pal.6.dylib
Referenced from: /usr/local/bin/mpicxx
Reason: Incompatible library version: mpicxx requires version 9.0.0 or later, but libopen-pal.6.dylib provides version 8.0.0
/bin/sh: line 1: 50563 Trace/BPT trap: 5 mpicxx -m64 -fsignaling-nans -ftrapping-math -DdarwinIntel64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O2 -DNoRepository -ftemplate-depth-100 -I/Users/ow222/OpenFOAM/OpenFOAM-2.3.x/src/turbulenceModels -I/Users/ow222/OpenFOAM/OpenFOAM-2.3.x/src/transportModels -I/Users/ow222/OpenFOAM/OpenFOAM-2.3.x/src/finiteVolume/lnInclude -I/Users/ow222/OpenFOAM/OpenFOAM-2.3.x/src/meshTools/lnInclude -I/Users/ow222/OpenFOAM/OpenFOAM-2.3.x/src/turbulenceModels/incompressible/RAS/lnInclude -IlnInclude -I. -I/Users/ow222/OpenFOAM/OpenFOAM-2.3.x/src/OpenFOAM/lnInclude -I/Users/ow222/OpenFOAM/OpenFOAM-2.3.x/src/OSspecific/POSIX/lnInclude -fPIC -Ddarwin -c $SOURCE -o Make/darwinIntel64GccDPOpt/gammaReThetatSST.o
make: *** [Make/darwinIntel64GccDPOpt/gammaReThetatSST.o] Error 133
這是安裝某些類型依賴的正確版本的問題?請指教。
編輯:
我已經嘗試之後brew unlink open-mpi
brew update
最後brew install open-mpi
,但問題仍然存在。這可能是值得指出的是,如果我做brew unlink open-mpi
然後當我運行wmake libso
我現在得到一些編譯器錯誤:
/Users/ow222/OpenFOAM/OpenFOAM-2.3.x/src/OpenFOAM/lnInclude/lduInterface.H:100:26: note: hidden overloaded virtual function
'Foam::lduInterface::initInternalFieldTransfer' declared here: type mismatch at 2nd parameter ('const labelUList &'
(aka 'const UList<label> &') vs 'labelUList &' (aka 'UList<label> &'))
virtual void initInternalFieldTransfer
^
gammaReThetatSST/gammaReThetatSST.C:240:24: error: conversion from 'tmp<GeometricField<double, fvPatchField, Foam::volMesh> >' to 'volScalarField'
(aka 'GeometricField<scalar, fvPatchField, Foam::volMesh>') is ambiguous
volScalarField magVort = sqrt(scalar(2))*mag(skew(fvc::grad(U_)));
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/ow222/OpenFOAM/OpenFOAM-2.3.x/src/OpenFOAM/lnInclude/tmp.H:124:16: note: candidate function
inline operator const T&() const;
^
/Users/ow222/OpenFOAM/OpenFOAM-2.3.x/src/OpenFOAM/lnInclude/GeometricField.H:359:9: note: candidate constructor
GeometricField
^
gammaReThetatSST/gammaReThetatSST.C:260:20: error: conversion from 'tmp<GeometricField<typename scalarProduct<SymmTensor<double>, Tensor<double>
>::type, fvPatchField, Foam::volMesh> >' to 'volScalarField' (aka 'GeometricField<scalar, fvPatchField, Foam::volMesh>') is ambiguous
volScalarField U2gradU = (sqr(U_)&&(fvc::grad(U_)));
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/ow222/OpenFOAM/OpenFOAM-2.3.x/src/OpenFOAM/lnInclude/tmp.H:124:16: note: candidate function
inline operator const T&() const;
^
/Users/ow222/OpenFOAM/OpenFOAM-2.3.x/src/OpenFOAM/lnInclude/GeometricField.H:359:9: note: candidate constructor
GeometricField
^
gammaReThetatSST/gammaReThetatSST.C:363:20: error: conversion from 'tmp<GeometricField<double, fvPatchField, Foam::volMesh> >' to 'volScalarField'
(aka 'GeometricField<scalar, fvPatchField, Foam::volMesh>') is ambiguous
volScalarField CDkOmegaPlus = max
^ ~~~
/Users/ow222/OpenFOAM/OpenFOAM-2.3.x/src/OpenFOAM/lnInclude/tmp.H:124:16: note: candidate function
inline operator const T&() const;
^
/Users/ow222/OpenFOAM/OpenFOAM-2.3.x/src/OpenFOAM/lnInclude/GeometricField.H:359:9: note: candidate constructor
GeometricField
^
gammaReThetatSST/gammaReThetatSST.C:393:20: error: conversion from 'tmp<GeometricField<double, fvPatchField, Foam::volMesh> >' to 'volScalarField'
(aka 'GeometricField<scalar, fvPatchField, Foam::volMesh>') is ambiguous
volScalarField arg2 = min
^ ~~~
/Users/ow222/OpenFOAM/OpenFOAM-2.3.x/src/OpenFOAM/lnInclude/tmp.H:124:16: note: candidate function
inline operator const T&() const;
^
/Users/ow222/OpenFOAM/OpenFOAM-2.3.x/src/OpenFOAM/lnInclude/GeometricField.H:359:9: note: candidate constructor
GeometricField
^
gammaReThetatSST/gammaReThetatSST.C:858:20: error: conversion from 'tmp<GeometricField<scalar, fvPatchField, Foam::volMesh> >' to 'volScalarField'
(aka 'GeometricField<scalar, fvPatchField, Foam::volMesh>') is ambiguous
volScalarField S2 = magSqr(symm(fvc::grad(U_)));
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/ow222/OpenFOAM/OpenFOAM-2.3.x/src/OpenFOAM/lnInclude/tmp.H:124:16: note: candidate function
inline operator const T&() const;
^
/Users/ow222/OpenFOAM/OpenFOAM-2.3.x/src/OpenFOAM/lnInclude/GeometricField.H:359:9: note: candidate constructor
GeometricField
^
gammaReThetatSST/gammaReThetatSST.C:864:20: error: conversion from 'tmp<GeometricField<scalar, fvPatchField, Foam::volMesh> >' to 'volScalarField'
(aka 'GeometricField<scalar, fvPatchField, Foam::volMesh>') is ambiguous
volScalarField CDkOmega =
^
/Users/ow222/OpenFOAM/OpenFOAM-2.3.x/src/OpenFOAM/lnInclude/tmp.H:124:16: note: candidate function
inline operator const T&() const;
^
/Users/ow222/OpenFOAM/OpenFOAM-2.3.x/src/OpenFOAM/lnInclude/GeometricField.H:359:9: note: candidate constructor
GeometricField
^
gammaReThetatSST/gammaReThetatSST.C:895:20: error: conversion from 'tmp<GeometricField<double, fvPatchField, Foam::volMesh> >' to 'volScalarField'
(aka 'GeometricField<scalar, fvPatchField, Foam::volMesh>') is ambiguous
volScalarField gammaEff = max
^ ~~~
/Users/ow222/OpenFOAM/OpenFOAM-2.3.x/src/OpenFOAM/lnInclude/tmp.H:124:16: note: candidate function
inline operator const T&() const;
^
/Users/ow222/OpenFOAM/OpenFOAM-2.3.x/src/OpenFOAM/lnInclude/GeometricField.H:359:9: note: candidate constructor
GeometricField
^
謝謝,這可以輕鬆地在家釀/ macports中完成嗎? – Jack
我會這樣認爲的。你需要找到哪個包雖然 – Outurnate
它的答案。不是一個完整的,而是一個開始。這既不是一個批評,也不是一個請求 – Outurnate