[問題] compiler錯誤 linker input file unused

看板Linux作者 (libertines)時間11年前 (2014/07/08 11:58), 11年前編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/2 (看更多)
安裝軟體talys碰到的問題 猜測大概是因為compiler這部份出問題 或是 script還需要修改什麼 但目前不知道解決執行script後跳出的訊息 文件上寫說可以用的compiler ‧ Fujitsu/Lahey Fortran90/95 compiler on various Linux systems ‧ gnu g77 Fortran77 compiler on various Linux systems ‧ g95 Fortran compiler on various Linux systems ‧ gfortran Fortran compiler on various Linux systems ‧ Portland pgf95 Fortran compiler on various Linux systems ‧ Intel ifort Fortran compiler on various Linux systems ‧ Workshop 6.2 Fortran90 compiler on the SUN workstation 我是用GNU Fortran 95 compiler 和GNU Fortran compiler 其他像 g77 . ifort 跳出來的訊息更奇怪 以下是GNU Fortran 95 compiler 和GNU Fortran compiler都會跳出一樣的錯誤訊息 (雖 然顯示completed, 但在執行時會出現錯誤 Segmentation fault (core dumped) ) --------------------- 執行script後的結果 ------------------------------------------------- lee@lee-BM2320:~/talys$ ./talys.setup gfortran: warning: /usr/bin/gfortran: linker input file unused because linking not done /usr/bin/ld: error in /usr/bin/gfortran(.eh_frame); no .eh_frame_hdr table will be created. The TALYS setup has been completed. You will find a talys executable in your /home/lee/talys directory. You are all set to run the sample problems in the samples directory with the verify script. -------------------------------------------------------------------------------------------------------- -------------------以下是talys.setup的script 修改了第八行compiler= 和11行 bindir= -------------------- #!/bin/sh unalias -a # # This script takes care of the TALYS installation. # All you have to do is adapt the next variables to your own situation, # and run..... # compiler='gfortran /usr/bin/gfortran' #compiler='g95' Thome=${HOME} bindir=$Thome'/talys' # destiny directory of the TALYS executable # # From here on, the rest should work automatically # # 1. Define the talys directory # talysdir=`pwd` # # 2. Ensure that all directories have execute permission and that # all files have a read and write permission # cd .. chmod -R u+rwX talys # # 3. Ensure that TALYS can read the structure database by replacing # the path name in subroutine machine.f # datapath=${talysdir}'/' datapathnew=`echo $datapath | sed 's/\//\\\\\//g'` cd ${talysdir}'/source/' sed "s/ home='.*'/ home='${datapathnew}'/" machine.f > machine_tmp.f mv -f machine_tmp.f machine.f # # 4. Compile TALYS. # Please note that the compilation of ecis06t.f # may result in some trivial warning messages # ${compiler} -c *.f ${compiler} *.o -o talys # # 5. Check whether the setup procedure has been successful # if [ -e talys ] then mv -f talys ${bindir}/talys echo ' ' echo 'The TALYS setup has been completed.' echo ' ' echo 'You will find a talys executable in your' $bindir 'directory.' echo ' ' echo 'You are all set to run the sample problems in the samples directory' echo 'with the verify script.' else echo 'TALYS setup failed' fi talys.setup http://ppt.cc/JSeX -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 61.220.220.26 ※ 文章網址: http://www.ptt.cc/bbs/Linux/M.1404791884.A.21E.html ※ 編輯: flied (61.220.220.26), 07/08/2014 12:15:16
文章代碼(AID): #1JksnC8U (Linux)
文章代碼(AID): #1JksnC8U (Linux)