Skip to content

Commit

Permalink
8.2
Browse files Browse the repository at this point in the history
  • Loading branch information
squeaky-pl committed Oct 14, 2018
1 parent 8ad0a7f commit 29278c0
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 26 deletions.
12 changes: 6 additions & 6 deletions build
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,18 @@

set -e

wget https://ftp.gnu.org/gnu/binutils/binutils-2.29.1.tar.gz -O - | tar xz
cd binutils-2.29.1
./configure --prefix=/opt/devtools-7.2/
wget https://ftp.gnu.org/gnu/binutils/binutils-2.31.1.tar.gz -O - | tar xz
cd binutils-2.31.1
./configure --prefix=/opt/devtools-8.2/
make -j4
make install
cd ..

wget https://ftp.gnu.org/gnu/gcc/gcc-7.2.0/gcc-7.2.0.tar.gz -O - | tar xz
wget https://ftp.gnu.org/gnu/gcc/gcc-8.2.0/gcc-8.2.0.tar.gz -O - | tar xz
mkdir -p gcc
cd gcc
ORGLDFLAGS=$LDFLAGS
unset LDFLAGS
../gcc-7.2.0/configure --prefix=/opt/devtools-7.2 --with-gmp=/opt/devtools-7.2 --with-mpfr=/opt/devtools-7.2 --with-mpc=/opt/devtools-7.2 --enable-languages=c,c++ --disable-multilib --with-stage1-ldflags="-L/opt/devtools-7.2/lib64 -Wl,-rpath,/opt/devtools-7.2/lib64 -L/opt/devtools-6.3/lib64 -Wl,-rpath,/opt/devtools-6.3/lib64" --with-boot-ldflags="-L/opt/devtools-7.2/lib64 -Wl,-rpath,/opt/devtools-7.2/lib64"
LD_LIBRARY_PATH="/opt/devtools-6.3/lib64" make -j4
../gcc-8.2.0/configure --prefix=/opt/devtools-8.2 --with-gmp=/opt/devtools-8.2 --with-mpfr=/opt/devtools-8.2 --with-mpc=/opt/devtools-8.2 --enable-languages=c,c++ --disable-multilib --with-stage1-ldflags="-L/opt/devtools-8.2/lib64 -Wl,-rpath,/opt/devtools-8.2/lib64 -L/opt/devtools-7.2/lib64 -Wl,-rpath,/opt/devtools-7.2/lib64" --with-boot-ldflags="-L/opt/devtools-8.2/lib64 -Wl,-rpath,/opt/devtools-8.2/lib64"
LD_LIBRARY_PATH="/opt/devtools-7.2/lib64" make -j4
make install
16 changes: 8 additions & 8 deletions build_deps
Original file line number Diff line number Diff line change
Expand Up @@ -4,28 +4,28 @@ set -e

wget --no-check-certificate http://nixos.org/releases/patchelf/patchelf-0.9/patchelf-0.9.tar.gz -O - | tar xz
cd patchelf-0.9
CXXFLAGS="$CXXFLAGS -static-libstdc++" LDFLAGS="$LDFLAGS -static-libstdc++" ./configure --prefix=/opt/devtools-7.2
CXXFLAGS="$CXXFLAGS -static-libstdc++" LDFLAGS="$LDFLAGS -static-libstdc++" ./configure --prefix=/opt/devtools-8.2
make -j4
make install
cd -

wget http://mirror.internode.on.net/pub/gnu/gmp/gmp-6.1.2.tar.bz2 -O - | tar xj
cd gmp-6.1.2
./configure --prefix=/opt/devtools-7.2 --libdir=/opt/devtools-7.2/lib64
./configure --prefix=/opt/devtools-8.2 --libdir=/opt/devtools-8.2/lib64
make -j4
make install
cd ..

wget http://www.mpfr.org/mpfr-current/mpfr-3.1.6.tar.bz2 -O - | tar xj
cd mpfr-3.1.6
./configure --prefix=/opt/devtools-7.2 --libdir=/opt/devtools-7.2/lib64
wget http://www.mpfr.org/mpfr-current/mpfr-4.0.1.tar.bz2 -O - | tar xj
cd mpfr-4.0.1
./configure --prefix=/opt/devtools-8.2 --libdir=/opt/devtools-8.2/lib64
make -j4
make install
cd ..

