debug
continuous-integration/drone Build is failing
Details
continuous-integration/drone Build is failing
Details
This commit is contained in:
parent
40541cc651
commit
02735ff5e0
|
@ -11,7 +11,7 @@ steps:
|
|||
- name: build
|
||||
image: alpine:latest
|
||||
commands:
|
||||
- apk add g++ texinfo make curl xz xz-dev bash patch isl-dev gmp-dev mpfr-dev libgomp mpc1-dev clang llvm libunwind-static compiler-rt lld
|
||||
- apk add --no-cache g++ texinfo make curl xz-static xz xz-dev bash patch isl-dev gmp-dev mpfr-dev libgomp mpc1-dev clang llvm libunwind-static compiler-rt lld bison linux-headers gettext-dev build-base gettext-static
|
||||
- bash binutils-is-llvm.sh
|
||||
- bash emerald-binutils.sh
|
||||
- bash emerald-sysroot.sh
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
TARGET=aarch64-linux-android
|
||||
export TARGET=aarch64-linux-android
|
||||
export PREFIX=/tmp/"$TARGET"-emerald
|
||||
|
||||
export EMERALD_SCRIPT_DIR=$(dirname "$(realpath "$0")")
|
||||
|
@ -9,10 +9,11 @@ export EMERALD_DL_DIR="$EMERALD_SCRIPT_DIR"/dl
|
|||
|
||||
export CC=clang
|
||||
export CXX=clang++
|
||||
export CFLAGS="-O3"
|
||||
export CFLAGS="-O3 -march=x86-64 -mtune=generic"
|
||||
export CPPFLAGS="$CFLAGS"
|
||||
export CXXFLAGS="$CFLAGS"
|
||||
export LDFLAGS="-llzma -s -w -static --static -rtlib=compiler-rt -unwindlib=libunwind"
|
||||
|
||||
export LDFLAGS="-Wl,--as-needed -L/usr/lib -lintl -llzma -s -w -static --static -rtlib=compiler-rt -unwindlib=libunwind"
|
||||
|
||||
export CFLAGS_FOR_TARGET="$CFLAGS"
|
||||
export CPPFLAGS_FOR_TARGET="$CFLAGS"
|
||||
|
|
|
@ -21,14 +21,19 @@ fi
|
|||
|
||||
cd "$EMERALD_BUILD_DIR"/binutils-"$BINUTILS_VER"
|
||||
|
||||
# Bit of patching
|
||||
sed -i 's|DCL_FGETPOS64 (fgetpos64)||g' gprofng/libcollector/iotrace.c
|
||||
sed -i 's|DCL_FSETPOS (fsetpos)||g' gprofng/libcollector/iotrace.c
|
||||
sed -i 's|DCL_OPEN64 (open64)||g' gprofng/libcollector/iotrace.c
|
||||
|
||||
# Its suggested to run configure from a seperate directory
|
||||
mkdir -vp build && cd "$_"
|
||||
|
||||
# Configuration
|
||||
../configure --target="$TARGET" --prefix="$PREFIX" \
|
||||
--disable-werror --enable-gold \
|
||||
--enable-plugins --disable-nls
|
||||
--enable-plugins --disable-nls || cat config.log
|
||||
|
||||
# Building
|
||||
make -j10
|
||||
make -j$(nproc --all)
|
||||
make install -j1
|
||||
|
|
|
@ -21,6 +21,9 @@ fi
|
|||
|
||||
cd "$EMERALD_BUILD_DIR"/gcc-"$GCC_VER"
|
||||
|
||||
# Download prerequisites
|
||||
./contrib/download_prerequisites
|
||||
|
||||
# Apply patches
|
||||
find "$EMERALD_SCRIPT_DIR"/patches/gcc/"$GCC_VER" -type f -name '*.patch' -exec patch -p0 -i {} \;
|
||||
|
||||
|
@ -39,6 +42,6 @@ mkdir -vp build && cd "$_"
|
|||
--with-bugurl='https://tildegit.org/PeroSar/emerald-gcc/issues'
|
||||
|
||||
# Building
|
||||
make -j10
|
||||
make -j$(nproc --all)
|
||||
export PATH="$PREFIX/bin:$PATH"
|
||||
make install-strip -j1
|
||||
|
|
Loading…
Reference in New Issue