[Partially SOLVED] How to use gcc 6 on Debian Jessie

Need help with C, C++, perl, python, etc?

[Partially SOLVED] How to use gcc 6 on Debian Jessie

Postby Herumor » 2016-09-29 20:01

WORKING in a namespace container with the debian/sid distribution (but doesn't "properly" use X and graphics and file trasnfers are not easy) -> THANK YOU
Hello,
I've tried to compile the following package :
Paquet gcc-6-source :
i 6.1.1-11 testing 750
p 6.2.0-4 unstable 50

I've had errors during the debian/rules build process :
Stage 1
05-stamp
errors with gcc-6-6.1.1/build/libbacktrace/conftest.c
.

Did you find any way to get gcc-6 working in the stable release?
I would like to get the recent improvements in C++.

Thanks for your help.

My system : Debian Jessie x86-64
Last edited by Herumor on 2016-10-01 06:50, edited 4 times in total.
Herumor
 
Posts: 2
Joined: 2016-09-29 19:32

Re: How to build gcc 6 on Debian Jessie

Postby Head_on_a_Stick » 2016-09-29 20:09

If you just want a build environment then try a testing/unstable container, I find systemd-nspawn the easiest to set up.

General method here:
viewtopic.php?f=16&t=129390

You don't need to run stuff in the X server so it should be a bit simpler than that for you ;)
“Controlling complexity is the essence of computer programming."Brian Kernighan

Please read before posting How to report a problem
User avatar
Head_on_a_Stick
 
Posts: 6491
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: How to build gcc 6 on Debian Jessie

Postby tomazzi » 2016-09-29 22:59

Herumor wrote:I would like to get the recent improvements in C++.

Just out of pure curiosity - what improvements do You want to get?
I'm asking this question for 2 reasons:
1) clib (gnulibc) is almost just as important as the OS kernel, so *any* changes not *tested* on the target OS can lead to unpredictable problems.
2) since *all* of the already installed software have been compiled (this also means: verified/tested) against a distro-spacific version of a glibc (clib), then, by changing this library system-wide, basically You are invalidating *all* the test that the distro-specific software have passed - which basically means about *everything*

However: glibc is a serious project, which is unlikely to break anything, including security - but the problem is in the word "unlikely" ...

Regards.
Odi profanum vulgus
tomazzi
 
Posts: 730
Joined: 2013-08-02 21:33

Re: How to build gcc 6 on Debian Jessie

Postby Herumor » 2016-09-30 05:50

Hello,

@Head_on_a_Stick -> thank you for your answer. I will try systemd-nspawn and debootstrap (this method is running well at the moment). Do you know about performances (processors + RAM) ?
--> performances are rather good.

@tomazzi -> that link will tell you the "huge number of improvements in GCC 6" : https://gcc.gnu.org/gcc-6/changes.html.
I'm insterested in getfem++ (>= 5.1) and its matlab-interface, which is not in the default building process. It has to be build with "--enable-matlab", a path to one of his function and with the libstdc++6 (>= 5.2) library.

Unfortunately, Matlab isn't installed in the "namespace container generated with systemd-nspawn".

Regards.
Last edited by Herumor on 2016-10-01 06:47, edited 2 times in total.
Herumor
 
Posts: 2
Joined: 2016-09-29 19:32

Re: How to build gcc 6 on Debian Jessie

Postby Head_on_a_Stick » 2016-09-30 06:38

Herumor wrote:Do you know about performances (processors + RAM) ?

The performance is native, there are no overheads for a container beyond those required to run the separate userspace instance.

Have a look at LXC as well, that may be even easier for you to set up if you don't need an external internet connection in the container and has the advantage of offering unprivileged containers.

https://wiki.debian.org/LXC
“Controlling complexity is the essence of computer programming."Brian Kernighan

Please read before posting How to report a problem
User avatar
Head_on_a_Stick
 
Posts: 6491
Joined: 2014-06-01 17:46
Location: /dev/chair


Return to Programming

Who is online

Users browsing this forum: No registered users and 3 guests

fashionable