As mentioned. you need to capture more of the log, you are missing the actual point of failure. We can see from the above that ffmpeg has failed to build... now we need to see why its failing.
Thank you. As I understand there are log files about process and must put it here? I will search
UPD: I have not find any *.log files even for I've looked through all directories
and uncheck ffmpeg since it is only package which cause trouble. Also there is a chance to find out if libffmpeg is enough for motion as library, without ffmpeg as, well, "application" of package for that matter.
UPD3:
It seems I am out of space
-rootfs.tar.gz
/home/wrtbuilder/openwrt/staging_dir/host/bin/mksquashfs4 /home/wrtbuilder/openwrt/build_dir/target-x86_64_musl/root-x86 /home/wrtbuilder/openwrt/build_dir/target-x86_64_musl/linux-x86_64/root.squashfs -nopad -noappend -root-owned -comp xz -Xpreset 9 -Xe -Xlc 0 -Xlp 2 -Xpb 2 -Xbcj x86 -b 256k -p '/dev d 755 0 0' -p '/dev/console c 600 0 0 5 1' -no-xattrs
Parallel mksquashfs: Using 2 processors
Creating 4.0 filesystem on /home/wrtbuilder/openwrt/build_dir/target-x86_64_musl/linux-x86_64/root.squashfs, block size 262144.
Pseudo file "dev" exists in source filesystem "/home/wrtbuilder/openwrt/build_dir/target-x86_64_musl/root-x86/dev".
Ignoring, exclude it (-e/-ef) to override.
[==========================================================================================================================================================================================================================/] 2825/2825 100%
Exportable Squashfs 4.0 filesystem, xz compressed, data block size 262144
compressed data, compressed metadata, compressed fragments,
no xattrs, compressed ids
duplicates are removed
Filesystem size 44206.49 Kbytes (43.17 Mbytes)
35.05% of uncompressed filesystem size (126120.67 Kbytes)
Inode table size 22668 bytes (22.14 Kbytes)
21.18% of uncompressed inode table size (107012 bytes)
Directory table size 29270 bytes (28.58 Kbytes)
41.66% of uncompressed directory table size (70257 bytes)
Number of duplicate files found 317
Number of inodes 3151
Number of files 2462
Number of fragments 97
Number of symbolic links 368
Number of device nodes 1
Number of fifo nodes 0
Number of socket nodes 0
Number of directories 320
Number of hard-links 0
Number of ids (unique uids + gids) 1
Number of uids 1
root (0)
Number of gids 1
root (0)
/home/wrtbuilder/openwrt/staging_dir/host/bin/make_ext4fs -L rootfs -l 109051904 -b 4096 -m 0 -T 1744505587 /home/wrtbuilder/openwrt/build_dir/target-x86_64_musl/linux-x86_64/root.ext4 /home/wrtbuilder/openwrt/build_dir/target-x86_64_musl/root-x86/
Creating filesystem with parameters:
Size: 109051904
Block size: 4096
Blocks per group: 32768
Inodes per group: 6656
Inode size: 256
Journal blocks: 1024
Label: rootfs
Blocks: 26624
Block groups: 1
Reserved blocks: 0
Reserved block group size: 7
error: ext4_allocate_best_fit_partial: failed to allocate 516 blocks, out of space?
make[5]: *** [/home/wrtbuilder/openwrt/include/image.mk:350: /home/wrtbuilder/openwrt/build_dir/target-x86_64_musl/linux-x86_64/root.ext4] Error 1
make[5]: Leaving directory '/home/wrtbuilder/openwrt/target/linux/x86/image'
make[4]: *** [Makefile:24: install] Error 2
make[4]: Leaving directory '/home/wrtbuilder/openwrt/target/linux/x86'
make[3]: *** [Makefile:11: install] Error 2
make[3]: Leaving directory '/home/wrtbuilder/openwrt/target/linux'
time: target/linux/install#226.70#18.08#217.96
ERROR: target/linux failed to build.
make[2]: *** [target/Makefile:32: target/linux/install] Error 1
make[2]: Leaving directory '/home/wrtbuilder/openwrt'
make[1]: *** [target/Makefile:26: /home/wrtbuilder/openwrt/staging_dir/target-x86_64_musl/stamp/.target_install] Error 2
make[1]: Leaving directory '/home/wrtbuilder/openwrt'
make: *** [/home/wrtbuilder/openwrt/include/toplevel.mk:233: world] Error 2
wrtbuilder@ushare:~/openwrt$
This is telling you you're out of space on your rootfs in the firmware and not on your build machine. You can adjust this through CONFIG_TARGET_ROOTFS_PARTSIZE.
Many thanks, friend! Why would that happen? I persume I added too many packages?
As I understand CONFIG_TARGET_ROOTFS_PARTSIZE is not an option of make menuconfig, but I must edit .config file directly?
You can find it in make nconfig/menuconfig under Target Images/ Root filesystem partition size (in MiB).
I’d caution you about modifying this setting in either direct edit of your .config or via make nconfig/menuconfig. Flash base targets in the build system will be default set to the largest Safe image size so exceeding the pre-determined variable shown could cause further issues. e.g. I have no issues setting RootFS Size to 1024 for my X86/64 target but won’t touch default for my Filogic target.
It seems I just not make for making OpenWRT, cause I get error, like
wrtbuilder@ushare:~/openwrt$ make nconfig/menuconfig
make[2]: Entering directory '/home/wrtbuilder/openwrt/scripts/config'
make[2]: 'conf' is up to date.
make[2]: Leaving directory '/home/wrtbuilder/openwrt/scripts/config'
make[1] nconfig/menuconfig
make -r nconfig/menuconfig: build failed. Please re-run make with -j1 V=s or V=sc for a higher verbosity level to see what's going on
make: *** [/home/wrtbuilder/openwrt/include/toplevel.mk:233: nconfig/menuconfig] Error 1
I suppose if I rerun
make with -j1 V=s or V=sc
I will end up with same error like before
UPD:
wrtbuilder@ushare:~/openwrt$ make nconfig/menuconfig -j1 V=s
make[2]: Entering directory '/home/wrtbuilder/openwrt/scripts/config'
make[2]: 'conf' is up to date.
make[2]: Leaving directory '/home/wrtbuilder/openwrt/scripts/config'
make[1]: Entering directory '/home/wrtbuilder/openwrt'
make[1]: *** No rule to make target 'nconfig/menuconfig'. Stop.
make[1]: Leaving directory '/home/wrtbuilder/openwrt'
make: *** [/home/wrtbuilder/openwrt/include/toplevel.mk:233: nconfig/menuconfig] Error 2
wrtbuilder@ushare:~/openwrt$
Can we just start at the basics?
Wipe out whatever you have done to this build directory.
Start with a fresh clone of OpenWrt.
Checkout the openwrt-24.10 branch.
Follow the instructions to do a full build with V=s.
Make sure you can get a basic build to complete. This would say that your build environment is healthy.
Ok. I clear all previous installation and here is what I have done so far:
git clone https://git.openwrt.org/openwrt/openwrt.git
cd openwrt
git pull
git branch -a
git tag (I am not sure I understand purpose of this command)
git checkout openwrt-23.05 (I still want to keep this version)
./scripts/feeds update -a
./scripts/feeds install -a
make menuconfig
Then I only choose basics for x86_64 architecture like Target and so on, saved config and going to execute
make V=s -j $(nproc)
P.S. I also changed root partition size from 256 to 4096 (I persume squashfs option is about that)
I hope everything will be fine.
Is not it 4 Gb? I was hoping for partition of 4Gb root space.
Unfortunately I had to leave and could not wait till building finishes. Here is what I have got now
I would expect to see an ext4 or squashfs combined file in there. So it still doesn’t look right.
Can you paste your .config on pastebin and link to here?
I just want to understand process. Also I did not know that there is an opportunity to use container and I do not have Debian or Fedora, I only have Ubuntu-server
I'm curious what OpenWrt branch/version you are compiling for. Current 24.10 and Snapshot are using CONFIG_LINUX_6_6=y and I note that you have specified CONFIG_LINUX_5_15=y. Also, I use Kernel partition size of 32MB and RootFS parition of 1024(1GB), but as has been noted, a 4096(4GB) RootFS is really, really overkill considering default RootFS partition is 104MB.
These are the Target Images options I use for my X86/64 targets:
Target Images --->
[ ] ramdisk ----
*** Root filesystem archives ***
[ ] cpio.gz
[*] tar.gz
*** Root filesystem images ***
[*] ext4 --->
[*] squashfs --->
[ ] Build GRUB images (Linux x86 or x86_64 host only)
[*] Build GRUB EFI images
[*] Use Console Terminal (in addition to Serial)
(115200) Serial port baud
[ ] Use RTE/CTS on serial console
() Extra kernel boot options
(5) Seconds to wait before booting the default entry
(OpenWrt) Title for the menu entry in GRU(OpenWrt) Title for the menu entry in GRUB
[ ] Build LiveCD image (ISO)
[ ] Build VirtualBox image files (VDI)
[ ] Build VMware image files (VMDK)
[ ] Build Hyper-V image files (VHDX)
(ttyS0) Serial port device
[*] GZip images
*** Image Options ***
(32) Kernel partition size (in MiB)
(1024) Root filesystem partition size (in MiB)
() Root partition on target device
[ ] Make /var persistent
and these are the resulting images from bin/targets/x86/64: