Hi, I'm trying to compile a library with gfortran, and I do run into a few problems, see below. Any help would be greatly appreciated! Thanks, -Wilbert. The first problem is an error: ************************** > gfortran dump.F90 dump.F90:17.59: PRINT '(A,I,2A)', 'Error on line ', line, ' in file ', file 1 Error: Nonnegative width required in format string at (1) ************************** It refers to this small program: ************************** MODULE m_dump CONTAINS SUBROUTINE dump(file, line, message) CHARACTER (LEN=*) , INTENT(IN) :: file INTEGER , INTENT(IN) :: line CHARACTER (LEN=*) , INTENT(IN) :: message INTEGER , POINTER :: x,y PRINT '(A,I,2A)', 'Error on line ', line, ' in file ', file PRINT '(A)', message PRINT '(A)', 'Program termination and stack dump' ! generate a runtime error to force a stackdump NULLIFY(y) x = y ! the program should be crashed STOP 'No termination, no stack dump, system halted' END SUBROUTINE END MODULE ************************** I noticed that several users had this error before, but I couldn't find a good solution. If there is one. Any ideas? Also, the ifort compile (for which the library is tested) uses the -i4 option, but I can't find a comparable option in gfortran. I assume that 4 bit is the default, but the final sentence in the description of the option -fdefault-integer-8: "Do nothing if this is already the default" is not very reassuring. I get a series of warnings that may be related to this: warning: format '%ld' expects type 'long int', but argument 3 has type 'int32' This is the gfortran version that I'm using: ************************** > gfortran -v Using built-in specs. Target: i686-pc-linux-gnu Configured with: ../gcc-4.3.2/configure --prefix=/ccs/opt/x86/gcc-4.3.2 --with-mpfr-include=/ccs/opt/x86/mpfr-2.3.2/include --with-mpfr- lib=/ccs/opt/x86/mpfr-2.3.2/lib Thread model: posix gcc version 4.3.2 (GCC) ************************** -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Wilbert Weijer Phone: (505) 667 7469 CCS-2, MS B296 Fax: (505) 667 5921 Los Alamos National Laboratory E-mail: wilbert@xxxxxxxx Los Alamos, NM 87545 URL: http://public.lanl.gov/wilbert ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~