Building a more complete package

hello,
do you guys know any other packages that are not in:
https://openwrt.org/docs/guide-developer/build-system/install-buildsystem
and would help me to build all packages that are in OpenWrt?

I have this packages, that are not building:

ERROR: package/feeds/packages/classpath failed to build.
ERROR: package/feeds/packages/dmapd failed to build.
ERROR: package/feeds/packages/grilo-plugins failed to build.
ERROR: package/feeds/packages/hamlib failed to build.
ERROR: package/feeds/packages/lcdgrilo failed to build.
ERROR: package/feeds/packages/libmraa failed to build.
ERROR: package/feeds/packages/libupm failed to build.
ERROR: package/feeds/packages/open2300 failed to build.
ERROR: package/feeds/packages/openssh failed to build (build variant: with-pam).
ERROR: package/feeds/packages/protobuf-c [host] failed to build.
ERROR: package/feeds/routing/pimbd failed to build.
ERROR: package/network/services/omcproxy failed to build.

the packages I use for building on Debian Testing repo:

asciidoc
bash
bc
bcc
bin86
binutils
build-essential
bzip2
bzr
cmake
curl
default-jdk
ecj
fastjar
file
flex
g++-multilib
gawk
gcc
genisoimage
gettext
git
git-core
help2man
intltool
java-wrappers
jikespg
libboost-dev
libelf-dev
libgtk2.0-dev
libncurses5-dev
libpcap-dev
libssl-dev
libusb-dev
libxml-parser-perl
make
mc
mercurial
nano
nasm
ncdu
patch
perl-modules
python
python-dev
python3
python3-dev
quilt
rsync
ruby
sdcc
sharutils
software-properties-common
sshpass
subversion
sudo
swig
time
unzip
util-linux
wget
xsltproc
xz-utils
zlib1g-dev

if anyone knows any new packages, that i would add to my build system, please let me know!
thanks very much!

Here's the "official word" on required packages

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.

Well, any indication on WHY the packages are failing to build?

If you run make -j1 package/feeds/packages/openssh V=sc what does it tell you? The errors will tell you what you're missing, if that is the problem.

Did you make sure the feeds were updated? As in, did you run ./scripts/feeds update -a and ./scripts/feeds install -a?

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

there is an openwrt thread as well:

and you are right, in 18.06.4, the openssh Makefile it still uses the old setting:
image

instead of
image

i guess that is the problem, it is not merged into 18, must be in 19

1 Like

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.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.