Skip to content

Commit effb592

Browse files
committed
fix polarx compile failed by protobuf gcc version issue
1 parent 7afbde7 commit effb592

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

build.sh

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ echo " with assertion enabled, and then build"
99
echo " debug: configure the build with debug options and then"
1010
echo " build."
1111
echo " repeat: skip configure, just build and install"
12-
echo ""
12+
echo ""
1313

1414
set -e
1515
pushd "$( dirname "${BASH_SOURCE[0]}" )"
@@ -67,7 +67,19 @@ bash ./build.sh -r -t release
6767
fi
6868
cd $CODEHOME
6969

70-
make -sj 16
70+
function error_retry {
71+
echo "Paxos library build failed, try again!"
72+
cd $CODEHOME/src/backend/polar_dma/libconsensus/polar_wrapper
73+
if [[ "$BLD_OPT" == "debug" ]]; then
74+
bash ./build.sh -r -t debug -c ON
75+
else
76+
bash ./build.sh -r -t release -c ON
77+
fi
78+
cd $CODEHOME
79+
make -sj 16
80+
}
81+
82+
make -sj 16 || error_retry "build retry!"
7183
make install
7284

7385
# extensions

0 commit comments

Comments
 (0)