Thanks.
tells quite clearly what the problem is. I didn't tell it when this
output already told it!
So you haven't these files where your chosen build switch
'--with-sysroot=/usr/arm-linux-gnueabih' claims
them to be, in :
/usr/arm-linux-gnueabihf/usr/arm-linux-gnueabihf/lib
The '--with-sysroot=/usr/arm-linux-gnueabih' makes just this, puts an
"offset" before the usual 'native search places'.
So just leave the '--with-sysroot=/usr/arm-linux-gnueabih' away from
your build options!
If I remove it, i get <pthread.h> is not found. I have installed
libc-dev-cross-armhf which should have included pthread. I also tried
to install libpthread-stubs0-dev package in Bookworm.