public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug lto/114790] New: ICE when building intel-compute-runtime (error: direct call to ... speculative call sequence has no speculative flag)
@ 2024-04-21  1:28 sjames at gcc dot gnu.org
  2024-04-21  1:29 ` [Bug lto/114790] " sjames at gcc dot gnu.org
                   ` (13 more replies)
  0 siblings, 14 replies; 15+ messages in thread
From: sjames at gcc dot gnu.org @ 2024-04-21  1:28 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 114790
           Summary: ICE when building intel-compute-runtime (error: direct
                    call to ... speculative call sequence has no
                    speculative flag)
           Product: gcc
           Version: 14.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: lto
          Assignee: unassigned at gcc dot gnu.org
          Reporter: sjames at gcc dot gnu.org
  Target Milestone: ---

Created attachment 57994
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=57994&action=edit
ze.exports

Initially reported downstream in Gentoo at https://bugs.gentoo.org/930199.

```
$ g++-14 -fPIC -O2 -flto=auto -shared -Wl,--version-script=ze.exports -o
libze_intel_gpu.so.1.3.29138 tracing_imp.cpp.ii tracing_copy_imp.cpp.ii
tracing_device_imp.cpp.ii
/var/tmp/portage/dev-libs/intel-compute-runtime-24.13.29138.7/work/compute-runtime-24.13.29138.7/level_zero/experimental/source/tracing/tracing_copy_imp.cpp:
In function ‘zeCommandListAppendMemoryCopyTracing’:
/var/tmp/portage/dev-libs/intel-compute-runtime-24.13.29138.7/work/compute-runtime-24.13.29138.7/level_zero/experimental/source/tracing/tracing_copy_imp.cpp:41:35:
error: direct call to releaseActivetracersList/1531 in speculative call
sequence has no speculative flag
   41 |     return
L0::apiTracerWrapperImp(driverDdiTable.coreDdiTable.CommandList.pfnAppendMemoryCopy,
      |                                   ^
_ZN2L019apiTracerWrapperImpIPF12_ze_result_tP25_ze_command_list_handle_tPvPKvmP18_ze_event_handle_tjPS8_EP44_ze_command_list_append_memory_copy_params_tPFvSD_S1_S4_PS4_ESt6vectorINS_25APITracerCallbackStateImpISG_EESaISJ_EESL_JRS3_RS4_RS6_RmRS8_RjRS9_EEES1_T_T0_T1_T2_T3_DpOT4_.isra.0/10477
(apiTracerWrapperImp.isra)
  Type: function definition analyzed
  Visibility: artificial
  References: _ZN2L019APITracerContextImp24releaseActivetracersListEv/1531
(addr) (speculative) _ZTHN2L017tracingInProgressE/5374 (addr)
_ZN2L017tracingInProgressE/1237 (write) _ZN2L025globalAPITracerContextImpE/1490
(addr)
  Referring:
  Read from file: /tmp/cciN484G.ltrans0.o
  Function apiTracerWrapperImp.isra/10477 is inline copy in
zeCommandListAppendMemoryCopyTracing/3756
  Availability: local
  Unit id: 3
  Function flags: count:143044205 (estimated locally) body local
  Called by: zeCommandListAppendMemoryCopyTracing/3756 (inlined) (143044205
(estimated locally),0.50 per call)
  Calls: _ZN2L019APITracerContextImp24releaseActivetracersListEv/1531
(114435364 (estimated locally),0.40 per call)
_ZNSt6vectorIPvSaIS0_EE6resizeEm.constprop.0/11584 (inlined) (143044205
(estimated locally),0.50 per call) (can throw external)
_ZNSt6vectorIN2L025APITracerCallbackStateImpIPFvP44_ze_command_list_append_memory_copy_params_t12_ze_result_tPvPS5_EEESaIS9_EE2atEm/10833
(inlined) (1157357666 (estimated locally),4.05 per call) (can throw external)
_ZNSt6vectorIN2L025APITracerCallbackStateImpIPFvP44_ze_command_list_append_memory_copy_params_t12_ze_result_tPvPS5_EEESaIS9_EE2atEm/4315
(inlined) (618839143 (estimated locally),2.16 per call) (can throw external)
_ZNSt6vectorIPvSaIS0_EEixEm.isra.0/11478 (inlined) (618839143 (estimated
locally),2.16 per call)
_ZNSt6vectorIN2L025APITracerCallbackStateImpIPFvP44_ze_command_list_append_memory_copy_params_t12_ze_result_tPvPS5_EEESaIS9_EE2atEm/11133
(inlined) (618839143 (estimated locally),2.16 per call) (can throw external)
_ZNSt6vectorIN2L025APITracerCallbackStateImpIPFvP44_ze_command_list_append_memory_copy_params_t12_ze_result_tPvPS5_EEESaIS9_EE2atEm/10733
(inlined) (1157357666 (estimated locally),4.05 per call) (can throw external)
_ZNSt6vectorIN2L025APITracerCallbackStateImpIPFvP44_ze_command_list_append_memory_copy_params_t12_ze_result_tPvPS5_EEESaIS9_EE2atEm/11033
(inlined) (618839143 (estimated locally),2.16 per call) (can throw external)
_ZNSt6vectorIPvSaIS0_EEixEm.isra.0/11462 (inlined) (618839143 (estimated
locally),2.16 per call)
_ZNSt6vectorIN2L025APITracerCallbackStateImpIPFvP44_ze_command_list_append_memory_copy_params_t12_ze_result_tPvPS5_EEESaIS9_EE2atEm/10933
(inlined) (618839143 (estimated locally),2.16 per call) (can throw external)
_ZTHN2L017tracingInProgressE/5374 (76485736 (estimated locally),0.27 per call)
(can throw external) _ZNSt12_Vector_baseIPvSaIS0_EED2Ev.isra.0/11539 (inlined)
(143044205 (estimated locally),0.50 per call)
_ZNSt12_Vector_baseIPvSaIS0_EED2Ev.isra.0/10508 (0 (precise),0.00 per call)
   Indirect call(618839143 (estimated locally),2.16 per call) (can throw
external) num speculative call targets: 0
   Indirect call(143044205 (estimated locally),0.50 per call) (can throw
external) num speculative call targets: 0
   Indirect call(618839143 (estimated locally),2.16 per call) (can throw
external) num speculative call targets: 0
   Indirect call(speculative) (28608841 (estimated locally),0.10 per call) (can
throw external) num speculative call targets: 1
during IPA pass: inline
/var/tmp/portage/dev-libs/intel-compute-runtime-24.13.29138.7/work/compute-runtime-24.13.29138.7/level_zero/experimental/source/tracing/tracing_copy_imp.cpp:41:35:
internal compiler error: verify_cgraph_node failed
0x5561780f482d cgraph_node::verify_node()
        /usr/src/debug/sys-devel/gcc-14.0.9999/gcc-14.0.9999/gcc/cgraph.cc:3956
0x5561797aeab5 symtab_node::verify()
        /usr/src/debug/sys-devel/gcc-14.0.9999/gcc-14.0.9999/gcc/symtab.cc:1362
0x5561799297e2 expand_call_inline
       
/usr/src/debug/sys-devel/gcc-14.0.9999/gcc-14.0.9999/gcc/tree-inline.cc:4931
0x5561799267a3 optimize_inline_calls(tree_node*)
       
/usr/src/debug/sys-devel/gcc-14.0.9999/gcc-14.0.9999/gcc/tree-inline.cc:5343
0x5561798f817c inline_transform(cgraph_node*)
       
/usr/src/debug/sys-devel/gcc-14.0.9999/gcc-14.0.9999/gcc/ipa-inline-transform.cc:792
0x5561798f5041 execute_one_ipa_transform_pass
        /usr/src/debug/sys-devel/gcc-14.0.9999/gcc-14.0.9999/gcc/passes.cc:2334
0x5561798f5041 execute_all_ipa_transforms(bool)
        /usr/src/debug/sys-devel/gcc-14.0.9999/gcc-14.0.9999/gcc/passes.cc:2397
0x5561797e1a73 cgraph_node::expand()
       
/usr/src/debug/sys-devel/gcc-14.0.9999/gcc-14.0.9999/gcc/cgraphunit.cc:1838
0x5561797a02a8 expand_all_functions
       
/usr/src/debug/sys-devel/gcc-14.0.9999/gcc-14.0.9999/gcc/cgraphunit.cc:2028
0x5561797a02a8 symbol_table::compile()
       
/usr/src/debug/sys-devel/gcc-14.0.9999/gcc-14.0.9999/gcc/cgraphunit.cc:2404
0x556179f100b0 lto_main()
        /usr/src/debug/sys-devel/gcc-14.0.9999/gcc-14.0.9999/gcc/lto/lto.cc:687
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
Please include the complete backtrace with any bug report.
See <https://bugs.gentoo.org/> for instructions.
make: *** [/tmp/ccTvJnD0.mk:2: /tmp/cciN484G.ltrans0.ltrans.o] Error 1
lto-wrapper: fatal error: make returned 2 exit status
compilation terminated.
/usr/lib/gcc/x86_64-pc-linux-gnu/14/../../../../x86_64-pc-linux-gnu/bin/ld:
error: lto-wrapper failed
collect2: error: ld returned 1 exit status
```

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2024-04-23 13:59 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-04-21  1:28 [Bug lto/114790] New: ICE when building intel-compute-runtime (error: direct call to ... speculative call sequence has no speculative flag) sjames at gcc dot gnu.org
2024-04-21  1:29 ` [Bug lto/114790] " sjames at gcc dot gnu.org
2024-04-21  1:30 ` sjames at gcc dot gnu.org
2024-04-21  1:30 ` sjames at gcc dot gnu.org
2024-04-21  2:16 ` [Bug ipa/114790] " sjames at gcc dot gnu.org
2024-04-22  3:45 ` sjames at gcc dot gnu.org
2024-04-22  3:46 ` sjames at gcc dot gnu.org
2024-04-22  3:48 ` sjames at gcc dot gnu.org
2024-04-22  4:10 ` pinskia at gcc dot gnu.org
2024-04-22  4:11 ` pinskia at gcc dot gnu.org
2024-04-22  4:12 ` pinskia at gcc dot gnu.org
2024-04-22  4:14 ` [Bug ipa/114790] [11/12/13/14 regression] " sjames at gcc dot gnu.org
2024-04-22  7:18 ` jakub at gcc dot gnu.org
2024-04-23 13:59 ` sjames at gcc dot gnu.org
2024-04-23 13:59 ` sjames at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).