Bug 2052707

Summary: /usr/include/NativeJIT/Function.h:192:44: internal compiler error: in cp_parser_template_id, at cp/parser.cc
Product: [Fedora] Fedora Reporter: Antonio T. sagitter <trpost>
Component: COPASIAssignee: Antonio T. sagitter <trpost>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: neuro-sig, trpost
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-04-21 17:18:48 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2045154    

Description Antonio T. sagitter 2022-02-09 20:05:18 UTC
Description of problem:
COPASI is not compiling with GCC-12.0.1 with following error:

[  6%] Building CXX object copasi/CMakeFiles/libCOPASISE-core.dir/function/CEvaluationNodeOperator.cpp.o
cd /builddir/build/BUILD/COPASI-Build-251/build/copasi && /usr/bin/g++ -DHAVE_F2C_H -DLINUX -DLinux -I/usr/include/crossguid2 -I/builddir/build/BUILD/COPASI-Build-251 -I/builddir/build/BUILD/COPASI-Build-251/build -I/usr/include/qt5/libmml-qt5 -I/usr/include/qt5/qwt -I/builddir/build/BUILD/COPASI-Build-251/copasi/lapack -I/builddir/build/BUILD/COPASI-Build-251/copasi/CopasiSBW -I/usr/include/flexiblas -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64  -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -Wl,-z,relro -Wl,--as-needed  -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -Wl,--build-id=sha1 -Wl,-dT,/builddir/build/BUILD/COPASI-Build-251/.package_note-COPASI-4.34.251-2.fc36.x86_64.ld -msse4.2 -fno-strict-aliasing -fPIC  -I/builddir/build/BUILD/COPASI-Build-251/copasi/lapack -I/builddir/build/BUILD/COPASI-Build-251/copasi/CopasiSBW -I/usr/include/flexiblas -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64  -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -Wl,-z,relro -Wl,--as-needed  -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -Wl,--build-id=sha1 -Wl,-dT,/builddir/build/BUILD/COPASI-Build-251/.package_note-COPASI-4.34.251-2.fc36.x86_64.ld -DNDEBUG -std=gnu++17 -MD -MT copasi/CMakeFiles/libCOPASISE-core.dir/function/CEvaluationNodeOperator.cpp.o -MF CMakeFiles/libCOPASISE-core.dir/function/CEvaluationNodeOperator.cpp.o.d -o CMakeFiles/libCOPASISE-core.dir/function/CEvaluationNodeOperator.cpp.o -c /builddir/build/BUILD/COPASI-Build-251/copasi/function/CEvaluationNodeOperator.cpp
*** WARNING *** there are active plugins, do not report this as a bug unless you can reproduce it without enabling any plugins.
Event                            | Plugins
PLUGIN_FINISH_UNIT               | annobin: Generate final annotations
PLUGIN_START_UNIT                | annobin: Generate global annotations
PLUGIN_ALL_PASSES_START          | annobin: Generate per-function annotations
PLUGIN_ALL_PASSES_END            | annobin: Register per-function end symbols
In file included from /builddir/build/BUILD/COPASI-Build-251/copasi/math/CJitCompiler.h:15,
                 from /builddir/build/BUILD/COPASI-Build-251/copasi/math/CMathContainer.h:35,
                 from /builddir/build/BUILD/COPASI-Build-251/copasi/function/CEvaluationNodeOperator.cpp:35:
/usr/include/NativeJIT/Function.h: In constructor 'NativeJIT::Function<R, P1, P2, P3, P4>::Function(Allocators::IAllocator&, NativeJIT::FunctionBuffer&)':
/usr/include/NativeJIT/Function.h:192:44: internal compiler error: in cp_parser_template_id, at cp/parser.cc:18367
  192 |         m_p1 = &this->template Parameter<P1>(slotAllocator);
      |                                            ^
Please submit a full bug report, with preprocessed source (by using -freport-bug).
See <http://bugzilla.redhat.com/bugzilla> for instructions.
Preprocessed source stored into /tmp/ccjL346W.out file, please attach this to your bugreport.
make[2]: *** [copasi/CMakeFiles/libCOPASISE-core.dir/build.make:1330: copasi/CMakeFiles/libCOPASISE-core.dir/function/CEvaluationNodeOperator.cpp.o] Error 1

Version-Release number of selected component (if applicable):
COPASI-4.34.251-2.fc36


Additional info:
COPASI is building woth '-DENABLE_JIT:BOOL=OFF' option in Fedora 36+ where GCC-12.0.1 is used, in this way 'NativeJIT' is no required and the '/usr/include/NativeJIT/Function.h' error is skipped.

Comment 1 Fedora Update System 2022-02-09 21:14:24 UTC
FEDORA-2022-f93e082d87 has been submitted as an update to Fedora 37. https://bodhi.fedoraproject.org/updates/FEDORA-2022-f93e082d87

Comment 2 Fedora Update System 2022-02-09 21:17:48 UTC
FEDORA-2022-f93e082d87 has been pushed to the Fedora 37 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 3 Fedora Update System 2022-02-09 21:18:26 UTC
FEDORA-2022-26318ab1b7 has been submitted as an update to Fedora 36. https://bodhi.fedoraproject.org/updates/FEDORA-2022-26318ab1b7

Comment 4 Fedora Update System 2022-02-09 21:20:49 UTC
FEDORA-2022-26318ab1b7 has been pushed to the Fedora 36 stable repository.
If problem still persists, please make note of it in this bug report.