Not a member yet? Why not Sign up today
Create an account  

  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 
XanMod with GCC-7 (updated links for installation help are available at first post)

#1
Exclamation 
Exclamation Exclamation Exclamation
Instructions to get GCC-7 from XanMod repository (Debian Sid backport), preferred way:
https://xanmod.org/#gcc-7_repository
https://forum.xanmod.org/thread-5-post-2...ml#pid2867

Exclamation Exclamation Exclamation
Instructions to get GCC-7 from ToolChain repositories:
https://forum.xanmod.org/thread-5-post-2...ml#pid2220


---------------------
Xan, the site linked below says that "if you are using proprietary drivers, you will need gcc-5 from this repo (...) (and dont forget to set it up as default gcc)": https://voat.co/v/Linux/comments/732282 I think it's a typo or something. :-X
"(...) the grandest occasion the past or present has seen, or the future can hope to see." -- Cervantes.

#2
(24-12-2015, 04:28 AM)tropic link Wrote:Xan, the site linked below says that "if you are using proprietary drivers, you will need gcc-5 from this repo (...) (and dont forget to set it up as default gcc)":
https://voat.co/v/Linux/comments/732282
I think it's a typo or something. :-X

Yes, it takes 5 gcc to compile the dkms modules of proprietary drivers. Particularity i recommend to use latest open source video for intel's and amd's from padoka ppa: https://launchpad.net/~paulo-miguel-dias...buntu/mesa

#3
* Advice: the instructions to install latest GCC-6.x and G++-6.x packages in order to be ready to use the recent xanmod-gcc-6 releases or to compile yourself the xanmod kernel from the available sources are at the below link -- probably you will need it also for the dksm module for their respective propietary drivers:

https://forum.xanmod.org/thread-5-post-1...ml#pid1866


* These other instructions are to install GCC 5.3.0, probably good enough to be employed with the kernels from the old xanmod-gcc-5 series with their drivers -- however, GCC 5.3.1 is available at the below link at the PPA from our member Tigerite's -- please, just notice that the latest version from the 5.x series is by now the 5.4.1 (september 5, 2016), so it's better to receive new updates from Toolchain instead.
https://forum.xanmod.org/thread-5-post-427.html#pid427

* There is also some related information that will help you to understand the common 'post-install' procedures with easy manual settings for 'update-alternatives' to set priorities and their selections:
Code:
$ sudo apt-get install build-essential python-software-properties
$ sudo add-apt-repository ppa:ubuntu-toolchain-r/test
$ sudo apt-get update && sudo apt-get install gcc-5

Now we need to stablish the priority for the installed versions of gcc... I have gcc-5/4.9/4.8 from newer to older, so the followed structure is the next one (it should be easy for you to stablish your own structure according to your gcc versions and also your particular needs, just look the commands used):
Code:
$ sudo update-alternatives --remove-all gcc
$ sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-5 30
$ sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.9 20
$ sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 10

To change the version of gcc that will work in our computer for the current session (automatic mode is always chosen by default if nothing manual is selected):
Code:
$ sudo update-alternatives --config gcc
Selection Path Priority Status
------------------------------------------------------------
* 0  /usr/bin/gcc-5 30 automatic mode
1  /usr/bin/gcc-4.8  10 manual mode
2  /usr/bin/gcc-4.9  20 manual mode
3  /usr/bin/gcc-5 30 manual mode
# just to see what version of gcc is running
$ gcc -v
gcc version 5.3.0 20151204 (Ubuntu 5.3.0-3ubuntu1~14.04)
# just to get more updates from released branches of gcc
$ sudo add-apt-repository ppa:ubuntu-toolchain-r/ppa && sudo apt-get update

If one or both PPAs need to be removed for any weird reason:
Code:
$ sudo apt-get install ppa-purge
$ sudo ppa-purge ppa:ubuntu-toolchain-r/test
$ sudo ppa-purge ppa:ubuntu-toolchain-r/ppa
http://itsfoss.com/how-to-remove-or-dele...quick-tip/
Smile

https://wiki.ubuntu.com/ToolChain
https://launchpad.net/~ubuntu-toolchain-...buntu/test
https://launchpad.net/~ubuntu-toolchain-...ubuntu/ppa

