I need to compile saciterd.f, but I see some kinds of linking error, like
below.
Could you please give me the how to fix the problem?
$ pwd
/Users/rumi/Documents/sac/lib
$ ls
README_lib libsac.a libsacio.a sacio.a saciterd.f
$ gfortran -o saciterd saciterd.f `sac-config --libs sacio sac`
Undefined symbols for architecture x86_64:
"_arsac_", referenced from:
_tdomain_ in cchQQKWF.o
"_brsac_", referenced from:
_tdomain_ in cchQQKWF.o
"_bwsac_", referenced from:
_tdomain_ in cchQQKWF.o
"_lgstr_", referenced from:
_MAIN__ in cchQQKWF.o
_chtofp_ in cchQQKWF.o
"_mchdep_", referenced from:
_MAIN__ in cchQQKWF.o
"_mgtarg_", referenced from:
_gcmdln_ in cchQQKWF.o
"_mnmarg_", referenced from:
_gcmdln_ in cchQQKWF.o
ld: symbol(s) not found for architecture x86_64
collect2: error: ld returned 1 exit status
NOTE:
$ gcc --version
Configured with: --prefix=/Library/Developer/CommandLineTools/usr
--with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 6.1.0 (clang-602.0.53) (based on LLVM 3.6.0svn)
Target: x86_64-apple-darwin14.4.0
Thread model: posix
Thank you so much.
Rumi Takedatsu
San Diego State University
below.
Could you please give me the how to fix the problem?
$ pwd
/Users/rumi/Documents/sac/lib
$ ls
README_lib libsac.a libsacio.a sacio.a saciterd.f
$ gfortran -o saciterd saciterd.f `sac-config --libs sacio sac`
Undefined symbols for architecture x86_64:
"_arsac_", referenced from:
_tdomain_ in cchQQKWF.o
"_brsac_", referenced from:
_tdomain_ in cchQQKWF.o
"_bwsac_", referenced from:
_tdomain_ in cchQQKWF.o
"_lgstr_", referenced from:
_MAIN__ in cchQQKWF.o
_chtofp_ in cchQQKWF.o
"_mchdep_", referenced from:
_MAIN__ in cchQQKWF.o
"_mgtarg_", referenced from:
_gcmdln_ in cchQQKWF.o
"_mnmarg_", referenced from:
_gcmdln_ in cchQQKWF.o
ld: symbol(s) not found for architecture x86_64
collect2: error: ld returned 1 exit status
NOTE:
$ gcc --version
Configured with: --prefix=/Library/Developer/CommandLineTools/usr
--with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 6.1.0 (clang-602.0.53) (based on LLVM 3.6.0svn)
Target: x86_64-apple-darwin14.4.0
Thread model: posix
Thank you so much.
Rumi Takedatsu
San Diego State University
-
What occur if you add the -m32 ?
Cheers,
M.
On Jul 30, 2015, at 17:32, Rumi Takedatsu <rtakedatsu<at>mail.sdsu.edu> wrote:
I need to compile saciterd.f, but I see some kinds of linking error, like below.
Could you please give me the how to fix the problem?
$ pwd
/Users/rumi/Documents/sac/lib
$ ls
README_lib libsac.a libsacio.a sacio.a saciterd.f
$ gfortran -o saciterd saciterd.f `sac-config --libs sacio sac`
Undefined symbols for architecture x86_64:
"_arsac_", referenced from:
_tdomain_ in cchQQKWF.o
"_brsac_", referenced from:
_tdomain_ in cchQQKWF.o
"_bwsac_", referenced from:
_tdomain_ in cchQQKWF.o
"_lgstr_", referenced from:
_MAIN__ in cchQQKWF.o
_chtofp_ in cchQQKWF.o
"_mchdep_", referenced from:
_MAIN__ in cchQQKWF.o
"_mgtarg_", referenced from:
_gcmdln_ in cchQQKWF.o
"_mnmarg_", referenced from:
_gcmdln_ in cchQQKWF.o
ld: symbol(s) not found for architecture x86_64
collect2: error: ld returned 1 exit status
NOTE:
$ gcc --version
Configured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 6.1.0 (clang-602.0.53) (based on LLVM 3.6.0svn)
Target: x86_64-apple-darwin14.4.0
Thread model: posix
Thank you so much.
Rumi Takedatsu
San Diego State University
----------------------
SAC Help (http://ds.iris.edu/message-center/topic/sac-help/)
Sent via IRIS Message Center (http://ds.iris.edu/message-center/)
Update subscription preferences at http://ds.iris.edu/account/profile/
Attachments
-
I got,
Geoadmins-iMac:lib rumi$ gfortran -m32 -o saciterd saciterd.f `sac-config
--libs sacio sac`
ld: warning: ld: warning: ignoring file
/Users/rumi/Documents/sac/lib/libsacio.a, file was built for archive which
is not the architecture being linked (i386):
/Users/rumi/Documents/sac/lib/libsacio.aignoring file
/Users/rumi/Documents/sac/lib/libsac.a, file was built for archive which is
not the architecture being linked (i386):
/Users/rumi/Documents/sac/lib/libsac.a
Undefined symbols for architecture i386:
"_arsac_", referenced from:
_tdomain_ in ccl9JHnm.o
"_brsac_", referenced from:
_tdomain_ in ccl9JHnm.o
"_bwsac_", referenced from:
_tdomain_ in ccl9JHnm.o
"_getfhv_", referenced from:
_tdomain_ in ccl9JHnm.o
"_getnhv_", referenced from:
_tdomain_ in ccl9JHnm.o
"_lgstr_", referenced from:
_MAIN__ in ccl9JHnm.o
_chtofp_ in ccl9JHnm.o
"_mchdep_", referenced from:
_MAIN__ in ccl9JHnm.o
"_mgtarg_", referenced from:
_gcmdln_ in ccl9JHnm.o
"_mnmarg_", referenced from:
_gcmdln_ in ccl9JHnm.o
"_newhdr_", referenced from:
_tdomain_ in ccl9JHnm.o
"_rsac1_", referenced from:
_tdomain_ in ccl9JHnm.o
"_setfhv_", referenced from:
_tdomain_ in ccl9JHnm.o
"_setkhv_", referenced from:
_tdomain_ in ccl9JHnm.o
"_setnhv_", referenced from:
_tdomain_ in ccl9JHnm.o
"_wsac0_", referenced from:
_tdomain_ in ccl9JHnm.o
"_wsac1_", referenced from:
_tdomain_ in ccl9JHnm.o
ld: symbol(s) not found for architecture i386
collect2: error: ld returned 1 exit status
Thanks,
Rumi Takedatsu
On Fri, Jul 31, 2015 at 5:51 AM, Milton Plasencia <mplasencia<at>inogs.it>
wrote:
What occur if you add the -m32 ?
Cheers,
M.
On Jul 30, 2015, at 17:32, Rumi Takedatsu <rtakedatsu<at>mail.sdsu.edu>
wrote:
I need to compile saciterd.f, but I see some kinds of linking error, like
below.
Could you please give me the how to fix the problem?
$ pwd
/Users/rumi/Documents/sac/lib
$ ls
README_lib libsac.a libsacio.a sacio.a saciterd.f
$ gfortran -o saciterd saciterd.f `sac-config --libs sacio sac`
Undefined symbols for architecture x86_64:
"_arsac_", referenced from:
_tdomain_ in cchQQKWF.o
"_brsac_", referenced from:
_tdomain_ in cchQQKWF.o
"_bwsac_", referenced from:
_tdomain_ in cchQQKWF.o
"_lgstr_", referenced from:
_MAIN__ in cchQQKWF.o
_chtofp_ in cchQQKWF.o
"_mchdep_", referenced from:
_MAIN__ in cchQQKWF.o
"_mgtarg_", referenced from:
_gcmdln_ in cchQQKWF.o
"_mnmarg_", referenced from:
_gcmdln_ in cchQQKWF.o
ld: symbol(s) not found for architecture x86_64
collect2: error: ld returned 1 exit status
NOTE:
$ gcc --version
Configured with: --prefix=/Library/Developer/CommandLineTools/usr
--with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 6.1.0 (clang-602.0.53) (based on LLVM 3.6.0svn)
Target: x86_64-apple-darwin14.4.0
Thread model: posix
Thank you so much.
Rumi Takedatsu
San Diego State University
----------------------
SAC Help (http://ds.iris.edu/message-center/topic/sac-help/)
Sent via IRIS Message Center (http://ds.iris.edu/message-center/)
Update subscription preferences at http://ds.iris.edu/account/profile/
-
-
Hi sac-help staffs,
I use sac-101.6a-mac_x86_64.tar.gz, and when I type make in
SACHOME/doc/examples,
I got the message;
$ make
( LDLIBS='' /Library/Developer/CommandLineTools/usr/bin/make io )
f77 -Wall `sac-config --cflags` rsac1f.f `sac-config --libs sacio` -o
rsac1f
/bin/sh: f77: command not found
make[1]: *** [rsac1f] Error 127
make: *** [all] Error 2
Do I need f77 for the examples?
Can I change using gfortran?
Thank you,
Rumi Takedatsu
San Diego State University
On Fri, Jul 24, 2015 at 5:41 PM, Rumi Takedatsu <rtakedatsu<at>mail.sdsu.edu>
wrote:
I need to compile saciterd.f, but I see some kinds of linking error, like
below.
Could you please give me the how to fix the problem?
$ pwd
/Users/rumi/Documents/sac/lib
$ ls
README_lib libsac.a libsacio.a sacio.a saciterd.f
$ gfortran -o saciterd saciterd.f `sac-config --libs sacio sac`
Undefined symbols for architecture x86_64:
"_arsac_", referenced from:
_tdomain_ in cchQQKWF.o
"_brsac_", referenced from:
_tdomain_ in cchQQKWF.o
"_bwsac_", referenced from:
_tdomain_ in cchQQKWF.o
"_lgstr_", referenced from:
_MAIN__ in cchQQKWF.o
_chtofp_ in cchQQKWF.o
"_mchdep_", referenced from:
_MAIN__ in cchQQKWF.o
"_mgtarg_", referenced from:
_gcmdln_ in cchQQKWF.o
"_mnmarg_", referenced from:
_gcmdln_ in cchQQKWF.o
ld: symbol(s) not found for architecture x86_64
collect2: error: ld returned 1 exit status
NOTE:
$ gcc --version
Configured with: --prefix=/Library/Developer/CommandLineTools/usr
--with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 6.1.0 (clang-602.0.53) (based on LLVM 3.6.0svn)
Target: x86_64-apple-darwin14.4.0
Thread model: posix
Thank you so much.
Rumi Takedatsu
San Diego State University