Uploaded image for project: 'Funtoo From Scratch'
  1. Funtoo From Scratch
  2. FFS-12

[Funtoo From Scratch] arm-64bit ffs build errors on fchroot when running on x86_64 Funtoo

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • Hide
      git clone ssh://git@code.funtoo.org:7999/~siris/ffs.git ffs-ss
      cd ffs-ss
      git checkout FL-10614/zlib-1.2.13
      time ci/lxd-baremetal/bin/ffs gnu arm-64bit
      Show
      git clone ssh://git@code.funtoo.org:7999/~siris/ffs.git ffs-ss cd ffs-ss git checkout FL-10614 /zlib-1.2.13 time ci/lxd-baremetal/bin/ffs gnu arm-64bit

      Diving deeper into Funtoo From Scratch I would like to start building arm-64bit stage1s in preparation for generating custom metro arm64 stage3s.

      Tonight I hit this blocking error when trying to run an arm64-bit ffs build as both my regular system user and the root user:

       

      time ci/lxd-baremetal/bin/ffs gnu arm-64bit
      Funtoo fchroot 1.0.0 ("Valley of the Moles")
      Copyright 2020-2022 Funtoo Solutions, Inc.; Licensed under the Apache License, Version 2.0
      gcc -static -O2 -s -o /root/ffs-repo/usr/local/bin/qemu-arm-64bit-wrapper /root/ffs-repo/usr/local/bin/qemu-arm-64bit-wrapper.c
      Traceback (most recent call last):
        File "/usr/lib/python3.9/site-packages/fchroot/binfmt.py", line 194, in register_binfmt
          with open("/proc/sys/fs/binfmt_misc/register", "w") as f:
      PermissionError: [Errno 13] Permission denied: '/proc/sys/fs/binfmt_misc/register'
      During handling of the above exception, another exception occurred:
      Traceback (most recent call last):
        File "/usr/lib/python-exec/python3.9/fchroot", line 219, in <module>
          main()
        File "/usr/lib/python-exec/python3.9/fchroot", line 213, in main
          manager = ChrootManager()
        File "/usr/lib/python-exec/python3.9/fchroot", line 121, in __init__
          binfmt.setup_wrapper(self.chroot_path, self.fchroot_arch)
        File "/usr/lib/python3.9/site-packages/fchroot/binfmt.py", line 228, in setup_wrapper
          register_binfmt(arch_desc, chroot_qemu_path)
        File "/usr/lib/python3.9/site-packages/fchroot/binfmt.py", line 201, in register_binfmt
          raise QEMUWrapperException("Was unable to write to /proc/sys/fs/binfmt_misc/register.")
      fchroot.binfmt.QEMUWrapperException: Was unable to write to /proc/sys/fs/binfmt_misc/register.
      Error encountered -- exit code 256
      Test failure: step fchroot failed.
      real    25m8.891s
      user    0m4.461s
      sys    0m3.511s
      

      The initial ffs CLFS portion bootstrap succeeds, but I am getting the above error when fchroot starts up within the ffs lxc container

      I have read through all of the ffs docs, but I think I am completely missing something for ffs arm64-bit. Any help would be highly appreciated as I want to help with more rigorous testing of the ffs arm-64bit.

            Unassigned Unassigned
            siris siris
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: