Hello everyone,
I'm new with Opensees and when I try to compile Opensees on mac os x 10.6.8 I got these errors:
ranlib /Users/ruben_rosario/lib/libSuperLU.a
Makefile:5: warning: overriding commands for target `.c.o'
../../Makefile.def:353: warning: ignoring old commands for target `.c.o'
Making dsrc2c.o from dsrc2c.f
/usr/local/bin/gfortran -Wall -O -DCUBLAS -x f77-cpp-input --no-second-underscore -c dsrc2c.f -o dsrc2c.o
dsrc2c.f:598.16:
DDOT = DDOT+DX(IX)*DY(IY)
1
Warning: Possible change of value in conversion from REAL(8) to REAL(4) at (1)
dsrc2c.f:611.16:
DDOT = DDOT+DX(I)*DY(I)
1
Warning: Possible change of value in conversion from REAL(8) to REAL(4) at (1)
dsrc2c.f:616.16:
DDOT = DDOT+DX(I)*DY(I)+DX(I+1)*DY(I+1)+DX(I+2)*DY(I+2)+DX(I+3)
1
Warning: Possible change of value in conversion from REAL(8) to REAL(4) at (1)
dsrc2c.f:626.16:
DDOT = DDOT+DX(I)*DY(I)
1
Warning: Possible change of value in conversion from REAL(8) to REAL(4) at (1)
dsrc2c.f:581.38:
DOUBLE PRECISION FUNCTION ItDDOT (N,DX,INCX,DY,INCY)
1
Warning: Return value of function 'itddot' at (1) not set
dsrc2c.f:1668.37:
LOGICAL FUNCTION OMGCHG (NDUMMY)
1
Warning: Unused dummy argument 'ndummy' at (1)
dsrc2c.f:1720.37:
LOGICAL FUNCTION OMGSTR (NDUMMY)
1
Warning: Unused dummy argument 'ndummy' at (1)
dsrc2c.f:4604.22:
DIMENSION TARRAY(2)
1
Warning: Unused variable 'tarray' declared at (1)
dsrc2c.f:4579.28:
FUNCTION TIMER (TIMDMY)
1
Warning: Unused dummy argument 'timdmy' at (1)
dsrc2c.f: In function ‘chgcon’:
dsrc2c.f:166:0: warning: ‘cmold’ may be used uninitialized in this function [-Wuninitialized]
Making jcg.o from jcg.f
/usr/local/bin/gfortran -Wall -O -DCUBLAS -x f77-cpp-input --no-second-underscore -c jcg.f -o jcg.o
jcg.f: In function ‘jcg’:
jcg.f:317:0: warning: ‘timi1’ may be used uninitialized in this function [-Wuninitialized]
jcg.f:372:0: warning: ‘timj1’ may be used uninitialized in this function [-Wuninitialized]
Making jsi.o from jsi.f
/usr/local/bin/gfortran -Wall -O -DCUBLAS -x f77-cpp-input --no-second-underscore -c jsi.f -o jsi.o
jsi.f: In function ‘jsi’:
jsi.f:299:0: warning: ‘timi1’ may be used uninitialized in this function [-Wuninitialized]
jsi.f:353:0: warning: ‘timj1’ may be used uninitialized in this function [-Wuninitialized]
Making rscg.o from rscg.f
/usr/local/bin/gfortran -Wall -O -DCUBLAS -x f77-cpp-input --no-second-underscore -c rscg.f -o rscg.o
rscg.f: In function ‘rscg’:
rscg.f:355:0: warning: ‘timi1’ may be used uninitialized in this function [-Wuninitialized]
rscg.f:399:0: warning: ‘timj1’ may be used uninitialized in this function [-Wuninitialized]
Making rssi.o from rssi.f
/usr/local/bin/gfortran -Wall -O -DCUBLAS -x f77-cpp-input --no-second-underscore -c rssi.f -o rssi.o
rssi.f: In function ‘rssi’:
rssi.f:333:0: warning: ‘timi1’ may be used uninitialized in this function [-Wuninitialized]
rssi.f:377:0: warning: ‘timj1’ may be used uninitialized in this function [-Wuninitialized]
Making sor.o from sor.f
/usr/local/bin/gfortran -Wall -O -DCUBLAS -x f77-cpp-input --no-second-underscore -c sor.f -o sor.o
sor.f: In function ‘itsor’:
sor.f:430:0: warning: ‘change’ may be used uninitialized in this function [-Wuninitialized]
sor.f:469:0: warning: ‘ipstar’ may be used uninitialized in this function [-Wuninitialized]
sor.f:435:0: warning: ‘omegap’ may be used uninitialized in this function [-Wuninitialized]
sor.f: In function ‘sor’:
sor.f:287:0: warning: ‘timi1’ may be used uninitialized in this function [-Wuninitialized]
sor.f:336:0: warning: ‘timj1’ may be used uninitialized in this function [-Wuninitialized]
Making ssorcg.o from ssorcg.f
/usr/local/bin/gfortran -Wall -O -DCUBLAS -x f77-cpp-input --no-second-underscore -c ssorcg.f -o ssorcg.o
ssorcg.f: In function ‘ssorcg’:
ssorcg.f:334:0: warning: ‘timi1’ may be used uninitialized in this function [-Wuninitialized]
ssorcg.f:388:0: warning: ‘timj1’ may be used uninitialized in this function [-Wuninitialized]
Making ssorsi.o from ssorsi.f
/usr/local/bin/gfortran -Wall -O -DCUBLAS -x f77-cpp-input --no-second-underscore -c ssorsi.f -o ssorsi.o
ssorsi.f: In function ‘ssorsi’:
ssorsi.f:317:0: warning: ‘timi1’ may be used uninitialized in this function [-Wuninitialized]
ssorsi.f:371:0: warning: ‘timj1’ may be used uninitialized in this function [-Wuninitialized]
LIBRARIES BUILT ... NOW LINKING OpenSees PROGRAM
make[1]: Nothing to be done for `tcl'.
make[2]: Nothing to be done for `tcl'.
Undefined symbols:
"___unordtf2", referenced from:
_write_float in libgfortran.a(write.o)
_write_float in libgfortran.a(write.o)
"___divtf3", referenced from:
_write_float in libgfortran.a(write.o)
_write_float in libgfortran.a(write.o)
"___subtf3", referenced from:
_write_float in libgfortran.a(write.o)
_write_float in libgfortran.a(write.o)
"___floatunditf", referenced from:
__gfortran_random_r16 in libgfortran.a(random.o)
__gfortran_random_r16 in libgfortran.a(random.o)
__gfortran_arandom_r16 in libgfortran.a(random.o)
__gfortran_arandom_r16 in libgfortran.a(random.o)
"_quadmath_snprintf", referenced from:
_write_float in libgfortran.a(write.o)
"___trunctfdf2", referenced from:
_write_float in libgfortran.a(write.o)
"_strtoflt128", referenced from:
__gfortrani_convert_real in libgfortran.a(read.o)
"___getf2", referenced from:
_write_float in libgfortran.a(write.o)
"___multf3", referenced from:
_write_float in libgfortran.a(write.o)
_write_float in libgfortran.a(write.o)
_write_float in libgfortran.a(write.o)
_write_float in libgfortran.a(write.o)
_write_float in libgfortran.a(write.o)
_write_float in libgfortran.a(write.o)
__gfortran_random_r16 in libgfortran.a(random.o)
__gfortran_random_r16 in libgfortran.a(random.o)
__gfortran_arandom_r16 in libgfortran.a(random.o)
__gfortran_arandom_r16 in libgfortran.a(random.o)
__gfortran_cpu_time_16 in libgfortran.a(cpu_time.o)
"___addtf3", referenced from:
_write_float in libgfortran.a(write.o)
__gfortran_random_r16 in libgfortran.a(random.o)
__gfortran_arandom_r16 in libgfortran.a(random.o)
__gfortran_cpu_time_16 in libgfortran.a(cpu_time.o)
"___eqtf2", referenced from:
_write_float in libgfortran.a(write.o)
"___gttf2", referenced from:
_write_float in libgfortran.a(write.o)
_write_float in libgfortran.a(write.o)
_write_float in libgfortran.a(write.o)
"___floatsitf", referenced from:
__gfortran_cpu_time_16 in libgfortran.a(cpu_time.o)
__gfortran_cpu_time_16 in libgfortran.a(cpu_time.o)
"___lttf2", referenced from:
_write_float in libgfortran.a(write.o)
_write_float in libgfortran.a(write.o)
ld: symbol(s) not found
collect2: ld returned 1 exit status
make[1]: *** [tcl] Error 1
make: *** [all] Error 2
Ruben-Rosarios-MacBook-Pro-15:OpenSees ruben_rosario$
you can check my Makefile.def on the following link https://www.dropbox.com/s/wqkggt7kga6lz ... file.def?m
I had already tried to compile with your Makefile.def for Mac 10.6 but it wasn't possible to finish properly.
PS: Xcode 3.0 ; ActiveTcl 8.5.13 ; gfortran 4.6.1 - i686
Thanks in advance,
Rúben Rosário
Compile OpenSees Mac 10.6
Moderators: silvia, selimgunay, Moderators
Re: Compile OpenSees Mac 10.6
go to the /usr/local/lib and look for those undefined symbols (if you don't already know .. use the fgrep command to search files for the missing symbols) ..
once you find the needed lib file add it to the Makefile.def afer libgortran.
once you find the needed lib file add it to the Makefile.def afer libgortran.
-
- Posts: 4
- Joined: Wed Sep 19, 2012 5:51 am
- Location: New University of Lisbon - Faculty Science and Technology
Re: Compile OpenSees Mac 10.6
after installing xcode 3.2.3 some of the problems were solved. However, an error occurred:
i686-apple-darwin9-g++-4.0.1: installation problem, cannot exec 'cc1plus': No such file or directory
make[1]: *** [TclModelBuilder.o] Error 1
make: *** [all] Error 2
Where can I find this file? Couldn't find it.
Thanks in advance,
Rúben Rosário
i686-apple-darwin9-g++-4.0.1: installation problem, cannot exec 'cc1plus': No such file or directory
make[1]: *** [TclModelBuilder.o] Error 1
make: *** [all] Error 2
Where can I find this file? Couldn't find it.
Thanks in advance,
Rúben Rosário
Re: Compile OpenSees Mac 10.6
that's an xcode installation problem .. the Makefile is using the g++ compiler to link the objects together .. g++ is calling cc1plus and it can' find it .. it should if the installation was correct ..
i suggest you try uninstalling and reinstalling xcode again.
i suggest you try uninstalling and reinstalling xcode again.