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

Support for older GCC versions #1

Open
JohnScience opened this issue Feb 18, 2022 · 0 comments
Open

Support for older GCC versions #1

JohnScience opened this issue Feb 18, 2022 · 0 comments

Comments

@JohnScience
Copy link
Owner

On some versions, for example 9.3.0 (Ubuntu 9.3.0-17ubuntu1~20.04), the code produced by LLVM-CBE would fail to get compiled by gcc like this

main.cbe.c:59:10: error: conflicting types for built-in function ‘printf’; expected ‘int(const char *, ...)’ [-Werror=builtin-declaration-mismatch]
   59 | uint32_t printf(uint8_t*, ...);
      |          ^~~~~~
main.cbe.c:3:1: note: ‘printf’ is declared in header ‘<stdio.h>’
    2 | #include <stdint.h>
  +++ |+#include <stdio.h>
    3 | #ifndef __cplusplus
cc1: all warnings being treated as errors

In order to solve the issue, @AP2008 suggested to use -Wno-format that presumably must solve the issue.

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

1 participant