Could you help with the compiliation problem?
Thanks,
OpenSees 5836 (lastest ver tested too)
Ubuntu 14.04 LTS 32 bit
TCL/TK is tested
GCC version:
ubo@ubocomp:~$ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/i686-linux-gnu/4.8/lto-wrapper
Target: i686-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 4.8.2-19ubuntu1' --with-bugurl=file:///usr/share/doc/gcc-4.8/README.Bugs --enable-languages=c,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.8 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.8 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --disable-libmudflap --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-4.8-i386/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-4.8-i386 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-4.8-i386 --with-arch-directory=i386 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-targets=all --enable-multiarch --disable-werror --with-arch-32=i686 --with-multilib-list=m32,m64,mx32 --with-tune=generic --enable-checking=release --build=i686-linux-gnu --host=i686-linux-gnu --target=i686-linux-gnu
Thread model: posix
gcc version 4.8.2 (Ubuntu 4.8.2-19ubuntu1)
Following done before make
# sudo in and type the following:
# sudo apt-get update
# sudo apt-get install subversion
# svn co svn://opensees.berkeley.edu/usr/local/svn/OpenSees/trunk OpenSees ##several vesions tested as indicated above
##### sudo apt-get install emacs #####not installed/
##### sudo apt-get install make ###used OS version
# sudo apt-get install tcl8.5
# sudo apt-get install tcl8.5-dev
#### sudo apt-get install gcc
#### sudo apt-get install g++
#### sudo apt-get install gfortran
# mkdir lib ### /home/ubo/lib created
# mkdir bin ### /home/ubo/bin
# cd OpenSees
# cp ./MAKES/Makefile.def.EC2-UBUNTU ./Makefile.def ###modified acorrdingly
# make
MAKEFILE.DEF (modified from Makefile.def.EC2-UBUNTU)
# %---------------------------------%
# | SECTION 1: PROGRAM |
# %---------------------------------%
#
# Specify the location and name of the OpenSees interpreter program
# that will be created (if this all works!)
OpenSees_PROGRAM = $(HOME)/bin/OpenSees
OPERATING_SYSTEM = LINUX
GRAPHICS = NONE
GRAPHIC_FLAG = -D_NOGRAPHICS
PROGRAMMING_MODE = SEQUENTIAL
DEBUG_MODE = NO_DEBUG
RELIABILITY = NO_RELIABILITY
# %---------------------------------%
# | SECTION 2: PATHS |
# %---------------------------------%
#
# Note: if vendor supplied BLAS and LAPACK libraries or if you have
# any of the libraries already leave the directory location blank AND
# remove the directory from DIRS.
BASE = /usr/local
HOME = /home/ubo
FE = $(HOME)/OpenSees/SRC
.......
# bh TCL_LIBRARY = /usr/lib/libtcl8.5.so
TCL_LIBRARY = /usr/lib/i386-linux-gnu/libtcl8.5.so
# following added later on
TCL_LIBS = /usr/lib/i386-linux-gnu/libtcl8.5.so
.......
MACHINE_SPECIFIC_LIBS =
# %---------------------------------------------------------%
# | SECTION 7: INCLUDE FILES |
# | |
# | The following macros specify include files needed for |
# | compilation. |
# %---------------------------------------------------------%
MACHINE_INCLUDES = -I/usr/include \
-I$(BASE)/include \
-I/usr/include/cxx \
-I$(HOME)/include -I$(HOME)/blitz
# this file contains all the OpenSees/SRC includes
include $(FE)/Makefile.incl
#TCL_INCLUDES = -I/usr/include
TCL_INCLUDES = -I/usr/include/tcl8.5 -I/usr/include/
INCLUDES = $(TCL_INCLUDES) $(FE_INCLUDES) $(MACHINE_INCLUDES)
MAKE LOG.txt:
Last lines:
subdomains.c: In function ‘__EliminateComponents’:
subdomains.c75: warning: unused variable ‘other’ [-Wunused-variable]
int i, ii, j, jj, k, me, nvtxs, tvwgt, first, last, nleft, ncmps, cwgt, other, target, deltawgt;
^
subdomains.c: In function ‘__MoveGroup’:
subdomains.c45: warning: unused variable ‘myndegrees’ [-Wunused-variable]
int i, ii, iii, j, jj, k, l, nvtxs, nbnd, myndegrees;
^
subdomains.c32: warning: variable ‘nvtxs’ set but not used [-Wunused-but-set-variable]
int i, ii, iii, j, jj, k, l, nvtxs, nbnd, myndegrees;
^
subdomains.c29: warning: unused variable ‘l’ [-Wunused-variable]
int i, ii, iii, j, jj, k, l, nvtxs, nbnd, myndegrees;
^
subdomains.c22: warning: unused variable ‘jj’ [-Wunused-variable]
int i, ii, iii, j, jj, k, l, nvtxs, nbnd, myndegrees;
^
subdomains.c: In function ‘__EliminateComponents’:
subdomains.c10: warning: ‘me’ may be used uninitialized in this function [-Wmaybe-uninitialized]
if (where[k] == me && !touched[k]) {
^
make[1]: Leaving directory `/home/ubo/OpenSees/OTHER/METIS'
LIBRARIES BUILT ... NOW LINKING OpenSees PROGRAM
make[1]: Entering directory `/home/ubo/OpenSees/SRC/tcl'
make[1]: Nothing to be done for `tcl'.
make[1]: Leaving directory `/home/ubo/OpenSees/SRC/tcl'
make[1]: Entering directory `/home/ubo/OpenSees/SRC/modelbuilder/tcl'
make[2]: Entering directory `/home/ubo/OpenSees/SRC/tcl'
make[2]: Nothing to be done for `tcl'.
make[2]: Leaving directory `/home/ubo/OpenSees/SRC/tcl'
/usr/bin/ld: cannot open output file /home/ubo/bin/OpenSees: Is a directory
collect2: error: ld returned 1 exit status
make[1]: *** [tcl] Error 1
make[1]: Leaving directory `/home/ubo/OpenSees/SRC/modelbuilder/tcl'
make: *** [all] Error 2
after this following is tested:
ubo@ubocomp:~/OpenSees/SRC/modelbuilder/tcl$ make tcl
make[1]: Entering directory `/home/ubo/OpenSees/SRC/tcl'
make[1]: Nothing to be done for `tcl'.
make[1]: Leaving directory `/home/ubo/OpenSees/SRC/tcl'
/usr/bin/ld: cannot open output file /home/ubo/bin/OpenSees: Is a directory
collect2: error: ld returned 1 exit status
make: *** [tcl] Error 1
Compile Error for svn r 5836 on ubunutu 32bit
Moderators: silvia, selimgunay, Moderators
Re: Compile Error for svn r 5836 on ubunutu 32bit
do you have a bin and lib directories in /home/ubo .. the Makefile doe snot create them but they are needed
Re: Compile Error for svn r 5836 on ubunutu 32bit
Yes I did. Actually I figured the problem. During the previous compiling attempts which were not successful (due to missing tcl-dev or wrong tcl folder loc) a folder named 'OpenSees' was created under /home/ubo/bin/. After I deleted the folder and fixed the rest of the errors it worked. Thanks. Bulent
-
- Posts: 3
- Joined: Sun Jul 28, 2013 9:37 pm
- Location: Chennai
- Contact:
Re: Compile Error for svn r 5836 on ubunutu 32bit
I have the same problem in 64bit OS