Post here if you are a new Porteus member and you're looking for some help.
-
accio
- White ninja
- Posts: 14
- Joined: 16 Feb 2017, 14:14
- Distribution: Slackware
- Location: Finland
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
I am getting this "package glibc is not installed"
accio
-
Bogomips
- Full of knowledge
- Posts: 2564
- Joined: 25 Jun 2014, 15:21
- Distribution: 3.2.2 Cinnamon & KDE5
- Location: London
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
Bogomips
-
accio
- White ninja
- Posts: 14
- Joined: 16 Feb 2017, 14:14
- Distribution: Slackware
- Location: Finland
Post#3
by accio » 22 Feb 2017, 12:29
hi @Bogomips I already have development module up and running.
accio
-
Bogomips
- Full of knowledge
- Posts: 2564
- Joined: 25 Jun 2014, 15:21
- Distribution: 3.2.2 Cinnamon & KDE5
- Location: London
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.
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
-
accio
- White ninja
- Posts: 14
- Joined: 16 Feb 2017, 14:14
- Distribution: Slackware
- Location: Finland
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
accio
-
Bogomips
- Full of knowledge
- Posts: 2564
- Joined: 25 Jun 2014, 15:21
- Distribution: 3.2.2 Cinnamon & KDE5
- Location: London
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
Bogomips
-
accio
- White ninja
- Posts: 14
- Joined: 16 Feb 2017, 14:14
- Distribution: Slackware
- Location: Finland
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 ?
accio
-
Bogomips
- Full of knowledge
- Posts: 2564
- Joined: 25 Jun 2014, 15:21
- Distribution: 3.2.2 Cinnamon & KDE5
- Location: London
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:
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