fatal error: /usr/include/gnu/stubs.h: Input/output error

Post here if you are a new Porteus member and you're looking for some help.
accio
White ninja
White ninja
Posts: 14
Joined: 16 Feb 2017, 14:14
Distribution: Slackware
Location: Finland

fatal error: /usr/include/gnu/stubs.h: Input/output error

Post#1 by accio » 22 Feb 2017, 10:11

I am trying to compile c program using gcc and I have activated the module "gcc-5.4.0-i586-1.xzm"(for c) and " gcc-g++-5.4.0-i586-1.xzm" (for c++). I also have glibc-2.23-x86_64-1.xzm activated.
fatal error: /usr/include/gnu/stubs.h: Input/output error
compilation terminated.

When I use command

Code: Select all

 rpm -ql glibc
I am getting this "package glibc is not installed" :shock:

Bogomips
Full of knowledge
Full of knowledge
Posts: 2564
Joined: 25 Jun 2014, 15:21
Distribution: 3.2.2 Cinnamon & KDE5
Location: London

Re: fatal error: /usr/include/gnu/stubs.h: Input/output erro

Post#2 by Bogomips » 22 Feb 2017, 11:44

^ Try downloading from mirror: kernel/05-devel.xzm. This should have everything needed to perform a compilation once module has been activated. viewtopic.php?f=81&t=6552&p=52954#p52070
Linux porteus 4.4.0-porteus #3 SMP PREEMPT Sat Jan 23 07:01:55 UTC 2016 i686 AMD Sempron(tm) 140 Processor AuthenticAMD GNU/Linux
NVIDIA Corporation C61 [GeForce 6150SE nForce 430] (rev a2) MemTotal: 901760 kB MemFree: 66752 kB

accio
White ninja
White ninja
Posts: 14
Joined: 16 Feb 2017, 14:14
Distribution: Slackware
Location: Finland

Re: fatal error: /usr/include/gnu/stubs.h: Input/output erro

Post#3 by accio » 22 Feb 2017, 12:29

Bogomips wrote:^ Try downloading from mirror: kernel/05-devel.xzm. This should have everything needed to perform a compilation once module has been activated. viewtopic.php?f=81&t=6552&p=52954#p52070
hi @Bogomips I already have development module up and running.

Bogomips
Full of knowledge
Full of knowledge
Posts: 2564
Joined: 25 Jun 2014, 15:21
Distribution: 3.2.2 Cinnamon & KDE5
Location: London

Re: fatal error: /usr/include/gnu/stubs.h: Input/output erro

Post#4 by Bogomips » 22 Feb 2017, 16:31

^ Not at all clear. Please be more specific:
  • 05-devel.xzm activated and now able to compile without problem
  • 05-devel.xzm activated, without any of "gcc-5.4.0-i586-1.xzm"(for c) and " gcc-g++-5.4.0-i586-1.xzm" (for c++). glibc-2.23-x86_64-1.xzm being activated, but still not able to compile, and this is the error message: xxx
and I am not sure which of the two is meant. :unknown:
Linux porteus 4.4.0-porteus #3 SMP PREEMPT Sat Jan 23 07:01:55 UTC 2016 i686 AMD Sempron(tm) 140 Processor AuthenticAMD GNU/Linux
NVIDIA Corporation C61 [GeForce 6150SE nForce 430] (rev a2) MemTotal: 901760 kB MemFree: 66752 kB

accio
White ninja
White ninja
Posts: 14
Joined: 16 Feb 2017, 14:14
Distribution: Slackware
Location: Finland

Re: fatal error: /usr/include/gnu/stubs.h: Input/output erro

Post#5 by accio » 23 Feb 2017, 07:16

05-devel.xzm activated, I also activated "gcc-5.4.0-i586-1.xzm"(for c), " gcc-g++-5.4.0-i586-1.xzm" (for c++) and glibc-2.23-x86_64-1.xzm, but still not able to compile, and this is the error message :

Code: Select all

 fatal error: /usr/include/gnu/stubs.h: Input/output error

Bogomips
Full of knowledge
Full of knowledge
Posts: 2564
Joined: 25 Jun 2014, 15:21
Distribution: 3.2.2 Cinnamon & KDE5
Location: London

Re: fatal error: /usr/include/gnu/stubs.h: Input/output erro

Post#6 by Bogomips » 23 Feb 2017, 11:55

^ If 05-devel.xzm activated, then AFAIK do not [need to] activate "gcc-5.4.0-i586-1.xzm"(for c), " gcc-g++-5.4.0-i586-1.xzm" (for c++) and glibc-2.23-x86_64-1.xzm, as they should already be in the 05-devel.xzm module. Activation just means adding an overlay to the live filesystem, and making it visible to the loader:

