hyperboria / bugs

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

Not compleate rebuild breaks after commit #87

Open Kubuxu opened 8 years ago

Kubuxu commented 8 years ago

It is due to including commit hash in cjdns version

Initialize 45ms
Configure 6ms
util/platform/netdev/NetDev.c is out of date, rebuilding
Scan for out of date files 18ms
Link time optimization not supported [<command-line>:0:0: error: "CJD_PACKAGE_VERSION" redefined [-Werror]
<command-line>:0:0: note: this is the location of the previous definition
cc1: all warnings being treated as errors
]
Total build time: 2271ms.
/home/kubuxu/cjdns/node_build/builder.js:440
                if (err) { throw err; }
                           ^

Error: gcc -E -std=c99 -Wall -Wextra -Werror -Wno-pointer-sign -pedantic -D linux=1 -D CJD_PACKAGE_VERSION="cjdns-v17.1-53-ge3ff229-dirty" -Wno-unused-parameter -fomit-frame-pointer -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 -std=c99 -Wall -Wextra -Werror -Wno-pointer-sign -pedantic -D linux=1 -D CJD_PACKAGE_VERSION="cjdns-v17.1-53-g8aac7f5-dirty" -Wno-unused-parameter -fomit-frame-pointer -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 -I . -I build_linux/dependencies/cnacl/jsbuild/include/ -I build_linux/dependencies/libuv/include/ util/platform/netdev/NetDev.c

<command-line>:0:0: error: "CJD_PACKAGE_VERSION" redefined [-Werror]
<command-line>:0:0: note: this is the location of the previous definition
cc1: all warnings being treated as errors

    at error (/home/kubuxu/cjdns/node_build/builder.js:53:15)
    at /home/kubuxu/cjdns/node_build/builder.js:122:22
    at /home/kubuxu/cjdns/node_build/builder.js:92:13
    at ChildProcess.<anonymous> (/home/kubuxu/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:818:16)
    at Socket.<anonymous> (internal/child_process.js:319:11)
    at emitOne (events.js:77:13)
    at Socket.emit (events.js:169:7)