LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-17-2017, 12:24 PM   #1
bstamour
LQ Newbie
 
Registered: May 2011
Distribution: Slackware
Posts: 22

Rep: Reputation: 22
GCC Development Snapshots


Hi everyone,

I recently started building slackware packages for the development snapshots of gcc, and thought I'd share them with you.

gcc developers typically release a new snapshop about once a week. I grab them, build them, and package them up so I can test out new C++17 features.

They can be found here: http://janus.bryanstamour.com/gcc-snapshots/

If you do end up downloading and playing with one, let me know how it works for you!
 
Old 01-17-2017, 01:00 PM   #2
a4z
Senior Member
 
Registered: Feb 2009
Posts: 1,727

Rep: Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742
nice, thanks, but I am unsure that it is a good idea to put this to /usr/local and overlay the existing environment
might make it difficult to install packages via sbo

I personal prefer installing trial gcc versions into a custom folder, and have a script to activate it.
so I can test it, but keep a clean system

on a old RHEL 6 32 bit I use this for building

Code:
GCCVERSION=6.3.0

../configure          \
    --prefix=$HOME/local/opt/gcc-$GCCVERSION          \
    --libdir=$HOME/local/opt/gcc-$GCCVERSION/lib      \
    --enable-lto                \
    --disable-nls               \
    --enable-languages=c,c++

make -j$(nproc) && make install
and this for activation of the gcc envrionment

Code:
GCCVERSION=6.3.0

export GCCDIR=$HOME/local/opt/gcc-$GCCVERSION

export LIBDIR=$GCCDIR/lib:/usr/local/lib
export PATH=$GCCDIR/bin:$PATH
export LD_LIBRARY_PATH=$LIBDIR
export C_INCLUDE_PATH=$GCCDIR/include
export CXX_INCLUDE_PATH=$GCCDIR/include/c++/$GCCVERSION

export CC=$GCCDIR/bin/i686-pc-linux-gnu-gcc
export CXX=$GCCDIR/bin/i686-pc-linux-gnu-g++
doing so makes it easy to test several gcc versions in different configurations on 1 system.

maybe you want to put something this in your build? than I don't need to build it self anymore,
 
Old 01-17-2017, 01:01 PM   #3
bstamour
LQ Newbie
 
Registered: May 2011
Distribution: Slackware
Posts: 22

Original Poster
Rep: Reputation: 22
Hrm, good ideas. I think I'll work that into my build script so the packages can be installed concurrently. Thanks for the pointer!
 
1 members found this post helpful.
Old 01-18-2017, 08:46 AM   #4
bstamour
LQ Newbie
 
Registered: May 2011
Distribution: Slackware
Posts: 22

Original Poster
Rep: Reputation: 22
I fixed up my build script to put each compiler version into its own directory under /opt, so you can have multiple versions at the same time. I am rebuilding all of my packages now, but the one that is up there now (gcc-7-20170115) should be fine to play around with.

Thanks again for the tips, and if you do end up using my packages, please let me know how you find them!
 
Old 01-18-2017, 12:48 PM   #5
a4z
Senior Member
 
Registered: Feb 2009
Posts: 1,727

Rep: Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742
Quote:
Originally Posted by bstamour View Post
I fixed up my build script to put each compiler version into its own directory under /opt, so you can have multiple versions at the same time. I am rebuilding all of my packages now, but the one that is up there now (gcc-7-20170115) should be fine to play around with.

Thanks again for the tips, and if you do end up using my packages, please let me know how you find them!
thanks! will try it out on the weekend.
 
  


Reply

Tags
gcc, packages



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Ubuntu 17.04 "Zesty Zapus" Is Open for Development, GCC Linaro Used for ARM Port LXer Syndicated Linux News 0 10-24-2016 04:50 PM
snapshots Nitish068 Linux - Software 2 10-10-2009 10:36 PM
Dont understand how to install kernel development packages and gcc Hollomankilla Linux - Newbie 3 10-22-2007 11:21 PM
question on snapshots mortal *BSD 1 08-23-2007 05:54 PM
ati driver gcc problems - which development tools cjae Linux - Newbie 1 04-11-2005 12:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 11:28 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration