hyperboria / bugs

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

Tests failing on Ubuntu 17.10 (gcc 7) #168

Open mkg20001 opened 6 years ago

mkg20001 commented 6 years ago

I fixed #162 by using this patch:

diff --git a/node_build/dependencies/libuv/gyp_uv.py b/node_build/dependencies/libuv/gyp_uv.py
index 4ba69167..0dc7e8db 100755
--- a/node_build/dependencies/libuv/gyp_uv.py
+++ b/node_build/dependencies/libuv/gyp_uv.py
@@ -78,7 +78,9 @@ if __name__ == '__main__':
     if 'eclipse' not in args and 'ninja' not in args:
       args.extend(['-Goutput_dir=' + output_dir])
       args.extend(['--generator-output', output_dir])
-    (major, minor), is_clang = compiler_version()
+    __, is_clang = compiler_version()
+    major = 7
+    minor = 0
     args.append('-Dgcc_version=%d' % (10 * major + minor))
     args.append('-Dclang=%d' % int(is_clang))

Now the tests seem to fail

Build/test log: cbuild.log

More specifically:

1510597559 INFO RandomSeed.c:50 Trying random seed [/proc/sys/kernel/random/uuid (Linux)] Success
1510597559 INFO RandomSeed.c:50 Trying random seed [getentropy(2)] Success
1510597559 INFO RandomSeed.c:64 Seeding random number generator succeeded with [4] sources
1510597559 DEBUG Pipe.c:231 Pipe [/tmp/cjdns_pipe_jjr2guusprdpuvrft7w65n78q7u3p6] established connection
Parent sending message [IT WORKS!]
1510597559 INFO Pipe.c:78 Failed to write to pipe [/tmp/cjdns_pipe_jjr2guusprdpuvrft7w65n78q7u3p6] [invalid argument]

1510597559 DEBUG Pipe.c:231 Pipe [/tmp/cjdns_pipe_jjr2guusprdpuvrft7w65n78q7u3p6] established connection
Child connected