WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: 'failed in waitforX' with CL/CP64-16.0/17.0  (Read 272 times)

Offline rhermsen

  • Wiki Author
  • Full Member
  • *****
  • Posts: 133
'failed in waitforX' with CL/CP64-16.0/17.0
« on: April 14, 2026, 02:02:06 PM »
From end of 2025 with CL-16.0, CP64-16.0, and also with CL/CP64-17.0 I get 'failed in waitforX'.
I use TCL as VM's.
This is likely related with https://forum.tinycorelinux.net/index.php?topic=27832.0


I'm loading the following extensions to have Xorg GUI available.
Code: [Select]
libXmu.tcz
openssh.tcz
graphics-KERNEL.tcz
Xorg-7.7.tcz
flwm_topside.tcz
wbar.tcz
aterm.tcz


/var/log/Xorg.0.log Gives the following two errors
Code: [Select]
Failed to load /usr/local/lib/xorg/modules/extensions/libglx.so: libGL.so.1: cannot open shared object file: No such file or directory
Failed to load /usr/local/lib/xorg/modules/drivers/modesetting_drv.so: libgbm.so.1: cannot open shared object file: No such file or directory

After additonally loading the following two extensions it is working again.
Code: [Select]
tce-load -wi libGL.tcz
tce-load -wi libEGL.tcz

Is it expected that I need to load these two extensions to have Xorg working?





Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 15550
Re: 'failed in waitforX' with CL/CP64-16.0/17.0
« Reply #1 on: April 15, 2026, 03:39:04 AM »
I’m traveling at the moment, so I can’t check - I’ll try to get back to you in 4-5 days time.

Offline rhermsen

  • Wiki Author
  • Full Member
  • *****
  • Posts: 133
Re: 'failed in waitforX' with CL/CP64-16.0/17.0
« Reply #2 on: April 15, 2026, 04:37:39 AM »
Thanks, save travel, and take your time.

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 15550
Re: 'failed in waitforX' with CL/CP64-16.0/17.0
« Reply #3 on: April 19, 2026, 08:44:46 AM »
Booting without loading any extensions, I get this with tc-17.x x86_64:
Code: [Select]
tce-load -i Xorg-7.7 flwm aterm wbar
startx
..and the gui starts.

I get this in /var/log/Xorg.0.log:
Code: [Select]
[    34.827] (EE) Failed to load /usr/local/lib/xorg/modules/extensions/libglx.so: libGL.so.1: cannot open shared object file: No such file or directory
...
[    34.829] (EE) Failed to load /usr/local/lib/xorg/modules/drivers/modesetting_drv.so: libgbm.so.1: cannot open shared object file: No such file or directory
..but the gui still works

Edit: I get the same thing with tc-17.x x86, except that the system hangs on exit to prompt.

In addition, I cannot use the modesetting driver with x86 otherwise the system hangs, I'm obliged to use the obsolete xf86-video-intel extension, whereas both work with x86_64.
« Last Edit: April 19, 2026, 09:04:13 AM by Juanito »

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 15550
Re: 'failed in waitforX' with CL/CP64-16.0/17.0
« Reply #4 on: April 19, 2026, 09:02:54 AM »
..therefore the problem seems to be your use of graphics-KERNEL, which promotes modesetting to be the preferred driver, which depends on libgbm provided by libEGL.

What happens if you don't use graphics-KERNEL?
« Last Edit: April 19, 2026, 10:06:43 AM by Juanito »

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 15550
Re: 'failed in waitforX' with CL/CP64-16.0/17.0
« Reply #5 on: April 19, 2026, 09:55:08 AM »
As part of investigating I discovered that the x86 version of expat2 had acquired a dep on ncursesw - rebuilt without this and re-posted.

Offline rhermsen

  • Wiki Author
  • Full Member
  • *****
  • Posts: 133
Re: 'failed in waitforX' with CL/CP64-16.0/17.0
« Reply #6 on: April 19, 2026, 01:54:00 PM »
I will try without 'graphics-KERNEL' in the coming days.

The use of 'graphics-KERNEL' comes from:
https://forum.tinycorelinux.net/index.php?topic=25592.0

That was for x86, and I'm using the same scripts for x86_64.
(I seldom use x86 nowadays...)

Offline rhermsen

  • Wiki Author
  • Full Member
  • *****
  • Posts: 133