wget http://www.multiprecision.org/mpc/download/mpc-1.0.3.tar.gz -O - | tar xz
cd mpc-1.0.3
./configure --prefix=/opt/devtools-7.2 --libdir=/opt/devtools-7.2/lib64
wget http://ftp.gnu.org/gnu/mpc/mpc-1.1.0.tar.gz -O - | tar xz
cd mpc-1.1.0
./configure --prefix=/opt/devtools-8.2 --libdir=/opt/devtools-8.2/lib64
make -j4
make install
cd ..
8 changes: 4 additions & 4 deletions env.list
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
PATH=/opt/devtools-7.2/bin:/opt/devtools-6.3/bin:/opt/prefix/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
CFLAGS=-D__USE_XOPEN2K8 -I/opt/devtools-6.3/include
CPPFLAGS=-D__USE_XOPEN2K8 -I/opt/devtools-6.3/include
LDFLAGS=-L/opt/devtools-7.2/lib64 -L/opt/devtools-6.3/lib64 -Wl,-rpath,/opt/devtools-7.2/lib64 -Wl,-rpath,/opt/devtools-6.3/lib64
PATH=/opt/devtools-8.2/bin:/opt/devtools-7.2/bin:/opt/prefix/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
CFLAGS=-D__USE_XOPEN2K8 -I/opt/devtools-7.2/include
CPPFLAGS=-D__USE_XOPEN2K8 -I/opt/devtools-7.2/include
LDFLAGS=-L/opt/devtools-8.2/lib64 -L/opt/devtools-7.2/lib64 -Wl,-rpath,/opt/devtools-8.2/lib64 -Wl,-rpath,/opt/devtools-7.2/lib64
2 changes: 1 addition & 1 deletion image/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM centos:centos6

RUN yum install -y make wget m4 diffutils bzip2 glibc-devel
RUN wget https://github.com/squeaky-pl/centos-devtools/releases/download/6.3/gcc-6.3.0-binutils-2.27-x86_64.tar.bz2 -O - | tar -C / -xj
RUN wget https://github.com/squeaky-pl/centos-devtools/releases/download/7.2/gcc-7.2.0-binutils-2.29.1-x86_64.tar.bz2 -O - | tar -C / -xj
12 changes: 6 additions & 6 deletions package
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
#!/bin/bash


GCC=$(/opt/devtools-7.2/bin/gcc --version | head -n 1 | awk '{ print $3 }')
BINUTILS=$(/opt/devtools-7.2/bin/ld --version | head -n 1 | awk '{ print $5 }')
GCC=$(/opt/devtools-8.2/bin/gcc --version | head -n 1 | awk '{ print $3 }')
BINUTILS=$(/opt/devtools-8.2/bin/ld --version | head -n 1 | awk '{ print $5 }')

cp -r /opt/devtools-7.2 /opt/devtools-orig
cp -r /opt/devtools-8.2 /opt/devtools-orig

cd /opt/devtools-7.2/bin
cd /opt/devtools-8.2/bin
ln -s gcc cc
cd -

cd /opt/devtools-7.2
cd /opt/devtools-8.2
for i in `find -type f`; do [ -x $i ] && echo "$i"; done | xargs strip
cd -

tar cf - /opt/devtools-7.2 | bzip2 --best - > gcc-$GCC-binutils-$BINUTILS-$(uname -m).tar.bz2
tar cf - /opt/devtools-8.2 | bzip2 --best - > gcc-$GCC-binutils-$BINUTILS-$(uname -m).tar.bz2

2 changes: 1 addition & 1 deletion runopt.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ cat <<EOF
-v `pwd`/build_deps:/src/build_deps
-v `pwd`/build:/src/build
-v `pwd`/package:/src/package
-v `pwd`/devtools:/opt/devtools-7.2
-v `pwd`/devtools:/opt/devtools-8.2
--cpus=4
--env-file env.list
Expand Down

0 comments on commit 29278c0

Please sign in to comment.