Build failed ... failed to allocate 9217 blocks

Hi all,
I'm trying to build an x86 image (make -j1 V=s). But there comes an error "error: ext4_allocate_best_fit_partial: failed to allocate 9217 blocks, out of space?" How can I fix this?

Thank you.

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 88375.73 Kbytes (86.30 Mbytes)
	25.40% of uncompressed filesystem size (347893.80 Kbytes)
Inode table size 40036 bytes (39.10 Kbytes)
	22.31% of uncompressed inode table size (179492 bytes)
Directory table size 50220 bytes (49.04 Kbytes)
	44.60% of uncompressed directory table size (112608 bytes)
Number of duplicate files found 352
Number of inodes 5271
Number of files 4538
Number of fragments 175
Number of symbolic links  469
Number of device nodes 1
Number of fifo nodes 0
Number of socket nodes 0
Number of directories 263
Number of ids (unique uids + gids) 1
Number of uids 1
	root (0)
Number of gids 1
	root (0)
/media/am/32679f0a-02fe-4687-bd3a-30c71cbaad5e/openwrt/staging_dir/host/bin/make_ext4fs -l 134217728 -b 4096 -m 0 -J -T 1563296622 /media/am/32679f0a-02fe-4687-bd3a-30c71cbaad5e/openwrt/build_dir/target-x86_64_musl/linux-x86_64/root.ext4 /media/am/32679f0a-02fe-4687-bd3a-30c71cbaad5e/openwrt/build_dir/target-x86_64_musl/root-x86/
Creating filesystem with parameters:
    Size: 134217728
    Block size: 4096
    Blocks per group: 32768
    Inodes per group: 8192
    Inode size: 256
    Journal blocks: 0
    Label: 
    Blocks: 32768
    Block groups: 1
    Reserved blocks: 0
    Reserved block group size: 7
**error: ext4_allocate_best_fit_partial: failed to allocate 9217 blocks, out of space?**
/media/am/32679f0a-02fe-4687-bd3a-30c71cbaad5e/openwrt/include/image.mk:360: recipe for target '/media/am/32679f0a-02fe-4687-bd3a-30c71cbaad5e/openwrt/build_dir/target-x86_64_musl/linux-x86_64/root.ext4' failed
make[5]: *** [/media/am/32679f0a-02fe-4687-bd3a-30c71cbaad5e/openwrt/build_dir/target-x86_64_musl/linux-x86_64/root.ext4] Error 1
make[5]: Leaving directory '/media/am/32679f0a-02fe-4687-bd3a-30c71cbaad5e/openwrt/target/linux/x86/image'
Makefile:24: recipe for target 'install' failed
make[4]: *** [install] Error 2
make[4]: Leaving directory '/media/am/32679f0a-02fe-4687-bd3a-30c71cbaad5e/openwrt/target/linux/x86'
Makefile:13: recipe for target 'install' failed
make[3]: *** [install] Error 2
make[3]: Leaving directory '/media/am/32679f0a-02fe-4687-bd3a-30c71cbaad5e/openwrt/target/linux'
time: target/linux/install#1412.69#141.89#1538.86
target/Makefile:23: recipe for target 'target/linux/install' failed
make[2]: *** [target/linux/install] Error 2
make[2]: Leaving directory '/media/am/32679f0a-02fe-4687-bd3a-30c71cbaad5e/openwrt'
target/Makefile:19: recipe for target '/media/am/32679f0a-02fe-4687-bd3a-30c71cbaad5e/openwrt/staging_dir/target-x86_64_musl/stamp/.target_install' failed
make[1]: *** [/media/am/32679f0a-02fe-4687-bd3a-30c71cbaad5e/openwrt/staging_dir/target-x86_64_musl/stamp/.target_install] Error 2
make[1]: Leaving directory '/media/am/32679f0a-02fe-4687-bd3a-30c71cbaad5e/openwrt'
/media/am/32679f0a-02fe-4687-bd3a-30c71cbaad5e/openwrt/include/toplevel.mk:216: recipe for target 'world' failed
make: *** [world] Error 2
1 Like

filesystem type? ( media/am /32679f0a-02fe-4687-bd3a-30c71cbaad5e )

df -h
1 Like

df -Th

/dev/sdb1 ext4 916G 30G 840G 4% /media/am/32679f0a-02fe-4687-bd3a-30c71cbaad5e

A 350 MB ROM doesn't look right to me.

I have APU2C4 with 32GB mSATA SSD drive. https://openwrt.org/toh/pcengines/apu2

I solved the problem by increasing the root filesystem partition size.

make menuconfig -> Target Images -> Root filesystem partition size (in MB)

6 Likes

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