Re: 'failed in waitforX' with CL/CP64-16.0/17.0
« Reply #7 on: Today at 05:58:48 AM »
Without 'graphics-KERNEL.tcz' I still get 'failed in WaitforX'.
(see also first /var/log/Xorg.0.log further below)
Also after adding 'libGL.tcz' and 'libEGL.tcz' I still get 'failed in WaitforX'.
(see also second /var/log/Xorg.0.log further below)

I'm running CP64-17.0 headless as a nested-VM and the GUI goes via VNC.

Code: [Select]
$ ls -la /mnt/vda1/tce/optional/graphics*
ls: /mnt/vda1/tce/optional/graphics*: No such file or directory

Code: [Select]
$ cat /var/log/Xorg.0.log | grep "Failed to load"
[    55.469] (EE) Failed to load /usr/local/lib/xorg/modules/extensions/libglx.so: libGL.so.1: cannot open shared object file: No such file or directory
[    55.469] (EE) Failed to load module "glx" (loader failed, 0)
[    55.470] (EE) Failed to load /usr/local/lib/xorg/modules/drivers/modesetting_drv.so: libgbm.so.1: cannot open shared object file: No such file or directory
[    55.470] (EE) Failed to load module "modesetting" (loader failed, 0)


After loading the two extensions to resolve the missing libs I still get a 'failed in WaitforX'.
Code: [Select]
tce-load -wi libGL.tcz
tce-load -wi libEGL.tcz

Only after loading 'graphics-KERNEL.tcz' GUI is working again.
Code: [Select]
$ tce-load -wi graphics-KERNEL.tcz
graphics-6.18.2-tinycore64.tcz.dep OK
Downloading: i2c-6.18.2-tinycore64.tcz
Connecting to repo.tinycorelinux.net (128.127.66.77:80)
saving to 'i2c-6.18.2-tinycore64.tcz'
i2c-6.18.2-tinycore6 100% |********************************************************************************************************************************|  184k  0:00:00 ETA
'i2c-6.18.2-tinycore64.tcz' saved
i2c-6.18.2-tinycore64.tcz: OK
Downloading: graphics-6.18.2-tinycore64.tcz
Connecting to repo.tinycorelinux.net (128.127.66.77:80)
saving to 'graphics-6.18.2-tinycore64.tcz'
graphics-6.18.2-tiny 100% |********************************************************************************************************************************| 7560k  0:00:00 ETA
'graphics-6.18.2-tinycore64.tcz' saved
graphics-6.18.2-tinycore64.tcz: OK



Full Xorg log before adding 'libGL.tcz, libEGL.tcz and graphics-KERNEL.tcz' in case I'm missing something:
Code: [Select]
$ # Xorg log after reboot before adding 'libGL.tcz, libEGL.tcz and graphics-KERNEL.tcz'
$ cat /var/log/Xorg.0.log
[   113.227]
X.Org X Server 1.21.1.21
X Protocol Version 11, Revision 0
[   113.227] Current Operating System: Linux testapps 6.18.2-tinycore64 #1 SMP Sat Dec 20 17:23:47 UTC 2025 x86_64
[   113.227] Kernel command line: BOOT_IMAGE=/tce/boot/vmlinuz64 quiet waitusb=2 syslog waitusb=5:UUID="c49a5eb2-f3ef-40c3-b281-64d0573e7270" tce=UUID="c49a5eb2-f3ef-40c3-b281-64d0573e7270"  initrd=/tce/boot/corepure64.gz
[   113.227] 
[   113.227] Current version of pixman: 0.46.4
[   113.227]    Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
[   113.227] Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[   113.227] (==) Log file: "/var/log/Xorg.0.log", Time: Mon Apr 20 09:35:22 2026
[   113.228] (==) Using config file: "/usr/local/etc/X11/xorg.conf"
[   113.228] (==) Using system config directory "/usr/local/share/X11/xorg.conf.d"
[   113.228] (==) ServerLayout "X.org Configured"
[   113.228] (**) |-->Screen "Screen0" (0)
[   113.228] (**) |   |-->Monitor "Monitor0"
[   113.228] (**) |   |-->Device "Card0"
[   113.228] (**) |-->Input Device "Mouse0"
[   113.228] (**) |-->Input Device "Keyboard0"
[   113.228] (**) Option "BlankTime" "0"
[   113.228] (**) Allowing byte-swapped clients
[   113.228] (==) Automatically adding devices
[   113.228] (==) Automatically enabling devices
[   113.228] (==) Automatically adding GPU devices
[   113.228] (==) Automatically binding GPU devices
[   113.228] (==) Max clients allowed: 256, resource mask: 0x1fffff
[   113.228] (WW) The directory "/usr/local/lib/X11/fonts/OTF" does not exist.
[   113.228]    Entry deleted from font path.
[   113.228] (WW) The directory "/usr/local/lib/X11/fonts/100pdi" does not exist.
[   113.228]    Entry deleted from font path.
[   113.228] (WW) The directory "/usr/local/lib/X11/fonts/OTF" does not exist.
[   113.228]    Entry deleted from font path.
[   113.228] (WW) The directory "/usr/local/lib/X11/fonts/100dpi" does not exist.
[   113.228]    Entry deleted from font path.
[   113.228] (**) FontPath set to:
        /usr/local/lib/X11/fonts/misc,
        /usr/local/lib/X11/fonts/TTF,
        /usr/local/lib/X11/fonts/Type1,
        /usr/local/lib/X11/fonts/75dpi,
        /usr/local/lib/X11/fonts/misc,
        /usr/local/lib/X11/fonts/TTF,
        /usr/local/lib/X11/fonts/Type1,
        /usr/local/lib/X11/fonts/75dpi
