skiffos / SkiffOS

Any Linux distribution, anywhere.
https://skiffos.com
MIT License
703 stars 52 forks source link

fedora: build system perl issues #303

Closed theCalcaholic closed 10 months ago

theCalcaholic commented 10 months ago

I just started to try SkiffOS so please bear with me if I missed anything obvious.

Whenever I try to build any config with SkiffOS, I get a recursive dependency error, e.g.:

SKIFF_CONFIG=virt/docker make clean configure compile
[...]
Kicking off Buildroot build...
cd $BUILDROOT_DIR && make 
/usr/bin/make -j1  O=/home/user/projects/skiffos/workspaces/default HOSTCC="/usr/lib64/ccache/gcc" HOSTCXX="/usr/lib64/ccache/g++" syncconfig
  GEN     /home/user/projects/skiffos/workspaces/default/Makefile
package/gnupg2/Config.in:17:error: recursive dependency detected!
package/gnupg2/Config.in:17:    symbol BR2_PACKAGE_GNUPG2 is selected by BR2_PACKAGE_GNUPG
package/gnupg/Config.in:1:  symbol BR2_PACKAGE_GNUPG is selected by BR2_PACKAGE_GNUPG2
For a resolution refer to Documentation/kbuild/kconfig-language.txt
subsection "Kconfig recursive dependency limitations"

Your Perl installation is not complete enough; at least the following
modules are missing:

     ExtUtils::MakeMaker
     FindBin

make[3]: *** [support/dependencies/dependencies.mk:27: dependencies] Error 1
make[2]: *** [Makefile:23: _all] Error 2
make[1]: *** [Makefile:64: compile] Error 2
make[1]: Leaving directory '/home/user/projects/skiffos/build'
make: *** [Makefile:2: compile] Error 2

I tried a few configs, e.g. pi/3, pi/3x64, virt/qemu, always with the same result.

Not sure if it's relevant, but my host system is running Fedora 39

paralin commented 10 months ago

Welcome!

The recursive dependency issue is not a problem. It's just a warning and it doesn't stop the build.

The actual issue is you're missing perl modules.

sudo dnf check-update sudo dnf install perl-ExtUtils-MakeMaker

For FindBin, it's usually included in the Perl base package, but if it's missing, it might be due to an incomplete Perl installation. You can reinstall Perl using sudo dnf reinstall perl.

Your perl installation is broken currently.

theCalcaholic commented 10 months ago

Oh, so I was on the wrong track all along. Thank you! Turns out my perl installation wasn't broken, it was missing altogether :)

paralin commented 10 months ago

@theCalcaholic no problem! Glad you got it figured out, feel free to reach out if you run into anything else or have any questions or feedback.