在PC

时间:2015-08-05 04:09:45

标签: fortran fortran90 gfortran

我正在尝试在PC上运行几个固定格式的Fortran 90文件。它们与gfortran版本4.1.1完美无瑕地运行,但不是与gfortran 4.1.2或更高版本(我尝试过)。以下是我尝试过的所有内容:

  1. 我尝试在Cygwin中使用版本4.9.3的标签“-std = legacy”,因此处理器将代码编译为Fortran 77文件。我不得不解决一些问题,但最终它开始出色地工作了。然后弹出以下错误:

      

    注意:以下浮点异常是信令:IEEE_INVALID_FLAG IEEE_DIVIDE_BY_ZERO IEEE_OVERFLOW_FLAG IEEE_DENORMAL

    然后我继续计划B:试图在我的电脑上,在Cygwin上获得gfortran 4.1.1。

  2. 从Cygwin的源代码构建gfortran 4.1.1(因为我无法在任何地方找到二进制文件)。 Cygwin已经有了gfortran的软件包,但只有4.9.3版本。我用过gcc-fortran-4.1.1.tar.bz2;基本上我想在Cygwin降级gfortran。 tarball中的文件缺乏,所以我不得不调试一些东西并添加一些wget的文件(比如最新版本的config.guess和config.sub)来配置它(我也使用了autoconf,autoreconf和automake的)。长话短说,我试着运行make,我得到了很多错误列表。

    我已经可以访问一台已经安装了gfortran 4.1.1的Linux机器(它完美地运行),并试图在那里实现,但它也带来了很多错误,与Cygwin完全不同。最后是错误,第一个来自Cygwin,后者来自Linux。我通过SSH远程访问Linux计算机;这项工作的重点是在PC(和/或Mac)上运行代码,这样我们就不必来回传输数千个图像和文件。

  3. 我尝试通过在线发现的tarball g95-x86-cygwin-41.tgz将g95下载到Cygwin上。 INSTALL文件说我只需要提取根目录中的文件,在某处创建一个符号链接,它应该可以工作。我做了,然后我输入它,没有发生任何事情;没有“-bash:......没有这样的文件或目录”错误或其他错误,但根本没有。没有创建可执行文件 - 没有。我甚至误导了--version并且没有出现错误。

    J Double B@jdoubleb-PC /wexlerwork/autismcases_CTs/autismcases_23_VOID
    $ g95 --versio
    
    J Double B@jdoubleb-PC /wexlerwork/autismcases_CTs/autismcases_23_VOID
    $ g95 --version
    
    J Double B@jdoubleb-PC /wexlerwork/autismcases_CTs/autismcases_23_VOID
    $ g95 --help
    
    J Double B@jdoubleb-PC /wexlerwork/autismcases_CTs/autismcases_23_VOID
    $ man g95
    No manual entry for g95
    
    J Double B@jdoubleb-PC /wexlerwork/autismcases_CTs/autismcases_23_VOID
    $ g95 ver5.2_v3.5.f -o f05
    
    J Double B@jdoubleb-PC /wexlerwork/autismcases_CTs/autismcases_23_VOID
    

    我甚至尝试从以下网站获取gcc 4.1的自解压文件:http://g95.org/downloads.shtml。我尝试了HTTP链接,它给了我上面提到的tarball。我尝试了FTP链接,没有任何用处。

  4. 我通过MinGW和我的Windows 7命令shell(从“开始”菜单)尝试了g95。它是一个可执行文件,所以不必构建它是件好事。它下载了它的工作原理。但是,有很多错误。它没有认出所有以'c'开头的评论,所以我把它们全部改成了!然后编译器提到了continuation。代码中有数百个延续,我认为每个版本和格式类型只允许有限的数量。本质上,编译器处理Fortran 95文件(自然 - 它在名称中),但该文件不是Fortran文件。我尝试传递“-std =遗产”或类似的东西,但显然唯一的选择是Fortran 95,2003和2008.需要永远改变7000线和3000线Fortran 77/90文件到Fortran 95文件,所以我停了下来。好吧,我想我会试一试。

  5. 我尝试将文件的扩展名更改为* .f90,但我的计算机将它们解释为Fortran 95文件,但它不起作用。

  6. 我宁愿不继续尝试更改代码,以便它们适用于某种编译器,而只需在我的计算机上运行gfortran 4.1.1并让它们像在Linux计算机上一样运行。我也不想为源代码可执行文件构建任何东西,因为Fortran编译器是受欢迎的。但是,我并没有完全接近前景。

    欢迎任何人的帮助;提前谢谢你的考虑。

    *FROM CYGWIN*
    J Double B@jdoubleb-PC /gcc-4.1.1
    $ make
    cat: libgfortran/../gcc/BASE-VER: No such file or directory
    makefile:2442: warning: overriding commands for target `.F90.o'
    makefile:1059: warning: ignoring old commands for target `.F90.o'
    makefile:2445: warning: overriding commands for target `.F90.obj'
    makefile:1062: warning: ignoring old commands for target `.F90.obj'
    makefile:2448: warning: overriding commands for target `.F90.lo'
    makefile:1065: warning: ignoring old commands for target `.F90.lo'
    C:/Users/jdoubleb/Documents/Academia/Cygwin_etal/bin/sh.exe libgfortran/mk-kinds-h.sh ' -I . -Wall -fno-repack-arrays -fno-underscoring ' > kinds.h || rm kinds.h
    grep '^#' < kinds.h > kinds.inc
    grep '^#' < libgfortran/c99_protos.h > c99_protos.inc
    cp libgfortran/config/fpu-glibc.h fpu-target.h
    C:/Ch/bin/make  all-am
    cat: libgfortran/../gcc/BASE-VER: No such file or directory
    make[1]: Entering directory `C:/Users/jdoubleb/Documents/Academia/Cygwin_etal/gcc-4.1.1'
    makefile:2442: warning: overriding commands for target `.F90.o'
    makefile:1059: warning: ignoring old commands for target `.F90.o'
    makefile:2445: warning: overriding commands for target `.F90.obj'
    makefile:1062: warning: ignoring old commands for target `.F90.obj'
    makefile:2448: warning: overriding commands for target `.F90.lo'
    makefile:1065: warning: ignoring old commands for target `.F90.lo'
    C:/Users/jdoubleb/Documents/Academia/Cygwin_etal/bin/sh.exe ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -Ilibgfortran -I.  -iquotelibgfortran/io -Ilibgfortran/../gcc -Ilibgfortran/../gcc/config -I../.././gcc -D_GNU_SOURCE  -std=gnu99 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wextra -Wwrite-strings -std=gnu99 -g -O2 -Wunknown-pragmas -c -o compile_options.lo `test -f 'runtime/compile_options.c' || echo 'libgfortran/'`runtime/compile_options.c
    libtool: compile:  gcc -DHAVE_CONFIG_H -I. -Ilibgfortran -I. -iquotelibgfortran/io -Ilibgfortran/../gcc -Ilibgfortran/../gcc/config -I../.././gcc -D_GNU_SOURCE -std=gnu99 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wextra -Wwrite-strings -std=gnu99 -g -O2 -Wunknown-pragmas -c libgfortran/runtime/compile_options.c  -DDLL_EXPORT -DPIC -o .libs/compile_options.o
    In file included from libgfortran/runtime/compile_options.c:32:0:
    libgfortran/libgfortran.h:204:9: error: unknown type name ‘GFC_INTEGER_4’
     typedef GFC_INTEGER_4 gfc_charlen_type;
             ^
    libgfortran/libgfortran.h:254:51: error: unknown type name ‘GFC_INTEGER_4’
     typedef GFC_ARRAY_DESCRIPTOR (GFC_MAX_DIMENSIONS, GFC_INTEGER_4) gfc_array_i4;
                                                       ^
    libgfortran/libgfortran.h:245:3: note: in definition of macro ‘GFC_ARRAY_DESCRIPTOR’
       type *data;\
       ^
    libgfortran/libgfortran.h:255:51: error: unknown type name ‘GFC_INTEGER_8’
     typedef GFC_ARRAY_DESCRIPTOR (GFC_MAX_DIMENSIONS, GFC_INTEGER_8) gfc_array_i8;
                                                       ^
    libgfortran/libgfortran.h:245:3: note: in definition of macro ‘GFC_ARRAY_DESCRIPTOR’
       type *data;\
       ^
    libgfortran/libgfortran.h:259:51: error: unknown type name ‘GFC_REAL_4’
     typedef GFC_ARRAY_DESCRIPTOR (GFC_MAX_DIMENSIONS, GFC_REAL_4) gfc_array_r4;
                                                       ^
    libgfortran/libgfortran.h:245:3: note: in definition of macro ‘GFC_ARRAY_DESCRIPTOR’
       type *data;\
       ^
    libgfortran/libgfortran.h:260:51: error: unknown type name ‘GFC_REAL_8’
     typedef GFC_ARRAY_DESCRIPTOR (GFC_MAX_DIMENSIONS, GFC_REAL_8) gfc_array_r8;
                                                       ^
    libgfortran/libgfortran.h:245:3: note: in definition of macro ‘GFC_ARRAY_DESCRIPTOR’
       type *data;\
       ^
    libgfortran/libgfortran.h:267:51: error: unknown type name ‘GFC_COMPLEX_4’
     typedef GFC_ARRAY_DESCRIPTOR (GFC_MAX_DIMENSIONS, GFC_COMPLEX_4) gfc_array_c4;
                                                       ^
    libgfortran/libgfortran.h:245:3: note: in definition of macro ‘GFC_ARRAY_DESCRIPTOR’
       type *data;\
       ^
    libgfortran/libgfortran.h:268:51: error: unknown type name ‘GFC_COMPLEX_8’
     typedef GFC_ARRAY_DESCRIPTOR (GFC_MAX_DIMENSIONS, GFC_COMPLEX_8) gfc_array_c8;
                                                       ^
    libgfortran/libgfortran.h:245:3: note: in definition of macro ‘GFC_ARRAY_DESCRIPTOR’
       type *data;\
       ^
    libgfortran/libgfortran.h:275:51: error: unknown type name ‘GFC_LOGICAL_4’
     typedef GFC_ARRAY_DESCRIPTOR (GFC_MAX_DIMENSIONS, GFC_LOGICAL_4) gfc_array_l4;
                                                       ^
    libgfortran/libgfortran.h:245:3: note: in definition of macro ‘GFC_ARRAY_DESCRIPTOR’
       type *data;\
       ^
    libgfortran/libgfortran.h:276:51: error: unknown type name ‘GFC_LOGICAL_8’
     typedef GFC_ARRAY_DESCRIPTOR (GFC_MAX_DIMENSIONS, GFC_LOGICAL_8) gfc_array_l8;
                                                       ^
    libgfortran/libgfortran.h:245:3: note: in definition of macro ‘GFC_ARRAY_DESCRIPTOR’
       type *data;\
       ^
    libgfortran/libgfortran.h:456:51: error: expected ‘)’ before ‘char’
     extern const char *gfc_itoa (GFC_INTEGER_LARGEST, char *, size_t);
                                                       ^
    In file included from libgfortran/runtime/compile_options.c:32:0:
    libgfortran/libgfortran.h:457:16: error: ‘gfc_itoa’ undeclared here (not in a function)
     internal_proto(gfc_itoa);
                    ^
    libgfortran/libgfortran.h:79:52: note: in definition of macro ‘sym_rename2’
     #define sym_rename2(old, ulp, new) extern __typeof(old) old __asm__(#ulp #new)
                                                        ^
    libgfortran/libgfortran.h:77:30: note: in expansion of macro ‘sym_rename1’
     #define sym_rename(old, new) sym_rename1(old, __USER_LABEL_PREFIX__, new)
                                  ^
    libgfortran/libgfortran.h:120:28: note: in expansion of macro ‘sym_rename’
     # define internal_proto(x) sym_rename(x, IPREFIX(x))
                                ^
    libgfortran/libgfortran.h:457:1: note: in expansion of macro ‘internal_proto’
     internal_proto(gfc_itoa);
     ^
    In file included from libgfortran/runtime/compile_options.c:32:0:
    libgfortran/libgfortran.h:459:48: error: expected ‘)’ before ‘char’
     extern const char *xtoa (GFC_UINTEGER_LARGEST, char *, size_t);
                                                    ^
    In file included from libgfortran/runtime/compile_options.c:32:0:
    libgfortran/libgfortran.h:460:16: error: ‘xtoa’ undeclared here (not in a function)
     internal_proto(xtoa);
                    ^
    libgfortran/libgfortran.h:79:52: note: in definition of macro ‘sym_rename2’
     #define sym_rename2(old, ulp, new) extern __typeof(old) old __asm__(#ulp #new)
                                                        ^
    libgfortran/libgfortran.h:77:30: note: in expansion of macro ‘sym_rename1’
     #define sym_rename(old, new) sym_rename1(old, __USER_LABEL_PREFIX__, new)
                                  ^
    libgfortran/libgfortran.h:120:28: note: in expansion of macro ‘sym_rename’
     # define internal_proto(x) sym_rename(x, IPREFIX(x))
                                ^
    libgfortran/libgfortran.h:460:1: note: in expansion of macro ‘internal_proto’
     internal_proto(xtoa);
     ^
    In file included from libgfortran/runtime/compile_options.c:32:0:
    libgfortran/libgfortran.h:550:1: warning: parameter names (without types) in function declaration
     extern void stop_numeric (GFC_INTEGER_4);
     ^
    libgfortran/libgfortran.h:563:1: error: unknown type name ‘GFC_INTEGER_4’
     GFC_INTEGER_4 *internal_pack_4 (gfc_array_i4 *);
     ^
    libgfortran/libgfortran.h:566:1: error: unknown type name ‘GFC_INTEGER_8’
     GFC_INTEGER_8 *internal_pack_8 (gfc_array_i8 *);
     ^
    libgfortran/libgfortran.h:574:1: error: unknown type name ‘GFC_COMPLEX_4’
     GFC_COMPLEX_4 *internal_pack_c4 (gfc_array_c4 *);
     ^
    libgfortran/libgfortran.h:577:1: error: unknown type name ‘GFC_COMPLEX_8’
     GFC_COMPLEX_8 *internal_pack_c8 (gfc_array_c8 *);
     ^
    libgfortran/libgfortran.h:585:54: error: unknown type name ‘GFC_INTEGER_4’
     extern void internal_unpack_4 (gfc_array_i4 *, const GFC_INTEGER_4 *);
                                                          ^
    libgfortran/libgfortran.h:588:54: error: unknown type name ‘GFC_INTEGER_8’
     extern void internal_unpack_8 (gfc_array_i8 *, const GFC_INTEGER_8 *);
                                                          ^
    libgfortran/libgfortran.h:596:55: error: unknown type name ‘GFC_COMPLEX_4’
     extern void internal_unpack_c4 (gfc_array_c4 *, const GFC_COMPLEX_4 *);
                                                           ^
    libgfortran/libgfortran.h:599:55: error: unknown type name ‘GFC_COMPLEX_8’
     extern void internal_unpack_c8 (gfc_array_c8 *, const GFC_COMPLEX_8 *);
                                                           ^
    libgfortran/libgfortran.h:609:8: error: unknown type name ‘GFC_INTEGER_4’
     extern GFC_INTEGER_4 compare_string (GFC_INTEGER_4, const char *,
            ^
    libgfortran/libgfortran.h:609:53: error: expected ‘)’ before ‘const’
     extern GFC_INTEGER_4 compare_string (GFC_INTEGER_4, const char *,
                                                         ^
    In file included from libgfortran/runtime/compile_options.c:32:0:
    libgfortran/libgfortran.h:611:15: error: ‘compare_string’ undeclared here (not in a function)
     iexport_proto(compare_string);
                   ^
    libgfortran/libgfortran.h:79:52: note: in definition of macro ‘sym_rename2’
     #define sym_rename2(old, ulp, new) extern __typeof(old) old __asm__(#ulp #new)
                                                        ^
    libgfortran/libgfortran.h:77:30: note: in expansion of macro ‘sym_rename1’
     #define sym_rename(old, new) sym_rename1(old, __USER_LABEL_PREFIX__, new)
                                  ^
    libgfortran/libgfortran.h:139:26: note: in expansion of macro ‘sym_rename’
     # define export_proto(x) sym_rename(x, PREFIX(x))
                              ^
    libgfortran/libgfortran.h:141:27: note: in expansion of macro ‘export_proto’
     # define iexport_proto(x) export_proto(x)
                               ^
    libgfortran/libgfortran.h:611:1: note: in expansion of macro ‘iexport_proto’
     iexport_proto(compare_string);
     ^
    In file included from libgfortran/runtime/compile_options.c:32:0:
    libgfortran/libgfortran.h:615:26: error: unknown type name ‘GFC_INTEGER_4’
     extern void random_seed (GFC_INTEGER_4 * size, gfc_array_i4 * put,
                              ^
    In file included from libgfortran/runtime/compile_options.c:32:0:
    libgfortran/libgfortran.h:617:15: error: ‘random_seed’ undeclared here (not in a function)
     iexport_proto(random_seed);
                   ^
    libgfortran/libgfortran.h:79:52: note: in definition of macro ‘sym_rename2’
     #define sym_rename2(old, ulp, new) extern __typeof(old) old __asm__(#ulp #new)
                                                        ^
    libgfortran/libgfortran.h:77:30: note: in expansion of macro ‘sym_rename1’
     #define sym_rename(old, new) sym_rename1(old, __USER_LABEL_PREFIX__, new)
                                  ^
    libgfortran/libgfortran.h:139:26: note: in expansion of macro ‘sym_rename’
     # define export_proto(x) sym_rename(x, PREFIX(x))
                              ^
    libgfortran/libgfortran.h:141:27: note: in expansion of macro ‘export_proto’
     # define iexport_proto(x) export_proto(x)
                               ^
    libgfortran/libgfortran.h:617:1: note: in expansion of macro ‘iexport_proto’
     iexport_proto(random_seed);
     ^
    In file included from libgfortran/runtime/compile_options.c:32:0:
    libgfortran/libgfortran.h:621:8: error: unknown type name ‘GFC_REAL_4’
     extern GFC_REAL_4 normalize_r4_i4 (GFC_UINTEGER_4, GFC_UINTEGER_4);
            ^
    libgfortran/libgfortran.h:621:1: warning: parameter names (without types) in function declaration
     extern GFC_REAL_4 normalize_r4_i4 (GFC_UINTEGER_4, GFC_UINTEGER_4);
     ^
    libgfortran/libgfortran.h:624:8: error: unknown type name ‘GFC_REAL_8’
     extern GFC_REAL_8 normalize_r8_i8 (GFC_UINTEGER_8, GFC_UINTEGER_8);
            ^
    libgfortran/libgfortran.h:624:1: warning: parameter names (without types) in function declaration
     extern GFC_REAL_8 normalize_r8_i8 (GFC_UINTEGER_8, GFC_UINTEGER_8);
     ^
    libgfortran/runtime/compile_options.c:40:1: warning: parameter names (without types) in function declaration
     extern void set_std (GFC_INTEGER_4, GFC_INTEGER_4, GFC_INTEGER_4);
     ^
    libgfortran/runtime/compile_options.c:45:10: error: unknown type name ‘GFC_INTEGER_4’
     set_std (GFC_INTEGER_4 warn_std, GFC_INTEGER_4 allow_std,
              ^
    libgfortran/runtime/compile_options.c:45:34: error: unknown type name ‘GFC_INTEGER_4’
     set_std (GFC_INTEGER_4 warn_std, GFC_INTEGER_4 allow_std,
                                      ^
    libgfortran/runtime/compile_options.c:46:3: error: unknown type name ‘GFC_INTEGER_4’
       GFC_INTEGER_4 pedantic)
       ^
    libgfortran/runtime/compile_options.c: In function ‘set_record_marker’:
    libgfortran/runtime/compile_options.c:89:19: error: ‘GFC_INTEGER_4’ undeclared (first use in this function)
           if (sizeof (GFC_INTEGER_4) != sizeof (gfc_offset))
                       ^
    libgfortran/runtime/compile_options.c:89:19: note: each undeclared identifier is reported only once for each function it appears in
    libgfortran/runtime/compile_options.c:94:19: error: ‘GFC_INTEGER_8’ undeclared (first use in this function)
           if (sizeof (GFC_INTEGER_8) != sizeof (gfc_offset))
                       ^
    make[1]: *** [compile_options.lo] Error 1
    make[1]: Leaving directory `C:/Users/jdoubleb/Documents/Academia/Cygwin_etal/gcc-4.1.1'
    make: *** [all] Error 2
    
    J Double B@jdoubleb-PC /gcc-4.1.1
    
    
    
    
    
    
    
    
    
    
    
    
    *FROM LINUX*
    [wexlerlab@AirWay~/Jeremiah/gcc-fortran-4.1.1/gcc-4.1.1 ]$ make 
    cat: libgfortran/../gcc/BASE-VER: No such file or directory
    /bin/sh libgfortran/mk-sik-inc.sh 'gfortran -I . -Wall -fno-repack-arrays -fno-underscoring -g -O2' > selected_int_kind.inc || rm selected_int_kind.inc
    /bin/sh libgfortran/mk-srk-inc.sh 'gfortran -I . -Wall -fno-repack-arrays -fno-underscoring -g -O2' > selected_real_kind.inc || rm selected_real_kind.inc
    /bin/sh libgfortran/mk-kinds-h.sh 'gfortran -I . -Wall -fno-repack-arrays -fno-underscoring -g -O2' > kinds.h || rm kinds.h
    grep '^#' < kinds.h > kinds.inc
    grep '^#' < libgfortran/c99_protos.h > c99_protos.inc
    cp libgfortran/config/fpu-glibc.h fpu-target.h
    make  all-am
    cat: libgfortran/../gcc/BASE-VER: No such file or directory
    make[1]: Entering directory `/home/wexlerlab/Jeremiah/gcc-fortran-4.1.1/gcc-4.1.1'
    /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -Ilibgfortran -I.  -iquotelibgfortran/io -Ilibgfortran/../gcc -Ilibgfortran/../gcc/config -I../.././gcc -D_GNU_SOURCE  -std=gnu99 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wextra -Wwrite-strings  -c -o compile_options.lo `test -f 'runtime/compile_options.c' || echo 'libgfortran/'`runtime/compile_options.c
    mkdir .libs
     gcc -DHAVE_CONFIG_H -I. -Ilibgfortran -I. -iquotelibgfortran/io -Ilibgfortran/../gcc -Ilibgfortran/../gcc/config -I../.././gcc -D_GNU_SOURCE -std=gnu99 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wextra -Wwrite-strings -c libgfortran/runtime/compile_options.c  -fPIC -DPIC -o .libs/compile_options.o
     gcc -DHAVE_CONFIG_H -I. -Ilibgfortran -I. -iquotelibgfortran/io -Ilibgfortran/../gcc -Ilibgfortran/../gcc/config -I../.././gcc -D_GNU_SOURCE -std=gnu99 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wextra -Wwrite-strings -c libgfortran/runtime/compile_options.c -o compile_options.o >/dev/null 2>&1
    /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -Ilibgfortran -I.  -iquotelibgfortran/io -Ilibgfortran/../gcc -Ilibgfortran/../gcc/config -I../.././gcc -D_GNU_SOURCE  -std=gnu99 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wextra -Wwrite-strings  -c -o environ.lo `test -f 'runtime/environ.c' || echo 'libgfortran/'`runtime/environ.c
     gcc -DHAVE_CONFIG_H -I. -Ilibgfortran -I. -iquotelibgfortran/io -Ilibgfortran/../gcc -Ilibgfortran/../gcc/config -I../.././gcc -D_GNU_SOURCE -std=gnu99 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wextra -Wwrite-strings -c libgfortran/runtime/environ.c  -fPIC -DPIC -o .libs/environ.o
    In file included from libgfortran/runtime/environ.c:37:
    libgfortran/runtime/../io/io.h:36:18: error: gthr.h: No such file or directory
    In file included from libgfortran/runtime/environ.c:37:
    libgfortran/runtime/../io/io.h:504: error: expected specifier-qualifier-list before '__gthread_mutex_t'
    libgfortran/runtime/../io/io.h:699: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'unit_lock'
    libgfortran/runtime/../io/io.h:700: error: 'unit_lock' undeclared here (not in a function)
    libgfortran/runtime/../io/io.h:700: warning: type defaults to 'int' in declaration of 'unit_lock'
    libgfortran/runtime/../io/io.h: In function 'inc_waiting_locked':
    libgfortran/runtime/../io/io.h:890: error: 'gfc_unit' has no member named 'waiting'
    libgfortran/runtime/../io/io.h:890: error: incompatible type for argument 1 of '__sync_fetch_and_add'
    libgfortran/runtime/../io/io.h: In function 'predec_waiting_locked':
    libgfortran/runtime/../io/io.h:900: error: 'gfc_unit' has no member named 'waiting'
    libgfortran/runtime/../io/io.h:900: error: incompatible type for argument 1 of '__sync_add_and_fetch'
    libgfortran/runtime/../io/io.h:904: warning: control reaches end of non-void function
    libgfortran/runtime/../io/io.h: In function 'dec_waiting_unlocked':
    libgfortran/runtime/../io/io.h:910: error: 'gfc_unit' has no member named 'waiting'
    libgfortran/runtime/../io/io.h:910: error: incompatible type for argument 1 of '__sync_fetch_and_add'
    make[1]: *** [environ.lo] Error 1
    make[1]: Leaving directory `/home/wexlerlab/Jeremiah/gcc-fortran-4.1.1/gcc-4.1.1'
    make: *** [all] Error 2
    [wexlerlab@AirWay~/Jeremiah/gcc-fortran-4.1.1/gcc-4.1.1 ]$ cd libgfortran/
    [wexlerlab@AirWay~/Jeremiah/gcc-fortran-4.1.1/gcc-4.1.1/libgfortran ]$ automake
    [wexlerlab@AirWay~/Jeremiah/gcc-fortran-4.1.1/gcc-4.1.1/libgfortran ]$ cd..
    -bash: cd..: command not found
    [wexlerlab@AirWay~/Jeremiah/gcc-fortran-4.1.1/gcc-4.1.1/libgfortran ]$ make
    make: *** No targets specified and no makefile found.  Stop.
    [wexlerlab@AirWay~/Jeremiah/gcc-fortran-4.1.1/gcc-4.1.1/libgfortran ]$ cd ..
    [wexlerlab@AirWay~/Jeremiah/gcc-fortran-4.1.1/gcc-4.1.1 ]$ make
    cat: libgfortran/../gcc/BASE-VER: No such file or directory
     cd . && /bin/sh ./config.status Makefile 
    config.status: creating Makefile
    cat: libgfortran/../gcc/BASE-VER: No such file or directory
    make  all-am
    cat: libgfortran/../gcc/BASE-VER: No such file or directory
    make[1]: Entering directory `/home/wexlerlab/Jeremiah/gcc-fortran-4.1.1/gcc-4.1.1'
    /bin/sh ./libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -Ilibgfortran -I.  -iquotelibgfortran/io -Ilibgfortran/../gcc -Ilibgfortran/../gcc/config -I../.././gcc -D_GNU_SOURCE  -std=gnu99 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wextra -Wwrite-strings  -c -o environ.lo `test -f 'runtime/environ.c' || echo 'libgfortran/'`runtime/environ.c
     gcc -DHAVE_CONFIG_H -I. -Ilibgfortran -I. -iquotelibgfortran/io -Ilibgfortran/../gcc -Ilibgfortran/../gcc/config -I../.././gcc -D_GNU_SOURCE -std=gnu99 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wextra -Wwrite-strings -c libgfortran/runtime/environ.c  -fPIC -DPIC -o .libs/environ.o
    In file included from libgfortran/runtime/environ.c:37:
    libgfortran/runtime/../io/io.h:36:18: error: gthr.h: No such file or directory
    In file included from libgfortran/runtime/environ.c:37:
    libgfortran/runtime/../io/io.h:504: error: expected specifier-qualifier-list before '__gthread_mutex_t'
    libgfortran/runtime/../io/io.h:699: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'unit_lock'
    libgfortran/runtime/../io/io.h:700: error: 'unit_lock' undeclared here (not in a function)
    libgfortran/runtime/../io/io.h:700: warning: type defaults to 'int' in declaration of 'unit_lock'
    libgfortran/runtime/../io/io.h: In function 'inc_waiting_locked':
    libgfortran/runtime/../io/io.h:890: error: 'gfc_unit' has no member named 'waiting'
    libgfortran/runtime/../io/io.h:890: error: incompatible type for argument 1 of '__sync_fetch_and_add'
    libgfortran/runtime/../io/io.h: In function 'predec_waiting_locked':
    libgfortran/runtime/../io/io.h:900: error: 'gfc_unit' has no member named 'waiting'
    libgfortran/runtime/../io/io.h:900: error: incompatible type for argument 1 of '__sync_add_and_fetch'
    libgfortran/runtime/../io/io.h:904: warning: control reaches end of non-void function
    libgfortran/runtime/../io/io.h: In function 'dec_waiting_unlocked':
    libgfortran/runtime/../io/io.h:910: error: 'gfc_unit' has no member named 'waiting'
    libgfortran/runtime/../io/io.h:910: error: incompatible type for argument 1 of '__sync_fetch_and_add'
    make[1]: *** [environ.lo] Error 1
    make[1]: Leaving directory `/home/wexlerlab/Jeremiah/gcc-fortran-4.1.1/gcc-4.1.1'
    make: *** [all] Error 2
    [wexlerlab@AirWay~/Jeremiah/gcc-fortran-4.1.1/gcc-4.1.1 ]$ 
    

0 个答案:

没有答案