Virtual-Jaguar-Rx icon indicating copy to clipboard operation
Virtual-Jaguar-Rx copied to clipboard

Linux compile failed

Open Blad3forc3 opened this issue 3 years ago • 1 comments

In file included from /usr/include/stdio.h:867, from /usr/include/c++/9/cstdio:42, from /usr/include/c++/9/ext/string_conversions.h:43, from /usr/include/c++/9/bits/basic_string.h:6496, from /usr/include/c++/9/string:55, from /usr/include/x86_64-linux-gnu/qt5/QtCore/qbytearray.h:52, from /usr/include/x86_64-linux-gnu/qt5/QtCore/qstring.h:50, from /usr/include/x86_64-linux-gnu/qt5/QtCore/qobject.h:47, from /usr/include/x86_64-linux-gnu/qt5/QtCore/qabstractanimation.h:43, from /usr/include/x86_64-linux-gnu/qt5/QtCore/QtCore:6, from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/QtWidgetsDepends:3, from /usr/include/x86_64-linux-gnu/qt5/QtWidgets/QtWidgets:3, from src/gui/debug/riscdasmbrowser.h:11, from src/gui/debug/riscdasmbrowser.cpp:17: /usr/include/x86_64-linux-gnu/bits/stdio2.h:36:34: note: ‘__builtin___sprintf_chk’ output between 13 and 2062 bytes into a destination of size 1024 36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 37 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[1]: Leaving directory '/media/***/Temp/Virtual-Jaguar-Rx-2.1.3-R5a-hotfix.1' make: *** [Makefile:75: virtualjaguar] Error 2

Think ive got all dependencies installed. Tried using gcc9 and gcc10

Blad3forc3 avatar Apr 03 '22 10:04 Blad3forc3

Never met yet this compilation problem, but will be nice to investigate. Could you also check with the original VJ source code?

The problem occurs in the riscdasmbrowser.cpp file and, probably, in the RefreshContents() function. It may worth to change 'char string[1024]' with a greater value than 2062 (reported by gcc), but the dasmjag(...) function should never return a buffer filled with more than 1024 characters.

djipi avatar Apr 03 '22 19:04 djipi