Building all packages with the build system is often fraught with pain. If you're trying to do that, installing the buildbot would be a better plan, as it handles the process in a couple phases and in a way that failures don't break things.
for example for openssh with pam it giving this error:
auth-pam.c:212:1: error: conflicting types for 'pthread_cancel'
pthread_cancel(sp_pthread_t thread)
^~~~~~~~~~~~~~
In file included from /build/source/staging_dir/target-arm_cortex-a9+vfpv3_musl_eabi/usr/include/rpc/compat.h:15:0,
from /build/source/staging_dir/target-arm_cortex-a9+vfpv3_musl_eabi/usr/include/rpc/types.h:36,
from includes.h:115,
from auth-pam.c:50:
/build/source/staging_dir/toolchain-arm_cortex-a9+vfpv3_gcc-7.3.0_musl_eabi/include/pthread.h:92:5: note: previous declaration of 'pthread_cancel' was here
int pthread_cancel(pthread_t);
^~~~~~~~~~~~~~
auth-pam.c:220:1: error: conflicting types for 'pthread_join'
pthread_join(sp_pthread_t thread, void **value)
^~~~~~~~~~~~
In file included from /build/source/staging_dir/target-arm_cortex-a9+vfpv3_musl_eabi/usr/include/rpc/compat.h:15:0,
from /build/source/staging_dir/target-arm_cortex-a9+vfpv3_musl_eabi/usr/include/rpc/types.h:36,
from includes.h:115,
from auth-pam.c:50:
/build/source/staging_dir/toolchain-arm_cortex-a9+vfpv3_gcc-7.3.0_musl_eabi/include/pthread.h:80:5: note: previous declaration of 'pthread_join' was here
int pthread_join(pthread_t, void **);
^~~~~~~~~~~~
Makefile:160: recipe for target 'auth-pam.o' failed
make[4]: *** [auth-pam.o] Error 1
make[4]: Leaving directory '/build/source/build_dir/target-arm_cortex-a9+vfpv3_musl_eabi/openssh-with-pam/openssh-7.7p1'
Makefile:285: recipe for target '/build/source/build_dir/target-arm_cortex-a9+vfpv3_musl_eabi/openssh-with-pam/openssh-7.7p1/.built' failed
make[3]: *** [/build/source/build_dir/target-arm_cortex-a9+vfpv3_musl_eabi/openssh-with-pam/openssh-7.7p1/.built] Error 2
make[3]: Leaving directory '/build/source/feeds/packages/net/openssh'
time: package/feeds/packages/openssh/with-pam/compile#55.69#14.13#95.29
ok i guess, my docker debian container is right, all problems are because of the packages (missing repos, some compiler errors, mostly the Makefile is wrong or like open2300 in 19 the download the packages is fixed with github, while in 18 it is using some old url that is not found)...
thanks again.