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

I encountered an error while compiling the x86_64 version. #3439

Open
5high opened this issue Jun 21, 2024 · 1 comment
Open

I encountered an error while compiling the x86_64 version. #3439

5high opened this issue Jun 21, 2024 · 1 comment
Labels
bug build Build and CI related issues

Comments

@5high
Copy link

5high commented Jun 21, 2024

Describe the issue you are experiencing

It seems like the disk space allocated for the image is too small.

2024-06-20T08:37:29.2331198Z INFO: cmd: "mkdir -p "/build/output/build/genimage.tmp"" (stderr):
2024-06-20T08:37:29.2331838Z INFO: cmd: "rm -rf "/build/output/build/genimage.tmp"/*" (stderr):
2024-06-20T08:37:29.2332860Z ERROR: hdimage(/build/output/images/haos_generic-x86-64-12.4.img): part hassos-system0 size (268435456) too small for rootfs.squashfs (271990784)
2024-06-20T08:37:29.2333766Z make[1]: *** [Makefile:820: target-post-image] Error 1
2024-06-20T08:37:29.2334247Z make[1]: Leaving directory '/build/buildroot'
2024-06-20T08:37:29.2334653Z make: *** [Makefile:33: generic_x86_64] Error 2
2024-06-20T08:37:30.5256171Z ##[error]Process completed with exit code 2.
2024-06-20T08:37:30.5363710Z Post job cleanup.

What operating system image do you use?

generic-x86-64 (Generic UEFI capable x86-64 systems)

What version of Home Assistant Operating System is installed?

12.4

Did the problem occur after upgrading the Operating System?

No

Hardware details

Github Action

Steps to reproduce the issue

2024-06-20T08:37:29.2331198Z INFO: cmd: "mkdir -p "/build/output/build/genimage.tmp"" (stderr):
2024-06-20T08:37:29.2331838Z INFO: cmd: "rm -rf "/build/output/build/genimage.tmp"/*" (stderr):
2024-06-20T08:37:29.2332860Z ERROR: hdimage(/build/output/images/haos_generic-x86-64-12.4.img): part hassos-system0 size (268435456) too small for rootfs.squashfs (271990784)
2024-06-20T08:37:29.2333766Z make[1]: *** [Makefile:820: target-post-image] Error 1
2024-06-20T08:37:29.2334247Z make[1]: Leaving directory '/build/buildroot'
2024-06-20T08:37:29.2334653Z make: *** [Makefile:33: generic_x86_64] Error 2
2024-06-20T08:37:30.5256171Z ##[error]Process completed with exit code 2.
2024-06-20T08:37:30.5363710Z Post job cleanup.

Anything in the Supervisor logs that might be useful for us?

2024-06-20T08:37:29.2331198Z INFO: cmd: "mkdir -p "/build/output/build/genimage.tmp"" (stderr):
2024-06-20T08:37:29.2331838Z INFO: cmd: "rm -rf "/build/output/build/genimage.tmp"/*" (stderr):
2024-06-20T08:37:29.2332860Z ERROR: hdimage(/build/output/images/haos_generic-x86-64-12.4.img): part hassos-system0 size (268435456) too small for rootfs.squashfs (271990784)
2024-06-20T08:37:29.2333766Z make[1]: *** [Makefile:820: target-post-image] Error 1
2024-06-20T08:37:29.2334247Z make[1]: Leaving directory '/build/buildroot'
2024-06-20T08:37:29.2334653Z make: *** [Makefile:33: generic_x86_64] Error 2
2024-06-20T08:37:30.5256171Z ##[error]Process completed with exit code 2.
2024-06-20T08:37:30.5363710Z Post job cleanup.


### Anything in the Host logs that might be useful for us?

```txt
2024-06-20T08:37:29.2331198Z INFO: cmd: "mkdir -p "/build/output/build/genimage.tmp"" (stderr):
2024-06-20T08:37:29.2331838Z INFO: cmd: "rm -rf "/build/output/build/genimage.tmp"/*" (stderr):
2024-06-20T08:37:29.2332860Z ERROR: hdimage(/build/output/images/haos_generic-x86-64-12.4.img): part hassos-system0 size (268435456) too small for rootfs.squashfs (271990784)
2024-06-20T08:37:29.2333766Z make[1]: *** [Makefile:820: target-post-image] Error 1
2024-06-20T08:37:29.2334247Z make[1]: Leaving directory '/build/buildroot'
2024-06-20T08:37:29.2334653Z make: *** [Makefile:33: generic_x86_64] Error 2
2024-06-20T08:37:30.5256171Z ##[error]Process completed with exit code 2.
2024-06-20T08:37:30.5363710Z Post job cleanup.


### System information

_No response_

### Additional information

_No response_
@5high 5high added the bug label Jun 21, 2024
@sairon
Copy link
Member

sairon commented Jun 24, 2024

Have you done any changes in the repo? If not, then there might be some leftovers from previous builds (makes sense if you built HAOS in the past and then pulled a new version with a newer kernel version). In that case, removing the output/target/lib/modules/ and rebuilding the OS with the latest kernel usually helps (you can force its rebuild easily by removing output/build/linux-6* folders). Otherwise, just remove the whole output folder (which is essentially what make distclean does) and try a new build.

If you made some changes and are planning to run your own fork of HAOS with some customizations anyway, you can also adjust the SYSTEM_SIZE in buildroot-external/scripts/hdd-image.sh to get more space for the root filesystem.

@sairon sairon added build Build and CI related issues labels Jun 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug build Build and CI related issues
Projects
None yet
Development

No branches or pull requests

2 participants