Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

/usr/include/NativeJIT/Function.h:192:44: internal compiler error: in cp_parser_template_id, at cp/parser.cc #11

Open
sagitter opened this issue Feb 9, 2022 · 4 comments

Comments

@sagitter
Copy link

sagitter commented Feb 9, 2022

Hi all.

I'm no longer able to build COPASI with JIT enabled in Fedora 36+ x86_64 where GCC-12.0.1 is the new default compiler; g++ fails 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

So i'm forced to use the CMake option -DENABLE_JIT:BOOL=OFF to skip this error.

@fbergmann
Copy link
Member

given that it states its an internal compiler error, i'm not sure what we can do here. @shoops stefan, do you have an idea?

@shoops
Copy link
Member

shoops commented Feb 9, 2022 via email

@sagitter
Copy link
Author

sagitter commented Feb 11, 2022

GCC problem:

[  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 -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 -fplugin=annobin -fplugin-arg-annobin-disable -I/builddir/build/BUILD/COPASI-Build-251/copasi/lapack -I/builddir/build/BUILD/COPASI-Build-251/copasi/CopasiSBW -I/usr/include/flexiblas -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-4.fc37.x86_64.ld -msse4.2 -fno-strict-aliasing -fPIC -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 -fplugin=annobin -fplugin-arg-annobin-disable -I/builddir/build/BUILD/COPASI-Build-251/copasi/lapack -I/builddir/build/BUILD/COPASI-Build-251/copasi/CopasiSBW -I/usr/include/flexiblas -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-4.fc37.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
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).

GCC bug #104235 says fixed (??)

@sagitter
Copy link
Author

GCC bug #104608

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants