building error svn sources under Linux

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

Moderators: silvia, selimgunay, Moderators

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

Re: building error svn sources under Linux

Post by fmk » Fri Dec 11, 2015 1:49 pm

sorry .. i have removed the misc files and updated svn

rafal
Posts: 51
Joined: Sun Feb 22, 2015 5:58 am

Re: building error svn sources under Linux

Post by rafal » Fri Dec 11, 2015 2:10 pm

Thank you! Confirmed, it's fixed now and OpenSees builds OK under Debian Sid.

rafal
Posts: 51
Joined: Sun Feb 22, 2015 5:58 am

Re: building error svn sources under Linux

Post by rafal » Sat Dec 12, 2015 2:36 am

I found a typo in svn commit 6137
...
+ } else if (strcmp(argv[0],"deformatons") == 0 ||
...

In two places ElasticBeam2d.cpp and ElasticBeam3d.cpp
s/deformatons/deformations

and similarly there is a typo in ElasticBeam3d.cpp
output.tag("ResponseType","thete11");
output.tag("ResponseType","thete12");

I'm looking forward to seeing a git repository in this way I could send a Pull Request as in github. Anyway, thank you in all the efforts in developing this unique incredible open-source tool!

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

Re: building error svn sources under Linux

Post by fmk » Mon Dec 14, 2015 11:03 am

thanks .. i have made the changes

rafal
Posts: 51
Joined: Sun Feb 22, 2015 5:58 am

Re: building error svn sources under Linux

Post by rafal » Tue Mar 15, 2016 2:04 am

After a recent svn update (rev. 6242) I get the following errors and consequently libBlas.a is not built. Should I update BLAS library myself locally or you will do it in svn repository?

Unknown target dsymm.o, try: make help
Unknown target dsyr2k.o, try: make help
ar: dsymm.o: No such file or directory
Makefile:11: recipe for target 'double' failed
make: *** [double] Error 1

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

Re: building error svn sources under Linux

Post by fmk » Wed Mar 16, 2016 8:02 am

try svn again .. the files are both there, not sure though if i added them more recently

rafal
Posts: 51
Joined: Sun Feb 22, 2015 5:58 am

Re: building error svn sources under Linux

Post by rafal » Wed Mar 16, 2016 8:21 am

I did svn update a minute ago (revision 6247) and still I don't dsymm.f nor dsyr2k.f files

./sources/OpenSees/OTHER/BLAS
$ ls
dasum.f dgbmv.f dnrm2.f dswap.f dsyrk.f dtrsm.f icamax.f Makefile
daxpy.f dgemm.f drot.f dsymv.f dtbsv.f dtrsv.f idamax.f
dcopy.f dgemv.f drotg.f dsyr.f dtrmm.f dzasum.f isamax.f
ddot.f dger.f dscal.f dsyr2.f dtrmv.f dznrm2.f izamax.f

UPDATE: In another post by you, Frank, you write about 6248 revision so perhaps there is a lag in updating the public svn repository.

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

Re: building error svn sources under Linux

Post by fmk » Wed Mar 16, 2016 8:46 am

sorry .. try again

rafal
Posts: 51
Joined: Sun Feb 22, 2015 5:58 am

Re: building error svn sources under Linux

Post by rafal » Wed Mar 16, 2016 9:31 am

Thank you now the files are there. However I get another error when trying 'make' in SRC/reliability/ directory.

ar: /home/rafal/OpenSees_git/SRC/domain/pattern/DiscretizedRandomProcessSeries.o: No such file or directory
Makefile:170: recipe for target 'all' failed

UPDATE:
The previous post is wrong because I should had compiled SRC/domain/pattern/ directory first then compiling reliability directory.
So the actual error when compiling with 'make' in main directory is:
...
reference to `TaggedObject::~TaggedObject()'
/home/rafal/lib/libReliability.a(ReliabilityDomainComponent.o):(.rodata._ZTI26ReliabilityDomainComponent[_ZTI26ReliabilityDomainComponent]+0x10): undefined reference to `typeinfo for TaggedObject'
collect2: error: ld returned 1 exit status
Makefile:13: recipe for target 'tcl' failed
make[1]: *** [tcl] Error 1

UPDATE 2:
or making from SRC/ dir
ar: /home/rafal/OpenSees_git/SRC/domain/pattern/UniformRotationalExcitation.o: No such file or directory
Makefile:12: recipe for target 'all' failed

UPDATE 3:
I think line 997 should be removed from SRC/Makefile:

$(FE)/domain/pattern/UniformRotationalExcitation.o \

after changes in rev. 6238

rafal
Posts: 51
Joined: Sun Feb 22, 2015 5:58 am

Re: building error svn sources under Linux

Post by rafal » Wed Mar 16, 2016 10:37 am

After removing the UniformRotationalExcitation.o line from Makefile still I get the following issue:

/usr/bin/ld -plugin /usr/lib/gcc/x86_64-linux-gnu/5/liblto_plugin.so -plugin-opt=/usr/lib/gcc/x86_64-linux-gnu/5/lto-wrapper -plugin-opt=-fresolution=/tmp/cc2sLDvB.res -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lgcc --sysroot=/ --build-id --eh-frame-hdr -m elf_x86_64 --hash-style=gnu -export-dynamic -dynamic-linker /lib64/ld-linux-x86-64.so.2 -o bin/OpenSees6249 /usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/crt1.o /usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/crti.o /usr/lib/gcc/x86_64-linux-gnu/5/crtbegin.o -L/usr/local/lib -Llib -L/usr/lib/gcc/x86_64-linux-gnu/5 -L/usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu -L/usr/lib/gcc/x86_64-linux-gnu/5/../../../../lib -L/lib/x86_64-linux-gnu -L/lib/../lib -L/usr/lib/x86_64-linux-gnu -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-linux-gnu/5/../../.. -v OpenSees_git/SRC/tcl/tclMain.o OpenSees_git/SRC/tcl/tclAppInit.o OpenSees_git/SRC/tcl/commands.o OpenSees_git/SRC/modelbuilder/tcl/myCommands.o OpenSees_git/SRC/tcl/TclFeViewer.o OpenSees_git/SRC/tcl/TclVideoPlayer.o OpenSees_git/SRC/domain/pattern/TclPatternCommand.o OpenSees_git/SRC/domain/pattern/TclSeriesCommand.o OpenSees_git/SRC/domain/pattern/TclSeriesIntegratorCommand.o OpenSees_git/SRC/domain/groundMotion/TclGroundMotionCommand.o OpenSees_git/SRC/material/uniaxial/limitState/TclLimitState.o OpenSees_git/SRC/element/zeroLength/TclZeroLength.o OpenSees_git/SRC/element/forceBeamColumn/TclForceBeamColumnCommand.o OpenSees_git/SRC/coordTransformation/TclGeomTransfCommand.o OpenSees_git/SRC/element/joint/TclJoint2dCommand.o OpenSees_git/SRC/element/joint/TclJoint3dCommand.o OpenSees_git/SRC/element/joint/TclBeamColumnJointCommand.o OpenSees_git/SRC/element/updatedLagrangianBeamColumn/TclElement2dYS.o OpenSees_git/SRC/element/updatedLagrangianBeamColumn/TclElement2dGNL.o OpenSees_git/SRC/element/updatedLagrangianBeamColumn/TclCyclicModelCommands.o OpenSees_git/SRC/material/yieldSurface/yieldSurfaceBC/TclModelBuilderYieldSurfaceBCCommand.o OpenSees_git/SRC/material/yieldSurface/evolution/TclModelBuilderYS_EvolutionCommand.o OpenSees_git/SRC/material/yieldSurface/plasticHardeningMaterial/TclModelBuilderYSPlasticMaterialCommand.o OpenSees_git/SRC/damage/TclModelBuilderDamageModelCommand.o OpenSees_git/SRC/material/uniaxial/PY/TclPyTzQzMaterialCommand.o OpenSees_git/SRC/material/nD/soil/TclUpdateMaterialStageCommand.o OpenSees_git/SRC/element/UP-ucsd/TclFourNodeQuadUPCommand.o OpenSees_git/SRC/recorder/TclRecorderCommands.o OpenSees_git/SRC/database/TclDatabaseCommands.o OpenSees_git/SRC/element/TclElementCommands.o OpenSees_git/SRC/element/dispBeamColumnInt/TclDispBeamColumnIntCommand.o OpenSees_git/SRC/element/elasticBeamColumn/TclElasticBeamCommand.o OpenSees_git/SRC/element/fourNodeQuad/TclFourNodeQuadCommand.o OpenSees_git/SRC/element/brick/TclTwenty_Node_BrickCommand.o OpenSees_git/SRC/element/brick/TclBrickCommand.o OpenSees_git/SRC/element/adapter/TclActuatorCommand.o OpenSees_git/SRC/element/adapter/TclActuatorCorotCommand.o OpenSees_git/SRC/element/adapter/TclAdapterCommand.o OpenSees_git/SRC/element/generic/TclGenericClientCommand.o OpenSees_git/SRC/element/generic/TclGenericCopyCommand.o OpenSees_git/SRC/element/elastomericBearing/TclElastomericBearingBoucWenCommand.o OpenSees_git/SRC/element/feap/TclFeapElementCommand.o OpenSees_git/SRC/material/nD/feap/TclFeapMaterialCommand.o OpenSees_git/SRC/element/beamWithHinges/TclBeamWithHingesBuilder.o OpenSees_git/SRC/element/frictionBearing/frictionModel/TclModelBuilderFrictionModelCommand.o OpenSees_git/SRC/element/PFEMElement/TclModelBuilder_addPFEMElement.o OpenSees_git/SRC/element/PFEMElement/TclPFEMCommands.o OpenSees_git/SRC/material/uniaxial/backbone/TclModelBuilderBackboneCommand.o OpenSees_git/SRC/material/uniaxial/TclModelBuilderUniaxialMaterialCommand.o OpenSees_git/SRC/material/nD/TclModelBuilderNDMaterialCommand.o OpenSees_git/SRC/material/section/yieldSurface/TclModelBuilderYS_SectionCommand.o OpenSees_git/SRC/material/section/TclModelBuilderSectionCommand.o OpenSees_git/SRC/modelbuilder/tcl/TclUniaxialMaterialTester.o OpenSees_git/SRC/modelbuilder/tcl/TclSectionTester.o OpenSees_git/SRC/modelbuilder/tcl/TclModelBuilder.o OpenSees_git/SRC/domain/component/TclUpdateMaterialCommand.o OpenSees_git/SRC/domain/component/TclParameterCommands.o OpenSees_git/SRC/domain/region/TclRegionCommands.o OpenSees_git/SRC/element/twoNodeLink/TclTwoNodeLinkCommand.o OpenSees_git/SRC/element/frictionBearing/TclRJWatsonEQSCommand.o OpenSees_git/SRC/material/uniaxial/TclReinforcingSteel.o OpenSees_git/SRC/material/uniaxial/snap/TclSnapMaterialCommand.o OpenSees_git/SRC/material/uniaxial/TclHyperbolicGapMaterial.o OpenSees_git/SRC/element/frictionBearing/TclFlatSliderCommand.o OpenSees_git/SRC/element/elastomericBearing/TclElastomericBearingPlasticityCommand.o OpenSees_git/SRC/element/elastomericBearing/TclElastomericBearingUFRPCommand.o OpenSees_git/SRC/element/frictionBearing/TclSingleFPCommand.o OpenSees_git/SRC/material/uniaxial/fedeas/TclFedeasMaterialCommand.o OpenSees_git/SRC/material/uniaxial/drain/TclDrainMaterialCommand.o OpenSees_git/SRC/api/elementAPI_TCL.o lib/libOpenSees.a lib/libOptimization.a lib/libReliability.a lib/libArpack.a lib/libSuperLU.a lib/libUmfpack.a lib/libCSparse.a lib/libLapack.a lib/libBlas.a lib/libCBlas.a lib/libAMD.a lib/libTriangle.a lib/libTetgen.a -ldl -lgfortran -ltcl8.5 -lstdc++ -lm -lgcc_s -lgcc -lc -lgcc_s -lgcc /usr/lib/gcc/x86_64-linux-gnu/5/crtend.o /usr/lib/gcc/x86_64-linux-gnu/5/../../../x86_64-linux-gnu/crtn.o
GNU ld (GNU Binutils for Debian) 2.26
OpenSees_git/SRC/tcl/commands.o: In function `removeObject(void*, Tcl_Interp*, int, char const**)':
OpenSees_git/SRC/tcl/commands.cpp:5449: undefined reference to `OPS_removeTimeSeries(int)'
OpenSees_git/SRC/domain/pattern/TclPatternCommand.o: In function `TclPatternCommand(void*, Tcl_Interp*, int, char const**, Domain*)':
OpenSees_git/SRC/domain/pattern/TclPatternCommand.cpp:335: undefined reference to `GroundMotion::GroundMotion(TimeSeries*, TimeSeries*, TimeSeries*, TimeSeriesIntegrator*, double, double)'
OpenSees_git/SRC/domain/pattern/TclPatternCommand.cpp:437: undefined reference to `GroundMotionRecord::GroundMotionRecord(char const*, double, double, double)'
OpenSees_git/SRC/domain/pattern/TclPatternCommand.cpp:518: undefined reference to `Mesh3DSubdomain::Mesh3DSubdomain(Domain*)'
OpenSees_git/SRC/domain/pattern/TclPatternCommand.cpp:521: undefined reference to `PlaneDRMInputHandler::PlaneDRMInputHandler(int, char**, int, double, double*, int, int*, int, int, int, double*, double*, double*, Mesh3DSubdomain*, int, Domain*)'
OpenSees_git/SRC/domain/pattern/TclPatternCommand.cpp:522: undefined reference to `DRMLoadPattern::DRMLoadPattern(int, double, DRMInputHandler*, Domain*)'
OpenSees_git/SRC/domain/pattern/TclPatternCommand.cpp:523: undefined reference to `DRMLoadPattern::setMaps()'
OpenSees_git/SRC/domain/pattern/TclPatternCommand.cpp:788: undefined reference to `DRMLoadPatternWrapper::DRMLoadPatternWrapper(int, double, char**, int, double, int, int*, int, int, int, double*, double*, int)'
OpenSees_git/SRC/domain/pattern/TclSeriesCommand.o: In function `TclTimeSeriesCommand(void*, Tcl_Interp*, int, char const**, Domain*)':
OpenSees_git/SRC/domain/pattern/TclSeriesCommand.cpp:107: undefined reference to `OPS_ConstantSeries()'
OpenSees_git/SRC/domain/pattern/TclSeriesCommand.cpp:114: undefined reference to `OPS_TrigSeries()'
OpenSees_git/SRC/domain/pattern/TclSeriesCommand.cpp:122: undefined reference to `OPS_LinearSeries()'
OpenSees_git/SRC/domain/pattern/TclSeriesCommand.cpp:130: undefined reference to `OPS_RectangularSeries()'
OpenSees_git/SRC/domain/pattern/TclSeriesCommand.cpp:138: undefined reference to `OPS_PulseSeries()'
OpenSees_git/SRC/domain/pattern/TclSeriesCommand.cpp:146: undefined reference to `OPS_TriangleSeries()'
OpenSees_git/SRC/domain/pattern/TclSeriesCommand.cpp:334: undefined reference to `PathSeries::PathSeries(int, char const*, double, double, bool, bool, double)'
OpenSees_git/SRC/domain/pattern/TclSeriesCommand.cpp:340: undefined reference to `PathTimeSeries::PathTimeSeries(int, char const*, double)'
OpenSees_git/SRC/domain/pattern/TclSeriesCommand.cpp:346: undefined reference to `PathTimeSeries::PathTimeSeries(int, char const*, char const*, double)'
OpenSees_git/SRC/domain/pattern/TclSeriesCommand.cpp:350: undefined reference to `PathSeries::PathSeries(int, Vector const&, double, double, bool, bool, double)'
OpenSees_git/SRC/domain/pattern/TclSeriesCommand.cpp:354: undefined reference to `PathTimeSeries::PathTimeSeries(int, Vector const&, Vector const&, double)'
OpenSees_git/SRC/domain/pattern/TclSeriesCommand.cpp:372: undefined reference to `OPS_NewPeerMotion()'
OpenSees_git/SRC/domain/pattern/TclSeriesCommand.cpp:385: undefined reference to `PeerMotion::getDt()'
OpenSees_git/SRC/domain/pattern/TclSeriesCommand.cpp:391: undefined reference to `PeerMotion::getNPts()'
OpenSees_git/SRC/domain/pattern/TclSeriesCommand.cpp:405: undefined reference to `OPS_NewPeerNGAMotion()'
OpenSees_git/SRC/domain/pattern/TclSeriesCommand.cpp:419: undefined reference to `PeerNGAMotion::getDt()'
OpenSees_git/SRC/domain/pattern/TclSeriesCommand.cpp:426: undefined reference to `PeerNGAMotion::getNPts()'
OpenSees_git/SRC/domain/pattern/TclSeriesCommand.o: In function `TclSeriesCommand(void*, Tcl_Interp*, char const*)':
OpenSees_git/SRC/domain/pattern/TclSeriesCommand.cpp:595: undefined reference to `OPS_getTimeSeries(int)'
OpenSees_git/SRC/domain/pattern/TclSeriesIntegratorCommand.o: In function `TclSeriesIntegratorCommand(void*, Tcl_Interp*, char const*)':
OpenSees_git/SRC/domain/pattern/TclSeriesIntegratorCommand.cpp:62: undefined reference to `TrapezoidalTimeSeriesIntegrator::TrapezoidalTimeSeriesIntegrator()'
OpenSees_git/SRC/domain/pattern/TclSeriesIntegratorCommand.cpp:66: undefined reference to `SimpsonTimeSeriesIntegrator::SimpsonTimeSeriesIntegrator()'
OpenSees_git/SRC/domain/groundMotion/TclGroundMotionCommand.o: In function `TclGroundMotionCommand(void*, Tcl_Interp*, int, char const**, MultiSupportPattern*)':
OpenSees_git/SRC/domain/groundMotion/TclGroundMotionCommand.cpp:170: undefined reference to `GroundMotion::GroundMotion(TimeSeries*, TimeSeries*, TimeSeries*, TimeSeriesIntegrator*, double, double)'
OpenSees_git/SRC/domain/groundMotion/TclGroundMotionCommand.cpp:221: undefined reference to `InterpolatedGroundMotion::InterpolatedGroundMotion(GroundMotion**, Vector const&, bool, double)'
OpenSees_git/SRC/material/uniaxial/PY/TclPyTzQzMaterialCommand.o: In function `TclModelBuilder_addPyTzQzMaterial(void*, Tcl_Interp*, int, char const**, Domain*)':
OpenSees_git/SRC/material/uniaxial/PY/TclPyTzQzMaterialCommand.cpp:232: undefined reference to `OPS_getTimeSeries(int)'
OpenSees_git/SRC/material/uniaxial/PY/TclPyTzQzMaterialCommand.cpp:431: undefined reference to `OPS_getTimeSeries(int)'
OpenSees_git/SRC/recorder/TclRecorderCommands.o: In function `TclCreateRecorder(void*, Tcl_Interp*, int, char const**, Domain&, Recorder**)':
OpenSees_git/SRC/recorder/TclRecorderCommands.cpp:1184: undefined reference to `OPS_getTimeSeries(int)'
OpenSees_git/SRC/modelbuilder/tcl/TclModelBuilder.o: In function `TclModelBuilder::~TclModelBuilder()':
OpenSees_git/SRC/modelbuilder/tcl/TclModelBuilder.cpp:634: undefined reference to `OPS_clearAllTimeSeries()'
OpenSees_git/SRC/modelbuilder/tcl/TclModelBuilder.o: In function `TclCommand_addTimeSeries(void*, Tcl_Interp*, int, char const**)':
OpenSees_git/SRC/modelbuilder/tcl/TclModelBuilder.cpp:1505: undefined reference to `OPS_addTimeSeries(TimeSeries*)'
lib/libOpenSees.a(Domain.o): In function `Domain::Domain()':
OpenSees_git/SRC/domain/domain/Domain.cpp:115: undefined reference to `LoadPatternIter::LoadPatternIter(TaggedObjectStorage*)'
lib/libOpenSees.a(Domain.o): In function `Domain::Domain(int, int, int, int, int)':
OpenSees_git/SRC/domain/domain/Domain.cpp:168: undefined reference to `LoadPatternIter::LoadPatternIter(TaggedObjectStorage*)'
lib/libOpenSees.a(Domain.o): In function `Domain::Domain(TaggedObjectStorage&, TaggedObjectStorage&, TaggedObjectStorage&, TaggedObjectStorage&, TaggedObjectStorage&)':
OpenSees_git/SRC/domain/domain/Domain.cpp:222: undefined reference to `LoadPatternIter::LoadPatternIter(TaggedObjectStorage*)'
lib/libOpenSees.a(Domain.o): In function `Domain::Domain(TaggedObjectStorage&)':
OpenSees_git/SRC/domain/domain/Domain.cpp:287: undefined reference to `LoadPatternIter::LoadPatternIter(TaggedObjectStorage*)'
lib/libOpenSees.a(LoadPattern.o): In function `OPS_LoadPattern()':
OpenSees_git/SRC/domain/pattern/LoadPattern.cpp:81: undefined reference to `OPS_getTimeSeries(int)'
lib/libOpenSees.a(UniformExcitation.o): In function `OPS_UniformExcitationPattern()':
OpenSees_git/SRC/domain/pattern/UniformExcitation.cpp:75: undefined reference to `OPS_getTimeSeries(int)'
OpenSees_git/SRC/domain/pattern/UniformExcitation.cpp:79: undefined reference to `OPS_getTimeSeries(int)'
OpenSees_git/SRC/domain/pattern/UniformExcitation.cpp:83: undefined reference to `OPS_getTimeSeries(int)'
OpenSees_git/SRC/domain/pattern/UniformExcitation.cpp:97: undefined reference to `GroundMotion::GroundMotion(TimeSeries*, TimeSeries*, TimeSeries*, TimeSeriesIntegrator*, double, double)'
lib/libOpenSees.a(PlainHandler.o): In function `PlainHandler::handle(ID const*)':
OpenSees_git/SRC/analysis/handler/PlainHandler.cpp:247: undefined reference to `Subdomain::setFE_ElementPtr(FE_Element*)'
lib/libOpenSees.a(PenaltyConstraintHandler.o): In function `PenaltyConstraintHandler::handle(ID const*)':
OpenSees_git/SRC/analysis/handler/PenaltyConstraintHandler.cpp:180: undefined reference to `Subdomain::setFE_ElementPtr(FE_Element*)'
lib/libOpenSees.a(LagrangeConstraintHandler.o): In function `LagrangeConstraintHandler::handle(ID const*)':
OpenSees_git/SRC/analysis/handler/LagrangeConstraintHandler.cpp:156: undefined reference to `Subdomain::setFE_ElementPtr(FE_Element*)'
lib/libOpenSees.a(TransformationConstraintHandler.o): In function `TransformationConstraintHandler::handle(ID const*)':
OpenSees_git/SRC/analysis/handler/TransformationConstraintHandler.cpp:348: undefined reference to `Subdomain::setFE_ElementPtr(FE_Element*)'
lib/libOpenSees.a(FE_Element.o): In function `FE_Element::FE_Element(int, Element*)':
OpenSees_git/SRC/analysis/fe_ele/FE_Element.cpp:159: undefined reference to `Subdomain::setFE_ElementPtr(FE_Element*)'
lib/libOpenSees.a(FEM_ObjectBrokerAllClasses.o): In function `FEM_ObjectBrokerAllClasses::getNewLoadPattern(int)':
OpenSees_git/SRC/actor/objectBroker/FEM_ObjectBrokerAllClasses.cpp:1488: undefined reference to `DRMLoadPatternWrapper::DRMLoadPatternWrapper()'
lib/libOpenSees.a(FEM_ObjectBrokerAllClasses.o): In function `FEM_ObjectBrokerAllClasses::getNewGroundMotion(int)':
OpenSees_git/SRC/actor/objectBroker/FEM_ObjectBrokerAllClasses.cpp:1506: undefined reference to `GroundMotion::GroundMotion(int)'
OpenSees_git/SRC/actor/objectBroker/FEM_ObjectBrokerAllClasses.cpp:1509: undefined reference to `GroundMotion::GroundMotion(int)'
lib/libOpenSees.a(FEM_ObjectBrokerAllClasses.o): In function `FEM_ObjectBrokerAllClasses::getNewTimeSeries(int)':
OpenSees_git/SRC/actor/objectBroker/FEM_ObjectBrokerAllClasses.cpp:1525: undefined reference to `LinearSeries::LinearSeries(int, double)'
OpenSees_git/SRC/actor/objectBroker/FEM_ObjectBrokerAllClasses.cpp:1528: undefined reference to `RectangularSeries::RectangularSeries()'
OpenSees_git/SRC/actor/objectBroker/FEM_ObjectBrokerAllClasses.cpp:1531: undefined reference to `PathTimeSeries::PathTimeSeries()'
OpenSees_git/SRC/actor/objectBroker/FEM_ObjectBrokerAllClasses.cpp:1534: undefined reference to `PathSeries::PathSeries()'
OpenSees_git/SRC/actor/objectBroker/FEM_ObjectBrokerAllClasses.cpp:1537: undefined reference to `ConstantSeries::ConstantSeries(int, double)'
OpenSees_git/SRC/actor/objectBroker/FEM_ObjectBrokerAllClasses.cpp:1540: undefined reference to `TrigSeries::TrigSeries()'
lib/libOpenSees.a(FEM_ObjectBrokerAllClasses.o): In function `FEM_ObjectBrokerAllClasses::getNewTimeSeriesIntegrator(int)':
OpenSees_git/SRC/actor/objectBroker/FEM_ObjectBrokerAllClasses.cpp:1556: undefined reference to `TrapezoidalTimeSeriesIntegrator::TrapezoidalTimeSeriesIntegrator()'
lib/libReliability.a(DiscretizedRandomProcessSeries.o): In function `DiscretizedRandomProcessSeries::DiscretizedRandomProcessSeries(int, int, ModulatingFunction**, double, double)':
OpenSees_git/SRC/domain/pattern/DiscretizedRandomProcessSeries.cpp:50: undefined reference to `TimeSeries::TimeSeries(int, int)'
lib/libReliability.a(DiscretizedRandomProcessSeries.o): In function `DiscretizedRandomProcessSeries::~DiscretizedRandomProcessSeries()':
OpenSees_git/SRC/domain/pattern/DiscretizedRandomProcessSeries.cpp:70: undefined reference to `TimeSeries::~TimeSeries()'
OpenSees_git/SRC/domain/pattern/DiscretizedRandomProcessSeries.cpp:70: undefined reference to `TimeSeries::~TimeSeries()'
lib/libReliability.a(DiscretizedRandomProcessSeries.o):(.rodata._ZTI30DiscretizedRandomProcessSeries[_ZTI30DiscretizedRandomProcessSeries]+0x10): undefined reference to `typeinfo for TimeSeries'
lib/libReliability.a(SimulatedRandomProcessSeries.o): In function `SimulatedRandomProcessSeries::SimulatedRandomProcessSeries(int, RandomNumberGenerator*, Spectrum*, int, double)':
OpenSees_git/SRC/domain/pattern/SimulatedRandomProcessSeries.cpp:49: undefined reference to `TimeSeries::TimeSeries(int, int)'
OpenSees_git/SRC/domain/pattern/SimulatedRandomProcessSeries.cpp:49: undefined reference to `TimeSeries::~TimeSeries()'
lib/libReliability.a(SimulatedRandomProcessSeries.o): In function `SimulatedRandomProcessSeries::~SimulatedRandomProcessSeries()':
OpenSees_git/SRC/domain/pattern/SimulatedRandomProcessSeries.cpp:84: undefined reference to `TimeSeries::~TimeSeries()'
OpenSees_git/SRC/domain/pattern/SimulatedRandomProcessSeries.cpp:84: undefined reference to `TimeSeries::~TimeSeries()'
lib/libReliability.a(SimulatedRandomProcessSeries.o):(.rodata._ZTI28SimulatedRandomProcessSeries[_ZTI28SimulatedRandomProcessSeries]+0x10): undefined reference to `typeinfo for TimeSeries'
lib/libReliability.a(NewDiscretizedRandomProcessSeries.o): In function `NewDiscretizedRandomProcessSeries::NewDiscretizedRandomProcessSeries(int, ModulatingFunction**, double, double)':
OpenSees_git/SRC/reliability/analysis/telm/NewDiscretizedRandomProcessSeries.cpp:41: undefined reference to `TimeSeries::TimeSeries(int)'
OpenSees_git/SRC/reliability/analysis/telm/NewDiscretizedRandomProcessSeries.cpp:41: undefined reference to `TimeSeries::~TimeSeries()'
lib/libReliability.a(NewDiscretizedRandomProcessSeries.o): In function `NewDiscretizedRandomProcessSeries::~NewDiscretizedRandomProcessSeries()':
OpenSees_git/SRC/reliability/analysis/telm/NewDiscretizedRandomProcessSeries.cpp:58: undefined reference to `TimeSeries::~TimeSeries()'
OpenSees_git/SRC/reliability/analysis/telm/NewDiscretizedRandomProcessSeries.cpp:58: undefined reference to `TimeSeries::~TimeSeries()'
lib/libReliability.a(NewDiscretizedRandomProcessSeries.o):(.rodata._ZTI33NewDiscretizedRandomProcessSeries[_ZTI33NewDiscretizedRandomProcessSeries]+0x10): undefined reference to `typeinfo for TimeSeries'
lib/libReliability.a(SelectLoadInitialStaticAnalysis.o): In function `SelectLoadInitialStaticAnalysis::saveLoads()':
OpenSees_git/SRC/reliability/analysis/telm/SelectLoadInitialStaticAnalysis.cpp:393: undefined reference to `LoadPatternIter::LoadPatternIter(TaggedObjectStorage*)'
collect2: error: ld returned 1 exit status
Makefile:13: recipe for target 'tcl' failed
make[1]: *** [tcl] Error 1
make[1]: Leaving directory 'OpenSees_git/SRC/modelbuilder/tcl'
Makefile:48: recipe for target 'all' failed
make: *** [all] Error 2

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

Re: building error svn sources under Linux

Post by fmk » Thu Mar 17, 2016 9:05 am

cd to the SRC directory and type make .. looks like the OpenSees lib is not building which is why it is missing all those symbols .. type "make wipe' and then 'make' to be sure

rafal
Posts: 51
Joined: Sun Feb 22, 2015 5:58 am

Re: building error svn sources under Linux

Post by rafal » Thu Mar 17, 2016 12:54 pm

It could be unclear from my previous posts but in fact cd SRC and then typing 'make' succeeds and it seems libOpensees.a lib is created.
Here is my ~/lib directory:
~/lib$ ls
libAMD.a libCSparse.a libOpenSeesTclCommands.a libTetgen.a
libArpack.a libLapack.a libOptimization.a libTriangle.a
libBlas.a libMetis.a libReliability.a libUmfpack.a
libCBlas.a libOpenSees.a libSuperLU.a

Then going into main directory and typing 'make' produces undefined references as in one post earlier.

The error happens during /usr/bin/ld

rafal
Posts: 51
Joined: Sun Feb 22, 2015 5:58 am

Re: building error svn sources under Linux

Post by rafal » Thu Mar 17, 2016 1:57 pm

My investigation lead me to revision 6238 by aschellenberg:
merged UniformRotationalExcitation with UniformExcitation pattern -> UniformExcitation pattern can now use dof 1 to 6

as giving the same undefined references as for the most recent revision 6249.


Note that rev. 6237 compiles and builds Opensees binary correctly.

rbeber
Posts: 4
Joined: Wed Mar 16, 2016 11:13 am

Re: building error svn sources under Linux

Post by rbeber » Thu Mar 17, 2016 4:28 pm

rafal wrote:
> I have solved the problem. The issue was that although I got
> libReliability.a in home/lib directory, the directory was not linked by the
> linker. Appending $(RELIABILITY_LIBRARY) to MACHINE_NUMERICAL_LIBS variable
> in Makefile.def helped. I think Makefile.def files in MAKES directory
> should be updated otherwise 'reliability' module is compiled but not linked
> into final OpenSees program.


Hi rafal

I'm compiling the version V6123 in order to get RELIABILITY working but so far no success;
also if im trying to compile last version V6249 with the comment UniformRotationalExcitation.o
on SRC/Makefile file the result is the same:

'===============================================
LIBRARIES BUILT ... NOW LINKING OpenSees PROGRAM
make[1]: Entering directory '/home/raniero/OpenSees/SRC/tcl'
make[1]: Nothing to be done for 'tcl'.
make[1]: Leaving directory '/home/raniero/OpenSees/SRC/tcl'
make[1]: Entering directory '/home/raniero/OpenSees/SRC/modelbuilder/tcl'
make[2]: Entering directory '/home/raniero/OpenSees/SRC/tcl'
make[2]: Nothing to be done for 'tcl'.
make[2]: Leaving directory '/home/raniero/OpenSees/SRC/tcl'
/home/raniero/OpenSees/SRC/tcl/commands.o: In function `optimization(void*, Tcl_Interp*, int, char const**)':
commands.cpp:(.text+0x1f2): undefined reference to `TclOptimizationBuilder::TclOptimizationBuilder(Domain&, Tcl_Interp*)'
/home/raniero/lib/libReliability.a(CurvatureFitting.o): In function `CurvatureFitting::computeCurvatures()':
CurvatureFitting.cpp:(.text+0xaa9): undefined reference to `dgeev_'
/home/raniero/lib/libReliability.a(NatafProbabilityTransformation.o): In function `NatafProbabilityTransformation::transform_x_to_u(Vector&)':
NatafProbabilityTransformation.cpp:(.text+0x539): undefined reference to `dtrtrs_'
/home/raniero/lib/libReliability.a(NatafProbabilityTransformation.o): In function `NatafProbabilityTransformation::lapackCholesky()':
NatafProbabilityTransformation.cpp:(.text+0x731): undefined reference to `dpotrf_'
/home/raniero/lib/libReliability.a(NatafProbabilityTransformation.o): In function `NatafProbabilityTransformation::getJacobian_u_to_x(Vector const&, Matrix&)':
NatafProbabilityTransformation.cpp:(.text+0xbdd): undefined reference to `dtrtrs_'
collect2: error: ld returned 1 exit status
Makefile:13: recipe for target 'tcl' failed
make[1]: *** [tcl] Error 1
make[1]: Leaving directory '/home/raniero/OpenSees/SRC/modelbuilder/tcl'
Makefile:48: recipe for target 'all' failed
make: *** [all] Error 2
'===============================================

in my Makefile.def I had the connection on MACHINE_NUMERICAL_LIBS

I have also tried to add
CFLAGS = -Wall -O2 \
$(RELIABILITY_FLAG)
but nada!!

Hopefully someone know!
Thanks

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

Re: building error svn sources under Linux

Post by fmk » Mon Mar 21, 2016 10:11 am

i have added the missing .f routines into the Lapack directory and updated the Makefile in that directory

Post Reply