No space left on some unknown device while building

Coming from #18508 (buildtools/gcc/libcpp/expr.c:811:35: error: format not a string literal and no format arguments) – Haiku
Searching what need to be adjusted.

This is most likely the image you are building, so you need to increase the size.

See /build/jam/UserBuildConfig.ReadMe and /build/jam/UserBuildConfig.sample

But as pulkomandy pointed out in the ticket, you might just need to specify a proper build target.

I called it in generated directory with ~/bin/jam -q -j2 and wonders if I should “~/bin/jam -q -j2
@nightly-raw” as suggested in: Issue building Haiku - #7 by extrowerk

1 Like

[nix-shell:~/haikumy/haiku/generated]$ ~/bin/jam -q -j2 @nightly-anyboot

Building archive /home/paul/haikumy/haiku/generated/haiku-floppyboot.tgz ...
C++ objects/linux/x86_64/release/tools/fat_shell/fat.o 
C++ objects/linux/x86_64/release/tools/fat_shell/file.o 
BuildFloppyBootImage1 haiku-boot-floppy.image 
/bin/sh: line 5: bc: command not found

haiku_loader_size=`stat -c %s "objects/haiku/x86_64/release/system/boot/bios_ia32/haiku_loader.bios_ia32"`
drivers_tgz_size=`stat -c %s "haiku-floppyboot.tgz"`

archive_image_offset=`echo "384 * 1024" | bc`
floppy_tgz_size=\
`echo "(2880 - 384) * 1024" | bc`
if [ $haiku_loader_size -gt $archive_image_offset ] ; then
echo "Error: objects/haiku/x86_64/release/system/boot/bios_ia32/haiku_loader.bios_ia32 is too big ($haiku_loader_size) to fit "
echo "       before the boot archive starting at $archive_image_offset!"
exit 1
fi
if [ $drivers_tgz_size -gt $floppy_tgz_size ] ; then
echo "Error: haiku-floppyboot.tgz is too big ($drivers_tgz_size) to fit "
echo "       in the boot floppy ($floppy_tgz_size)!"
exit 1
fi
LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/home/paul/haikumy/haiku/generated/objects/linux/lib" ../build/scripts/rm_attrs objects/linux/x86_64/release/tools/rm_attrs -f haiku-boot-floppy.image

dd if=/dev/zero of=haiku-boot-floppy.image bs=1024 count=2880

dd if=objects/haiku/x86_64/release/system/boot/bios_ia32/haiku_loader.bios_ia32 of=haiku-boot-floppy.image conv=notrunc

dd if=haiku-floppyboot.tgz of=haiku-boot-floppy.image bs=384k seek=1 conv=notrunc

...failed BuildFloppyBootImage1 haiku-boot-floppy.image ...
MergeObjectFromObjects1 objects/linux/x86_64/release/tools/fat_shell/fatfs.o 
/nix/store/zkjq96ik8cbv6ijh1lylnkk2bni9qvas-binutils-2.40/bin/ld: cannot find objects/linux/x86_64/release/tools/fat_shell/iter.o: No such file or directory
/nix/store/zkjq96ik8cbv6ijh1lylnkk2bni9qvas-binutils-2.40/bin/ld: cannot find objects/linux/x86_64/release/tools/fat_shell/mkdos.o: No such file or directory
/nix/store/zkjq96ik8cbv6ijh1lylnkk2bni9qvas-binutils-2.40/bin/ld: cannot find objects/linux/x86_64/release/tools/fat_shell/util.o: No such file or directory
/nix/store/zkjq96ik8cbv6ijh1lylnkk2bni9qvas-binutils-2.40/bin/ld: cannot find objects/linux/x86_64/release/tools/fat_shell/vcache.o: No such file or directory
/nix/store/zkjq96ik8cbv6ijh1lylnkk2bni9qvas-binutils-2.40/bin/ld: cannot find objects/linux/x86_64/release/tools/fat_shell/version.o: No such file or directory

/nix/store/cbl2s53l4afx00p42pmz9nnxjbvf00qj-gcc-wrapper-11.3.0/bin/ld  -r objects/linux/x86_64/release/tools/fat_shell/attr.o objects/linux/x86_64/release/tools/fat_shell/dir.o objects/linux/x86_64/release/tools/fat_shell/dlist.o objects/linux/x86_64/release/tools/fat_shell/dosfs.o objects/linux/x86_64/release/tools/fat_shell/encodings.o objects/linux/x86_64/release/tools/fat_shell/fat.o objects/linux/x86_64/release/tools/fat_shell/file.o objects/linux/x86_64/release/tools/fat_shell/iter.o objects/linux/x86_64/release/tools/fat_shell/mkdos.o objects/linux/x86_64/release/tools/fat_shell/util.o objects/linux/x86_64/release/tools/fat_shell/vcache.o objects/linux/x86_64/release/tools/fat_shell/version.o -o objects/linux/x86_64/release/tools/fat_shell/fatfs.o

...failed MergeObjectFromObjects1 objects/linux/x86_64/release/tools/fat_shell/fatfs.o ...

BUILD FAILURE:
...failed updating 2 target(s)...
...skipped 4 target(s)...
...updated 68 target(s)...

[nix-shell:~/haikumy/haiku/generated]$

I think you should give a try at spotting the error in the output. A hint is that you lack a command on your host.

bc, got it, added it to shell.nix.

System hanged while compiling, so rebooted, and tried to continue:

BuildHaikuPackage1 objects/haiku/x86_64/packaging/packages/haiku_extras.hpkg 
haiku_extras.hpkg: Removing and re-creating package contents dir ...
haiku_extras.hpkg: Collecting package contents ...
Error: Failed to get info of attribute "BEOS:APP_VERSION" of file "/home/paul/haikumy/haiku/generated/objects/haiku/x86_64/release/add-ons/decorators/BeDecorator/BeDecorator": Bad file descriptor

did a “jam clean” and now doing jam again.

~/bin/jam -q -j3 @nightly-anyboot

Extracting download/git-2.37.3-1-x86_64.hpkg ...
Extracting download/fontconfig-2.13.96-1-x86_64.hpkg ...
Unmounting ...
BuildAnybootImageEfi1 haiku-nightly-anyboot.iso 
...updated 9708 target(s)...

[nix-shell:~/haikumy/haiku/generated]$ ls *.iso
haiku-nightly-anyboot.iso

[nix-shell:~/haikumy/haiku/generated]$ ls -lh *.iso
-rw------- 1 paul users 609M Jul 13 09:05 haiku-nightly-anyboot.iso

[nix-shell:~/haikumy/haiku/generated]$ 

Good! Now let’s test this.

Thanks everyone!

3 Likes