From nobody Mon Aug 09 12:14:54 2021 X-Original-To: ports-bugs@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 26BD3175751D for ; Mon, 9 Aug 2021 12:14:55 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Gjw4v0Hcvz4RP1 for ; Mon, 9 Aug 2021 12:14:55 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id E46AC27CBC for ; Mon, 9 Aug 2021 12:14:54 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 179CEstM043725 for ; Mon, 9 Aug 2021 12:14:54 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 179CEs0f043724 for ports-bugs@FreeBSD.org; Mon, 9 Aug 2021 12:14:54 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 257708] devel/stlink: build fails on 32 bit platforms Date: Mon, 09 Aug 2021 12:14:54 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: fuz@fuz.su X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: lev@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform bug_file_loc op_sys bug_status bug_severity priority component assigned_to reporter flagtypes.name Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Ports bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-ports-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports-bugs@freebsd.org X-BeenThere: freebsd-ports-bugs@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D257708 Bug ID: 257708 Summary: devel/stlink: build fails on 32 bit platforms Product: Ports & Packages Version: Latest Hardware: Any URL: https://lists.freebsd.org/archives/freebsd-pkg-fallout /2021-August/073895.html OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: lev@FreeBSD.org Reporter: fuz@fuz.su Assignee: lev@FreeBSD.org Flags: maintainer-feedback?(lev@FreeBSD.org) As reported by Port Fallouts [1], devel/stlink fails to build on various 32= bit platforms. This appears to be due to an overly zealous warning: /usr/bin/cc -DSTLINK_HAVE_SYS_MMAN_H -DSTLINK_HAVE_SYS_TIME_H -DSTLINK_HAVE_UNISTD_H -I/wrkdirs/usr/ports/devel/stlink/work/stlink-1.7.0/= inc -I/wrkdirs/usr/ports/devel/stlink/work/.build/inc -I/wrkdirs/usr/ports/devel/stlink/work/stlink-1.7.0/src -I/wrkdirs/usr/ports/devel/stlink/work/stlink-1.7.0/src/st-flash -I/wrkdirs/usr/ports/devel/stlink/work/stlink-1.7.0/src/stlink-lib -O2 -pip= e=20 -fstack-protector-strong -fno-strict-aliasing -std=3Dc99 -std=3Dgnu11 -std= =3Dgnu18 -Wall -Wextra -Wshadow -D_FORTIFY_SOURCE=3D2 -fstrict-aliasing -Wundef -Wfo= rmat -Wformat-security -Wmissing-variable-declarations -Wshorten-64-to-32 -Wimplicit-function-declaration -Wredundant-decls -fPIC -O2 -Werror -O2 -pi= pe=20 -fstack-protector-strong -fno-strict-aliasing -std=3Dc99 -MD -MT CMakeFiles/stlink-static.dir/src/common.c.o -MF CMakeFiles/stlink-static.dir/src/common.c.o.d -o CMakeFiles/stlink-static.dir/src/common.c.o -c /wrkdirs/usr/ports/devel/stlink/work/stlink-1.7.0/src/common.c /wrkdirs/usr/ports/devel/stlink/work/stlink-1.7.0/src/common.c:2222:16: err= or: implicit conversion loses integer precision: 'off_t' (aka 'long long') to 'size_t' (aka 'unsigned int') [-Werror,-Wshorten-64-to-32] mf->len =3D st.st_size; ~ ~~~^~~~~~~ 1 error generated. ninja: build stopped: subcommand failed. A patch for this issue had already existed in am old revision [2], but was taken out last year. Perhaps it is required to reintroduce the patch. I h= ave meanwhile reported the issue back to upstream, so perhaps they may fix it o= nce again. [3] [1]: https://lists.freebsd.org/archives/freebsd-pkg-fallout/2021-August/073895.h= tml [2]: https://cgit.freebsd.org/ports/commit/devel/stlink?id=3Dfa323644a47f359c2bf= 843fd98aaa956e14ba845 [3]: https://github.com/stlink-org/stlink/issues/1175 --=20 You are receiving this mail because: You are the assignee for the bug.=