mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2024-12-21 21:57:48 +00:00
Check/increase ulimit -n
setting
... 2.32 ld runs out of file descriptors while linking uClibc-ng on SuperH. Signed-off-by: Alexey Neyman <stilor@att.net>
This commit is contained in:
parent
d5c73fd9e6
commit
7217116836
@ -102,6 +102,14 @@ for d in \
|
||||
esac
|
||||
done
|
||||
|
||||
n_open_files=$(ulimit -n)
|
||||
if [ "${n_open_files}" -lt 2048 ]; then
|
||||
# Newer ld seems to keep a lot of open file descriptors, hitting the default limit
|
||||
# (1024) for example during uClibc-ng link.
|
||||
CT_DoLog WARN "Number of open files ${n_open_files} may not be sufficient to build the toolchain; increasing to 2048"
|
||||
ulimit -n 2048
|
||||
fi
|
||||
|
||||
# Where will we work?
|
||||
CT_WORK_DIR="${CT_WORK_DIR:-${CT_TOP_DIR}/.build}"
|
||||
CT_BUILD_DIR="${CT_BUILD_TOP_DIR}/build"
|
||||
|
Loading…
Reference in New Issue
Block a user