[   113.228] (**) ModulePath set to "/usr/local/lib/xorg/modules"
[   113.228] (WW) Hotplugging is on, devices using drivers 'kbd', 'mouse' or 'vmmouse' will be disabled.
[   113.228] (WW) Disabling Mouse0
[   113.228] (WW) Disabling Keyboard0
[   113.228] (II) Module ABI versions:
[   113.228]    X.Org ANSI C Emulation: 0.4
[   113.228]    X.Org Video Driver: 25.2
[   113.228]    X.Org XInput driver : 24.4
[   113.228]    X.Org Server Extension : 10.0
[   113.230] (--) PCI:*(0@0:2:0) 1234:1111:1af4:1100 rev 0, Mem @ 0xfe000000/8388608, BIOS @ 0x????????/131072
[   113.230] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
[   113.230] (II) "glx" will be loaded. This was enabled by default and also specified in the config file.
[   113.230] (II) LoadModule: "glx"
[   113.230] (II) Loading /usr/local/lib/xorg/modules/extensions/libglx.so
[   113.232] (EE) Failed to load /usr/local/lib/xorg/modules/extensions/libglx.so: libGL.so.1: cannot open shared object file: No such file or directory
[   113.232] (EE) Failed to load module "glx" (loader failed, 0)
[   113.232] (II) LoadModule: "modesetting"
[   113.232] (II) Loading /usr/local/lib/xorg/modules/drivers/modesetting_drv.so
[   113.232] (EE) Failed to load /usr/local/lib/xorg/modules/drivers/modesetting_drv.so: libgbm.so.1: cannot open shared object file: No such file or directory
[   113.232] (EE) Failed to load module "modesetting" (loader failed, 0)
[   113.232] (EE) No drivers available.
[   113.232] (EE)
Fatal server error:
[   113.232] (EE) no screens found(EE)
[   113.232] (EE)
Please consult the The X.Org Foundation support
         at http://wiki.x.org
 for help.
[   113.232] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[   113.232] (EE)
[   113.232] (EE) Server terminated with error (1). Closing log file.


