pastebin - collaborative debugging tool
nrubsig.kpaste.net RSS

Difference between
modified post 0fc5c668d by Anonymous on Mon 12th Feb 2024 10:49
original post f95a07 by Anonymous on Mon 12th Feb 2024 10:00
Download diff
Show old version | new version | both versions

    
11
#!/usr/bin/ksh93
22
33
#
44
# nfstest_gcc_build.ksh93
55
#
66
# Simple NFSv4 torture test by building gcc in parallel
77
# on a NFS filesystem
88
#
99
set -o xtrace
1010
set -o errexit
1111
1212
#
1313
# build config
1414
#
1515
typeset config_cp_p_function_not_implemented_workaround=false
1616
typeset config_use_posix_ksh93_builtins=true
1717
1818
#
1919
# source checkout
2020
#
2121
22-
#git -c checkout.workers=16 clone -b 'releases/gcc-13.2.0' git://gcc.gnu.org/git/gcc.git
22+
#time git -c checkout.workers=16 clone -b 'releases/gcc-13.2.0' git://gcc.gnu.org/git/gcc.git
23-
#git -c checkout.workers=16 clone -b 'releases/gcc-13.2.0' https://github.com/gcc-mirror/gcc.git
23+
#time git -c checkout.workers=16 clone -b 'releases/gcc-13.2.0' https://github.com/gcc-mirror/gcc.git
24-
git -c checkout.workers=16 clone -b 'releases/gcc-13.2.0' git://repo.or.cz/gcc.git
24+
time git -c checkout.workers=16 clone -b 'releases/gcc-13.2.0' git://repo.or.cz/gcc.git
2525
2626
2727
cd "$PWD/gcc/" || { sync ; sleep 5 ; cd gcc ; }
2828
2929
if $config_use_posix_ksh93_builtins ; then
3030
	PATH="/usr/ast/bin:/opt/ast/bin:$PATH"
3131
fi
3232
3333
#
3434
# patch sources and configure build
3535
#
3636
3737
# Cygwin: workaround for configure using cp -p where ln -s should be used
3838
# (this is an automake/autoconf issue, they should trust Cygwin and not use
3939
# ancient workarounds for issues which no longer exists)
40-
(set -o xtrace ; sed -i "s/as_ln_s='cp -pR'/as_ln_s='ln -s'/g" $(find . -name configure) )
40+
(set -o xtrace ; sed -i "s/as_ln_s='cp -pR'/as_ln_s='ln -s'/g" $(find . -name 'configure') )
4141
4242
if $config_use_posix_ksh93_builtins ; then
43-
	(set -o xtrace ; sed -i "s/\/bin\/sh/\/bin\/ksh93/g" $(find . -name configure) )
43+
	(set -o xtrace ; sed -i "s/\/bin\/sh/\/bin\/ksh93/g" $(find . -name 'configure') )
4444
fi
4545
4646
ksh93 ./configure
47+
4748
if $config_cp_p_function_not_implemented_workaround ; then
4849
	# workaround for $ cp -p # failing with "Function not
4950
	# implemented" in older versions of ms-nfs41-client
5351
if $config_use_posix_ksh93_builtins ; then
54-
	# replace /bin/sh with /bin/ksh93 for speed
52+
		(
55-
	(set -o xtrace ; sed -i -r 's/\/bin\/sh/\/bin\/ksh93/g' $(find . -name Makefile -o -name Makefile.in) )
53+
			set -o xtrace
54+
			sed -i -r 's/(cp.*)([[:space:]]+-p[[:space:]]+)/\1\2 -A pt /g' \
5662
fi
63+
fi
5764
65+
if $config_use_posix_ksh93_builtins ; then
5871
#
5972
# build gcc
6073
#
6174
ksh93 -c 'export SHELL=/bin/ksh93 ; (yes | make -j10 all)'
6275
echo $?
6376
6477
echo "#Done."
6578

Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.

Syntax highlighting:

To highlight particular lines, prefix each line with {%HIGHLIGHT}




All content is user-submitted.
The administrators of this site (kpaste.net) are not responsible for their content.
Abuse reports should be emailed to us at