GCC 4.6

Post here if you are a new Porteus member and you're looking for some help.
ppb222
White ninja
White ninja
Posts: 9
Joined: 03 Nov 2012, 07:53
Location: Poland

GCC 4.6

Post#1 by ppb222 » 25 Feb 2018, 09:00

I found myself in a need of GCC 4.6, but my old Porteus (I think it's 1.2) does not seem to have it. Tried to install the newest version of Porteus, but that turned out to be one big mistake. The version 3.2.2 is much bigger, slower, uglier and looks quite unstable (for some reason I had to log in twice during boot up just to see the desktop!). Luckily it was easy to revert the install. Then I decided to just install GCC, but have no idea how to achieve this... Too many tutorials on the web, I guess :). Here are my questions:
  1. How do I find the right download of GCC 4.6 or newer, install it and make this install permanent?
  2. How to find out which version of Porteus I have?
  3. How to find out which version of Porteus might come with a newer version of GCC without installing it? Haven't found any kind of detailed release notes...
  4. What might be the reason why Porteus 3.2.2 asks me for password during startup?

fulalas
DEV Team
DEV Team
Posts: 2050
Joined: 26 Oct 2016, 15:34
Distribution: Porteus
Location: Brazil

GCC 4.6

Post#2 by fulalas » 25 Feb 2018, 20:35

1- GCC 4.6 is a little bit old, don't you think? I don't know where to find it, but if you want the 7.3.0 x64 here it is: ftp://ftp.slackware.com/pub/slackware/s ... 6_64-1.txz . You need to convert it to a xzm module and put it inside usb stick/porteus/modules folder;
2- uname -a, if I remember correctly;
3- I suggest you to try the new 4.0 RC4: http://dl.porteus.org/x86_64/Porteus-v4.0/
4- are you booting in Always Fresh mode? Can you send a screen shot?

ppb222
White ninja
White ninja
Posts: 9
Joined: 03 Nov 2012, 07:53
Location: Poland

GCC 4.6

Post#3 by ppb222 » 28 Feb 2018, 10:40

1. Thanks for the link! I managed to download, convert and activate right packages (GCC "main" package and an extension for C++) in Porteus Package Manager. Unfortunately, now I'm unable to build anything, even a simple hello world program. The compiler complains about missing libmpc.so.3 file. As far as I know, this library is for complex numbers and is not used at all by my code, so I think the problem is in GCC's configuration (libmpc.so does exist in /usr/lib, but there's no trace of libmpc.so.3). Additionally, most applications can no longer run from the command line:

Code: Select all

root@porteus:/mnt/sda1/Downloads# kate
kate: /lib/libc.so.6: version `GLIBC_2.18' not found (required by /usr/lib/libstdc++.so.6)
kate: /lib/libc.so.6: version `GLIBC_2.16' not found (required by /usr/lib/libstdc++.so.6)
kate: /lib/libc.so.6: version `GLIBC_2.17' not found (required by /usr/lib/libstdc++.so.6)
I'm still able to run Kate from the system menu, only the console seems to be affected by the problem. What might be causing this?

2. The command says 'porteus 3.4.4'. Didn't know such version exists :hmmm:
3. If 3.2.2 doesn't work well on my machine, it's hard to believe that 4.0 will...
4. Yes, Always Fresh. I doubt that a screenshot would explain much. It looks just like the normal password window which pops up when you press a key when a screen saver is running. Now when I think of that, it might be that a screen saver has actually been launched. Normally it should run after 10 minutes or so, but in my case it was more like 10 seconds. Perhaps just disabling the screen saver would help.

jssouza
Legendary
Legendary
Posts: 1165
Joined: 09 Jul 2015, 14:17
Distribution: Porteus x86 arm

GCC 4.6

Post#4 by jssouza » 28 Feb 2018, 11:21

ppb222 wrote:
28 Feb 2018, 10:40
The command says 'porteus 3.4.4'. Didn't know such version exists
I think that is the kernel version.
Just verifying from an old announcement - Porteus v1.2 final is out!
- kernel bumped to version 3.4.4
So you are probably on porteus 1.2 like you assumed.

Code: Select all

cat /etc/porteus-version
should give you your porteus version.

User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 3924
Joined: 20 Mar 2012, 03:42
Distribution: v5.0-64bit
Location: australia
Contact:

GCC 4.6

Post#5 by ncmprhnsbl » 28 Feb 2018, 11:41

yeah, i'm no expert, but i don't think you can just plonk a newer version of a compiler on top of programs/libs compiled on an older compiler version...
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44

fulalas
DEV Team
DEV Team
Posts: 2050
Joined: 26 Oct 2016, 15:34
Distribution: Porteus
Location: Brazil

GCC 4.6

Post#6 by fulalas » 28 Feb 2018, 20:06

@ppb222, you can try libmpc from here: ftp://ftp.slackware.com/pub/slackware/s ... kware64/l/

But, hey, Porteus 1.2 is really old! Why don't you try Porteus 4 RC4? It's pretty stable now :)

@ncmprhnsbl, sure you can. The current compiler doesn't know which compiler was used before. :)

ppb222
White ninja
White ninja
Posts: 9
Joined: 03 Nov 2012, 07:53
Location: Poland

GCC 4.6

Post#7 by ppb222 » 02 Mar 2018, 19:10

jssouza wrote:
28 Feb 2018, 11:21

Code: Select all

cat /etc/porteus-version
should give you your porteus version.
Thanks, this will be useful.
fulalas wrote:
28 Feb 2018, 20:06
@ppb222, you can try libmpc from here: ftp://ftp.slackware.com/pub/slackware/s ... kware64/l/
Is this the right way forward? I suspect that once I download libmpc, the build will fail because of another library. Can I download the whole C++ run-time as a single package? In the meantime I'll probably try Porteus 4, now that I know it's trivial to revert to the good old 1.2... :)

fulalas
DEV Team
DEV Team
Posts: 2050
Joined: 26 Oct 2016, 15:34
Distribution: Porteus
Location: Brazil

GCC 4.6

Post#8 by fulalas » 03 Mar 2018, 00:24

@ppb222, well... it's Linux, right? We have to fight this package battle :thumbsup:

Post Reply