Page 1 of 1

Request: gcc & g++ 8 in MX18

Posted: Thu Dec 13, 2018 7:25 am
by Otter
Hi,

Could you please add gcc & g++ 8 to MX18. Its not available in stretch-backports either. Please! :bawling:

Re: Request: gcc & g++ 8 in MX18

Posted: Thu Mar 07, 2019 12:48 pm
by Otter
Bump! Someone please respond.

Re: Request: gcc & g++ 8 in MX18

Posted: Thu Mar 07, 2019 1:22 pm
by anticapitalista
Not going to happen

Re: Request: gcc & g++ 8 in MX18

Posted: Thu Mar 07, 2019 1:32 pm
by Richard
Imagine it may come with Buster...

Re: Request: gcc & g++ 8 in MX18

Posted: Thu Mar 07, 2019 5:21 pm
by Stevo
Do you really need it, such as for programming with it, or is there another reason? In that case, you actually might have an "XY problem".

Re: Request: gcc & g++ 8 in MX18

Posted: Fri Mar 08, 2019 12:00 am
by Richard

Re: Request: gcc & g++ 8 in MX18

Posted: Fri Mar 08, 2019 12:40 am
by asqwerth
Mayhap the OP is trying to install some package from a foreign (possibly Ubuntu) repo or PPA, which isn't recommended?

Re: Request: gcc & g++ 8 in MX18

Posted: Fri Mar 08, 2019 2:04 am
by dphn
For a while I have included Debian Buster repo in my MX 18 test system and I have purged gcc-6/g++-6.

apt replaced this with gcc-7/g++-7 from Buster Repo automatically, not gcc-8/g++-8 but this is available too.

Note: It's an experiment. This system runs stable so far but it isn't recommandable to do such things on a productive machine. Some users would say it is a "FrankenDebian".

Re: Request: gcc & g++ 8 in MX18

Posted: Fri Mar 08, 2019 8:33 am
by Otter
First of all, I guess everyone thinks that I'm new to Linux since I have very few posts here & also maybe because of the goofy signature. But I've been using Linux for the past decade and still I'm not going to change the signature. I just love it. Gratitude to MX forum maintainers for still having those legacy smileys. I miss them in other forums. :dancingman:
anticapitalista wrote: Thu Mar 07, 2019 1:22 pm Not going to happen
Richard wrote: Thu Mar 07, 2019 1:32 pm Imagine it may come with Buster...
Sad to hear that.
Stevo wrote: Thu Mar 07, 2019 5:21 pm Do you really need it, such as for programming with it, or is there another reason? In that case, you actually might have an "XY problem".
Actually this. Need it for C++14. I wonder if any other devs actually use MX or a distro based on Debian stable. I guess lack of recent packages is the reason they just install ubuntu & call it a day.
asqwerth wrote: Fri Mar 08, 2019 12:40 am Mayhap the OP is trying to install some package from a foreign (possibly Ubuntu) repo or PPA, which isn't recommended?
Nope.
dphn wrote: Fri Mar 08, 2019 2:04 am For a while I have included Debian Buster repo in my MX 18 test system and I have purged gcc-6/g++-6.

apt replaced this with gcc-7/g++-7 from Buster Repo automatically, not gcc-8/g++-8 but this is available too.

Note: It's an experiment. This system runs stable so far but it isn't recommandable to do such things on a productive machine. Some users would say it is a "FrankenDebian".
FrankenDebian, yes, I've also been doing the same since MX17. Was using gcc-7 with MX17 and now need gcc-8.

Just made a thread to know if it would be officially back ported to prevent FrankenDebian.

Re: Request: gcc & g++ 8 in MX18

Posted: Fri Mar 08, 2019 9:49 pm
by Stevo
The stock gcc-6 in MX 17/18 supports the c++-14 standard--I build packages that need that standard quite frequently. Did you mean c++-17?

An existing option for a compiler that supports a newer standard would be the latest clang compiler, and we have 7.0 backported to the main repo.

Re: Request: gcc & g++ 8 in MX18

Posted: Fri Mar 08, 2019 10:39 pm
by figueroa
Otter wrote: Thu Dec 13, 2018 7:25 am
You still haven't explained why you feel like you need, or want this, in particular in MX which is a nice stable distribution, not a bleeding edge developer's platform. Why not compile it yourself from source? That would be project to test your mettle.

Re: Request: gcc & g++ 8 in MX18

Posted: Sun Mar 10, 2019 6:01 am
by Otter
Stevo wrote: Fri Mar 08, 2019 9:49 pm The stock gcc-6 in MX 17/18 supports the c++-14 standard--I build packages that need that standard quite frequently. Did you mean c++-17?

An existing option for a compiler that supports a newer standard would be the latest clang compiler, and we have 7.0 backported to the main repo.
Its a long term project, so thought of using gcc-8 due to several reasons. Anyway no need to backport it just for me. I've installed it from testing as I did with MX17 for gcc7 and all is fine with MX18 too. :)

figueroa wrote: Fri Mar 08, 2019 10:39 pmYou still haven't explained why you feel like you need, or want this, in particular in MX which is a nice stable distribution, not a bleeding edge developer's platform. Why not compile it yourself from source? That would be project to test your mettle.
I've already mentioned that I need it for development.

Re: Request: gcc & g++ 8 in MX18

Posted: Sun Mar 10, 2019 3:42 pm
by figueroa
Otter wrote: Fri Mar 08, 2019 8:33 am First of all, I guess everyone thinks that I'm new to Linux since I have very few posts here & also maybe because of the goofy signature. But I've been using Linux for the past decade and still I'm not going to change the signature. I just love it.
Actually, it is very goofy and irritating. Doesn't present you well to your readers.

Re: Request: gcc & g++ 8 in MX18

Posted: Wed Mar 13, 2019 4:45 am
by Otter
figueroa wrote: Sun Mar 10, 2019 3:42 pm
Otter wrote: Fri Mar 08, 2019 8:33 am First of all, I guess everyone thinks that I'm new to Linux since I have very few posts here & also maybe because of the goofy signature. But I've been using Linux for the past decade and still I'm not going to change the signature. I just love it.
Actually, it is very goofy and irritating. Doesn't present you well to your readers.
If I keep changing myself for the whole world, then I would lose my actual identity and I'm 30+ yrs old, so I've learned to not please others just because they want me to be the way they expect me to. :dancingman:

Re: Request: gcc & g++ 8 in MX18

Posted: Wed Mar 13, 2019 2:24 pm
by figueroa
Otter wrote: Wed Mar 13, 2019 4:45 am If I keep changing myself for the whole world, then I would lose my actual identity and I'm 30+ yrs old, so I've learned to not please others just because they want me to be the way they expect me to.
No, that's not it. It's quite irritating to the eyes, offensive, and juvenile.

Re: Request: gcc & g++ 8 in MX18

Posted: Wed Mar 13, 2019 3:21 pm
by skidoo
.
This topic has gone "all wrong". Let's review:

The OP placed a respectful request.
The OP patiently (or forgot) waited several months then, again politely, begged a response to the unreplied inquiry.

After the initial "brilliant", terse, unexplained unfavorable response...
s/he met challenging replies like "your face is an XY problem", "can't you just wait for Buster", "you haven't throughly explained, in your triplicate TRS Reports, exactly WHY you need it"...

@figueroa
About the animated gif(s), I hear ya. For me, the animated avatars are especially bothersome. Even the animated "hot topic" icons on main page are an annoyance when the browser window peeks out from behind other application windows I'm working in.

@Otter
First of all, thanks for asking! Indeed, it's a PITA being unable to (re)compile versions of applications shipped in the "stable" release, due to their extraordinary build dependencies. I have not yet attempted to do so, but bookmarked this hopefully relevant May 2018 article for reference: Raspberry Pi Raspbian - Compiling GCC 8.1

