Skip to content
This repository was archived by the owner on Feb 28, 2023. It is now read-only.

Commit 69471b4

Browse files
committed
common-apps: retry gcc libs
1 parent 3958055 commit 69471b4

File tree

1 file changed

+19
-3
lines changed

1 file changed

+19
-3
lines changed

scripts/common-apps-functions-source.sh

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -947,9 +947,25 @@ function build_gcc_final()
947947
# to accomodate for the huge files.
948948
run_verbose make -j 1 INHIBIT_LIBC_CFLAGS="-DUSE_TM_CLONE_REGISTRY=0" all-gcc
949949

950-
# Compile the libraries.
951-
run_verbose make -j ${JOBS} INHIBIT_LIBC_CFLAGS="-DUSE_TM_CLONE_REGISTRY=0"
952-
# make INHIBIT_LIBC_CFLAGS="-DUSE_TM_CLONE_REGISTRY=0"
950+
if [ "${TARGET_PLATFORM}" == "darwin" ]
951+
then
952+
if [ "${IS_DEVELOP}" == "y" ]
953+
then
954+
# Compile the libraries.
955+
run_verbose make -j ${JOBS} INHIBIT_LIBC_CFLAGS="-DUSE_TM_CLONE_REGISTRY=0"
956+
else
957+
# Retry, parallel builds do fail, headers are probably
958+
# used before being installed. For example:
959+
# libstdc++-v3/include/chrono:43:10: fatal error: bits/parse_numbers.h: No such file or directory
960+
run_verbose make -j ${JOBS} INHIBIT_LIBC_CFLAGS="-DUSE_TM_CLONE_REGISTRY=0" \
961+
|| run_verbose make -j ${JOBS} INHIBIT_LIBC_CFLAGS="-DUSE_TM_CLONE_REGISTRY=0" \
962+
|| run_verbose make -j ${JOBS} INHIBIT_LIBC_CFLAGS="-DUSE_TM_CLONE_REGISTRY=0" \
963+
|| run_verbose make -j ${JOBS} INHIBIT_LIBC_CFLAGS="-DUSE_TM_CLONE_REGISTRY=0"
964+
fi
965+
else
966+
# Compile the libraries.
967+
run_verbose make -j ${JOBS} INHIBIT_LIBC_CFLAGS="-DUSE_TM_CLONE_REGISTRY=0"
968+
fi
953969

954970
if [ "${WITH_STRIP}" == "y" ]
955971
then

0 commit comments

Comments
 (0)