Page 1 of 1

GCC 4.6

Posted: 25 Feb 2018, 09:00
by ppb222
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?

GCC 4.6

Posted: 25 Feb 2018, 20:35
by fulalas
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?

GCC 4.6

Posted: 28 Feb 2018, 10:40
by ppb222
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.

GCC 4.6

Posted: 28 Feb 2018, 11:21
by jssouza
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.

GCC 4.6

Posted: 28 Feb 2018, 11:41
by ncmprhnsbl
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...

GCC 4.6

Posted: 28 Feb 2018, 20:06
by fulalas
@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. :)

GCC 4.6

Posted: 02 Mar 2018, 19:10
by ppb222
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... :)

GCC 4.6

Posted: 03 Mar 2018, 00:24
by fulalas
@ppb222, well... it's Linux, right? We have to fight this package battle :thumbsup: