openwrt / routing

OpenWrt Routing Packages
332 stars 371 forks source link

ERROR: package/feeds/routing/cjdns failed to build. #882

Closed zhangguanzhang closed 2 years ago

zhangguanzhang commented 2 years ago

<package-name>: cjdns

Maintainer: @William Fleurant meshnet@protonmail.com Environment: on build

Description:

build log ``` make[3]: Entering directory '/workdir/openwrt/feeds/routing/cjdns' rm -f /workdir/openwrt/build_dir/target-aarch64_generic_musl/cjdns-cjdns-v21/.built touch /workdir/openwrt/build_dir/target-aarch64_generic_musl/cjdns-cjdns-v21/.built_check install -d -m0755 /workdir/openwrt/build_dir/target-aarch64_generic_musl/cjdns-cjdns-v21/tmp (cd /workdir/openwrt/build_dir/target-aarch64_generic_musl/cjdns-cjdns-v21 && CROSS="true" CC="ccache_cc" AR="aarch64-openwrt-linux-musl-gcc-ar" RANLIB="aarch64-openwrt-linux-musl-gcc-ranlib" CFLAGS="-Os -pipe -mcpu=generic -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -fmacro-prefix-map=/workdir/openwrt/build_dir/target-aarch64_generic_musl/cjdns-cjdns-v21=cjdns-cjdns-v21 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro -U_FORTIFY_SOURCE -Wno-error=array-bounds -Wno-error=stringop-overflow -Wno-error=stringop-overread" LDFLAGS="-L/workdir/openwrt/staging_dir/toolchain-aarch64_generic_gcc-11.3.0_musl/usr/lib -L/workdir/openwrt/staging_dir/toolchain-aarch64_generic_gcc-11.3.0_musl/lib -znow -zrelro" SYSTEM="linux" TARGET_ARCH=""aarch64"" SSP_SUPPORT="y" GYP_ADDITIONAL_ARGS="-f make-linux" CJDNS_BUILD_TMPDIR="/workdir/openwrt/build_dir/target-aarch64_generic_musl/cjdns-cjdns-v21/tmp" CJDNS_RELEASE_VERSION= exec ./do) timeout is 600000 Initialize 211ms {"isLLVM":false,"isClang":false,"isGCC":true,"version":"11.3.0"} testing python python3.7 error starting python Error: spawn python3.7 ENOENT testing python python3 sys.version_info(major=3, minor=10, micro=4, releaselevel='final', serial=0) Build Libuv Traceback (most recent call last): File "/workdir/openwrt/build_dir/target-aarch64_generic_musl/cjdns-cjdns-v21/build_linux/dependencies/libuv/./gyp_uv.py", line 14, in import gyp File "/workdir/openwrt/build_dir/target-aarch64_generic_musl/cjdns-cjdns-v21/build_linux/dependencies/libuv/build/gyp/pylib/gyp/__init__.py", line 10, in import gyp.input File "/workdir/openwrt/build_dir/target-aarch64_generic_musl/cjdns-cjdns-v21/build_linux/dependencies/libuv/build/gyp/pylib/gyp/input.py", line 8, in import gyp.common File "/workdir/openwrt/build_dir/target-aarch64_generic_musl/cjdns-cjdns-v21/build_linux/dependencies/libuv/build/gyp/pylib/gyp/common.py", line 497, in class OrderedSet(collections.MutableSet): AttributeError: module 'collections' has no attribute 'MutableSet' make[4]: *** out: No such file or directory. Stop. Configure 94ms Scan for out of date files 2ms Cross compiling. Building, but not running tests. Compiler supports link time optimization YES cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object contrib/c/publictoip6.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object contrib/c/privatetopublic.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object client/cjdroute2.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object contrib/c/makekeys.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object contrib/c/sybilsim.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object contrib/c/mkpasswd.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object crypto/random/randombytes.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object test/testcjdroute.c complete Searching for SECCOMP cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object crypto/Key.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object util/AddrTools.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object crypto/random/Random.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object util/log/Log.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object crypto/random/seed/RandomSeed.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object exception/Except.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object exception/Er.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object benc/String.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object util/CString.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object util/Assert.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object util/Hex.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object dht/Address.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object crypto/AddressCalc.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object memory/Allocator.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object util/log/FileWriterLog.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object net/Benchmark.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object util/events/libuv/Process.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object util/events/libuv/Time.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object util/events/libuv/Pipe.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object util/events/libuv/UDPAddrIface.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object util/ArchInfo.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object memory/MallocAllocator.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object io/FileWriter.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object io/ArrayReader.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object util/ArrayList.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object crypto/random/test/DeterminentRandomSeed.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object benc/serialization/standard/BencMessageWriter.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object benc/serialization/standard/BencMessageReader.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object crypto/CryptoAuth.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object benc/serialization/json/JsonBencMessageReader.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object benc/serialization/json/JsonBencSerializer.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object admin/angel/InterfaceWaiter.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object admin/angel/Core.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object client/Configurator.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object util/events/libuv/FakeNetwork.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object tunnel/IpTunnel.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object benc/List.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object util/version/Version.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object util/GlobalConfig.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object tunnel/RouteGen.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object client/AdminClient.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object util/events/libuv/EventBase.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object admin/Admin.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object benc/Dict.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object wire/Message.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times util/platform/Sockaddr.c: In function 'Sockaddr_fromBytes': util/platform/Sockaddr.c:309:8:warning: array subscript 'struct Sockaddr_pvt[0]' is partly outside array bounds of 'unsigned char[36]' [-Warray-bounds] 309 | out->pub.addrLen = addrLen + Sockaddr_OVERHEAD; | ^~ util/platform/Sockaddr.c:307:32:note: referencing an object of size between 24 and 36 allocated by 'Allocator__calloc' 307 | struct Sockaddr_pvt* out = Allocator_calloc(alloc, addrLen + Sockaddr_OVERHEAD, 1); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Building C object util/platform/Sockaddr.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object util/Bits.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object io/ArrayWriter.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object io/FileReader.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object crypto/random/nanotime/NanotimeEntropyProvider.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object util/events/libuv/Timeout.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object interface/addressable/AddrIfaceAdapter.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object ./interface/tuntap/windows/test/TAPInterface_root_test.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object interface/ASynchronizer.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object ./interface/tuntap/windows/test/TAPDevice_root_test.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object ./benc/serialization/json/test/JsonBencMessageReader_fuzz_test.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object ./util/platform/test/Sockaddr_test.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object ./interface/tuntap/test/TUNInterface_ipv6_withroute_root_test.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object ./interface/tuntap/test/TUNInterface_ipv6_root_test.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object ./interface/tuntap/test/TAPWrapper_root_test.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object ./interface/tuntap/test/TUNInterface_ipv4_root_test.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object ./dht/dhtcore/test/VersionList_test.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object ./interface/tuntap/test/BSDMessageTypeWrapper_test.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object ./dht/dhtcore/test/NodeStore_test.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object ./crypto/random/test/Random_test.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object ./util/test/UniqueName_test.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object ./util/test/VarInt_test.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object ./util/test/Set_test.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object ./util/test/QSort_test.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object ./util/test/Seccomp_test.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object ./util/test/Map_test.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object ./util/test/Process_test.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object ./util/test/Identity_test.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object ./util/test/Hex_test.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object ./util/test/Map_fuzz_test.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object ./util/test/Endian_test.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object ./util/test/Checksum_test.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object ./util/test/Bits_test.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object ./util/test/Base32_test.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object ./util/test/Base10_test.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object ./util/test/AverageRoller_test.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times ./util/test/AddrTools_test.c: In function 'AddrTools_test_main': ./util/test/AddrTools_test.c:22:18:warning: 'AddrTools_parseIp' reading 40 bytes from a region of size 6 [-Wstringop-overread] 22 | Assert_true(!AddrTools_parseIp(out, (uint8_t*)"[::1]")); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./util/test/AddrTools_test.c:22:18:note: referencing argument 2 of type 'const uint8_t *' {aka 'const unsigned char *'} In file included from ./util/test/AddrTools_test.c:16: ./util/AddrTools.h:47:5:note: in a call to function 'AddrTools_parseIp' 47 | int AddrTools_parseIp(uint8_t out[16], const uint8_t hexAddr[40]); | ^~~~~~~~~~~~~~~~~ Building C object ./util/test/AddrTools_test.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object ./tunnel/test/RouteGen_test.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object ./switch/test/NumberCompress_test.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object ./tunnel/test/IpTunnel_test.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object ./switch/test/LabelSplicer_test.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object ./subnode/test/LinkState_test.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object ./memory/test/Allocator_test.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object ./switch/test/EncodingScheme_test.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object ./io/test/FileReader_test.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object ./dht/test/DHTModules_handleOutgoing_test.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object ./interface/test/FramingIface_fuzz_test.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object ./dht/test/DHTModules_handleIncoming_test.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object ./crypto/test/Sign_test.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object ./crypto/test/ReplayProtector_test.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object ./crypto/test/CryptoAuth_unit_test.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object ./crypto/test/CryptoAuth_test.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object ./test/printIp_test.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object ./crypto/test/CryptoAuth_fuzz_test.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object ./test/CryptoAddress_test.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object ./test/Main_fuzz_test.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object util/SysInfo.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object ./test/Beacon_test.c complete Has setuid keepNetAdmin cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object crypto/random/seed/SystemRandomSeed.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object util/log/WriterLog.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object net/NetCore.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object net/TUNAdapter.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object net/UpperDistributor.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object net/SessionManager.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object net/ControlHandler.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object net/InterfaceController.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object net/EventEmitter.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object net/SwitchPinger.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object util/Base10.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object switch/SwitchCore.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object net/SessionManager_admin.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object util/Security_admin.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object util/platform/netdev/NetDev.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object util/Security.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object util/log/IndirectLog.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object tunnel/RouteGen_admin.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object util/events/libuv/PipeServer.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object net/UpperDistributor_admin.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object tunnel/IpTunnel_admin.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object net/SwitchPinger_admin.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object memory/Allocator_admin.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object interface/addressable/PacketHeaderToUDPAddrIface.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object interface/addressable/AddrIfaceMuxer.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object interface/ETHInterface_admin.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object net/InterfaceController_admin.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object interface/tuntap/SocketWrapper.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object interface/UDPInterface_admin.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object interface/tuntap/AndroidWrapper.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object interface/tuntap/SocketInterface.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object interface/tuntap/TUNInterface_linux.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object subnode/ReachabilityCollector_admin.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object subnode/SupernodeHunter_admin.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object dht/Pathfinder.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object subnode/SupernodeHunter.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object subnode/SubnodePathfinder.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object subnode/BoilerplateResponder.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object subnode/ReachabilityCollector.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object subnode/MsgCore.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object switch/EncodingScheme.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object subnode/AddrSet.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object crypto/Sign_admin.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object admin/AuthorizedPasswords.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object util/events/libuv/Event.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object benc/serialization/cloner/Cloner.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object admin/AdminLog.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object interface/tuntap/ARPServer.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object interface/tuntap/test/TUNTools.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object interface/tuntap/TAPWrapper.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object interface/tuntap/NDPServer.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object dht/dhtcore/VersionList.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object interface/tuntap/BSDMessageTypeWrapper.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object dht/dhtcore/RumorMill.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object dht/dhtcore/Node.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object util/Set.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object util/Seccomp.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object util/AverageRoller.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object util/Order.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object dht/DHTModuleRegistry.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object interface/FramingIface.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object dht/dhtcore/NodeStore.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object crypto/Sign.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object test/TestFramework.c complete Has setuid keepNetAdmin cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object crypto/random/seed/GetEntropyRandomSeed.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object crypto/random/seed/ProcSysKernelRandomUuidRandomSeed.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object crypto/random/seed/DevUrandomRandomSeed.c complete Linking C executable contrib/c/mkpasswd.c Linking C executable crypto/random/randombytes.c Linking C executable contrib/c/publictoip6.c Linking C executable contrib/c/makekeys.c Linking C executable contrib/c/privatetopublic.c cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object net/PeerLink.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object util/Pinger.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object memory/BufferAllocator.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object util/platform/netdev/NetPlatform_linux.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object util/Setuid_linux.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object interface/ETHInterface_linux.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object interface/UDPInterface.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object dht/dhtcore/Janitor_admin.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object dht/dhtcore/Janitor.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object dht/dhtcore/NodeStore_admin.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object dht/dhtcore/SearchRunner_admin.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object dht/dhtcore/SearchRunner.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object dht/dhtcore/RouterModule_admin.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object dht/dhtcore/Router.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object dht/dhtcore/RouterModule.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object dht/SerializationModule.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object dht/EncodingSchemeModule.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object dht/ReplyModule.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object dht/dhtcore/ReplySerializer.c complete cc1:note: someone does not honour COPTS correctly, passed 18 times Building C object subnode/PingResponder.c complete /workdir/openwrt/build_dir/target-aarch64_generic_musl/cjdns-cjdns-v21/node_build/builder.js:741 Total build time: 22773ms. if (err) { throw err; } ^ Error: gcc -Wl,-z,relro,-z,now,-z,noexecstack -pie -L/workdir/openwrt/staging_dir/toolchain-aarch64_generic_gcc-11.3.0_musl/usr/lib -L/workdir/openwrt/staging_dir/toolchain-aarch64_generic_gcc-11.3.0_musl/lib -znow -zrelro -flto -Os -o build_linux/contrib_c_mkpasswd_c build_linux/util_Assert_c.o,build_linux/util_Bits_c.o,build_linux/memory_Allocator_c.o,build_linux/util_CString_c.o,build_linux/exception_Er_c.o,build_linux/exception_Except_c.o,build_linux/util_log_Log_c.o,build_linux/crypto_random_seed_RandomSeed_c.o,build_linux/crypto_random_seed_DevUrandomRandomSeed_c.o,build_linux/util_Hex_c.o,build_linux/crypto_random_seed_ProcSysKernelRandomUuidRandomSeed_c.o,build_linux/crypto_random_seed_GetEntropyRandomSeed_c.o,build_linux/crypto_random_seed_SystemRandomSeed_c.o,build_linux/crypto_random_Random_c.o,build_linux/memory_MallocAllocator_c.o,build_linux/contrib_c_mkpasswd_c.o build_linux/dependencies/cnacl/jsbuild/libnacl.a,build_linux/dependencies/libuv/out/Release/libuv.a,-lpthread,-lrt /workdir/openwrt/staging_dir/toolchain-aarch64_generic_gcc-11.3.0_musl/lib/gcc/aarch64-openwrt-linux-musl/11.3.0/../../../../aarch64-openwrt-linux-musl/bin/ld: cannot find build_linux/dependencies/libuv/out/Release/libuv.a: No such file or directory collect2: error: ld returned 1 exit status at error (/workdir/openwrt/build_dir/target-aarch64_generic_musl/cjdns-cjdns-v21/node_build/builder.js:53:15) at /workdir/openwrt/build_dir/target-aarch64_generic_musl/cjdns-cjdns-v21/node_build/builder.js:125:22 at /workdir/openwrt/build_dir/target-aarch64_generic_musl/cjdns-cjdns-v21/node_build/builder.js:95:13 at ChildProcess. (/workdir/openwrt/build_dir/target-aarch64_generic_musl/cjdns-cjdns-v21/tools/lib/Semaphore.js:7:30) at ChildProcess.emit (events.js:198:13) at maybeClose (internal/child_process.js:982:16) at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5) make[3]: *** [Makefile:149: /workdir/openwrt/build_dir/target-aarch64_generic_musl/cjdns-cjdns-v21/.built] Error 1 make[3]: Leaving directory '/workdir/openwrt/feeds/routing/cjdns' time: package/feeds/routing/cjdns/compile#33.89#7.92#23.42 ERROR: package/feeds/routing/cjdns failed to build. make[2]: *** [package/Makefile:116: package/feeds/routing/cjdns/compile] Error 1 make[2]: Leaving directory '/workdir/openwrt' make[1]: *** [package/Makefile:110: /workdir/openwrt/staging_dir/target-aarch64_generic_musl/stamp/.package_compile] Error 2 make[1]: Leaving directory '/workdir/openwrt' make: *** [/workdir/openwrt/include/toplevel.mk:230: world] Error 2 ```
wfleurant commented 2 years ago

