Skip to content

Commit 3d20534

Browse files
committed
debug
1 parent 8d8101c commit 3d20534

File tree

1 file changed

+14
-12
lines changed

1 file changed

+14
-12
lines changed

.ci/scripts/wheel/pre_build_script.sh

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -45,36 +45,38 @@ fi
4545

4646
"${GITHUB_WORKSPACE}/${REPOSITORY}/install_requirements.sh" --example
4747

48-
# Print GCC version (just the number)
4948
echo "GCC version: $(gcc -dumpfullversion)"
5049

51-
# Version / directories
5250
GLIBC_VERSION=2.29
53-
PREFIX=/tmp/glibc-$GLIBC_VERSION
51+
PREFIX=/tmp/glibc-install-$GLIBC_VERSION
5452
BUILD_DIR=/tmp/glibc-build
5553
TARBALL=/tmp/glibc-$GLIBC_VERSION.tar.xz
5654
SRC_DIR=/tmp/glibc-$GLIBC_VERSION
5755

58-
# Clean old dirs/files if they exist
5956
rm -rf "$PREFIX" "$BUILD_DIR" "$SRC_DIR" "$TARBALL"
6057
mkdir -p "$BUILD_DIR"
6158

62-
# Download source tarball into /tmp
6359
MIRROR=https://ftpmirror.gnu.org/gnu/libc
6460
curl -L "$MIRROR/glibc-$GLIBC_VERSION.tar.xz" -o "$TARBALL"
6561

66-
# Extract into /tmp
6762
tar -C /tmp -xf "$TARBALL"
6863

69-
# Configure with relaxed flags
7064
cd "$BUILD_DIR"
71-
CFLAGS="-O2 -fPIC -fcommon -Wno-error=array-parameter -Wno-error=stringop-overflow -Wno-error" \
72-
../glibc-$GLIBC_VERSION/configure --prefix="$PREFIX"
7365

74-
# Build & install
75-
make -j"$(nproc)" CFLAGS="$CFLAGS"
66+
../glibc-$GLIBC_VERSION/configure \
67+
--prefix="$PREFIX" \
68+
--without-selinux \
69+
CFLAGS="-O2 -fPIC -fcommon \
70+
-Wno-error=array-parameter \
71+
-Wno-error=array-bounds \
72+
-Wno-error=maybe-uninitialized \
73+
-Wno-error=zero-length-bounds \
74+
-Wno-error=stringop-overflow \
75+
-Wno-error=deprecated-declarations \
76+
-Wno-error"
77+
78+
make -j"$(nproc)"
7679
make install
7780

78-
# Quick check
7981
"$PREFIX/lib/ld-2.29.so" --version || true
8082
"$PREFIX/lib/libc.so.6" --version || true

0 commit comments

Comments
 (0)