Navigation

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Groups
    • Search
    • 官网
    1. Home
    2. liuw
    L
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups

    liuw

    @liuw

    0
    Reputation
    3
    Posts
    430
    Profile views
    0
    Followers
    1
    Following
    Joined Last Online

    liuw Follow

    Posts made by liuw

    • sw5cc编译mpich代码出错

      @swmore
      因为系统自带的mpich好像不支持Fortran 2003,我在尝试利用sw5cc配置mpich时,出现下面Fortran和C不兼容的错误

      checking whether /myhome/mpich-3.3.1/confdb/compile sw5cc -std=gnu99 links with FLIBS found by autoconf... yes
      checking whether Fortran 77 and C objects are compatible... no
      checking for file... file
      configure: error: ****  Incompatible Fortran and C Object File Types!  ****
      F77 Object File Type produced by "sw5f77 -host " is : : cannot open (No such file or directory).
       C  Object File Type produced by "/myhome/mpich-3.3.1/confdb/compile sw5cc -std=gnu99 -host   -O2" is : : ELF 64-bit LSB relocatable, version 1 (SYSV), not stripped.
      
      

      configure命令是

      CC=sw5cc CFLAGS="-host" FC=sw5fort FFLAGS="-host" LD="sw5fort -hybrid" ./configure --prefix=/myhome/mpich-3.3.1/installdir cross_compiling=yes --host=alpha --enable-cxx --enable-fortran=all --enable-threads=multiple F77=sw5f77 FFLAGS="-host"
      
      

      而且我用swgfortran和swgcc编译也遇到同样问题,不知道这是什么原因

      posted in 语言编译
      L
      liuw
    • RE: GSL库的编译错误

      编译通过了,谢谢!
      @swmore

      posted in 技术交流区
      L
      liuw
    • GSL库的编译错误

      我在配置GNU科学库(GSL)make的时候出现这个错误,不知道是什么原因,在intel平台上用gcc没有问题,希望大佬能够解答

      libtool: compile:  sw5cc -DHAVE_CONFIG_H -I. -I.. -host -c results.c -o results.o
      
      ### Assertion failure at line 5272 of ../../be/cg/alpha/expand.cxx:
      ### Compiler Error in file results.c during Code_Expansion phase:
      ### WHIRL_To_OPs: illegal intrinsic op
      cc INTERNAL ERROR: /usr/sw-mpp/swcc/lib/gcc-lib/sw_64-swcc-linux/5.421-sw-513/be returned non-zero status 1
      make[2]: *** [results.lo] Error 1
      
      

      我的configure命令是

      CC=sw5cc CFLAGS="-host" cross_compiling=yes ./configure --prefix=/my/installdir/ --host=alpha LD="sw5cc -hybrid" 
      
      posted in 技术交流区
      L
      liuw
    • 1 / 1