re: cannot find build_linux/dependencies/libuv/out/Release/libuv.a: No such file or directory

wfleurant commented 2 years ago

i need more information please.
are you building development branch or release branch? it works in develop branch -- please share more information.

time: target/linux/install#26.38#16.20#7.46
Generating package index...
Generating index for package ./cjdns_v21-3_aarch64_cortex-a72.ipk
Signing package index...
zhangguanzhang commented 2 years ago

i need more information please. are you building development branch or release branch? it works in develop branch -- please share more information.

time: target/linux/install#26.38#16.20#7.46
Generating package index...
Generating index for package ./cjdns_v21-3_aarch64_cortex-a72.ipk
Signing package index...

I used the master branch to build

wfleurant commented 2 years ago

OK i built the same target, it could be something else going on. Do you want to share the top part of your .config file? I am trying to reproduce the problem. I may need the exact make/model build you are targeting...

Sooner or later we should be introducing cjdns based on Rust -- are you actively testing / targeting? I am looking for active users/testers.

zhangguanzhang commented 2 years ago

config.zip here is my .config

wfleurant commented 2 years ago

Thanks, cool dot config.

I was able to compile successfully using Debian GNU/Linux 11 (bullseye).
Compiled https://git.openwrt.org/openwrt/openwrt.git

I may have overlooked something. Is it something to do with your Python environment?
Your system has Python3? I compiled with 3.9.2.

Build Libuv
Traceback (most recent call last):
  File "/workdir/openwrt/build_dir/target-aarch64_generic_musl/cjdns-cjdns-v21/build_linux/dependencies/libuv/./gyp_uv.py", line 14, in <module>
    import gyp
  File "/workdir/openwrt/build_dir/target-aarch64_generic_musl/cjdns-cjdns-v21/build_linux/dependencies/libuv/build/gyp/pylib/gyp/__init__.py", line 10, in <module>
    import gyp.input
  File "/workdir/openwrt/build_dir/target-aarch64_generic_musl/cjdns-cjdns-v21/build_linux/dependencies/libuv/build/gyp/pylib/gyp/input.py", line 8, in <module>
    import gyp.common
  File "/workdir/openwrt/build_dir/target-aarch64_generic_musl/cjdns-cjdns-v21/build_linux/dependencies/libuv/build/gyp/pylib/gyp/common.py", line 497, in <module>
    class OrderedSet(collections.MutableSet):
AttributeError: module 'collections' has no attribute 'MutableSet'
make[4]: *** out: No such file or directory.  Stop.
zhangguanzhang commented 2 years ago

Thanks, cool dot config.

