From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id E3A7E3858D37; Sun, 21 Apr 2024 01:28:45 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E3A7E3858D37 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1713662925; bh=rkfeo3/IhwG1LWWIX2mcLIk2pm5VSs8qcnv8SOq3Y9E=; h=From:To:Subject:Date:From; b=qMyu551x7FzLv7TJ1YGkKR4QqrILX+KB87G4X38o3aumCfgd7ijUgTU26rDWsRdJS Nak+TF7DCJRinn8q1z+LouXAhHO73QE2rtA3/me9siBHFVoYIBHOpsIDoCmSK84KgQ 3BQ2Pg60pQyJ5QsKHNOAljHyQFPRD6K/SjZjltho= From: "sjames at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug lto/114790] New: ICE when building intel-compute-runtime (error: direct call to ... speculative call sequence has no speculative flag) Date: Sun, 21 Apr 2024 01:28:30 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: lto X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: sjames at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D114790 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=3D57994&action=3Dedit ze.exports Initially reported downstream in Gentoo at https://bugs.gentoo.org/930199. ``` $ g++-14 -fPIC -O2 -flto=3Dauto -shared -Wl,--version-script=3Dze.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_i= mp.cpp: In function =E2=80=98zeCommandListAppendMemoryCopyTracing=E2=80=99: /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_i= mp.cpp:41:35: error: direct call to releaseActivetracersList/1531 in speculative call sequence has no speculative flag 41 | return L0::apiTracerWrapperImp(driverDdiTable.coreDdiTable.CommandList.pfnAppendMe= moryCopy, | ^ _ZN2L019apiTracerWrapperImpIPF12_ze_result_tP25_ze_command_list_handle_tPvP= KvmP18_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 externa= l) _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 externa= l) _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 ca= ll) (can throw external) _ZNSt12_Vector_baseIPvSaIS0_EED2Ev.isra.0/11539 (inlin= ed) (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_i= mp.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 =20=20=20=20=20=20=20 /usr/src/debug/sys-devel/gcc-14.0.9999/gcc-14.0.9999/gcc/tree-inline.cc:4931 0x5561799267a3 optimize_inline_calls(tree_node*) =20=20=20=20=20=20=20 /usr/src/debug/sys-devel/gcc-14.0.9999/gcc-14.0.9999/gcc/tree-inline.cc:5343 0x5561798f817c inline_transform(cgraph_node*) =20=20=20=20=20=20=20 /usr/src/debug/sys-devel/gcc-14.0.9999/gcc-14.0.9999/gcc/ipa-inline-transfo= rm.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() =20=20=20=20=20=20=20 /usr/src/debug/sys-devel/gcc-14.0.9999/gcc-14.0.9999/gcc/cgraphunit.cc:1838 0x5561797a02a8 expand_all_functions =20=20=20=20=20=20=20 /usr/src/debug/sys-devel/gcc-14.0.9999/gcc-14.0.9999/gcc/cgraphunit.cc:2028 0x5561797a02a8 symbol_table::compile() =20=20=20=20=20=20=20 /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 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 ```=