Thank you very much for your attention. Smile
"(...) the grandest occasion the past or present has seen, or the future can hope to see." -- Cervantes.

#4
What about gcc-6? Wink
Code:
  Selection    Path            Priority   Status
------------------------------------------------------------
* 0            /usr/bin/gcc-6   30        auto mode
  1            /usr/bin/gcc-5   20        manual mode
  2            /usr/bin/gcc-6   30        manual mode
Code:
:~$ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/6/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 6-20151221-0ubuntu1' --with-bugurl=file:///usr/share/doc/gcc-6/README.Bugs --enable-languages=c,ada,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-6 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-libmpx --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-6-amd64/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-6-amd64 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-6-amd64 --with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 6.0.0 20151221 (experimental) [trunk revision 231881] (Ubuntu 6-20151221-0ubuntu1)
"Everything has been thought of before, but the problem is to think of it again.“Goethe

#5
gcc6 is still in general bugfixing, stage 3, and it's only available for Xenial in the PPA. Tongue
https://gcc.gnu.org/
"(...) the grandest occasion the past or present has seen, or the future can hope to see." -- Cervantes.

#6
(26-12-2015, 06:54 AM)zika link Wrote:What about gcc-6? Wink

Early to consider it, look forward to stable version.

#7
This discussion thread was great,It solved my problem.
目前工作範疇,網路管理員、tcp優化工程

#8
Some at gcc-6 already ! I m late in the wagon:

Code:
gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/5/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Debian 5.3.1-5' --with-bugurl=file:///usr/share/doc/gcc-5/README.Bugs --enable-languages=c,ada,c++,java,go,d,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-5 --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-libmpx --enable-plugin --with-system-zlib --disable-browser-plugin --enable-java-awt=gtk --enable-gtk-cairo --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-5-amd64/jre --enable-java-home --with-jvm-root-dir=/usr/lib/jvm/java-1.5.0-gcj-5-amd64 --with-jvm-jar-dir=/usr/lib/jvm-exports/java-1.5.0-gcj-5-amd64 --with-arch-directory=amd64 --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-objc-gc --enable-multiarch --with-arch-32=i586 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 5.3.1 20160101 (Debian 5.3.1-5)

#9
(10-01-2016, 03:12 AM)altman link Wrote:Some at gcc-6 already ! I m late in the wagon:

Altman, ggc-6 is still not yet available in stable release. :-X
"(...) the grandest occasion the past or present has seen, or the future can hope to see." -- Cervantes.

#10
(16-02-2016, 04:49 PM)AlbertSync link Wrote:(...)*
* spam link, like famous places Tongue
"(...) the grandest occasion the past or present has seen, or the future can hope to see." -- Cervantes.

#11
I've created a PPA for GCC-5, it is 5.3.1 from Xenial. You can find it at ppa:tigerite/gcc Wink there's also a gcc-5-update-alternatives package, which simply sets GCC-5 as the default with update-alternatives, as the name suggests.

#12
(19-02-2016, 03:03 PM)Tigerite link Wrote:I've created a PPA for GCC-5, it is 5.3.1 from Xenial. You can find it at ppa:tigerite/gcc Wink there's also a gcc-5-update-alternatives package, which simply sets GCC-5 as the default with update-alternatives, as the name suggests.

Thank you very much Tigerite, great job! May you add the link to your PPA, please? Big Grin
Edit: I have found it https://launchpad.net/~tigerite/+archive/ubuntu/kernel
"(...) the grandest occasion the past or present has seen, or the future can hope to see." -- Cervantes.

#13
Well, this is a brief post to install GCC 5.3.1 with the PPA provided by Tigerite:
https://launchpad.net/~tigerite/+archive/ubuntu/kernel

Code:
~$ sudo add-apt-repository ppa:tigerite/kernel
~$ sudo apt-get update
~$ sudo apt-get install gcc-5