Code: Select all

root@porteus:/home/guest# ls /usr/bin/{gcc,gcc-g++}
/bin/ls: cannot access '/usr/bin/gcc': No such file or directory
/bin/ls: cannot access '/usr/bin/gcc-g++': No such file or directory
root@porteus:/home/guest# which gcc gcc-g++
which: no gcc in (/usr/local/sbin:/usr/local/bin:/sbin:/usr/sbin:/bin:/usr/bin:/usr/lib64/kf5:/usr/lib64/kde4/libexec:/usr/lib64/qt/bin:/usr/lib64/qt5/bin)
which: no gcc-g++ in (/usr/local/sbin:/usr/local/bin:/sbin:/usr/sbin:/bin:/usr/bin:/usr/lib64/kf5:/usr/lib64/kde4/libexec:/usr/lib64/qt/bin:/usr/lib64/qt5/bin)

root@porteus:/home/guest# activate 05-devel.xzm 
Quiet mode: off
Updating shared library links:  /sbin/ldconfig
Updating MIME database:  /usr/bin/update-mime-database /usr/share/mime
Updating GIO cache: /usr/bin/gio-querymodules /usr/lib64/gio/modules
Updating GTK immodules: /usr/bin/update-gtk-immodules
Updating KDE menu: update-desktop-database
Updating menu
root@porteus:/home/guest# ls /usr/bin/{gcc,gcc-g++}
/bin/ls: cannot access '/usr/bin/gcc-g++': No such file or directory
/usr/bin/gcc@
root@porteus:/home/guest# which gcc
/usr/bin/gcc

root@porteus:/home/guest# deactivate 05-devel.xzm 
Quiet mode: off
Updating shared library links:  /sbin/ldconfig
Updating MIME database:  /usr/bin/update-mime-database /usr/share/mime
Updating GTK immodules: /usr/bin/update-gtk-immodules
Updating KDE menu: update-desktop-database
Updating menu

root@porteus:/home/guest# ls /usr/bin/{gcc,gcc-g++}
/bin/ls: cannot access '/usr/bin/gcc': No such file or directory
/bin/ls: cannot access '/usr/bin/gcc-g++': No such file or directory
root@porteus:/home/guest# which gcc
which: no gcc in (/usr/local/sbin:/usr/local/bin:/sbin:/usr/sbin:/bin:/usr/bin:/usr/lib64/kf5:/usr/lib64/kde4/libexec:/usr/lib64/qt/bin:/usr/lib64/qt5/bin)
This time activate only 05-devel.xzm, and confirm the error.
Linux porteus 4.4.0-porteus #3 SMP PREEMPT Sat Jan 23 07:01:55 UTC 2016 i686 AMD Sempron(tm) 140 Processor AuthenticAMD GNU/Linux
NVIDIA Corporation C61 [GeForce 6150SE nForce 430] (rev a2) MemTotal: 901760 kB MemFree: 66752 kB

accio
White ninja
White ninja
Posts: 14
Joined: 16 Feb 2017, 14:14
Distribution: Slackware
Location: Finland

Re: fatal error: /usr/include/gnu/stubs.h: Input/output erro

Post#7 by accio » 23 Feb 2017, 12:35

Hi its working. Out of curiosity why it was not working when I activated gcc & glibc modules separately? Also what are the other modules in built within 05-devel.xzm ?

Bogomips
Full of knowledge
Full of knowledge
Posts: 2564
Joined: 25 Jun 2014, 15:21
Distribution: 3.2.2 Cinnamon & KDE5
Location: London

Re: fatal error: /usr/include/gnu/stubs.h: Input/output erro

Post#8 by Bogomips » 23 Feb 2017, 12:50

^ Because something newer got overlaid with something older, or a header file got overlaid with something else. There are lots of possibilities. So, on Porteus stick to Porteus tools, then we are on the same page. :) 05-devel.xzm is used to compile the kernel driver modules, so it just had to have everything. You can see the filesystem of the overlay like so:

Code: Select all

lsxzm  05-devel.xzm | less
And just saw, you had it wrong: /usr/bin/g++-gcc-5.3.0
Linux porteus 4.4.0-porteus #3 SMP PREEMPT Sat Jan 23 07:01:55 UTC 2016 i686 AMD Sempron(tm) 140 Processor AuthenticAMD GNU/Linux
NVIDIA Corporation C61 [GeForce 6150SE nForce 430] (rev a2) MemTotal: 901760 kB MemFree: 66752 kB

Post Reply