Not gcc8, but here's an example "exercise in futility":
https://www.opensnitch.io/ -=- https://github.com/evilsocket/opensnitch
Twice, I've unsuccessfully tried to "round up all the needed stuffs" and build this on debian9/antiX17 stable.
Lost several hours just figuring out "dep" is a pre-requisite Go module (and is apparently unknown to the debian Go packagers).
It's open source... but nyah nyah, no soup for me!

Re: Request: gcc & g++ 8 in MX18

Posted: Wed Mar 13, 2019 4:10 pm
by anticapitalista
skidoo - Otter only needed a yes/no answer. He/she said that he/she is not a noob and therefore experienced enough to understand why a distro based on stable is not going to add gcc8 (buster/sid) to its repos.

Re: Request: gcc & g++ 8 in MX18

Posted: Wed Mar 13, 2019 10:20 pm
by Otter
figueroa wrote: Wed Mar 13, 2019 2:24 pmNo, that's not it. It's quite irritating to the eyes, offensive, and juvenile.
skidoo wrote: Wed Mar 13, 2019 3:21 pm About the animated gif(s), I hear ya. For me, the animated avatars are especially bothersome. Even the animated "hot topic" icons on main page are an annoyance when the browser window peeks out from behind other application windows I'm working in.
Then there is an option in the user cp to disable signature and disable smileys too, ucp.php?i=ucp_prefs&mode=view. Knock yourselves out.

anticapitalista wrote: Wed Mar 13, 2019 4:10 pm skidoo - Otter only needed a yes/no answer. He/she said that he/she is not a noob and therefore experienced enough to understand why a distro based on stable is not going to add gcc8 (buster/sid) to its repos.
This.

Could some mods please lock this topic as its already solved.

Re: Request: gcc & g++ 8 in MX18

Posted: Thu Mar 14, 2019 5:10 am
by richb
Add [Solved] to the title of your first post. I will then lock it. Normally we do not lock solved topics but this topic has gone off the rails.

Re: Request: gcc & g++ 8 in MX18

Posted: Fri Aug 09, 2019 2:39 am
by scap
I just posted about g++-9 in the software forum as I didn't realize this forum existed. I am a new MX LInux user but not new to linux. I wanted to understand the hype but if I can't do work its a non-starter. I need some of the new compiler features for code I have written prior to coming to mxlinux. As a developer I want to use the newest tech. I'll see if I can quickly get the latest clang in the repo to compile my code if not I will likely have to move back.

Re: Request: gcc & g++ 8 in MX18

Posted: Fri Aug 09, 2019 4:00 am
by JayM
G++ 8.3.0-6 is in Buster's repo. Maybe it could be backported?

Re: Request: gcc & g++ 8 in MX18

Posted: Fri Aug 09, 2019 3:20 pm
by Stevo
gcc-7 and Buster's gcc-8 was backported to our experimental repo a few months ago, and in fact I successfully used it to backport telegram-desktop 1.7.0 to MX 17/18 a couple days ago. I made a few announcements, but never got any answer: http://mxrepo.com/mx/experimental/pool/test/g/gcc-8/

You have to export the compiler versions in the environment to use it instead of Stretch's default gcc-6:

Code: Select all

export CC=gcc-8
export CXX=g++-8
export CPP=cpp-8
export LD=gcc-8

(if required)
export ASM=gcc-8

Re: Request: gcc & g++ 8 in MX18

Posted: Fri Aug 09, 2019 3:28 pm
by Stevo
You can enable the experimental repo by adding this line to /etc/apt/sources.list.d/mx.list:

Code: Select all


deb http://mxrepo.com/mx/experimental/ stretch test \
Using Featherpad to do so:

Code: Select all

sudo fpad /etc/apt/sources.list.d/mx.list
Then updating in MX updater or on the command line:

Code: Select all

sudo apt-get update
gcc-8, g++-8, and cpp-8 can now be installed.