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

Linux compile failed #61

Open
Blad3forc3 opened this issue Apr 3, 2022 · 1 comment
Open

Linux compile failed #61

Blad3forc3 opened this issue Apr 3, 2022 · 1 comment

Comments

@Blad3forc3
Copy link

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

@djipi
Copy link
Owner

djipi commented Apr 3, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: On Hold
Development

No branches or pull requests

2 participants