Compiling OpenSees for 64 bit

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

Moderators: silvia, selimgunay, Moderators

Post Reply
Liam
Posts: 24
Joined: Wed Mar 02, 2005 8:25 am
Location: University of Auckland

Compiling OpenSees for 64 bit

Post by Liam »

Can the OpenSees source files available from this website be compiled for 64 bit?

If so, what flags need to be changed in the makefile

Thanks
Nero
Posts: 51
Joined: Wed Jun 22, 2005 2:19 am

Post by Nero »

Liam-

You sure can. There isn't anything specific you need to do in the makefile (at least on a fedora system) as fedora, by default will compile 64-bit code.

However, there are several library paths that needed to be changed on my system as I have 32-bit librarys in /usr/lib and 64 bit in /usr/lib64.

Also, if you have an Opteron system, I would recommend downloading and compiling the AMCL libraries from AMDs site. AMCL has its own built in BLAS and LAPACK routines optimized for 64-bit AMD processors, and if you point to these libraries you should see a nice speed improvement.

-Mark
Liam
Posts: 24
Joined: Wed Mar 02, 2005 8:25 am
Location: University of Auckland

Post by Liam »

I have tried to compile in 64 bit and i get the following error messages

make[4]: Entering directory
`/people/lwot001/OpenSees/SRC/material/nD/Template3Dep'
ar -qv -X32_64 /people/lwot001/lib/libmatmod.a Template3Dep.o
TclTemplate3DepCommand.o MatPoint3D.o CAM_PS.o CAM_YS.o DP_PS.o DP_YS.o
EL_LEeq.o EL_LEij.o EL_NLEp.o EL_NLEeq.o EL_NLEij.o EL_NLEijMD.o EL_S.o
EL_T.o EPState.o VM_PS.o VM_YS.o YS.o PS.o MD_PS01.o MD_PS.o DP_YS01.o
MD_YS.o Tri_a_fail_crit_YS.o RMC01.o RMC01_PS.o RMC01_YS.o
q - Template3Dep.o
q - TclTemplate3DepCommand.o
q - MatPoint3D.o
q - CAM_PS.o
q - CAM_YS.o
q - DP_PS.o
q - DP_YS.o
q - EL_LEeq.o
q - EL_LEij.o
q - EL_NLEp.o
q - EL_NLEeq.o
q - EL_NLEij.o
q - EL_NLEijMD.o
q - EL_S.o
q - EL_T.o
q - EPState.o
q - VM_PS.o
q - VM_YS.o
q - YS.o
q - PS.o
q - MD_PS01.o
q - MD_PS.o
q - DP_YS01.o
q - MD_YS.o
q - Tri_a_fail_crit_YS.o
q - RMC01.o
q - RMC01_PS.o
q - RMC01_YS.o
make[4]: Leaving directory
`/people/lwot001/OpenSees/SRC/material/nD/Template3Dep'
ar: 0707-126 Template3Dep.o is not valid with the current object file
mode.
Use the -X option to specify the desired object mode.
ar: 0707-126 MatPoint3D.o is not valid with the current object file
mode.
Use the -X option to specify the desired object mode.
ar: 0707-126 DP_PS.o is not valid with the current object file mode.
Use the -X option to specify the desired object mode.
ar: 0707-126 DP_YS.o is not valid with the current object file mode.
Use the -X option to specify the desired object mode.
ar: 0707-126 EL_LEeq.o is not valid with the current object file mode.
Use the -X option to specify the desired object mode.
ar: 0707-126 EL_LEij.o is not valid with the current object file mode.
Use the -X option to specify the desired object mode.
ar: 0707-126 EL_NLEeq.o is not valid with the current object file mode.
Use the -X option to specify the desired object mode.
ar: 0707-126 EL_NLEij.o is not valid with the current object file mode.
Use the -X option to specify the desired object mode.
ar: 0707-126 EL_NLEijMD.o is not valid with the current object file
mode.
Use the -X option to specify the desired object mode.
ar: 0707-126 EL_S.o is not valid with the current object file mode.
Use the -X option to specify the desired object mode.
ar: 0707-126 EL_T.o is not valid with the current object file mode.
Use the -X option to specify the desired object mode.
ar: 0707-126 EPState.o is not valid with the current object file mode.
Use the -X option to specify the desired object mode.
ar: 0707-126 VM_PS.o is not valid with the current object file mode.
Use the -X option to specify the desired object mode.
ar: 0707-126 VM_YS.o is not valid with the current object file mode.
Use the -X option to specify the desired object mode.
ar: 0707-126 YS.o is not valid with the current object file mode.
Use the -X option to specify the desired object mode.
ar: 0707-126 PS.o is not valid with the current object file mode.
Use the -X option to specify the desired object mode.
ar: 0707-126 MD_PS01.o is not valid with the current object file mode.
Use the -X option to specify the desired object mode.
ar: 0707-126 MD_PS.o is not valid with the current object file mode.
Use the -X option to specify the desired object mode.
ar: 0707-126 DP_YS01.o is not valid with the current object file mode.
Use the -X option to specify the desired object mode.
ar: 0707-126 MD_YS.o is not valid with the current object file mode.
Use the -X option to specify the desired object mode.
ar: 0707-126 RMC01.o is not valid with the current object file mode.
Use the -X option to specify the desired object mode.
ar: 0707-126 RMC01_PS.o is not valid with the current object file mode.
Use the -X option to specify the desired object mode.
ar: 0707-126 RMC01_YS.o is not valid with the current object file mode.
Use the -X option to specify the desired object mode.
make[3]: *** [all] Error 23
make[3]: Leaving directory `/people/lwot001/OpenSees/SRC/material/nD'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/people/lwot001/OpenSees/SRC/material'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/people/lwot001/OpenSees/SRC'
LIBRARIES BUILT ... NOW LINKING OpenSees PROGRAM
make[1]: Entering directory `/people/lwot001/OpenSees/SRC/tcl'
make[1]: Nothing to be done for `tcl'.
make[1]: Leaving directory `/people/lwot001/OpenSees/SRC/tcl'
make[1]: Entering directory
`/people/lwot001/OpenSees/SRC/modelbuilder/tcl'
make[2]: Entering directory `/people/lwot001/OpenSees/SRC/tcl'
make[2]: Nothing to be done for `tcl'.
make[2]: Leaving directory `/people/lwot001/OpenSees/SRC/tcl'
xlC_r: 1501-228 input file /people/lwot001/lib/libOpenSees.a not found
make[1]: *** [tcl] Error 252
make[1]: Leaving directory
`/people/lwot001/OpenSees/SRC/modelbuilder/tcl'
make: *** [all] Error 2


Im sure that i have missed a flag somewhere, but i was wondering if i could get any advice on this

Liam
Post Reply