commit | 6d75e4daa5c19509a0b3d6e00641c65976dea64f | [log] [tgz] |
---|---|---|
author | Ed Tanous <etanous@nvidia.com> | Tue Jul 29 10:22:02 2025 -0700 |
committer | Ed Tanous <etanous@nvidia.com> | Tue Jul 29 18:47:03 2025 +0000 |
tree | fd28706a7709c3f7b73132fd41011b0549d2cccd | |
parent | 041b3758725212376eadc721bbedaa456178cd84 [diff] |
Fix build issue on Nuvoton It isn't clear why only Nuvoton sees this issue, but this line is failing with: ``` | /usr/include/c++/15.1.0/bits/char_traits.h:429:49: error: '__builtin_memcpy' reading 18 bytes from a region of size 16 [-Werror=stringop-overread] | ../git/transporthandler.cpp: In function 'setMACProperty': | ../git/transporthandler.cpp:222:35: note: at offset 16 into source object '<anonymous>' of size 32 | 222 | stdplus::toStr(mac)); ``` I suspect it's getting confused by the rvalue at some level, and the stdplus ToStr buffers take some effort to understand. This issue is fixed by simply loading the value onto the stack in a std::string, which arguably is less efficient because of the copy, but it's unlikely we'll ever see impact. Change-Id: Ib14f4a577c5a973bbe8893c9242397e34a206ad2 Signed-off-by: Ed Tanous <etanous@nvidia.com>
meson builddir ninja -C builddir
meson builddir -Dbuildtype=minsize -Db_lto=true -Dtests=disabled ninja -C builddir
If any of the dependencies are not found on the host system during configuration, meson automatically gets them via its wrap dependencies mentioned in ipmid/subprojects
.
meson builddir -Dwrap_mode=nofallback ninja -C builddir
meson builddir -Dbuildtype=debug ninja -C builddir
meson builddir -Db_coverage=true -Dtests=enabled ninja -C builddir test ninja -C builddir coverage