travis-ci: hide GCC & newlib output on success
This commit is contained in:
parent
da775be6fd
commit
5e6f606295
|
@ -32,8 +32,20 @@ usyscalls header $JEHANNE/sys/src/sysconf.json > $JEHANNE/arch/amd64/include/sys
|
||||||
# create a GCC crosscompiler in Debian without requiring root access or Tex.
|
# create a GCC crosscompiler in Debian without requiring root access or Tex.
|
||||||
# And this despite the extreme quality of Debian GNU/Linux!
|
# And this despite the extreme quality of Debian GNU/Linux!
|
||||||
|
|
||||||
|
echo -n Building cross toolchain.
|
||||||
|
(
|
||||||
|
# Inside parentheses, and therefore a subshell . . .
|
||||||
|
while [ 1 ] # Endless loop.
|
||||||
|
do
|
||||||
|
echo -n "."
|
||||||
|
sleep 3
|
||||||
|
done
|
||||||
|
) &
|
||||||
|
dotter=$!
|
||||||
|
date > cross-toolchain.build.log
|
||||||
|
|
||||||
# fetch all sources
|
# fetch all sources
|
||||||
(cd src && fetch)
|
(cd src && fetch) >> cross-toolchain.build.log 2>&1
|
||||||
|
|
||||||
# To create a Jehanne version of GCC, we need specific OUTDATED versions
|
# To create a Jehanne version of GCC, we need specific OUTDATED versions
|
||||||
# of Autotools that won't compile easily in a modern Linux distro.
|
# of Autotools that won't compile easily in a modern Linux distro.
|
||||||
|
@ -43,11 +55,14 @@ function failOnError {
|
||||||
# $2 -> task description
|
# $2 -> task description
|
||||||
if [ $1 -ne 0 ]; then
|
if [ $1 -ne 0 ]; then
|
||||||
echo "ERROR $2"
|
echo "ERROR $2"
|
||||||
|
echo
|
||||||
|
echo BUILD LOG:
|
||||||
|
echo
|
||||||
|
cat cross-toolchain.build.log
|
||||||
exit $1
|
exit $1
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
# build m4 1.4.14
|
# build m4 1.4.14
|
||||||
# - workaround a bug in lib/stdio.in.h, see http://lists.gnu.org/archive/html/bug-m4/2012-08/msg00008.html
|
# - workaround a bug in lib/stdio.in.h, see http://lists.gnu.org/archive/html/bug-m4/2012-08/msg00008.html
|
||||||
# - workaround a bug in src/m4.h, see https://bugs.archlinux.org/task/19829
|
# - workaround a bug in src/m4.h, see https://bugs.archlinux.org/task/19829
|
||||||
|
@ -59,7 +74,7 @@ if [ ! -f tmp/bin/m4 ]; then
|
||||||
( grep -q '#include <sys/stat.h>' src/m4.h || sed -i 's:.*\#include <sys/types\.h>.*:&\n#include <sys/stat.h>:g' src/m4.h ) &&
|
( grep -q '#include <sys/stat.h>' src/m4.h || sed -i 's:.*\#include <sys/types\.h>.*:&\n#include <sys/stat.h>:g' src/m4.h ) &&
|
||||||
./configure --prefix=$JEHANNE/hacking/cross/tmp &&
|
./configure --prefix=$JEHANNE/hacking/cross/tmp &&
|
||||||
make && make install
|
make && make install
|
||||||
)
|
) >> cross-toolchain.build.log 2>&1
|
||||||
failOnError $? "building m4"
|
failOnError $? "building m4"
|
||||||
fi
|
fi
|
||||||
# build autoconf 2.64
|
# build autoconf 2.64
|
||||||
|
@ -76,7 +91,7 @@ if [ ! -f tmp/bin/autoconf ]; then
|
||||||
cp ../../patch/MakeNothing.in ../autoconf/doc/Makefile.in &&
|
cp ../../patch/MakeNothing.in ../autoconf/doc/Makefile.in &&
|
||||||
cp ../../patch/MakeNothing.in ../autoconf/man/Makefile.in &&
|
cp ../../patch/MakeNothing.in ../autoconf/man/Makefile.in &&
|
||||||
make && make install
|
make && make install
|
||||||
)
|
) >> cross-toolchain.build.log 2>&1
|
||||||
failOnError $? "building autoconf"
|
failOnError $? "building autoconf"
|
||||||
fi
|
fi
|
||||||
# build automake 1.11.1
|
# build automake 1.11.1
|
||||||
|
@ -96,7 +111,7 @@ if [ ! -f tmp/bin/automake ]; then
|
||||||
cp ../../patch/MakeNothing.in doc/Makefile.in &&
|
cp ../../patch/MakeNothing.in doc/Makefile.in &&
|
||||||
cp ../../patch/MakeNothing.in tests/Makefile.in &&
|
cp ../../patch/MakeNothing.in tests/Makefile.in &&
|
||||||
make && make install
|
make && make install
|
||||||
)
|
) >> cross-toolchain.build.log 2>&1
|
||||||
failOnError $? "building automake"
|
failOnError $? "building automake"
|
||||||
fi
|
fi
|
||||||
# build libtool 2.4
|
# build libtool 2.4
|
||||||
|
@ -105,7 +120,7 @@ if [ ! -f tmp/bin/libtool ]; then
|
||||||
cd src/libtool &&
|
cd src/libtool &&
|
||||||
./configure --prefix=$JEHANNE/hacking/cross/tmp &&
|
./configure --prefix=$JEHANNE/hacking/cross/tmp &&
|
||||||
make && make install
|
make && make install
|
||||||
)
|
) >> cross-toolchain.build.log 2>&1
|
||||||
failOnError $? "building libtool"
|
failOnError $? "building libtool"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -156,7 +171,7 @@ if [ ! -f toolchain/bin/x86_64-jehanne-ar ]; then
|
||||||
cp $CROSS_DIR/patch/MakeNothing.in $CROSS_DIR/src/binutils/binutils/doc/Makefile &&
|
cp $CROSS_DIR/patch/MakeNothing.in $CROSS_DIR/src/binutils/binutils/doc/Makefile &&
|
||||||
make MAKEINFO=true MAKEINFOHTML=true TEXI2DVI=true TEXI2PDF=true DVIPS=true &&
|
make MAKEINFO=true MAKEINFOHTML=true TEXI2DVI=true TEXI2PDF=true DVIPS=true &&
|
||||||
make MAKEINFO=true MAKEINFOHTML=true TEXI2DVI=true TEXI2PDF=true DVIPS=true install
|
make MAKEINFO=true MAKEINFOHTML=true TEXI2DVI=true TEXI2PDF=true DVIPS=true install
|
||||||
)
|
) >> cross-toolchain.build.log 2>&1
|
||||||
failOnError $? "building binutils"
|
failOnError $? "building binutils"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -188,8 +203,12 @@ fi
|
||||||
# &&
|
# &&
|
||||||
# make MAKEINFO=true MAKEINFOHTML=true TEXI2DVI=true TEXI2PDF=true DVIPS=true all-target-libstdc++-v3 &&
|
# make MAKEINFO=true MAKEINFOHTML=true TEXI2DVI=true TEXI2PDF=true DVIPS=true all-target-libstdc++-v3 &&
|
||||||
# make MAKEINFO=true MAKEINFOHTML=true TEXI2DVI=true TEXI2PDF=true DVIPS=true install-target-libstdc++-v3
|
# make MAKEINFO=true MAKEINFOHTML=true TEXI2DVI=true TEXI2PDF=true DVIPS=true install-target-libstdc++-v3
|
||||||
)
|
) >> cross-toolchain.build.log 2>&1
|
||||||
failOnError $? "building gcc"
|
failOnError $? "building gcc"
|
||||||
|
|
||||||
# add sh
|
# add sh
|
||||||
ln -sf /bin/bash $JEHANNE/hacking/cross/toolchain/bin/x86_64-jehanne-sh
|
ln -sf /bin/bash $JEHANNE/hacking/cross/toolchain/bin/x86_64-jehanne-sh
|
||||||
|
|
||||||
|
kill $dotter
|
||||||
|
wait $dotter 2>/dev/null
|
||||||
|
|
||||||
|
|
|
@ -31,9 +31,22 @@ export NEWLIB_SRC=$NEWLIB/src/
|
||||||
export NEWLIB_BUILD=$NEWLIB/build/
|
export NEWLIB_BUILD=$NEWLIB/build/
|
||||||
export NEWLIB_PREFIX=$NEWLIB/output/
|
export NEWLIB_PREFIX=$NEWLIB/output/
|
||||||
|
|
||||||
|
echo -n Building newlib.
|
||||||
|
(
|
||||||
|
# Inside parentheses, and therefore a subshell . . .
|
||||||
|
while [ 1 ] # Endless loop.
|
||||||
|
do
|
||||||
|
echo -n "."
|
||||||
|
sleep 3
|
||||||
|
done
|
||||||
|
) &
|
||||||
|
dotter=$!
|
||||||
|
|
||||||
function failOnError {
|
function failOnError {
|
||||||
# $1 -> exit status on a previous command
|
# $1 -> exit status on a previous command
|
||||||
# $2 -> task description
|
# $2 -> task description
|
||||||
|
kill $dotter
|
||||||
|
wait $dotter 2>/dev/null
|
||||||
if [ $1 -ne 0 ]; then
|
if [ $1 -ne 0 ]; then
|
||||||
echo "ERROR $2"
|
echo "ERROR $2"
|
||||||
if [ "$TRAVIS_BUILD_DIR" != "" ]; then
|
if [ "$TRAVIS_BUILD_DIR" != "" ]; then
|
||||||
|
@ -41,6 +54,7 @@ function failOnError {
|
||||||
echo "CONFIG.LOG @ $NEWLIB_BUILD/config.log"
|
echo "CONFIG.LOG @ $NEWLIB_BUILD/config.log"
|
||||||
echo
|
echo
|
||||||
cat $NEWLIB_BUILD/config.log
|
cat $NEWLIB_BUILD/config.log
|
||||||
|
cat newlib.build.log
|
||||||
fi
|
fi
|
||||||
exit $1
|
exit $1
|
||||||
fi
|
fi
|
||||||
|
@ -70,5 +84,8 @@ export CFLAGS_FOR_TARGET="-g -gdwarf-2 -ggdb -O$NEWLIB_OPTIMIZATION"
|
||||||
echo "Newlib headers installed at $JEHANNE/sys/posix/newlib/" &&
|
echo "Newlib headers installed at $JEHANNE/sys/posix/newlib/" &&
|
||||||
mv $NEWLIB_PREFIX/x86_64-jehanne/lib/ $JEHANNE/arch/amd64/lib/newlib/ &&
|
mv $NEWLIB_PREFIX/x86_64-jehanne/lib/ $JEHANNE/arch/amd64/lib/newlib/ &&
|
||||||
echo "Newlib libraries installed at $JEHANNE/arch/amd64/lib/newlib/"
|
echo "Newlib libraries installed at $JEHANNE/arch/amd64/lib/newlib/"
|
||||||
)
|
) >> newlib.build.log
|
||||||
failOnError $? "building newlib"
|
failOnError $? "building newlib"
|
||||||
|
|
||||||
|
kill $dotter
|
||||||
|
wait $dotter 2>/dev/null
|
||||||
|
|
Loading…
Reference in New Issue