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.

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

Postby accio » 22 Feb 2017, 11: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:
accio
White ninja
White ninja
 
Posts: 14
Joined: 16 Feb 2017, 15:14
Location: Finland
Distribution: Slackware

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

Postby Bogomips » 22 Feb 2017, 12:44

^ Try downloading from mirror: kernel/05-devel.xzm. This should have everything needed to perform a compilation once module has been activated. Starting out in Porteus 3.2.2 (A Guide)
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
Bogomips
Full of knowledge
Full of knowledge
 
Posts: 2162
Joined: 25 Jun 2014, 16:21
Location: London
Distribution: 3.2.2 Cinnamon & KDE5

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

Postby accio » 22 Feb 2017, 13: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. Starting out in Porteus 3.2.2 (A Guide)


hi @Bogomips I already have development module up and running.
accio
White ninja
White ninja
 
Posts: 14
Joined: 16 Feb 2017, 15:14
Location: Finland
Distribution: Slackware

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

Postby Bogomips » 22 Feb 2017, 17: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
Bogomips
Full of knowledge
Full of knowledge
 
Posts: 2162
Joined: 25 Jun 2014, 16:21
Location: London
Distribution: 3.2.2 Cinnamon & KDE5

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

Postby accio » 23 Feb 2017, 08: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
accio
White ninja
White ninja
 
Posts: 14
Joined: 16 Feb 2017, 15:14
Location: Finland
Distribution: Slackware

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

Postby Bogomips » 23 Feb 2017, 12: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
Bogomips
Full of knowledge
Full of knowledge
 
Posts: 2162
Joined: 25 Jun 2014, 16:21
Location: London
Distribution: 3.2.2 Cinnamon & KDE5

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

Postby accio » 23 Feb 2017, 13: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 ?
accio
White ninja
White ninja
 
Posts: 14
Joined: 16 Feb 2017, 15:14
Location: Finland
Distribution: Slackware

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

Postby Bogomips » 23 Feb 2017, 13: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
Bogomips
Full of knowledge
Full of knowledge
 
Posts: 2162
Joined: 25 Jun 2014, 16:21
Location: London
Distribution: 3.2.2 Cinnamon & KDE5


Return to Newbie questions



Who is online

Users browsing this forum: Bing [Bot] and 1 guest