One of the things I always build before booting is strace. With LFS
from 20190721 strace-5.2 was fine. But with 9.0-rc1 it ftbfs. I'm
recording the details here because using the git version is more
complicated than I expected (last time I needed a patch, I was able
to find one with google and apply it to the release).
The error with 5.2 was
gcc -DHAVE_CONFIG_H -I./linux/x86_64 -I./linux/x86_64 -I./linux -I./linux -I.
-I. -DIN_MPERS -DMPERS_IS_m32 -I./mpers-m32 -Wall -Wempty-body
-Wformat-security -Wignored-qualifiers -Wimplicit-fallthrough=5 -Winit-self
-Wlogical-op -Wmissing-parameter-type -Wnested-externs -Wold-style-declaration
-Wold-style-definition -Woverride-init -Wsign-compare -Wtype-limits
-Wwrite-strings -O3 -march=native -D_FORTIFY_SOURCE=2
-fstack-protector-strong -MT libmpers_m32_a-v4l2.o -MD -MP -MF
.deps/libmpers_m32_a-v4l2.Tpo -c -o libmpers_m32_a-v4l2.o `test -f 'v4l2.c' ||
echo './'`v4l2.c
In file included from ./static_assert.h:11,
from xlat/v4l2_pix_fmts.h:4,
from v4l2.c:59:
xlat/v4l2_pix_fmts.h:274:1: error: static assertion failed:
"V4L2_PIX_FMT_BGRA444 != v4l2_fourcc(\'B\', \'A\', \'1\', \'2\')"
274 | static_assert((V4L2_PIX_FMT_BGRA444) == (v4l2_fourcc('B', 'A', '1',
'2')), "V4L2_PIX_FMT_BGRA444 != v4l2_fourcc('B', 'A', '1', '2')");
| ^~~~~~~~~~~~~
make[2]: *** [Makefile:3344: libmpers_m32_a-v4l2.o] Error 1
Note that is using my CFLAGS, those are not the problem.
Google found a similarish report from one of the travis-ci systems
running the testsuite, with a reply "Yes, there was a change in
mainline kernel headers. The issue will go away as soon as you
rebased your branch to the current master."
https://lists.strace.io/pipermail/strace-devel/2019-July/008979.html
So, I cloned from github (gitlab is also available) and looked at
the log but couldn't pot anything that looked likely. Then I tried
to use git-archive to tar it up - total failure. The required
procedure is:
git clone
cd strace
./bootstrap
You have to be in the git tree to run bootstrap, otherwise it will
error after a while.
At that point it can be tarred up (after the previous issues I just
copied everything to a versioned directory and tarred that).
It builds, and it also runs its tests without errors (I don't
normally bother with the tests).
ĸen
--
Adopted by dwarfs, brought up by dwarfs. To dwarfs I'm a dwarf, sir.
I can do the rite of k'zakra, I know the secrets of h'ragna, I can
ha'lk my g'rakha correctly ... I am a dwarf
Captain Carrot Ironfoundersson (in The Fifth Elephant)
--
http://lists.linuxfromscratch.org/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page