From nobody Sun Jun 27 22:44:43 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 184A2CFFE4E for ; Sun, 27 Jun 2021 22:44:44 +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 4GCm5R4W84z3Kv0 for ; Sun, 27 Jun 2021 22:44:43 +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 7D6881A824 for ; Sun, 27 Jun 2021 22:44:43 +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 15RMihEt099090 for ; Sun, 27 Jun 2021 22:44:43 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 15RMihVu099089 for ports-bugs@FreeBSD.org; Sun, 27 Jun 2021 22:44:43 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 256783] Mk/Uses/cmake.mk: Some cmake ports builds twice Date: Sun, 27 Jun 2021 22:44:43 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Ports Framework X-Bugzilla-Version: Latest X-Bugzilla-Keywords: needs-qa, performance X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: adridg@freebsd.org X-Bugzilla-Status: In Progress X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: kde@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? merge-quarterly? X-Bugzilla-Changed-Fields: cc bug_status Message-ID: In-Reply-To: References: 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=3D256783 Adriaan de Groot changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |adridg@freebsd.org Status|Open |In Progress --- Comment #2 from Adriaan de Groot --- To some extent this is expected: CMake (re-)links executables while install= ing. You can see that with these four files (CMakeLists.txt, main.c, tu.c, tv.c): ``` [adridg@beastie /tmp]$ cat CMakeLists.txt=20 cmake_minimum_required(VERSION 3.16 FATAL_ERROR) project(derp LANGUAGES C) add_executable(derp1 tu.c main.c) add_executable(derp2 tv.c main.c) install(TARGETS derp1 derp2 DESTINATION /tmp) [adridg@beastie /tmp]$ cat main.c extern int x; int main(int argc, char** argv) { return x * argc; } [adridg@beastie /tmp]$ cat tu.c int x =3D 0; [adridg@beastie /tmp]$ cat tv.c int x =3D 1; ``` With `make`, the objects are built, and the executables linked: ``` [adridg@beastie /tmp]$ make [ 16%] Building C object CMakeFiles/derp1.dir/tu.c.o [ 33%] Building C object CMakeFiles/derp1.dir/main.c.o [ 50%] Linking C executable derp1 [ 50%] Built target derp1 [ 66%] Building C object CMakeFiles/derp2.dir/tv.c.o [ 83%] Building C object CMakeFiles/derp2.dir/main.c.o [100%] Linking C executable derp2 [100%] Built target derp2 ``` And then `make install` (which is what staging does) does some re-compilati= on and re-linking: ``` [adridg@beastie /tmp]$ make install Consolidate compiler generated dependencies of target derp1 [ 50%] Built target derp1 Consolidate compiler generated dependencies of target derp2 [100%] Built target derp2 Install the project... -- Install configuration: "" ``` I built comms/svxlink and devel/cpp-hocon in poudriere just now, and while there is the expected consolidation / re-linking, I don't see the kind of rebuild you show in your log. I suspect time drift, frankly. --=20 You are receiving this mail because: You are on the CC list for the bug.=