![Cygwin:安装 Seismic Unix 时出现问题 - 安装过程中出现错误](https://linux22.com/image/186420/Cygwin%EF%BC%9A%E5%AE%89%E8%A3%85%20Seismic%20Unix%20%E6%97%B6%E5%87%BA%E7%8E%B0%E9%97%AE%E9%A2%98%20-%20%E5%AE%89%E8%A3%85%E8%BF%87%E7%A8%8B%E4%B8%AD%E5%87%BA%E7%8E%B0%E9%94%99%E8%AF%AF.png)
我需要一些在 Windows 10 的 Cygwin 中安装“Seismic Unix”的建议。希望以前做过此操作的人可以帮助我。
我遇到的问题是,当我运行make install
安装过程运行到某个点时,然后退出并出现错误。当程序绑定运行 makefile 时似乎会发生:
.....\cwp_su_all_44R19\src\su\main\filters
错误输出为:
make[3]: Leaving directory '/home/USER/cwp_su_all_44R19/src/su/main/dip_moveout'
cd filters ; make
make[3]: Entering directory '/home/USER/cwp_su_all_44R19/src/su/main/filters'
gcc -I/home/USER/cwp_su_all_44R19/include -O -std=c99 -Wall -pedantic -Wno-long-long -DCWP_LITTLE_ENDIAN -D_BSD_SOURCE -D_POSIX_SOURCE sulfaf.c -L/home/USER/cwp_su_all_44R19/lib -lsu -lpar -lcwp -lm -o /home/USER/cwp_su_all_44R19/bin/sulfaf
/usr/lib/gcc/i686-pc-cygwin/10/../../../../i686-pc-cygwin/bin/ld: /home/USER/cwp_su_all_44R19/lib/libsu.a(fputgthr.o):fputgthr.c:(.bss+0x0): multiple definition of `tr'; /home/USER/cwp_su_all_44R19/lib/libsu.a(fgetgthr.o):fgetgthr.c:(.bss+0x0): first defined here
collect2: error: ld returned 1 exit status
make[3]: [Makefile:35: /home/USER/cwp_su_all_44R19/bin/sulfaf] Error 1 (ignored)
chmod: cannot access '/home/USER/cwp_su_all_44R19/bin/sulfaf': No such file or directory
make[3]: *** [Makefile:36: /home/USER/cwp_su_all_44R19/bin/sulfaf] Error 1
make[3]: Leaving directory '/home/USER/cwp_su_all_44R19/src/su/main/filters'
make[2]: *** [Makefile:14: INSTALL] Error 2
make[2]: Leaving directory '/home/USER/cwp_su_all_44R19/src/su/main'
make[1]: *** [Makefile:8: INSTALL] Error 2
make[1]: Leaving directory '/home/USER/cwp_su_all_44R19/src/su'
我尝试安装几个不同版本的 SU,但遇到了完全相同的问题。有小费吗?
答案1
添加
-Wl,--allow-multiple-definition -Wl,--enable-runtime-pseudo-reloc
到受影响文件夹中 Makefile 中的链接器标志
这并不优雅,但它解决了问题。