mock on aarch64

1 view
Skip to first unread message

Bjarne Saltbæk

unread,
Oct 18, 2019, 8:22:49 AM10/18/19
to redsleeve-users
To Gordan.

You are using Aarch64 for your build system, right?

I have bought myself a new toy - Solid Run's MACCHIATObin Single Shot. It is preinstalled with 64-bit U-Boot and I havent dared to try to break that yet 😄
I have installed CentOS8 Aarch64 on it but when I run mock I get a weird error that mock cannot access /dev/null.

--- cut ---
[bjarne@marvell bjarne]$ mock -r epel-8-aarch64 --init
INFO: mock.py version 1.4.19 starting (python version = 3.6.8)...
Start: init plugins
Finish: init plugins
INFO: Signal handler active
Start: run
Start: clean chroot
Finish: clean chroot
Start: chroot init
INFO: calling preinit hooks
INFO: enabled root cache
INFO: enabled dnf cache
Start: cleaning dnf metadata
Finish: cleaning dnf metadata
INFO: enabled HW Info plugin
Traceback (most recent call last):
  File "/dev/fd/4", line 967, in <module>
  File "/usr/lib/python3.6/site-packages/mockbuild/trace_decorator.py", line 95, in trace
    result = func(*args, **kw)
  File "/dev/fd/4", line 744, in main
  File "/usr/lib/python3.6/site-packages/mockbuild/trace_decorator.py", line 95, in trace
    result = func(*args, **kw)
  File "/dev/fd/4", line 773, in run_command
  File "/usr/lib/python3.6/site-packages/mockbuild/trace_decorator.py", line 95, in trace
    result = func(*args, **kw)
  File "/usr/lib/python3.6/site-packages/mockbuild/backend.py", line 173, in init
    self.buildroot.initialize(**kwargs)
  File "/usr/lib/python3.6/site-packages/mockbuild/trace_decorator.py", line 95, in trace
    result = func(*args, **kw)
  File "/usr/lib/python3.6/site-packages/mockbuild/buildroot.py", line 94, in initialize
    self._init(prebuild=prebuild, do_log=do_log)
  File "/usr/lib/python3.6/site-packages/mockbuild/trace_decorator.py", line 95, in trace
    result = func(*args, **kw)
  File "/usr/lib/python3.6/site-packages/mockbuild/buildroot.py", line 129, in _init
    self.plugins.call_hooks('preinit')
  File "/usr/lib/python3.6/site-packages/mockbuild/trace_decorator.py", line 95, in trace
    result = func(*args, **kw)
  File "/usr/lib/python3.6/site-packages/mockbuild/plugin.py", line 78, in call_hooks
    hook(*args, **kwargs)
  File "/usr/lib/python3.6/site-packages/mockbuild/trace_decorator.py", line 95, in trace
    result = func(*args, **kw)
  File "/usr/lib/python3.6/site-packages/mockbuild/plugins/hw_info.py", line 41, in _PreInitHook
    output = mockbuild.util.do(cmd, shell=False, returnOutput=True, raiseExc=False)
  File "/usr/lib/python3.6/site-packages/mockbuild/util.py", line 649, in do
    return do_with_status(*args, **kargs)[0]
  File "/usr/lib/python3.6/site-packages/mockbuild/trace_decorator.py", line 95, in trace
    result = func(*args, **kw)
  File "/usr/lib/python3.6/site-packages/mockbuild/util.py", line 687, in do_with_status
    with open(os.devnull, "r") as stdin:
FileNotFoundError: [Errno 2] No such file or directory: '/dev/null'
[bjarne@marvell bjarne]$

[bjarne@marvell bjarne]$ ll /dev/null
crw-rw-rw-. 1 root root 1, 3 Oct 18 12:09 /dev/null
--- cut ---

Does this ring a bell to you what the problem is?

BR,
Bjarne



Sendt fra Outlook

Gordan Bobic

unread,
Oct 18, 2019, 10:10:50 AM10/18/19
to redsleeve-users
Not off the top of my head.
Where does your config file come from? Does your old config for el6 / el7 still work?

--
You received this message because you are subscribed to the Google Groups "redsleeve-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to redsleeve-use...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/redsleeve-users/AM0PR05MB5889D069E572653313E91A24C26C0%40AM0PR05MB5889.eurprd05.prod.outlook.com.
Reply all
Reply to author
Forward
0 new messages