I was able to compile successfully using Debian GNU/Linux 11 (bullseye). Compiled https://git.openwrt.org/openwrt/openwrt.git

I may have overlooked something. Is it something to do with your Python environment? Your system has Python3? I compiled with 3.9.2.

Build Libuv
Traceback (most recent call last):
  File "/workdir/openwrt/build_dir/target-aarch64_generic_musl/cjdns-cjdns-v21/build_linux/dependencies/libuv/./gyp_uv.py", line 14, in <module>
    import gyp
  File "/workdir/openwrt/build_dir/target-aarch64_generic_musl/cjdns-cjdns-v21/build_linux/dependencies/libuv/build/gyp/pylib/gyp/__init__.py", line 10, in <module>
    import gyp.input
  File "/workdir/openwrt/build_dir/target-aarch64_generic_musl/cjdns-cjdns-v21/build_linux/dependencies/libuv/build/gyp/pylib/gyp/input.py", line 8, in <module>
    import gyp.common
  File "/workdir/openwrt/build_dir/target-aarch64_generic_musl/cjdns-cjdns-v21/build_linux/dependencies/libuv/build/gyp/pylib/gyp/common.py", line 497, in <module>
    class OrderedSet(collections.MutableSet):
AttributeError: module 'collections' has no attribute 'MutableSet'
make[4]: *** out: No such file or directory.  Stop.

I build on ubuntu-20.04, and installed them:

build-essential asciidoc binutils bzip2 gawk gettext git libncurses5-dev libz-dev \
  patch python3 python2.7 unzip zlib1g-dev  libc6-dev-i386 subversion \
  flex uglifyjs git-core gcc-multilib p7zip p7zip-full msmtp libssl-dev texinfo libglib2.0-dev xmlto \
  qemu-utils upx libelf-dev autoconf automake libtool autopoint \
  device-tree-compiler g++-multilib antlr3 gperf wget curl swig rsync

completion command is :

$ python
python2.7  python3    python3.8

maybe I need to create a link which named python ?

wfleurant commented 2 years ago

I compiled on the same setup we describe here.

I see a difference... It appears your build is using Python 3.10 while mine is using Python 3.8

This is a new bug. Thank you. I will look to see what can be patched.

my build

done
testing python python3.7
error starting python Error: spawn python3.7 ENOENT
testing python python3
sys.version_info(major=3, minor=8, micro=10, releaselevel='final', serial=0)

Build Libuv
['-Dtarget_arch=aarch64', '-f', 'make-linux', '/dev/shm/openwrt/build_dir/target-aarch64_generic_musl/cjdns-cjdns-v21/build_linux/dependencies/libuv/uv.gyp', '-I', '/dev/shm>
/dev/shm/openwrt/build_dir/target-aarch64_generic_musl/cjdns-cjdns-v21/build_linux/dependencies/libuv/./build/gyp/pylib/gyp/input.py:1184: SyntaxWarning: "is" with a literal>
  if the_dict_key is 'variables' and variable_name in the_dict:
make[3]: Entering directory '/dev/shm/openwrt/build_dir/target-aarch64_generic_musl/cjdns-cjdns-v21/build_linux/dependencies/libuv/out'
  ccache_cc '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-DHAVE_CONFIG_H' -I../include -I../src  -pthread -Wall -ansi -pthread -fvisibility=hidden -g --std=gnu89 -pedanti>
  ccache_cc '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-DHAVE_CONFIG_H' -I../include -I../src  -pthread -Wall -ansi -pthread -fvisibility=hidden -g --std=gnu89 -pedanti>
...
time: package/feeds/routing/cjdns/compile#27.98#5.32#5.92
make[1]: Leaving directory '/dev/shm/openwrt'

your build

testing python python3.7
error starting python Error: spawn python3.7 ENOENT
testing python python3
sys.version_info(major=3, minor=10, micro=4, releaselevel='final', serial=0)
Build Libuv
Traceback (most recent call last):
  File "/workdir/openwrt/build_dir/target-aarch64_generic_musl/cjdns-cjdns-v21/build_linux/dependencies/libuv/./gyp_uv.py", line 14, in <module>
    import gyp
  File "/workdir/openwrt/build_dir/target-aarch64_generic_musl/cjdns-cjdns-v21/build_linux/dependencies/libuv/build/gyp/pylib/gyp/__init__.py", line 10, in <module>
    import gyp.input
  File "/workdir/openwrt/build_dir/target-aarch64_generic_musl/cjdns-cjdns-v21/build_linux/dependencies/libuv/build/gyp/pylib/gyp/input.py", line 8, in <module>
    import gyp.common
  File "/workdir/openwrt/build_dir/target-aarch64_generic_musl/cjdns-cjdns-v21/build_linux/dependencies/libuv/build/gyp/pylib/gyp/common.py", line 497, in <module>
    class OrderedSet(collections.MutableSet):
AttributeError: module 'collections' has no attribute 'MutableSet'
make[4]: *** out: No such file or directory.  Stop.
zhangguanzhang commented 2 years ago

woow, nice catch. 👍 But I can't figure out why it compiles without python in the staging_dir directory

wfleurant commented 2 years ago

okay.... we can probably patch frozen package dependency gyp
basically, replace node_build/dependencies/libuv/build/gyp/ with latest (https://chromium.googlesource.com/external/gyp)
and commending out Werror in node_build/make.js

im out the door, i'll try to patch this weekend.. thanks again for reporting

% ./cjdroute  --version
Cjdns version: cjdns-v21.2-7-g7bc76859-dirty
Cjdns protocol version: 21

% python3 -V
Python 3.10.4
wfleurant commented 2 years ago

for now, lets see if this works.
decompress this patch, put it here like package/feeds/routing/cjdns/patches/020-latest-gyp-no-werror.patch then try make V=99 package/cjdns/{clean,compile}

020-latest-gyp-no-werror.patch.gz

time: package/kernel/linux/compile#1.11#0.05#1.16
make[2]: Entering directory '/dev/shm/openwrt/feeds/routing/cjdns'
touch /dev/shm/openwrt/build_dir/target-aarch64_generic_musl/cjdns-cjdns-v21/.prepared_c02167bb5e56b364300f16e702ea4aa0_6664517399ebbbc92a37c5bb081b5c53_check
. /dev/shm/openwrt/include/shell.sh; gzip -dc /dev/shm/openwrt/dl/cjdns-v21.tar.gz | tar -C /dev/shm/openwrt/build_dir/target-aarch64_generic_musl/cjdns-cjdns-v21/.. -xf -
[ ! -d ./src/ ] || cp -fpR ./src/. /dev/shm/openwrt/build_dir/target-aarch64_generic_musl/cjdns-cjdns-v21

Applying ./patches/001-five-mins-builder-zonk.patch using plaintext: 
patching file node_build/builder.js

Applying ./patches/010-musl-12x.patch using plaintext: 
patching file memory/Allocator.c

Applying ./patches/020-latest-gyp-no-werror.patch using plaintext: 
patching file node_build/dependencies/libuv/build/gyp/gyp
patching file node_build/dependencies/libuv/build/gyp/gyp_main.py
....
Build completed successfully, type ./cjdroute to begin setup.
Total build time: 5277ms.
Packaged contents of /dev/shm/openwrt/build_dir/target-aarch64_generic_musl/cjdns-cjdns-v21/ipkg-aarch64_generic/cjdns into /dev/shm/openwrt/bin/packages/aarch64_generic/routing/cjdns_v21-3_aarch64_generic.ipk
zhangguanzhang commented 2 years ago

I will try it tomorrow

zhangguanzhang commented 2 years ago

used the commit https://github.com/openwrt/routing/commit/217330bb5e7c17cc2e9f116f8a853f2e5fb86697.patchhttps://github.com/openwrt/routing/commit/217330bb5e7c17cc2e9f116f8a853f2e5fb86697.patch will be ok. Could you cherry-pick it to 21.02

wfleurant commented 2 years ago

trying to test / verify luci-app-cjdns and cjdroute configuration is setting/getting from UCI correctly. I think v21.1 has additional features like supernode and.... Lets just test a bit before a backport.

wfleurant commented 2 years ago

let me know if the compiling is fixed, we can close and then backport v21.1 + supernodes to 21.02, 22.03.
thanks for contributing your help and testing.

zhangguanzhang commented 2 years ago

let me know if the compiling is fixed, we can close and then backport v21.1 + supernodes to 21.02, 22.03. thanks for contributing your help and testing.

I tested it on the branch 21.02, It works fine