Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 30 Jun 2021 11:48:44 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 256783] Mk/Uses/cmake.mk: Some cmake ports builds twice
Message-ID:  <bug-256783-7788-Bfjf9wx6PP@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-256783-7788@https.bugs.freebsd.org/bugzilla/>
References:  <bug-256783-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D256783

--- Comment #4 from Adriaan de Groot <adridg@freebsd.org> ---
It's not that I don't believe you, it's that I have no idea how to reproduce
this -- or even why it's an issue, really. Your latest log shows hts being
built, and then at stage-time five (if I counted right) C files are
re-compiled. Not even all of them (here in hts, just the `kissnet/`
subdirectory).=20

Locally, nothing is rebuilt; I've tried with MAKE_JOBS_UNSAFE, and without.=
 In
poudriere, and in the host, as root and as user.

I'd suggest building this up to pre-stage and then executing the steps in s=
tage
by hand, to figure out what's going on and why make is rebuilding things. T=
he
relevant steps are (here from my build, which has slightly different paths):

```
/usr/bin/make  -f lib/kissnet/CMakeFiles/hts.dir/build.make
lib/kissnet/CMakeFiles/hts.dir/depend
cd /tmp/port/work/.build && /usr/local/bin/cmake -E cmake_depends "Unix
Makefiles" /tmp/port/work/pvr.hts-8.3.0-Matrix
/tmp/port/work/pvr.hts-8.3.0-Matrix/lib/libhts /tmp/port/work/.build
/tmp/port/work/.build/lib/kissnet
/tmp/port/work/.build/lib/kissnet/CMakeFiles/hts.dir/DependInfo.cmake --col=
or=3D
Consolidate compiler generated dependencies of target hts
/usr/bin/make  -f lib/kissnet/CMakeFiles/hts.dir/build.make
lib/kissnet/CMakeFiles/hts.dir/build
```

If you can trace those two `make` invocations to see exactly what is being
rebuilt and why, **then** there's a chance to track this down.

--=20
You are receiving this mail because:
You are on the CC list for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-256783-7788-Bfjf9wx6PP>