https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64635

--- Comment #15 from howarth at bromo dot med.uc.edu ---
(In reply to Dominique d'Humieres from comment #14)
> > With the attached patch at 
> > https://gcc.gnu.org/bugzilla/attachment.cgi?id=34469
> > and the patch at https://gcc.gnu.org/ml/gcc-patches/2015-01/msg01479.html,
> > I get ...
> 
> I have found the origin of the problem: I am testing gfortran with the
> additional options '-g -flto', apparently this propagates to
> libgomp.oacc-fortran (I did not check why). Could someone test
> libgomp.oacc-fortran with these options on a linux platform?

I see the same ICEs on linux...

$ /home/howarth/build/gcc/xgcc -B/home/howarth/build/gcc/
/home/howarth/gcc-trunk/libgomp/testsuite/libgomp.oacc-fortran/asyncwait-1.f90 
-B/home/howarth/build/x86_64-unknown-linux-gnu/32/libgomp/
-B/home/howarth/build/x86_64-unknown-linux-gnu/32/libgomp/.libs
-I/home/howarth/build/x86_64-unknown-linux-gnu/32/libgomp
-I/home/howarth/gcc-trunk/libgomp/testsuite/../../include
-I/home/howarth/gcc-trunk/libgomp/testsuite/.. -march=i486 -fmessage-length=0
-fno-diagnostics-show-caret -fdiagnostics-color=never -fopenacc
-B/home/howarth/build/x86_64-unknown-linux-gnu/32/libgomp/../libquadmath/.libs/
-DACC_DEVICE_TYPE_host_nonshm=1 -DACC_MEM_SHARED=0  -O0  
-B/home/howarth/build/x86_64-unknown-linux-gnu/32/libgomp/../libgfortran/.libs
-fintrinsic-modules-path=/home/howarth/build/x86_64-unknown-linux-gnu/32/libgomp
  -L/home/howarth/build/x86_64-unknown-linux-gnu/32/libgomp/.libs
-L/home/howarth/build/x86_64-unknown-linux-gnu/32/libgomp/../libquadmath/.libs/
-L/home/howarth/build/x86_64-unknown-linux-gnu/32/libgomp/../libgfortran/.libs
-lgfortran -lm   -m32 -o ./asyncwait-1.exe
[howarth@diego1 testsuite]$ /home/howarth/build/gcc/xgcc
-B/home/howarth/build/gcc/
/home/howarth/gcc-trunk/libgomp/testsuite/libgomp.oacc-fortran/asyncwait-1.f90
-B/home/howarth/build/x86_64-unknown-linux-gnu/32/libgomp/
-B/home/howarth/build/x86_64-unknown-linux-gnu/32/libgomp/.libs
-I/home/howarth/build/x86_64-unknown-linux-gnu/32/libgomp
-I/home/howarth/gcc-trunk/libgomp/testsuite/../../include
-I/home/howarth/gcc-trunk/libgomp/testsuite/.. -march=i486 -fmessage-length=0
-fno-diagnostics-show-caret -fdiagnostics-color=never -fopenacc
-B/home/howarth/build/x86_64-unknown-linux-gnu/32/libgomp/../libquadmath/.libs/
-DACC_DEVICE_TYPE_host_nonshm=1 -DACC_MEM_SHARED=0 -O0
-B/home/howarth/build/x86_64-unknown-linux-gnu/32/libgomp/../libgfortran/.libs
-fintrinsic-modules-path=/home/howarth/build/x86_64-unknown-linux-gnu/32/libgomp
-L/home/howarth/build/x86_64-unknown-linux-gnu/32/libgomp/.libs
-L/home/howarth/build/x86_64-unknown-linux-gnu/32/libgomp/../libquadmath/.libs/
-L/home/howarth/build/x86_64-unknown-linux-gnu/32/libgomp/../libgfortran/.libs
-lgfortran -lm -m32 -flto -o ./asyncwait-1.exe
lto1: internal compiler error: in streamer_get_builtin_tree, at
tree-streamer-in.c:1151
0xc25fcf streamer_get_builtin_tree(lto_input_block*, data_in*)
    ../../gcc-trunk/gcc/tree-streamer-in.c:1151
0x90a944 lto_input_tree_1(lto_input_block*, data_in*, LTO_tags, unsigned int)
    ../../gcc-trunk/gcc/lto-streamer-in.c:1320
0x90ab29 lto_input_scc(lto_input_block*, data_in*, unsigned int*, unsigned
int*)
    ../../gcc-trunk/gcc/lto-streamer-in.c:1248
0x5f862e lto_read_decls
    ../../gcc-trunk/gcc/lto/lto.c:1900
0x5fa6a0 lto_file_finalize
    ../../gcc-trunk/gcc/lto/lto.c:2229
0x5fa6a0 lto_create_files_from_ids
    ../../gcc-trunk/gcc/lto/lto.c:2239
0x5fa6a0 lto_file_read
    ../../gcc-trunk/gcc/lto/lto.c:2280
0x5fa6a0 read_cgraph_and_symbols
    ../../gcc-trunk/gcc/lto/lto.c:2981
0x5fa6a0 lto_main()
    ../../gcc-trunk/gcc/lto/lto.c:3436
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.
lto-wrapper: fatal error: /home/howarth/build/gcc/xgcc returned 1 exit status
compilation terminated.
/home/howarth/dist_binutils/bin/ld: lto-wrapper failed
collect2: error: ld returned 1 exit status

Reply via email to