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

Gcc Compilation Issue #17

Closed
ajgbarnes opened this issue Aug 1, 2020 · 1 comment
Closed

Gcc Compilation Issue #17

ajgbarnes opened this issue Aug 1, 2020 · 1 comment
Labels

Comments

@ajgbarnes
Copy link
Contributor

I tried compiling this on the following configuration:

  • Raspberry Pi 3 Model B Rev 1.2
  • gcc 8.3.0
  • Raspbian 10 (buster)
  • Linux raspberrypi 5.4.51-v7+ #1327 SMP Thu Jul 23 10:58:46 BST 2020 armv7l GNU/Linux

And received the following errors:

hardware.c:8:5: error: conflicting types for ‘hw_maxtracks’
 int hw_maxtracks = HW_MAXTRACKS;
     ^~~~~~~~~~~~
In file included from hardware.c:5:
hardware.h:43:21: note: previous declaration of ‘hw_maxtracks’ was here
 extern unsigned int hw_maxtracks;
                     ^~~~~~~~~~~~
hardware.c:9:5: error: conflicting types for ‘hw_currenttrack’
 int hw_currenttrack = 0;
     ^~~~~~~~~~~~~~~
In file included from hardware.c:5:
hardware.h:44:21: note: previous declaration of ‘hw_currenttrack’ was here
 extern unsigned int hw_currenttrack;
                     ^~~~~~~~~~~~~~~
hardware.c:10:5: error: conflicting types for ‘hw_currenthead’
 int hw_currenthead = 0;
     ^~~~~~~~~~~~~~
In file included from hardware.c:5:
hardware.h:45:21: note: previous declaration of ‘hw_currenthead’ was here
 extern unsigned int hw_currenthead;
                     ^~~~~~~~~~~~~~

It was complaining about unsigned versus (implicitly) signed int mismatch.

I created a pull request for this #16

@picosonic
Copy link
Owner

Thanks

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

No branches or pull requests

2 participants