From nobody Sun Sep 26 09:27:20 2021 X-Original-To: freebsd-arm@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 8606B17E405F for ; Sun, 26 Sep 2021 09:27:33 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic312-23.consmr.mail.gq1.yahoo.com (sonic312-23.consmr.mail.gq1.yahoo.com [98.137.69.204]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4HHL5c1zT9z3N6h for ; Sun, 26 Sep 2021 09:27:32 +0000 (UTC) (envelope-from marklmi@yahoo.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1632648444; bh=G9eEh6bIUtWmZ06SghCrjbcDPPA6QcsspJr/MInK2lA=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From:Subject:Reply-To; b=qggohMrpZdk4ZcHUvChWyuoPktnL++gsOP1vuNW9LEc+ul1BWTN6Yv6g3IvzsyzPSFavA8JNN7pwXe8z8KIDCC9Kii+6uoK4IuvOUs0FCDh7MW+5wbmll5VVDrXu4fHFZHP4Qg6MVY7YbzDtQKLth7FgCQeNrdQBYueR/SxT7WZVIB2VGyb1e2h/BoV79+myBNeeEPyUQk4E3y8rD2sgoMidDChyl++VAxTV1bRkCQG4PL6LBTYrqd88uvfcCtdCdB0pETqmSyMj+KnMyLpmDS1tvuawJ8W1nP4G5/mSht7iXrw5sBz5NQZlGDl842ii0q3DeMSuDa2DDd5UOYNuyg== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1632648444; bh=OIWjYMKs72mZHnjQ3JPkngU70aAKArWyFW45srmwYBj=; h=X-Sonic-MF:Subject:From:Date:To:From:Subject; b=m3QPd3/7y1OwG2F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BGJngikXlLih9kEiAs8sfOJ0CAMOrHhpdL_woG5SJB8UEz7MNjRqUwYFtk.EzrFuHkj2jik bQS.JW4Plqs5uKIwPS06Ibqbyy9QW8Vx.SAvsrt4d2wUlnTAQmg0.ywRmQR1NxfYj1e1gttSP.BW wgodFUu0njok_QB8yyyZSFxbSbrI9SLBWAPTIChSfIamDaWM0AeP_PYayf4UoSG1ZiHXNyylQWn1 Iz4qevcP0DQyBXWkkU8YrI4b4zLT2Sb7Qqzy.3wtNZi7oizd0WMUXsc.P6MBrdEMetMYyh4q0huz 5NtDAvbyGOM3P_xf7Uu0BFVxPmXswpt5EOj7Oe05afvFWvvT7kZ9MzlUqjPod_kLRTnhJXbSr_pl 8xhyy1YpRMYwGskVIQBt0fbR7yBUg7.KQA3hJMY8snKScw25FNzI6bbqb7fx13vduejZBQ1zMuLn 6Yh1pDB4cWH_FnektW1HFwOc8fKMDbZI3V8efe5KEWOnFydrlctF6jsFxFUBuSoiV4BGynwVewHv ho57BmBSVCYSTM_oeQCkbqgWDmVOji_IsxIpSYp9xzOJpXeU5NBENMO6HGJAt7iNmIW8E8f8cIoC _ X-Sonic-MF: Received: from sonic.gate.mail.ne1.yahoo.com by sonic312.consmr.mail.gq1.yahoo.com with HTTP; Sun, 26 Sep 2021 09:27:24 +0000 Received: by kubenode518.mail-prod1.omega.ne1.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID d4aca637ff3e9591977c1bf11c43283a; Sun, 26 Sep 2021 09:27:22 +0000 (UTC) Content-Type: text/plain; charset=us-ascii List-Id: Porting FreeBSD to ARM processors List-Archive: https://lists.freebsd.org/archives/freebsd-arm List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-arm@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.13\)) Subject: Re: I get odd time reports from poudriere on armv7 system, under a (non-debug) main [so: 14] FreeBSD. In-Reply-To: Date: Sun, 26 Sep 2021 02:27:20 -0700 Cc: freebsd-current , Free BSD Content-Transfer-Encoding: quoted-printable Message-Id: <187B69AF-9465-41DE-BFD0-A4AA0F7F9068@yahoo.com> References: To: freebsd-ports@freebsd.org, Bryan Drewery X-Mailer: Apple Mail (2.3654.120.0.1.13) X-Rspamd-Queue-Id: 4HHL5c1zT9z3N6h X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=yahoo.com header.s=s2048 header.b=qggohMrp; dmarc=pass (policy=reject) header.from=yahoo.com; spf=pass (mx1.freebsd.org: domain of marklmi@yahoo.com designates 98.137.69.204 as permitted sender) smtp.mailfrom=marklmi@yahoo.com X-Spamd-Result: default: False [-3.49 / 15.00]; RCVD_TLS_LAST(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; RWL_MAILSPIKE_POSSIBLE(0.00)[98.137.69.204:from]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; FREEMAIL_FROM(0.00)[yahoo.com]; MV_CASE(0.50)[]; MIME_GOOD(-0.10)[text/plain]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; NEURAL_HAM_LONG(-1.00)[-1.000]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[yahoo.com:+]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; RCVD_IN_DNSWL_NONE(0.00)[98.137.69.204:from]; NEURAL_HAM_SHORT(-0.99)[-0.988]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[yahoo.com]; ASN(0.00)[asn:36647, ipnet:98.137.64.0/20, country:US]; RCVD_COUNT_TWO(0.00)[2]; MID_RHS_MATCH_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[yahoo.com:dkim] Reply-To: marklmi@yahoo.com From: Mark Millard via freebsd-current X-Original-From: Mark Millard X-ThisMailContainsUnwantedMimeParts: N On 2021-Sep-25, at 23:25, Mark Millard wrote: > I get odd time reports from poudriere on an armv7 under main [so: 14]: >=20 >=20 >=20 > # poudriere bulk -jmain-CA7 lang/rust > [00:00:00] Creating the reference jail... done > . . . > [00:00:00] Balancing pool > [main-CA7-default] [2021-09-25_23h11m13s] [balancing_pool:] Queued: 70 = Built: 0 Failed: 0 Skipped: 0 Ignored: 0 Fetched: 0 Tobuild: 70 = Time: -258342:-3:-36 > [00:00:00] Recording filesystem state for prepkg... done > . . . >=20 >=20 > # poudriere bulk -j13_0R-CA7 lang/rust > [00:00:00] Creating the reference jail... done > . . . > [00:00:00] Balancing pool > [13_0R-CA7-default] [2021-09-25_18h06m23s] [balancing_pool:] Queued: 1 = Built: 0 Failed: 0 Skipped: 0 Ignored: 0 Fetched: 0 Tobuild: 1 = Time: -9522:-38:-44 > [00:00:00] Recording filesystem state for prepkg... done > . . . >=20 >=20 > # poudriere bulk -j13_0R-CA7 lang/rust > [00:00:00] Creating the reference jail... done > . . . > [00:00:00] Balancing pool > [13_0R-CA7-default] [2021-09-25_22h52m58s] [balancing_pool:] Queued: 1 = Built: 0 Failed: 0 Skipped: 0 Ignored: 0 Fetched: 0 Tobuild: 1 = Time: -666894:-15:-9 > [00:00:00] Recording filesystem state for prepkg... done > . . . >=20 >=20 > For reference: >=20 > # poudriere version > poudriere-git-3.3.99.20210907_1 >=20 > # uname -apKU > FreeBSD OPiP2E_RPi2v11 14.0-CURRENT FreeBSD 14.0-CURRENT #9 = main-n249019-0637070b5bca-dirty: Sat Sep 4 03:15:41 PDT 2021 = root@CA72_16Gp_ZFS:/usr/obj/BUILDs/main-CA7-nodbg-clang/usr/main-src/arm.a= rmv7/sys/GENERIC-NODBG-CA7 arm armv7 1400032 1400032 >=20 > # poudriere jail -jmain-CA7 -i > Jail name: main-CA7 > Jail version: 14.0-CURRENT > Jail arch: arm.armv7 > Jail method: null > Jail mount: /usr/obj/DESTDIRs/main-CA7-poud > Jail fs: =20 > Jail updated: 2021-06-27 17:58:33 > Jail pkgbase: disabled >=20 > # poudriere jail -j13_0R-CA7 -i > Jail name: 13_0R-CA7 > Jail version: 13.0-RELEASE-p4 > Jail arch: arm.armv7 > Jail method: null > Jail mount: /usr/obj/DESTDIRs/13_0R-CA7-poud > Jail fs: =20 > Jail updated: 2021-09-06 19:10:46 > Jail pkgbase: disabled >=20 > # chroot /usr/obj/DESTDIRs/main-CA7-poud/ > # uname -apKU > FreeBSD OPiP2E_RPi2v11 14.0-CURRENT FreeBSD 14.0-CURRENT #9 = main-n249019-0637070b5bca-dirty: Sat Sep 4 03:15:41 PDT 2021 = root@CA72_16Gp_ZFS:/usr/obj/BUILDs/main-CA7-nodbg-clang/usr/main-src/arm.a= rmv7/sys/GENERIC-NODBG-CA7 arm armv7 1400032 1400032 >=20 > # chroot /usr/obj/DESTDIRs/13_0R-CA7-poud/ > # uname -apKU > FreeBSD OPiP2E_RPi2v11 14.0-CURRENT FreeBSD 14.0-CURRENT #9 = main-n249019-0637070b5bca-dirty: Sat Sep 4 03:15:41 PDT 2021 = root@CA72_16Gp_ZFS:/usr/obj/BUILDs/main-CA7-nodbg-clang/usr/main-src/arm.a= rmv7/sys/GENERIC-NODBG-CA7 arm armv7 1400032 1300139 >=20 This looks to be poudriere's problem . . . poudriere/src/libexec/poudriere/clock/clock.c has: if (argc =3D=3D 3 && strcmp(argv[2], "-nsec") =3D=3D 0) printf("%ld.%ld\n", ts.tv_sec, ts.tv_nsec); else printf("%ld\n", ts.tv_sec); where: struct timespec { time_t tv_sec; /* seconds */ long tv_nsec; /* and nanoseconds */ }; but for tv_sec the type is for armv7: /usr/include/machine/_types.h:typedef __int64_t __time_t; = /* time()... */ =46rom man arch: Machine-dependent type sizes: Architecture void * long double time_t aarch64 8 16 8 amd64 8 16 8 armv6 4 8 8 armv7 4 8 8 i386 4 12 4 mips 4 8 8 mipsel 4 8 8 mipselhf 4 8 8 mipshf 4 8 8 mipsn32 4 8 8 mips64 8 8 8 mips64el 8 8 8 mips64elhf 8 8 8 mips64hf 8 8 8 powerpc 4 8 8 powerpcspe 4 8 8 powerpc64 8 8 8 powerpc64le 8 8 8 riscv64 8 16 8 riscv64sf 8 16 8 %ld is for long arguments, 32-bits in an ILP32 context, not __int64_t (long long) arguments. Applies to armv6, armv7, mips, mipsel, mipselhf, mipshf, mipsn32, powerpc, and powerpcspe. Note: i386 should use %ld for time_t for FreeBSD, despite being IPL32. =3D=3D=3D Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar)