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

Build Fails #29

Open
NadavK opened this issue Aug 15, 2022 · 1 comment
Open

Build Fails #29

NadavK opened this issue Aug 15, 2022 · 1 comment

Comments

@NadavK
Copy link

NadavK commented Aug 15, 2022

Running on Orange Pi 3.0.0 Bullseye with Linux 5.16.17-sun50iw9

> sudo ./build
wiringPi Build script
=====================


WiringPi Library
[UnInstall]
make: Nothing to be done for 'all'.
[Install Headers]
[Install Dynamic Lib]

WiringPi Devices Library
[UnInstall]
[Compile] onewire.c
onewire.c:131:10: error: conflicting types for ‘OneWireReadRoom’
  131 | uint64_t OneWireReadRoom(uint8_t instId)
      |          ^~~~~~~~~~~~~~~
In file included from onewire.c:7:
onewire.h:60:35: note: previous declaration of ‘OneWireReadRoom’ was here
   60 |     extern unsigned long long int OneWireReadRoom(uint8_t instId);
      |                                   ^~~~~~~~~~~~~~~
onewire.c:154:5: error: conflicting types for ‘OneWireSetDevice’
  154 | int OneWireSetDevice(uint8_t instId, uint64_t rom)
      |     ^~~~~~~~~~~~~~~~
In file included from onewire.c:7:
onewire.h:55:16: note: previous declaration of ‘OneWireSetDevice’ was here
   55 |     extern int OneWireSetDevice(uint8_t instId, unsigned long long int rom);
      |                ^~~~~~~~~~~~~~~~
onewire.c:179:5: error: conflicting types for ‘OneWireCrcCheck’
  179 | int OneWireCrcCheck(uint64_t data8x8bit, uint8_t len)
      |     ^~~~~~~~~~~~~~~
In file included from onewire.c:7:
onewire.h:50:16: note: previous declaration of ‘OneWireCrcCheck’ was here
   50 |     extern int OneWireCrcCheck(unsigned long long int data8x8bit, uint8_t len);
      |                ^~~~~~~~~~~~~~~
onewire.c: In function ‘OneWireSkipRom’:
onewire.c:355:1: warning: control reaches end of non-void function [-Wreturn-type]
  355 | }
      | ^
make: *** [Makefile:69: onewire.o] Error 1

Make Failed...
Please check the messages and fix any problems. If you're still stuck,
then please email all the output and as many details as you can to
  [email protected]


@NadavK
Copy link
Author

NadavK commented Aug 15, 2022

I tried running it on a Zero 2. I guess it's not supported

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