[Bug lto/69337] New: Internal compiler error fortran c lto
physiker at toast2 dot net
gcc-bugzilla@gcc.gnu.org
Mon Jan 18 00:47:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69337
Bug ID: 69337
Summary: Internal compiler error fortran c lto
Product: gcc
Version: 6.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: lto
Assignee: unassigned at gcc dot gnu.org
Reporter: physiker at toast2 dot net
Target Milestone: ---
Host: x86_64-apple-darwin13.4.0
Target: x86_64-apple-darwin13.4.0
Build: gcc version 6.0.0 20160114
Compiling and linking the two files into a shared library causes an ice. The
function j is referenced in the file f.c. In the fortran file m.f90 there is a
common block named j. This is an regression with respect to gcc 5.3.
m.90
subroutine g
IMPLICIT NONE
COMMON /j/ j_q( 14550)
integer(4) :: j_q
end subroutine g
--------------------------------------------------------------------------------
f.c
void j_ (void);
int f ( void )
{
j_();
return 0;
}
--------------------------------------------------------------------------------
gcc-6
gfortran-6 -v -c -Wall -W -flto m.f90
Using built-in specs.
COLLECT_GCC=gfortran-6
Target: x86_64-apple-darwin13.4.0
Configured with: ../gcc/configure --enable-languages=c,c++,fortran,lto
--with-gmp=/sw --with-libiconv-prefix=/sw --with-isl=/sw --with-mpc=/sw
--with-system-zlib --program-suffix=-6
Thread model: posix
gcc version 6.0.0 20160114 (experimental) (GCC)
COLLECT_GCC_OPTIONS='-v' '-c' '-Wall' '-Wextra' '-flto'
'-mmacosx-version-min=10.9.4' '-mtune=core2'
/usr/local/libexec/gcc/x86_64-apple-darwin13.4.0/6.0.0/f951 m.f90 -fPIC -quiet
-dumpbase m.f90 -mmacosx-version-min=10.9.4 -mtune=core2 -auxbase m -Wall
-Wextra -version -flto -fintrinsic-modules-path
/usr/local/lib/gcc/x86_64-apple-darwin13.4.0/6.0.0/finclude -o
/var/folders/97/4qnhjhtn25s86s9hkz0h37_m0000gn/T//cc9POn4h.s
GNU Fortran (GCC) version 6.0.0 20160114 (experimental)
(x86_64-apple-darwin13.4.0)
compiled by GNU C version 6.0.0 20160114 (experimental), GMP version
6.1.0, MPFR version 3.1.3, MPC version 1.0.3, isl version 0.14 or 0.13
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
GNU Fortran2008 (GCC) version 6.0.0 20160114 (experimental)
(x86_64-apple-darwin13.4.0)
compiled by GNU C version 6.0.0 20160114 (experimental), GMP version
6.1.0, MPFR version 3.1.3, MPC version 1.0.3, isl version 0.14 or 0.13
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
COLLECT_GCC_OPTIONS='-v' '-c' '-Wall' '-Wextra' '-flto'
'-mmacosx-version-min=10.9.4' '-mtune=core2'
as -arch x86_64 -force_cpusubtype_ALL -o m.o
/var/folders/97/4qnhjhtn25s86s9hkz0h37_m0000gn/T//cc9POn4h.s
COMPILER_PATH=/usr/local/libexec/gcc/x86_64-apple-darwin13.4.0/6.0.0/:/usr/local/libexec/gcc/x86_64-apple-darwin13.4.0/6.0.0/:/usr/local/libexec/gcc/x86_64-apple-darwin13.4.0/:/usr/local/lib/gcc/x86_64-apple-darwin13.4.0/6.0.0/:/usr/local/lib/gcc/x86_64-apple-darwin13.4.0/
LIBRARY_PATH=/usr/local/lib/gcc/x86_64-apple-darwin13.4.0/6.0.0/:/usr/local/lib/gcc/x86_64-apple-darwin13.4.0/6.0.0/../../../
COLLECT_GCC_OPTIONS='-v' '-c' '-Wall' '-Wextra' '-flto'
'-mmacosx-version-min=10.9.4' '-mtune=core2'
bash-3.2$ gcc-6 -v -c -fPIC -Wall -W -flto f.c
Using built-in specs.
COLLECT_GCC=gcc-6
Target: x86_64-apple-darwin13.4.0
Configured with: ../gcc/configure --enable-languages=c,c++,fortran,lto
--with-gmp=/sw --with-libiconv-prefix=/sw --with-isl=/sw --with-mpc=/sw
--with-system-zlib --program-suffix=-6
Thread model: posix
gcc version 6.0.0 20160114 (experimental) (GCC)
COLLECT_GCC_OPTIONS='-v' '-c' '-fPIC' '-Wall' '-Wextra' '-flto'
'-mmacosx-version-min=10.9.4' '-mtune=core2'
/usr/local/libexec/gcc/x86_64-apple-darwin13.4.0/6.0.0/cc1 -quiet -v
-D__DYNAMIC__ f.c -fPIC -quiet -dumpbase f.c -mmacosx-version-min=10.9.4
-mtune=core2 -auxbase f -Wall -Wextra -version -fPIC -flto -o
/var/folders/97/4qnhjhtn25s86s9hkz0h37_m0000gn/T//ccfPEEvn.s
GNU C11 (GCC) version 6.0.0 20160114 (experimental) (x86_64-apple-darwin13.4.0)
compiled by GNU C version 6.0.0 20160114 (experimental), GMP version
6.1.0, MPFR version 3.1.3, MPC version 1.0.3, isl version 0.14 or 0.13
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
ignoring nonexistent directory
"/usr/local/lib/gcc/x86_64-apple-darwin13.4.0/6.0.0/../../../../x86_64-apple-darwin13.4.0/include"
#include "..." search starts here:
#include <...> search starts here:
/usr/local/lib/gcc/x86_64-apple-darwin13.4.0/6.0.0/include
/usr/local/include
/usr/local/lib/gcc/x86_64-apple-darwin13.4.0/6.0.0/include-fixed
/usr/include
/System/Library/Frameworks
/Library/Frameworks
End of search list.
GNU C11 (GCC) version 6.0.0 20160114 (experimental) (x86_64-apple-darwin13.4.0)
compiled by GNU C version 6.0.0 20160114 (experimental), GMP version
6.1.0, MPFR version 3.1.3, MPC version 1.0.3, isl version 0.14 or 0.13
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
Compiler executable checksum: c00cd17857dcc26867aea6a7bb5a81a6
COLLECT_GCC_OPTIONS='-v' '-c' '-fPIC' '-Wall' '-Wextra' '-flto'
'-mmacosx-version-min=10.9.4' '-mtune=core2'
as -arch x86_64 -force_cpusubtype_ALL -o f.o
/var/folders/97/4qnhjhtn25s86s9hkz0h37_m0000gn/T//ccfPEEvn.s
COMPILER_PATH=/usr/local/libexec/gcc/x86_64-apple-darwin13.4.0/6.0.0/:/usr/local/libexec/gcc/x86_64-apple-darwin13.4.0/6.0.0/:/usr/local/libexec/gcc/x86_64-apple-darwin13.4.0/:/usr/local/lib/gcc/x86_64-apple-darwin13.4.0/6.0.0/:/usr/local/lib/gcc/x86_64-apple-darwin13.4.0/
LIBRARY_PATH=/usr/local/lib/gcc/x86_64-apple-darwin13.4.0/6.0.0/:/usr/local/lib/gcc/x86_64-apple-darwin13.4.0/6.0.0/../../../
COLLECT_GCC_OPTIONS='-v' '-c' '-fPIC' '-Wall' '-Wextra' '-flto'
'-mmacosx-version-min=10.9.4' '-mtune=core2'
bash-3.2$ gfortran-6 -v -dynamiclib -Wall -W -flto -o libjmirko.dylib m.o
f.o
Driving: gfortran-6 -v -dynamiclib -Wall -W -flto -o libjmirko.dylib m.o f.o
-mmacosx-version-min=10.9.4 -l gfortran -shared-libgcc
Using built-in specs.
COLLECT_GCC=gfortran-6
COLLECT_LTO_WRAPPER=/usr/local/libexec/gcc/x86_64-apple-darwin13.4.0/6.0.0/lto-wrapper
Target: x86_64-apple-darwin13.4.0
Configured with: ../gcc/configure --enable-languages=c,c++,fortran,lto
--with-gmp=/sw --with-libiconv-prefix=/sw --with-isl=/sw --with-mpc=/sw
--with-system-zlib --program-suffix=-6
Thread model: posix
gcc version 6.0.0 20160114 (experimental) (GCC)
Reading specs from
/usr/local/lib/gcc/x86_64-apple-darwin13.4.0/6.0.0/../../../libgfortran.spec
rename spec lib to liborig
COLLECT_GCC_OPTIONS='-v' '-Zdynamiclib' '-Wall' '-Wextra' '-flto' '-o'
'libjmirko.dylib' '-mmacosx-version-min=10.9.4' '-shared-libgcc' '-mtune=core2'
COMPILER_PATH=/usr/local/libexec/gcc/x86_64-apple-darwin13.4.0/6.0.0/:/usr/local/libexec/gcc/x86_64-apple-darwin13.4.0/6.0.0/:/usr/local/libexec/gcc/x86_64-apple-darwin13.4.0/:/usr/local/lib/gcc/x86_64-apple-darwin13.4.0/6.0.0/:/usr/local/lib/gcc/x86_64-apple-darwin13.4.0/
LIBRARY_PATH=/usr/local/lib/gcc/x86_64-apple-darwin13.4.0/6.0.0/:/usr/local/lib/gcc/x86_64-apple-darwin13.4.0/6.0.0/../../../
COLLECT_GCC_OPTIONS='-v' '-Zdynamiclib' '-Wall' '-Wextra' '-flto' '-o'
'libjmirko.dylib' '-mmacosx-version-min=10.9.4' '-shared-libgcc' '-mtune=core2'
/usr/local/libexec/gcc/x86_64-apple-darwin13.4.0/6.0.0/collect2 -flto -dynamic
-dylib -arch x86_64 -macosx_version_min 10.9.4 -weak_reference_mismatches
non-weak -o libjmirko.dylib
-L/usr/local/lib/gcc/x86_64-apple-darwin13.4.0/6.0.0
-L/usr/local/lib/gcc/x86_64-apple-darwin13.4.0/6.0.0/../../.. m.o f.o
-lgfortran -no_compact_unwind -lSystem -lgcc_ext.10.5 -lgcc -lquadmath -lm
-lgcc_ext.10.5 -lgcc -lSystem -v
collect2 version 6.0.0 20160114 (experimental)
/usr/bin/ld -dynamic -dylib -arch x86_64 -macosx_version_min 10.9.4
-weak_reference_mismatches non-weak -o libjmirko.dylib
-L/usr/local/lib/gcc/x86_64-apple-darwin13.4.0/6.0.0
-L/usr/local/lib/gcc/x86_64-apple-darwin13.4.0/6.0.0/../../.. m.o f.o
-lgfortran -no_compact_unwind -lSystem -lgcc_ext.10.5 -lgcc -lquadmath -lm
-lgcc_ext.10.5 -lgcc -lSystem -v
@(#)PROGRAM:ld PROJECT:ld64-241.9
configured to support archs: armv6 armv7 armv7s arm64 i386 x86_64 x86_64h
armv6m armv7m armv7em
Library search paths:
/usr/local/lib/gcc/x86_64-apple-darwin13.4.0/6.0.0
/usr/local/lib
/usr/lib
/usr/local/lib
Framework search paths:
/Library/Frameworks/
/System/Library/Frameworks/
/usr/bin/nm -n m.o
/usr/bin/nm -n f.o
/usr/local/libexec/gcc/x86_64-apple-darwin13.4.0/6.0.0/lto-wrapper m.o f.o
gfortran-6 @/var/folders/97/4qnhjhtn25s86s9hkz0h37_m0000gn/T//ccSC9Ywb
Using built-in specs.
COLLECT_GCC=gfortran-6
Target: x86_64-apple-darwin13.4.0
Configured with: ../gcc/configure --enable-languages=c,c++,fortran,lto
--with-gmp=/sw --with-libiconv-prefix=/sw --with-isl=/sw --with-mpc=/sw
--with-system-zlib --program-suffix=-6
Thread model: posix
gcc version 6.0.0 20160114 (experimental) (GCC)
COLLECT_GCC_OPTIONS='-c' '-fmath-errno' '-fsigned-zeros' '-ftrapping-math'
'-fno-trapv' '-fno-strict-overflow' '-fno-openmp' '-fno-openacc' '-fPIC'
'-mmacosx-version-min=10.9.4' '-mtune=core2' '-v' '-Zdynamiclib' '-Wextra'
'-mmacosx-version-min=10.9.4' '-shared-libgcc' '-mtune=core2' '-dumpdir' './'
'-dumpbase' 'libjmirko.dylib.wpa'
'-fltrans-output-list=/var/folders/97/4qnhjhtn25s86s9hkz0h37_m0000gn/T//ccn0cGhd.ltrans.out'
'-fwpa'
/usr/local/libexec/gcc/x86_64-apple-darwin13.4.0/6.0.0/lto1 -fPIC -quiet
-dumpdir ./ -dumpbase libjmirko.dylib.wpa -mmacosx-version-min=10.9.4
-mtune=core2 -mmacosx-version-min=10.9.4 -mtune=core2 -auxbase m -Wextra
-version -fmath-errno -fsigned-zeros -ftrapping-math -fno-trapv
-fno-strict-overflow -fno-openmp -fno-openacc -fPIC
-fltrans-output-list=/var/folders/97/4qnhjhtn25s86s9hkz0h37_m0000gn/T//ccn0cGhd.ltrans.out
-fwpa @/var/folders/97/4qnhjhtn25s86s9hkz0h37_m0000gn/T//ccSPKXpD
GNU GIMPLE (GCC) version 6.0.0 20160114 (experimental)
(x86_64-apple-darwin13.4.0)
compiled by GNU C version 6.0.0 20160114 (experimental), GMP version
6.1.0, MPFR version 3.1.3, MPC version 1.0.3, isl version 0.14 or 0.13
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
GNU GIMPLE (GCC) version 6.0.0 20160114 (experimental)
(x86_64-apple-darwin13.4.0)
compiled by GNU C version 6.0.0 20160114 (experimental), GMP version
6.1.0, MPFR version 3.1.3, MPC version 1.0.3, isl version 0.14 or 0.13
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
f.c:1:6: error: variable 'j' redeclared as function
void j_ (void);
^
m.f90:5:0: note: previously declared here
COMMON /j/ j_q( 14550)
lto1: internal compiler error: tree check: expected function_decl, have
var_decl in lto_symtab_merge, at lto/lto-symtab.c:318
lto1: internal compiler error: Abort trap: 6
gfortran-6: internal compiler error: Abort trap: 6 (program lto1)
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
lto-wrapper: fatal error: gfortran-6 returned 4 exit status
compilation terminated.
collect2: fatal error: lto-wrapper returned 1 exit status
compilation terminated.
gcc 5.3
bash-3.2$ gfortran -v -c -Wall -W -flto m.f90
Using built-in specs.
COLLECT_GCC=gfortran
Target: x86_64-apple-darwin13.4.0
Configured with: ../gcc-5.3.0/configure --prefix=/sw --prefix=/sw/lib/gcc5
--mandir=/sw/share/man --infodir=/sw/lib/gcc5/info
--enable-languages=c,c++,fortran,lto,objc,obj-c++,java --with-gmp=/sw
--with-libiconv-prefix=/sw --with-isl=/sw --with-mpc=/sw --with-system-zlib
--program-suffix=-fsf-5
Thread model: posix
gcc version 5.3.0 (GCC)
COLLECT_GCC_OPTIONS='-mmacosx-version-min=10.9.4' '-v' '-c' '-Wall' '-Wextra'
'-flto' '-mtune=core2'
/sw/lib/gcc5/libexec/gcc/x86_64-apple-darwin13.4.0/5.3.0/f951 m.f90 -fPIC
-quiet -dumpbase m.f90 -mmacosx-version-min=10.9.4 -mtune=core2 -auxbase m
-Wall -Wextra -version -flto -fintrinsic-modules-path
/sw/lib/gcc5/lib/gcc/x86_64-apple-darwin13.4.0/5.3.0/finclude -o
/var/folders/97/4qnhjhtn25s86s9hkz0h37_m0000gn/T//ccWLWClu.s
GNU Fortran (GCC) version 5.3.0 (x86_64-apple-darwin13.4.0)
compiled by GNU C version 5.3.0, GMP version 6.0.0, MPFR version 3.1.3,
MPC version 1.0.3
warning: GMP header version 6.0.0 differs from library version 6.1.0.
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
GNU Fortran2008 (GCC) version 5.3.0 (x86_64-apple-darwin13.4.0)
compiled by GNU C version 5.3.0, GMP version 6.0.0, MPFR version 3.1.3,
MPC version 1.0.3
warning: GMP header version 6.0.0 differs from library version 6.1.0.
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
COLLECT_GCC_OPTIONS='-mmacosx-version-min=10.9.4' '-v' '-c' '-Wall' '-Wextra'
'-flto' '-mtune=core2'
as -arch x86_64 -force_cpusubtype_ALL -o m.o
/var/folders/97/4qnhjhtn25s86s9hkz0h37_m0000gn/T//ccWLWClu.s
COMPILER_PATH=/sw/lib/gcc5/libexec/gcc/x86_64-apple-darwin13.4.0/5.3.0/:/sw/lib/gcc5/libexec/gcc/x86_64-apple-darwin13.4.0/5.3.0/:/sw/lib/gcc5/libexec/gcc/x86_64-apple-darwin13.4.0/:/sw/lib/gcc5/lib/gcc/x86_64-apple-darwin13.4.0/5.3.0/:/sw/lib/gcc5/lib/gcc/x86_64-apple-darwin13.4.0/
LIBRARY_PATH=/sw/lib/gcc5/lib/gcc/x86_64-apple-darwin13.4.0/5.3.0/:/sw/lib/gcc5/lib/gcc/x86_64-apple-darwin13.4.0/5.3.0/../../../:/usr/lib/
COLLECT_GCC_OPTIONS='-mmacosx-version-min=10.9.4' '-v' '-c' '-Wall' '-Wextra'
'-flto' '-mtune=core2'
bash-3.2$ gcc-5 -v -c -fPIC -Wall -W -flto f.c
Using built-in specs.
COLLECT_GCC=gcc-5
Target: x86_64-apple-darwin13.4.0
Configured with: ../gcc-5.3.0/configure --prefix=/sw --prefix=/sw/lib/gcc5
--mandir=/sw/share/man --infodir=/sw/lib/gcc5/info
--enable-languages=c,c++,fortran,lto,objc,obj-c++,java --with-gmp=/sw
--with-libiconv-prefix=/sw --with-isl=/sw --with-mpc=/sw --with-system-zlib
--program-suffix=-fsf-5
Thread model: posix
gcc version 5.3.0 (GCC)
COLLECT_GCC_OPTIONS='-mmacosx-version-min=10.9.4' '-v' '-c' '-fPIC' '-Wall'
'-Wextra' '-flto' '-mtune=core2'
/sw/lib/gcc5/libexec/gcc/x86_64-apple-darwin13.4.0/5.3.0/cc1 -quiet -v
-D__DYNAMIC__ f.c -fPIC -quiet -dumpbase f.c -mmacosx-version-min=10.9.4
-mtune=core2 -auxbase f -Wall -Wextra -version -fPIC -flto -o
/var/folders/97/4qnhjhtn25s86s9hkz0h37_m0000gn/T//ccR9kjK3.s
GNU C11 (GCC) version 5.3.0 (x86_64-apple-darwin13.4.0)
compiled by GNU C version 5.3.0, GMP version 6.0.0, MPFR version 3.1.3,
MPC version 1.0.3
warning: GMP header version 6.0.0 differs from library version 6.1.0.
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
ignoring nonexistent directory
"/sw/lib/gcc5/lib/gcc/x86_64-apple-darwin13.4.0/5.3.0/../../../../x86_64-apple-darwin13.4.0/include"
#include "..." search starts here:
#include <...> search starts here:
/sw/lib/gcc5/lib/gcc/x86_64-apple-darwin13.4.0/5.3.0/include
/usr/local/include
/sw/lib/gcc5/include
/sw/lib/gcc5/lib/gcc/x86_64-apple-darwin13.4.0/5.3.0/include-fixed
/usr/include
/System/Library/Frameworks
/Library/Frameworks
End of search list.
GNU C11 (GCC) version 5.3.0 (x86_64-apple-darwin13.4.0)
compiled by GNU C version 5.3.0, GMP version 6.0.0, MPFR version 3.1.3,
MPC version 1.0.3
warning: GMP header version 6.0.0 differs from library version 6.1.0.
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: 7d8ee44d8d869d87aee09ba45e3b2601
COLLECT_GCC_OPTIONS='-mmacosx-version-min=10.9.4' '-v' '-c' '-fPIC' '-Wall'
'-Wextra' '-flto' '-mtune=core2'
as -arch x86_64 -force_cpusubtype_ALL -o f.o
/var/folders/97/4qnhjhtn25s86s9hkz0h37_m0000gn/T//ccR9kjK3.s
COMPILER_PATH=/sw/lib/gcc5/libexec/gcc/x86_64-apple-darwin13.4.0/5.3.0/:/sw/lib/gcc5/libexec/gcc/x86_64-apple-darwin13.4.0/5.3.0/:/sw/lib/gcc5/libexec/gcc/x86_64-apple-darwin13.4.0/:/sw/lib/gcc5/lib/gcc/x86_64-apple-darwin13.4.0/5.3.0/:/sw/lib/gcc5/lib/gcc/x86_64-apple-darwin13.4.0/
LIBRARY_PATH=/sw/lib/gcc5/lib/gcc/x86_64-apple-darwin13.4.0/5.3.0/:/sw/lib/gcc5/lib/gcc/x86_64-apple-darwin13.4.0/5.3.0/../../../:/usr/lib/
COLLECT_GCC_OPTIONS='-mmacosx-version-min=10.9.4' '-v' '-c' '-fPIC' '-Wall'
'-Wextra' '-flto' '-mtune=core2'
bash-3.2$ gfortran -v -dynamiclib -Wall -W -flto -o libjmirko.dylib m.o f.o
Driving: gfortran -mmacosx-version-min=10.9.4 -v -dynamiclib -Wall -W -flto -o
libjmirko.dylib m.o f.o -l gfortran -shared-libgcc
Using built-in specs.
COLLECT_GCC=gfortran
COLLECT_LTO_WRAPPER=/sw/lib/gcc5/libexec/gcc/x86_64-apple-darwin13.4.0/5.3.0/lto-wrapper
Target: x86_64-apple-darwin13.4.0
Configured with: ../gcc-5.3.0/configure --prefix=/sw --prefix=/sw/lib/gcc5
--mandir=/sw/share/man --infodir=/sw/lib/gcc5/info
--enable-languages=c,c++,fortran,lto,objc,obj-c++,java --with-gmp=/sw
--with-libiconv-prefix=/sw --with-isl=/sw --with-mpc=/sw --with-system-zlib
--program-suffix=-fsf-5
Thread model: posix
gcc version 5.3.0 (GCC)
Reading specs from
/sw/lib/gcc5/lib/gcc/x86_64-apple-darwin13.4.0/5.3.0/../../../libgfortran.spec
rename spec lib to liborig
COLLECT_GCC_OPTIONS='-mmacosx-version-min=10.9.4' '-v' '-Zdynamiclib' '-Wall'
'-Wextra' '-flto' '-o' 'libjmirko.dylib' '-shared-libgcc' '-mtune=core2'
COMPILER_PATH=/sw/lib/gcc5/libexec/gcc/x86_64-apple-darwin13.4.0/5.3.0/:/sw/lib/gcc5/libexec/gcc/x86_64-apple-darwin13.4.0/5.3.0/:/sw/lib/gcc5/libexec/gcc/x86_64-apple-darwin13.4.0/:/sw/lib/gcc5/lib/gcc/x86_64-apple-darwin13.4.0/5.3.0/:/sw/lib/gcc5/lib/gcc/x86_64-apple-darwin13.4.0/
LIBRARY_PATH=/sw/lib/gcc5/lib/gcc/x86_64-apple-darwin13.4.0/5.3.0/:/sw/lib/gcc5/lib/gcc/x86_64-apple-darwin13.4.0/5.3.0/../../../:/usr/lib/
COLLECT_GCC_OPTIONS='-mmacosx-version-min=10.9.4' '-v' '-Zdynamiclib' '-Wall'
'-Wextra' '-flto' '-o' 'libjmirko.dylib' '-shared-libgcc' '-mtune=core2'
/sw/lib/gcc5/libexec/gcc/x86_64-apple-darwin13.4.0/5.3.0/collect2 -flto
-dynamic -dylib -arch x86_64 -macosx_version_min 10.9.4
-weak_reference_mismatches non-weak -o libjmirko.dylib
-L/sw/lib/gcc5/lib/gcc/x86_64-apple-darwin13.4.0/5.3.0
-L/sw/lib/gcc5/lib/gcc/x86_64-apple-darwin13.4.0/5.3.0/../../.. m.o f.o
-lgfortran -no_compact_unwind -lSystem -lgcc_ext.10.5 -lgcc -lquadmath -lm
-lgcc_ext.10.5 -lgcc -lSystem -v
collect2 version 5.3.0
/usr/bin/ld -dynamic -dylib -arch x86_64 -macosx_version_min 10.9.4
-weak_reference_mismatches non-weak -o libjmirko.dylib
-L/sw/lib/gcc5/lib/gcc/x86_64-apple-darwin13.4.0/5.3.0
-L/sw/lib/gcc5/lib/gcc/x86_64-apple-darwin13.4.0/5.3.0/../../.. m.o f.o
-lgfortran -no_compact_unwind -lSystem -lgcc_ext.10.5 -lgcc -lquadmath -lm
-lgcc_ext.10.5 -lgcc -lSystem -v
@(#)PROGRAM:ld PROJECT:ld64-241.9
configured to support archs: armv6 armv7 armv7s arm64 i386 x86_64 x86_64h
armv6m armv7m armv7em
Library search paths:
/sw/lib/gcc5/lib/gcc/x86_64-apple-darwin13.4.0/5.3.0
/sw/lib/gcc5/lib
/usr/lib
/usr/local/lib
Framework search paths:
/Library/Frameworks/
/System/Library/Frameworks/
/usr/bin/nm -n m.o
/usr/bin/nm -n f.o
/sw/lib/gcc5/libexec/gcc/x86_64-apple-darwin13.4.0/5.3.0/lto-wrapper m.o f.o
gfortran @/var/folders/97/4qnhjhtn25s86s9hkz0h37_m0000gn/T//ccww5XTu
Using built-in specs.
COLLECT_GCC=gfortran
Target: x86_64-apple-darwin13.4.0
Configured with: ../gcc-5.3.0/configure --prefix=/sw --prefix=/sw/lib/gcc5
--mandir=/sw/share/man --infodir=/sw/lib/gcc5/info
--enable-languages=c,c++,fortran,lto,objc,obj-c++,java --with-gmp=/sw
--with-libiconv-prefix=/sw --with-isl=/sw --with-mpc=/sw --with-system-zlib
--program-suffix=-fsf-5
Thread model: posix
gcc version 5.3.0 (GCC)
COLLECT_GCC_OPTIONS='-c' '-fmath-errno' '-fsigned-zeros' '-ftrapping-math'
'-fno-trapv' '-fno-strict-overflow' '-fno-openmp' '-fno-openacc' '-fPIC'
'-mmacosx-version-min=10.9.4' '-mtune=core2' '-mmacosx-version-min=10.9.4' '-v'
'-Zdynamiclib' '-Wextra' '-shared-libgcc' '-mtune=core2' '-dumpdir' './'
'-dumpbase' 'libjmirko.dylib.wpa'
'-fltrans-output-list=/var/folders/97/4qnhjhtn25s86s9hkz0h37_m0000gn/T//ccxhc6Nm.ltrans.out'
'-fwpa'
/sw/lib/gcc5/libexec/gcc/x86_64-apple-darwin13.4.0/5.3.0/lto1 -fPIC -quiet
-dumpdir ./ -dumpbase libjmirko.dylib.wpa -mmacosx-version-min=10.9.4
-mtune=core2 -mmacosx-version-min=10.9.4 -mtune=core2 -auxbase m -Wextra
-version -fmath-errno -fsigned-zeros -ftrapping-math -fno-trapv
-fno-strict-overflow -fno-openmp -fno-openacc -fPIC
-fltrans-output-list=/var/folders/97/4qnhjhtn25s86s9hkz0h37_m0000gn/T//ccxhc6Nm.ltrans.out
-fwpa @/var/folders/97/4qnhjhtn25s86s9hkz0h37_m0000gn/T//ccALz8sS
GNU GIMPLE (GCC) version 5.3.0 (x86_64-apple-darwin13.4.0)
compiled by GNU C version 5.3.0, GMP version 6.0.0, MPFR version 3.1.3,
MPC version 1.0.3
warning: GMP header version 6.0.0 differs from library version 6.1.0.
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
GNU GIMPLE (GCC) version 5.3.0 (x86_64-apple-darwin13.4.0)
compiled by GNU C version 5.3.0, GMP version 6.0.0, MPFR version 3.1.3,
MPC version 1.0.3
warning: GMP header version 6.0.0 differs from library version 6.1.0.
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
f.c:1:6: error: variable 'j' redeclared as function
void j_ (void);
^
m.f90:5:0: note: previously declared here
COMMON /j/ j_q( 14550)
^
lto1: fatal error: errors during merging of translation units
compilation terminated.
lto-wrapper: fatal error: gfortran returned 1 exit status
compilation terminated.
collect2: fatal error: lto-wrapper returned 1 exit status
compilation terminated.
More information about the Gcc-bugs
mailing list