Closed ghaerr closed 3 years ago
Tested ELKS with elks and pcxtat targets, all seems to work with above fix.
Also, do we need to report the regular Run Failure to Github? It doesn't seem they're doing anything about it. Can that package get be removed from our YML run?
I think your compiler is right : the print specs are incorrect, not only for MacOS, but also for Linux-GNU. I wonder why I did not get these warnings before with -Wall
?
I have gotten the warnings the whole time, I should have mentioned this earlier. macOS is running clang, not gcc, I think that's the issue.
Let me try to fix these, as -Werror
is recommended by many C/C++ guidelines & coding rules.
About the GitHub failure, I did not find any other support channel than the 'community' for this kind of problem. I would prefer to address the failure report directly to the maintainer, not to waste time in 'kikooland'.
I would prefer to address the failure report directly to the maintainer, not to waste time in 'kikooland'.
Yeah, agreed. Perhaps remove SDL YML target temporarily, and try adding it again in a week or so, since it seems that's the libsdl2 dependencies are causing the problem. Continual errors on every push is distracting.
As SDL is widely used, I am expecting an 'upset premium GitHub user' to complain, so just waiting it happens...
Okay... let me try the 'community' :disappointed_relieved: ... https://github.community/t/libasound2-dev-install-fails-on-ubuntu-latest/179224
The fix of the latest remaining warning as suggested by CLang on MacOS (see https://github.com/mfld-fr/emu86/commit/03edbba91359ab7085f68b1f641bba7fb6bee481#commitcomment-50634090) is not portable to Linux and must be surrounded a #ifdef / #endif
that is MacOS or CLang specific.
@ghaerr : please do the surrounding as you are the one that compile with CLang on MacOS.
Automatic build of ELKS fixed, thanks to a related post on 'Ask Ubuntu'.
Could I restore the -Werror
now ?
Could I restore the -Werror now ?
Yes.
OK thanks !
The addition of
-Werror
in Makefile prohibits macOS (running with off_t = long long) from compiling. Here is compilation with -Werror removed:These errors are likely in rom-pcxtat.c as well.
Suggest either removing
-Werror
or fixing printf format specifications to be portable.