Skip to content

Commit

Permalink
[DEBUG] Fixed critical GCC 10.2.0 PATH_MAX undefined bug
Browse files Browse the repository at this point in the history
  • Loading branch information
abhiTronix committed Dec 5, 2021
1 parent 732a9ed commit 5f2dd15
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 0 deletions.
4 changes: 4 additions & 0 deletions build-scripts/CI/CIBB_32b
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,10 @@ if [ ! -d "gcc-$GCC_VERSION" ]; then
fi
tar xf gcc-$GCC_VERSION.tar.gz
cd gcc-$GCC_VERSION || exit
if [ "$GCC_VERSION" = "10.2.0" ]; then
echo "Applying GCC patch!"
sed -i -e '66i#define PATH_MAX 4096\' libsanitizer/asan/asan_linux.cpp
fi
mkdir -p build
if [ "$GCC_VERSION" = "6.3.0" ]; then
sed -i contrib/download_prerequisites -e 's/ftp/http/'
Expand Down
4 changes: 4 additions & 0 deletions build-scripts/CI/CIBB_64b
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,10 @@ if [ ! -d "gcc-$GCC_VERSION" ]; then
fi
tar xf gcc-$GCC_VERSION.tar.gz
cd gcc-$GCC_VERSION || exit
if [ "$GCC_VERSION" = "10.2.0" ]; then
echo "Applying GCC patch!"
sed -i -e '66i#define PATH_MAX 4096\' libsanitizer/asan/asan_linux.cpp
fi
mkdir -p build
if [ "$GCC_VERSION" = "6.3.0" ]; then
sed -i contrib/download_prerequisites -e 's/ftp/http/'
Expand Down
4 changes: 4 additions & 0 deletions build-scripts/RTBuilder_32b
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,10 @@ if [ ! -d "gcc-$GCCBASE_VERSION" ]; then
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
tar xf gcc-$GCCBASE_VERSION.tar.gz
cd gcc-$GCCBASE_VERSION || exit
if [ "$GCCBASE_VERSION" = "10.2.0" ]; then
echo "Applying GCC patch!"
sed -i -e '66i#define PATH_MAX 4096\' libsanitizer/asan/asan_linux.cpp
fi
mkdir -p build
if [ "$GCCBASE_VERSION" = "6.3.0" ]; then
sed -i contrib/download_prerequisites -e 's/ftp/http/'
Expand Down
4 changes: 4 additions & 0 deletions build-scripts/RTBuilder_64b
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,10 @@ if [ ! -d "gcc-$GCCBASE_VERSION" ]; then
fi
tar xf gcc-$GCCBASE_VERSION.tar.gz
cd gcc-$GCCBASE_VERSION || exit
if [ "$GCCBASE_VERSION" = "10.2.0" ]; then
echo "Applying GCC patch!"
sed -i -e '66i#define PATH_MAX 4096\' libsanitizer/asan/asan_linux.cpp
fi
mkdir -p build
if [ "$GCCBASE_VERSION" = "6.3.0" ]; then
sed -i contrib/download_prerequisites -e 's/ftp/http/'
Expand Down

0 comments on commit 5f2dd15

Please sign in to comment.