Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build dependency on 'libpthread' #25

Open
navigos opened this issue Aug 17, 2022 · 2 comments
Open

build dependency on 'libpthread' #25

navigos opened this issue Aug 17, 2022 · 2 comments

Comments

@navigos
Copy link

navigos commented Aug 17, 2022

$ make menuconfig
WARNING: Makefile 'package/feeds/simetbox/simetbox-openwrt-base/Makefile' has a build dependency on 'libpthread', which does not exist
tmp/.config-package.in:108651:error: recursive dependency detected!
tmp/.config-package.in:108651: symbol PACKAGE_simetbox-openwrt-base is selected by PACKAGE_simetbox-openwrt-simet-ma
tmp/.config-package.in:108736: symbol PACKAGE_simetbox-openwrt-simet-ma depends on BUSYBOX_CONFIG_SHA256SUM
package/utils/busybox/config/coreutils/Config.in:412: symbol BUSYBOX_CONFIG_SHA256SUM depends on BUSYBOX_CUSTOM
package/utils/busybox/Config.in:3: symbol BUSYBOX_CUSTOM is selected by PACKAGE_simetbox-openwrt-base
For a resolution refer to Documentation/kbuild/kconfig-language.rst
subsection "Kconfig recursive dependency limitations"

*** End of the configuration.
*** Execute 'make' to start the build or try 'make help'.

@devarthuraguiar
Copy link

Apresentei o mesmo erro ao tentar compilar Openwrt v22.03.0 para o Archer C25v1 quando digitei o mesmo comando. Insisti com make world, mas apresentou erro. Executei o make com V=sc conforme instruções da wiki do Openwrt.

make V=sc 2>&1 | tee build.log | grep -i -E "^make.*(error|[12345]...Entering dir)"

(...)
make[3]: Entering directory '/home/chastomber/openwrt/feeds/simetbox/simetbox-openwrt-base'
make[4]: Entering directory '/home/chastomber/openwrt/build_dir/target-mips_24kc_musl/simetbox-openwrt-base-109'
make[5]: Entering directory '/home/chastomber/openwrt/build_dir/target-mips_24kc_musl/simetbox-openwrt-base-109/src'
make[5]: *** [Makefile:503: utils.o] Error 1
make[4]: *** [Makefile:374: install-recursive] Error 1
make[3]: *** [Makefile:214: /home/chastomber/openwrt/build_dir/target-mips_24kc_musl/simetbox-openwrt-base-109/.built] Error 2
make[2]: *** [package/Makefile:116: package/feeds/simetbox/simetbox-openwrt-base/compile] Error 1
make[1]: *** [package/Makefile:110: /home/chastomber/openwrt/staging_dir/target-mips_24kc_musl/stamp/.package_compile] Error 2

build.log

WARNING: Makefile 'package/feeds/simetbox/simetbox-openwrt-base/Makefile' has a build dependency on 'libpthread', which does not exist
(...)
make[3]: Entering directory '/home/chastomber/openwrt/feeds/simetbox/simetbox-openwrt-base'
rm -f /home/chastomber/openwrt/build_dir/target-mips_24kc_musl/simetbox-openwrt-base-109/.built
touch /home/chastomber/openwrt/build_dir/target-mips_24kc_musl/simetbox-openwrt-base-109/.built_check
CFLAGS="-Os -pipe -mno-branch-likely -mips32r2 -mtune=24kc -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -msoft-float -mips16 -minterlink-mips16 -fmacro-prefix-map=/home/chastomber/ope>make[4]: Entering directory '/home/chastomber/openwrt/build_dir/target-mips_24kc_musl/simetbox-openwrt-base-109'
Making install in src
make[5]: Entering directory '/home/chastomber/openwrt/build_dir/target-mips_24kc_musl/simetbox-openwrt-base-109/src'
mips-openwrt-linux-musl-gcc -DHAVE_CONFIG_H -I. -I/home/chastomber/openwrt/staging_dir/toolchain-mips_24kc_gcc-11.2.0_musl/usr/include -I/home/chastomber/openwrt/staging_dir/toolchain-mips_24kc_gcc-11.2.0_musl/include/fortify -I/home/chastomber/o>cc1: note: someone does not honour COPTS correctly, passed 0 times
In file included from utils.c:37:
debug.h:17:42: error: missing binary operator before token "("
17 | #if defined __cplusplus && __GNUC_PREREQ (2,95)
| ^
make[5]: *** [Makefile:503: utils.o] Error 1
make[5]: Leaving directory '/home/chastomber/openwrt/build_dir/target-mips_24kc_musl/simetbox-openwrt-base-109/src'
make[4]: *** [Makefile:374: install-recursive] Error 1
make[4]: Leaving directory '/home/chastomber/openwrt/build_dir/target-mips_24kc_musl/simetbox-openwrt-base-109'
make[3]: *** [Makefile:214: /home/chastomber/openwrt/build_dir/target-mips_24kc_musl/simetbox-openwrt-base-109/.built] Error 2
make[3]: Leaving directory '/home/chastomber/openwrt/feeds/simetbox/simetbox-openwrt-base'
time: package/feeds/simetbox/simetbox-openwrt-base/compile#0.23#0.05#0.27
ERROR: package/feeds/simetbox/simetbox-openwrt-base failed to build.
make[2]: *** [package/Makefile:116: package/feeds/simetbox/simetbox-openwrt-base/compile] Error 1
make[2]: Leaving directory '/home/chastomber/openwrt'
make[1]: *** [package/Makefile:110: /home/chastomber/openwrt/staging_dir/target-mips_24kc_musl/stamp/.package_compile] Error 2
make[1]: Leaving directory '/home/chastomber/openwrt'
make: *** [/home/chastomber/openwrt/include/toplevel.mk:230: world] Erro 2

@hmh
Copy link
Member

hmh commented Sep 14, 2022

A dependência em libpthread não causa problemas, está lá para facilitar em versões bem antigas do openwrt. As dependências circulares são outra questão, e eventualmente serão resolvidas, mas também não deveriam causar encrenca.

O erro no "debug.h" é um assunto completamente separado, e tem muita reclamação desse tipo de problema em outros ambientes também, sempre envolvendo um build host Ubuntu 32-bit.

No momento a equipe está focada em outro projeto, assim que tiver um tempo, verifico se consigo reproduzir. Isso dito, o SIMETBox ainda não suporta o OpenWRT 22, então não iria funcionar bem por outros motivos.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants