Skip to content

Commit 5f2dd15

Browse files
committed
[DEBUG] Fixed critical GCC 10.2.0 PATH_MAX undefined bug
1 parent 732a9ed commit 5f2dd15

File tree

4 files changed

+16
-0
lines changed

4 files changed

+16
-0
lines changed

build-scripts/CI/CIBB_32b

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,10 @@ if [ ! -d "gcc-$GCC_VERSION" ]; then
160160
fi
161161
tar xf gcc-$GCC_VERSION.tar.gz
162162
cd gcc-$GCC_VERSION || exit
163+
if [ "$GCC_VERSION" = "10.2.0" ]; then
164+
echo "Applying GCC patch!"
165+
sed -i -e '66i#define PATH_MAX 4096\' libsanitizer/asan/asan_linux.cpp
166+
fi
163167
mkdir -p build
164168
if [ "$GCC_VERSION" = "6.3.0" ]; then
165169
sed -i contrib/download_prerequisites -e 's/ftp/http/'

build-scripts/CI/CIBB_64b

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,10 @@ if [ ! -d "gcc-$GCC_VERSION" ]; then
141141
fi
142142
tar xf gcc-$GCC_VERSION.tar.gz
143143
cd gcc-$GCC_VERSION || exit
144+
if [ "$GCC_VERSION" = "10.2.0" ]; then
145+
echo "Applying GCC patch!"
146+
sed -i -e '66i#define PATH_MAX 4096\' libsanitizer/asan/asan_linux.cpp
147+
fi
144148
mkdir -p build
145149
if [ "$GCC_VERSION" = "6.3.0" ]; then
146150
sed -i contrib/download_prerequisites -e 's/ftp/http/'

build-scripts/RTBuilder_32b

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,10 @@ if [ ! -d "gcc-$GCCBASE_VERSION" ]; then
172172
if [ ! -f "gcc-$GCCBASE_VERSION.tar.gz" ]; then wget -q --no-check-certificate https://ftp.gnu.org/gnu/gcc/gcc-$GCCBASE_VERSION/gcc-$GCCBASE_VERSION.tar.gz; fi
173173
tar xf gcc-$GCCBASE_VERSION.tar.gz
174174
cd gcc-$GCCBASE_VERSION || exit
175+
if [ "$GCCBASE_VERSION" = "10.2.0" ]; then
176+
echo "Applying GCC patch!"
177+
sed -i -e '66i#define PATH_MAX 4096\' libsanitizer/asan/asan_linux.cpp
178+
fi
175179
mkdir -p build
176180
if [ "$GCCBASE_VERSION" = "6.3.0" ]; then
177181
sed -i contrib/download_prerequisites -e 's/ftp/http/'

build-scripts/RTBuilder_64b

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,10 @@ if [ ! -d "gcc-$GCCBASE_VERSION" ]; then
153153
fi
154154
tar xf gcc-$GCCBASE_VERSION.tar.gz
155155
cd gcc-$GCCBASE_VERSION || exit
156+
if [ "$GCCBASE_VERSION" = "10.2.0" ]; then
157+
echo "Applying GCC patch!"
158+
sed -i -e '66i#define PATH_MAX 4096\' libsanitizer/asan/asan_linux.cpp
159+
fi
156160
mkdir -p build
157161
if [ "$GCCBASE_VERSION" = "6.3.0" ]; then
158162
sed -i contrib/download_prerequisites -e 's/ftp/http/'

0 commit comments

Comments
 (0)