Example on how to configure update-alternatives if GCC-5, 4.9 and 4.8 are installed and priority is set from newer to older versions (just see the structure and make yours):
Code:
# if you have set GCC 5.3.0 update-alternatives before, then you don't need to set them again
# you also can do this automatically with gcc-5-update-alternatives-1.0-2 package from PPA
*
~$ sudo update-alternatives --remove-all gcc
~$ sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-5 30
~$ sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.9 20
~$ sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 10
Code:
~$ gcc -v
gcc version 5.3.1 20160205 (Ubuntu 5.3.1-8ubuntu5)

Just to see the installed versions and the priorities:
Code:
~$ sudo update-alternatives --config gcc
------------------------------------------------------------------------
* 0            /usr/bin/gcc-5     30  modo automatico
  1            /usr/bin/gcc-4.8   10  modo manual
  2            /usr/bin/gcc-4.9   20  modo manual
  3            /usr/bin/gcc-5     30   modo manual

If remove is needed for whatever reason:
Code:
~$ sudo apt-get install ppa-purge
~$ sudo ppa-purge ppa:tigerite/kernel
http://itsfoss.com/how-to-remove-or-dele...quick-tip/
Edit: there are other ways to manage the PPA (i.e. Y-PPA manager), just proceed.

This PPA worked for me like a charm! Absolutely good job, Tigerite! Big Grin
Edit2: this is an amazing backport of GCC 5.3.1 from Xenial for Trusty.
"(...) the grandest occasion the past or present has seen, or the future can hope to see." -- Cervantes.

#14
Yes apologies for the confusion. I moved it into the kernel PPA as it depends on the package to build anyway, and it made more sense to have everything in one place. There's a duplicate of the gcc package at ppa:tigerite/mint-xorg-update as well, but I only recommend adding that one if you want the newest graphics stack (it took a lot of work to backport everything).

#15
Please, don't worry Tigerite. Thank you very much again for the good work!  Smile
"(...) the grandest occasion the past or present has seen, or the future can hope to see." -- Cervantes.

#16
Tigerite's PPA GCC 5.3.1 has been updated. Smile
http://xanmod.org/forum/index.php/topic,...tml#msg476
Code:
#updated packages
cpp-5 g++-5 gcc-5 gcc-5-base gcc-5-base:i386 libasan2 libatomic1 libcc1-0
  libcilkrts5 libgcc-5-dev libgcc1 libgcc1:i386 libgfortran3 libgomp1 libitm1
  liblsan0 libmpx0 libobjc4 libquadmath0 libstdc++-5-dev libstdc++6
  libstdc++6:i386 libtsan0 libubsan0
"(...) the grandest occasion the past or present has seen, or the future can hope to see." -- Cervantes.

#17
Updated the instructions to get the new GCC-6 packages. Smile
https://forum.xanmod.org/thread-5-post-42.html#pid42
Edit: the entire reading of this topic is recommended.
"(...) the grandest occasion the past or present has seen, or the future can hope to see." -- Cervantes.

#18
(13-05-2016, 04:04 PM)tropic link Wrote:Updated the instructions to get the new GCC-6 packages. Smile
http://xanmod.org/forum/index.php/topic,...html#msg38
Edit: the entire reading of this topic is recommended.

I'm currently testing a build with gcc 6.1.1. Will be released soon!  Wink

Download in Mega.nz/testing/4.5.4-xanmod8

#19
Quote:I'm currently testing a build with gcc 6.1.1. Will be released soon!  Wink

All is working fine here with the first kernel from 'xanmod-gcc6' series. 8)
Code:
$ uname -a
Linux tropic 4.5.4-xanmod8 #1 SMP Fri May 13 15:40:23 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
$ cat /proc/version
Linux version 4.5.4-xanmod8 (root@BabyMachine) (gcc version 6.1.1 20160510 (Ubuntu 6.1.1-2ubuntu12~16.04) ) #1 SMP Fri May 13 15:40:23 UTC 2016
"(...) the grandest occasion the past or present has seen, or the future can hope to see." -- Cervantes.

#20
Some news from GCC-6 according to Xan's upcoming releases! 8)
(23-05-2016, 11:21 PM)Xan link Wrote: Now all new builds will be with GCC 6.  Wink
"(...) the grandest occasion the past or present has seen, or the future can hope to see." -- Cervantes.



Forum Jump:


Users browsing this thread:
1 Guest(s)