Code: [Select]
$ # Xorg log after 'libGL.tcz, libEGL.tcz' before adding 'graphics-KERNEL.tcz'
$ cat /var/log/Xorg.0.log
[   313.366]
X.Org X Server 1.21.1.21
X Protocol Version 11, Revision 0
[   313.366] Current Operating System: Linux testapps 6.18.2-tinycore64 #1 SMP Sat Dec 20 17:23:47 UTC 2025 x86_64
[   313.366] Kernel command line: BOOT_IMAGE=/tce/boot/vmlinuz64 quiet waitusb=2 syslog waitusb=5:UUID="c49a5eb2-f3ef-40c3-b281-64d0573e7270" tce=UUID="c49a5eb2-f3ef-40c3-b281-64d0573e7270"  initrd=/tce/boot/corepure64.gz
[   313.366] 
[   313.366] Current version of pixman: 0.46.4
[   313.366]    Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
[   313.366] Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[   313.366] (==) Log file: "/var/log/Xorg.0.log", Time: Mon Apr 20 09:38:42 2026
[   313.367] (==) Using config file: "/usr/local/etc/X11/xorg.conf"
[   313.367] (==) Using system config directory "/usr/local/share/X11/xorg.conf.d"
[   313.367] (==) ServerLayout "X.org Configured"
[   313.367] (**) |-->Screen "Screen0" (0)
[   313.367] (**) |   |-->Monitor "Monitor0"
[   313.367] (**) |   |-->Device "Card0"
[   313.367] (**) |-->Input Device "Mouse0"
[   313.367] (**) |-->Input Device "Keyboard0"
[   313.367] (**) Option "BlankTime" "0"
[   313.367] (**) Allowing byte-swapped clients
[   313.367] (==) Automatically adding devices
[   313.367] (==) Automatically enabling devices
[   313.367] (==) Automatically adding GPU devices
[   313.367] (==) Automatically binding GPU devices
[   313.367] (==) Max clients allowed: 256, resource mask: 0x1fffff
[   313.367] (WW) The directory "/usr/local/lib/X11/fonts/OTF" does not exist.
[   313.367]    Entry deleted from font path.
[   313.367] (WW) The directory "/usr/local/lib/X11/fonts/100pdi" does not exist.
[   313.367]    Entry deleted from font path.
[   313.367] (WW) The directory "/usr/local/lib/X11/fonts/OTF" does not exist.
[   313.367]    Entry deleted from font path.
[   313.367] (WW) The directory "/usr/local/lib/X11/fonts/100dpi" does not exist.
[   313.367]    Entry deleted from font path.
[   313.367] (**) FontPath set to:
        /usr/local/lib/X11/fonts/misc,
        /usr/local/lib/X11/fonts/TTF,
        /usr/local/lib/X11/fonts/Type1,
        /usr/local/lib/X11/fonts/75dpi,
        /usr/local/lib/X11/fonts/misc,
        /usr/local/lib/X11/fonts/TTF,
        /usr/local/lib/X11/fonts/Type1,
        /usr/local/lib/X11/fonts/75dpi
[   313.367] (**) ModulePath set to "/usr/local/lib/xorg/modules"
[   313.367] (WW) Hotplugging is on, devices using drivers 'kbd', 'mouse' or 'vmmouse' will be disabled.
[   313.367] (WW) Disabling Mouse0
[   313.367] (WW) Disabling Keyboard0
[   313.367] (II) Module ABI versions:
[   313.367]    X.Org ANSI C Emulation: 0.4
[   313.367]    X.Org Video Driver: 25.2
[   313.367]    X.Org XInput driver : 24.4
[   313.367]    X.Org Server Extension : 10.0
[   313.369] (--) PCI:*(0@0:2:0) 1234:1111:1af4:1100 rev 0, Mem @ 0xfe000000/8388608, BIOS @ 0x????????/131072
[   313.369] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
[   313.369] (II) "glx" will be loaded. This was enabled by default and also specified in the config file.
[   313.369] (II) LoadModule: "glx"
[   313.369] (II) Loading /usr/local/lib/xorg/modules/extensions/libglx.so
[   313.991] (II) Module glx: vendor="X.Org Foundation"
[   313.992]    compiled for 1.21.1.21, module version = 1.0.0
[   313.992]    ABI class: X.Org Server Extension, version 10.0
[   313.992] (II) LoadModule: "modesetting"
[   313.992] (II) Loading /usr/local/lib/xorg/modules/drivers/modesetting_drv.so
[   313.992] (II) Module modesetting: vendor="X.Org Foundation"
[   313.992]    compiled for 1.21.1.21, module version = 1.21.1
[   313.992]    Module class: X.Org Video Driver
[   313.992]    ABI class: X.Org Video Driver, version 25.2
[   313.992] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[   313.992] (--) using VT number 2

[   314.001] (EE) open /dev/dri/card0: No such file or directory
[   314.001] (WW) Falling back to old probe method for modesetting
[   314.001] (EE) open /dev/dri/card0: No such file or directory
[   314.001] (EE) Screen 0 deleted because of no matching config section.
[   314.001] (II) UnloadModule: "modesetting"
[   314.001] (EE) Device(s) detected, but none match those in the config file.
[   314.001] (EE)
Fatal server error:
[   314.001] (EE) no screens found(EE)
[   314.001] (EE)
Please consult the The X.Org Foundation support
         at http://wiki.x.org
 for help.
[   314.001] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[   314.001] (EE)
[   314.009] (EE) Server terminated with error (1). Closing log file.

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 15550
Re: 'failed in waitforX' with CL/CP64-16.0/17.0
« Reply #8 on: Today at 06:38:56 AM »
Ref:
Code: [Select]
[   113.228] (==) Using config file: "/usr/local/etc/X11/xorg.conf"..what happens when you don't use a config file?