Build errors on Solaris 10 x86

For developers writing C++, Fortran, Java, code who have questions or comments to make.

Moderators: silvia, selimgunay, Moderators

Post Reply
sri_nekkanti
Posts: 3
Joined: Mon Apr 30, 2007 4:32 am

Build errors on Solaris 10 x86

Post by sri_nekkanti »

Hi,

I'm building the OpenSees on Solaris 10 x86. While building I'm getting the below errros, please help me to fix them.

-------------Errors start---------------
In file included from FatigueMaterial.cpp:47:
/export/home/sguser/srinivas/opensees/OpenSees/SRC/material/uniaxial/FatigueMaterial.h:104: error: expected unqualified-id before numeric constant
FatigueMaterial.cpp: In constructor `FatigueMaterial::FatigueMaterial(int, UniaxialMaterial&, double, double, double, double, double)':
FatigueMaterial.cpp:72: error: non-lvalue in assignment
FatigueMaterial.cpp: In constructor `FatigueMaterial::FatigueMaterial()':
FatigueMaterial.cpp:124: error: non-lvalue in assignment
FatigueMaterial.cpp: In member function `virtual double FatigueMaterial::getStress()':
FatigueMaterial.cpp:179: warning: unused variable 'modifier'
FatigueMaterial.cpp:180: warning: unused variable 'damageloc'
FatigueMaterial.cpp: In member function `virtual double FatigueMaterial::getTangent()':
FatigueMaterial.cpp:208: warning: unused variable 'damageloc'
FatigueMaterial.cpp: In member function `virtual int FatigueMaterial::commitState()':
FatigueMaterial.cpp:309: error: non-lvalue in assignment
FatigueMaterial.cpp:311: error: non-lvalue in assignment
FatigueMaterial.cpp: In member function `virtual int FatigueMaterial::revertToStart()':
FatigueMaterial.cpp:611: error: non-lvalue in assignment
FatigueMaterial.cpp: In member function `virtual int FatigueMaterial::recvSelf(int, Channel&, FEM_ObjectBroker&)':
FatigueMaterial.cpp:748: error: non-lvalue in assignment
gmake[3]: *** [FatigueMaterial.o] Error 1
gmake[3]: Leaving directory `/export/home/sguser/srinivas/opensees/OpenSees/SRC/material/uniaxial'
gmake[2]: *** [all] Error 2
gmake[2]: Leaving directory `/export/home/sguser/srinivas/opensees/OpenSees/SRC/material'
gmake[1]: *** [all] Error 2
gmake[1]: Leaving directory `/export/home/sguser/srinivas/opensees/OpenSees/SRC'
LIBRARIES BUILT ... NOW LINKING OpenSees PROGRAM
gmake[1]: Entering directory `/export/home/sguser/srinivas/opensees/OpenSees/SRC/tcl'
gmake[1]: Nothing to be done for `tcl'.
gmake[1]: Leaving directory `/export/home/sguser/srinivas/opensees/OpenSees/SRC/tcl'
gmake[1]: Entering directory `/export/home/sguser/srinivas/opensees/OpenSees/SRC/modelbuilder/tcl'
gmake[2]: Entering directory `/export/home/sguser/srinivas/opensees/OpenSees/SRC/tcl'

gmake[2]: Nothing to be done for `tcl'.
gmake[2]: Leaving directory `/export/home/sguser/srinivas/opensees/OpenSees/SRC/tcl'
g++: /export/home/sguser/srinivas/opensees/lib/libOpenSees.a: No such file or directory
gmake[1]: *** [tcl] Error 1
gmake[1]: Leaving directory `/export/home/sguser/srinivas/opensees/OpenSees/SRC/modelbuilder/tcl'
gmake: *** [all] Error 2
bash-3.00#
-------------Errors end---------------


Thanks,
Srinivas
fmk
Site Admin
Posts: 5884
Joined: Fri Jun 11, 2004 2:33 pm
Location: UC Berkeley
Contact:

Post by fmk »

i suggest you do a global find and replace and replace CS with somthing else.
sri_nekkanti
Posts: 3
Joined: Mon Apr 30, 2007 4:32 am

Post by sri_nekkanti »

Hi fmk,

Thank you. Those errors have gone and now I'm getting this error,

gmake[2]: Leaving directory `/export/home/sguser/srinivas/opensees/OpenSees/SRC/package'
ar: cannot open /export/home/sguser/srinivas/opensees/OpenSees/SRC/material/yieldSurface/plasticHardeningMaterial/TclModelBuilderYSPlasticMaterialCommand.o
No such file or directory
ar: /export/home/sguser/srinivas/opensees/OpenSees/SRC/material/yieldSurface/plasticHardeningMaterial/TclModelBuilderYSPlasticMaterialCommand.o not found
gmake[1]: *** [all] Error 1
gmake[1]: Leaving directory `/export/home/sguser/srinivas/opensees/OpenSees/SRC'


Please help me.

Thanks,
Srinivas
fmk
Site Admin
Posts: 5884
Joined: Fri Jun 11, 2004 2:33 pm
Location: UC Berkeley
Contact:

Post by fmk »

did you check to see if the missing file exists. i am interested to know if it's a compiler error, a ar error or a makefile error.
Post Reply