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
Make errors #1
Comments
|
Thanks for the prompt reply. My first step is just to see if I can compile and run your code before modification. Cloned and make messages. (Same on both RPi and VM)clang -c -o PHKArduinoLightInterface.o PHKArduinoLightInterface.c |
That line is actually kinda like a placeholder, and it won't do anything at all. (That's only work on the configuration I use. ) |
Complies cleanly on VM, but get this message when running
|
Ubuntu: Avahi has this message, just ignore it and everything will be OK. |
RPi: Same issue after |
Try run this directly |
RPi: Same result. I also tried reinstalling LLVM:
root@raspberrypi:~/PersonalHomeKit# clang++ -O3 -o PHK chacha20.o curve25519.o ed25519.o poly1305.o rfc6234-master/hkdf.o rfc6234-master/hmac.o rfc6234-master/sha.o main.o PHKAccessory.o PHKControllerRecord.o PHKNetworkIP.o PHKArduinoLightInterface.o srp/srp.o srp/cstr.o srp/t_math.o srp/srp6_server.o srp/t_conf.o srp/t_conv.o srp/t_pw.o srp/t_misc.o srp/t_truerand.o srp/t_read.o -lssl -lcrypto -ldl -pthread -ldns_sd -lstdc++ |
Try changing the line2-4 of makefile to this I don't have a RPi yet, so I can't actually test it. |
Tried compiling with the default gcc/g++ 4.6.3root@raspberrypi: Manually upgraded to gcc/g++ 4.8.2 and recomplied
Success. Woohoo!Although I noticed Avahi is not advertising the IPv6 MAC address for some reason. Looks like the RPi LAN interface does not support IPv6. Not sure if that is critical for HomeKit. GCC vs. LLVMI came across an article which showed complied code using GCC is significantly faster than LLVM on ARM. Not sure if that is why gcc/g++ backports are more current for RPi ARMv6 |
IPv4 is not that important (iOS Bonjour use any address it could get to connect. Unless Apple is making HomeKit available for remote access, and you have a IPv6 address from ISP. ) |
Total NOOB here. I am trying to get your code running on a Raspberry Pi.
I have already performed the following:
apt-get install libavahi-compat-libdnssd-dev openssl clang -y
git clone https://github.com/etwmc/PersonalHomeKit.git
cd PersonalHomeKit
make
Get the following error message:
root@raspberrypi:
/PersonalHomeKit# make/PersonalHomeKit#clang -Ofast -w -o chacha20.o -c Chacha20/chacha20_simple.c
error: invalid integral value 'fast' in '-Ofast'
error: invalid integral value 'fast' in '-Ofast'
makefile:23: recipe for target 'chacha20.o' failed
make: *** [chacha20.o] Error 1
root@raspberrypi:
UPDATE: I got a little further on Ubuntu 14 VM
root@ubuntu-Server-14:
/PersonalHomeKit# make/PersonalHomeKit#clang -Ofast -w -o chacha20.o -c Chacha20/chacha20_simple.c
clang -Ofast -w -o curve25519.o -c curve25519/curve25519-donna.c
clang -Ofast -w -o ed25519.o -c ed25519-donna/ed25519.c
clang -Ofast -w -o poly1305.o -c poly1305-opt-master/poly1305.c
clang -Ofast -w -c rfc6234-master/hkdf.c -o rfc6234-master/hkdf.o
clang -Ofast -w -c rfc6234-master/hmac.c -o rfc6234-master/hmac.o
clang -Ofast -w -c rfc6234-master/sha.c -o rfc6234-master/sha.o
clang++ -Ofast -w -c main.cpp
clang++ -Ofast -w -c PHKAccessory.cpp
clang++ -Ofast -w -c PHKControllerRecord.cpp
PHKControllerRecord.cpp:29:37: error: expected expression
fs.open(controllerRecordsAddress, std::ifstream::in);
^ # caret pointing to
,
PHKControllerRecord.cpp:61:41: error: expected expression
fs.open(controllerRecordsAddress, std::ofstream::trunc);
^ # caret pointing to
,
2 errors generated.
make: *** [PHKControllerRecord.o] Error 1
root@ubuntu-Server-14:
UPDATE2: Noticed LLVM 3.0 on RPi, 3.4 on Ubuntu 14. Changed makefile CFLAG from -Ofast to -O0 on RPi, but now get this:
clang++ -O0 -w -c PHKAccessory.cpp
PHKAccessory.cpp:129:19: error: use of undeclared identifier 'INT32_MIN'
if (minVal != INT32_MIN)
^
PHKAccessory.cpp:133:19: error: use of undeclared identifier 'INT32_MAX'
if (maxVal != INT32_MAX)
^
PHKAccessory.cpp:183:19: error: use of undeclared identifier 'INT32_MIN'
if (minVal != INT32_MIN)
^
PHKAccessory.cpp:187:19: error: use of undeclared identifier 'INT32_MAX'
if (maxVal != INT32_MAX)
^
4 errors generated.
makefile:35: recipe for target 'PHKAccessory.o' failed
make: *** [PHKAccessory.o] Error 1
root@raspberrypi:~/PersonalHomeKit#
The text was updated successfully, but these errors were encountered: