Building Issue on Gentoo

Hi,

I experienced some building error when I built the openwrt with passwall together with its deps on a Gentoo System. I have a fine openwrt sdk repository prepared by 2023-10 which can build sing-box and xray correctly within the official feeds packages dependencies. I start the building of passwall based on this repository since I had already failed in building openwrt with passwall in repository of ./script/feeds update -a. Here is the error log

make download -j8
WARNING: Makefile 'package/utils/busybox/Makefile' has a dependency on 'libpam', which does not exist
WARNING: Makefile 'package/utils/busybox/Makefile' has a dependency on 'libpam', which does not exist
WARNING: Makefile 'package/utils/busybox/Makefile' has a build dependency on 'libpam', which does not exist
WARNING: Makefile 'package/network/services/lldpd/Makefile' has a dependency on 'libnetsnmp', which does not exist
WARNING: Makefile 'package/utils/policycoreutils/Makefile' has a dependency on 'libpam', which does not exist
WARNING: Makefile 'package/utils/policycoreutils/Makefile' has a dependency on 'libpam', which does not exist
WARNING: Makefile 'package/utils/policycoreutils/Makefile' has a build dependency on 'libpam', which does not exist
WARNING: Makefile 'package/utils/busybox/Makefile' has a dependency on 'libpam', which does not exist
WARNING: Makefile 'package/utils/busybox/Makefile' has a dependency on 'libpam', which does not exist
WARNING: Makefile 'package/utils/busybox/Makefile' has a build dependency on 'libpam', which does not exist
WARNING: Makefile 'package/network/services/lldpd/Makefile' has a dependency on 'libnetsnmp', which does not exist
WARNING: Makefile 'package/utils/policycoreutils/Makefile' has a dependency on 'libpam', which does not exist
WARNING: Makefile 'package/utils/policycoreutils/Makefile' has a dependency on 'libpam', which does not exist
WARNING: Makefile 'package/utils/policycoreutils/Makefile' has a build dependency on 'libpam', which does not exist
make[2]: Entering directory '/home/topos/wd0/workspace/openwrt_another/openwrt/scripts/config'
make[2]: 'conf' is up to date.
make[2]: Leaving directory '/home/topos/wd0/workspace/openwrt_another/openwrt/scripts/config'
make[4]: Entering directory '/home/topos/wd0/workspace/openwrt_another/openwrt/target/linux'
make[5]: Entering directory '/home/topos/wd0/workspace/openwrt_another/openwrt/target/linux/rockchip'
make[6]: Entering directory '/home/topos/wd0/workspace/openwrt_another/openwrt/target/linux/rockchip/image'
make[6]: Leaving directory '/home/topos/wd0/workspace/openwrt_another/openwrt/target/linux/rockchip/image'
make[5]: Leaving directory '/home/topos/wd0/workspace/openwrt_another/openwrt/target/linux/rockchip'
make[4]: Leaving directory '/home/topos/wd0/workspace/openwrt_another/openwrt/target/linux'

I think the basic deps are broken by the src of passwall.

Wish your advice!

does this mean your system is fulfilling https://openwrt.org/docs/guide-developer/toolchain/install-buildsystem ?

I don't see any error in the provided log. Can you explain in more detail which error you get?

2 Likes

Gentoo is a self-compiled system with sufficient environment, of course the environment was fulfilled and make openwrt compatible with passwall last year. The issue comes when I type

echo "src-git passwall_packages https://github.com/xiaorouji/openwrt-passwall-packages.git;main" >> "feeds.conf.default"
echo "src-git passwall https://github.com/xiaorouji/openwrt-passwall.git;main" >> "feeds.conf.default"

at the root of openwrt cloned repository. I have test another manual config that clone the passwall repository and its deps in the packages subdirectory, in this way, the building make progress better but stucked finally at some luci compiling.

I removed the issued repository and restart building from the tarball of openwrt Oct 2023 now. The log of make -j72 V=99 was vast to post here. I have cloned a new openwrt repository with the same feeds configuration to reveal the errors, Can I use the wgetpaste to post the log below? It's running now.

-j1 is recommended when you look for compilation erros.

run it with -jXX until it breaks, then rerun it with -j1 afterwards.

1 Like

make V=Sc is plenty verbose to catch the errors. A -j1 also greatly helps with readability.

1 Like

Thanks for your advice, compiling. I don't think the compiling log is compact enough to be posted by wgetpaste as we do in Gentoo.

Now, the compiling is stucked in

+ curl -f --connect-timeout 20 --retry 5 --location https://developer.arm.com/-/media/Files/downloads/gnu/11.2-2022.02/binrel/gcc-arm-11.2-2022.02-x86_64-arm-none-eabi.tar.xz
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   253  100   253    0     0    272      0 --:--:-- --:--:-- --:--:--   272
 13  468M   13 63.0M    0     0   100k      0  1:19:31  0:10:42  1:08:49 32296

I have another repository of openwrt built Oct Last year in which I can change the default LAN IP from 192.168.1.1 by 10.168.1.1 and compiled the sing-box and xray-core in the image. But I am failed in building the image together with passwall packages.

The reason I guess may be that the passwall building was depend on some old repository of openwrt at 2021(or in Docker?). Some basic dependencies of openwrt will be missed if we merged the src of passall together with the official src of openwrt.