hyperboria / bugs

Peer-to-peer IPv6 networking, secure and near-zero-conf.
154 stars 17 forks source link

Errors when compiling on OpenSuse Arm8 #151

Open tekblupace opened 7 years ago

tekblupace commented 7 years ago

So I have successfully build CJDNS on a number of platforms without issue.. I have just moved to Opensuse 64bit, on a Raspberry Pi3 Arm8.

When trying to build, it fails with the following error: ` Total build time: 213618ms. /opt/cjdns/node_build/builder.js:485 if (err) { throw err; } ^

Error: gcc -c -x cpp-output -o build_linux/dht_dhtcore_NodeStore_c.o -std=c99 -Wall -Wextra -Werror -Wno-pointer-sign -pedantic -D linux=1 -D CJD_PACKAGE_VERSION="cjdns-v20" -Wno-unused-parameter -D Log_DEBUG -g -D NumberCompress_TYPE=v3x5x8 -D Identity_CHECK=1 -D Allocator_USE_CANARIES=1 -D PARANOIA=1 -DHAS_ETH_INTERFACE=1 -fPIE -fno-stack-protector -fstack-protector-all -Wstack-protector -O3 build_linux/dht_dhtcore_NodeStore_c.o.i

dht/dhtcore/NodeStore.c: In function ‘findBestParent’: dht/dhtcore/NodeStore.c:456:5: error: call to function ‘Time_hrtime’ without a real prototype [-Werror=unprototyped-calls] uint64_t time1 = Time_hrtime(store->eventBase); ^ In file included from dht/dhtcore/NodeStore.c:29:0: ./util/events/Time.h:25:10: note: ‘Time_hrtime’ was declared here uint64_t Time_hrtime(); ^ cc1: all warnings being treated as errors

at error (/opt/cjdns/node_build/builder.js:53:15)
at /opt/cjdns/node_build/builder.js:122:22
at /opt/cjdns/node_build/builder.js:92:13
at ChildProcess.<anonymous> (/opt/cjdns/tools/lib/Semaphore.js:7:30)
at emitTwo (events.js:87:13)
at ChildProcess.emit (events.js:172:7)
at maybeClose (internal/child_process.js:854:16)
at Socket.<anonymous> (internal/child_process.js:330:11)
at emitOne (events.js:77:13)
at Socket.emit (events.js:169:7)`

Any help appreciated....