fatal error: Library/MemoryAllocationLib.h: No such file or directory #321

Open
opened 2025-12-29 00:24:15 +01:00 by adam · 1 comment
Owner

Originally created by @gyb001 on GitHub (Feb 3, 2022).

Hello. I'm trying run in Synology Ds720+

First time everything is ok boot it fine. After delete the container and create new i got this error:

Command:

docker run -it \
    --device /dev/kvm \
    -p 50922:10022 \
	   -p 5999:5999 \
    -e GENERATE_UNIQUE=true \
     -e "DISPLAY=${DISPLAY:-:0.0}" \
    -e EXTRA="-display none -vnc 0.0.0.0:99,password=off" \
	  -e CPU_STRING=4 \
	 sickcodes/docker-osx:auto 

Error:

Disk is being copied between layers... Please wait a minute...
DEVICE_MODEL:       iMacPro1,1
SERIAL_SET_COUNT:   1
OUTPUT_DIRECTORY:   .
Cloning into 'OpenCorePkg'...
remote: Enumerating objects: 1590, done.
remote: Counting objects: 100% (1590/1590), done.
remote: Compressing objects: 100% (1429/1429), done.
remote: Total 1590 (delta 319), reused 728 (delta 108), pack-reused 0
Receiving objects: 100% (1590/1590), 14.35 MiB | 2.71 MiB/s, done.
Resolving deltas: 100% (319/319), done.
make: Entering directory '/home/arch/OSX-KVM/OpenCorePkg/Utilities/macserial'
../../User/Library/UserFile.c:7:10: fatal error: Library/MemoryAllocationLib.h: No such file or directory
    7 | #include <### Library/MemoryAllocationLib.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [../../User/Makefile:250: Linux_X64/UserFile.o] Error 1
make: Leaving directory '/home/arch/OSX-KVM/OpenCorePkg/Utilities/macserial'



Linux NAS 4.4.180+ #42218 SMP Mon Oct 18 19:16:55 CST 2021 x86_64 GNU/Linux synology_geminilake_720+

1
grep: /etc/os-release: No such file or directory
Filesystem      Size  Used Avail Use% Mounted on
-               3.5T  342G  3.2T  10% /volume1/homes
QEMU emulator version 2.12.1 (-dirty)
Copyright (c) 2003-2017 Fabrice Bellard and the QEMU Project developers
libvirtd (libvirt) 1.2.17
              total        used        free      shared  buff/cache   available
Mem:          5.6Gi       1.6Gi       211Mi       118Mi       3.8Gi       3.5Gi
Swap:         5.4Gi       1.0Mi       5.4Gi
4
4
crw------- 1 root root 10, 232 Feb  3 20:46 /dev/kvm
ls: cannot access '/tmp/.X11-unix/': No such file or directory
root     22040  0.0  0.0  23240  2380 pts/0    S+   20:55   0:00 grep dockerd
ash-4.4#

Originally created by @gyb001 on GitHub (Feb 3, 2022). Hello. I'm trying run in Synology Ds720+ First time everything is ok boot it fine. After delete the container and create new i got this error: Command: ``` docker run -it \ --device /dev/kvm \ -p 50922:10022 \ -p 5999:5999 \ -e GENERATE_UNIQUE=true \ -e "DISPLAY=${DISPLAY:-:0.0}" \ -e EXTRA="-display none -vnc 0.0.0.0:99,password=off" \ -e CPU_STRING=4 \ sickcodes/docker-osx:auto ``` Error: ``` Disk is being copied between layers... Please wait a minute... DEVICE_MODEL: iMacPro1,1 SERIAL_SET_COUNT: 1 OUTPUT_DIRECTORY: . Cloning into 'OpenCorePkg'... remote: Enumerating objects: 1590, done. remote: Counting objects: 100% (1590/1590), done. remote: Compressing objects: 100% (1429/1429), done. remote: Total 1590 (delta 319), reused 728 (delta 108), pack-reused 0 Receiving objects: 100% (1590/1590), 14.35 MiB | 2.71 MiB/s, done. Resolving deltas: 100% (319/319), done. make: Entering directory '/home/arch/OSX-KVM/OpenCorePkg/Utilities/macserial' ../../User/Library/UserFile.c:7:10: fatal error: Library/MemoryAllocationLib.h: No such file or directory 7 | #include <### Library/MemoryAllocationLib.h> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ compilation terminated. make: *** [../../User/Makefile:250: Linux_X64/UserFile.o] Error 1 make: Leaving directory '/home/arch/OSX-KVM/OpenCorePkg/Utilities/macserial' ``` ``` Linux NAS 4.4.180+ #42218 SMP Mon Oct 18 19:16:55 CST 2021 x86_64 GNU/Linux synology_geminilake_720+ 1 grep: /etc/os-release: No such file or directory Filesystem Size Used Avail Use% Mounted on - 3.5T 342G 3.2T 10% /volume1/homes QEMU emulator version 2.12.1 (-dirty) Copyright (c) 2003-2017 Fabrice Bellard and the QEMU Project developers libvirtd (libvirt) 1.2.17 total used free shared buff/cache available Mem: 5.6Gi 1.6Gi 211Mi 118Mi 3.8Gi 3.5Gi Swap: 5.4Gi 1.0Mi 5.4Gi 4 4 crw------- 1 root root 10, 232 Feb 3 20:46 /dev/kvm ls: cannot access '/tmp/.X11-unix/': No such file or directory root 22040 0.0 0.0 23240 2380 pts/0 S+ 20:55 0:00 grep dockerd ash-4.4# ```
Author
Owner

@sickcodes commented on GitHub (Feb 8, 2022):

QEMU version 2 too low, we are using QEMU 6.

No access to display socket /tmp/.X11-unix

Can you check your bash history?

history

Maybe last time you used VNC?

@sickcodes commented on GitHub (Feb 8, 2022): QEMU version 2 too low, we are using QEMU 6. No access to display socket `/tmp/.X11-unix` Can you check your bash history? `history` Maybe last time you used VNC?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/Docker-OSX#321