pastebin - collaborative debugging tool
nrubsig.kpaste.net RSS

Difference between
modified post 19539ed1 by Anonymous on Mon 12th Feb 2024 15:52
original post 0fc5c668d by Anonymous on Mon 12th Feb 2024 10:49
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-
#time 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' --single-branch git://gcc.gnu.org/git/gcc.git
23-
#time 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' --single-branch https://github.com/gcc-mirror/gcc.git
24-
time 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' --single-branch 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)
4040
(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
4343
	(set -o xtrace ; sed -i "s/\/bin\/sh/\/bin\/ksh93/g" $(find . -name 'configure') )
4444
fi
4545
46+
if $config_use_posix_ksh93_builtins ; then
4647
ksh93 ./configure
48+
else
4751
4852
if $config_cp_p_function_not_implemented_workaround ; then
4953
	# workaround for $ cp -p # failing with "Function not
5054
	# implemented" in older versions of ms-nfs41-client
5155
	if $config_use_posix_ksh93_builtins ; then
5256
		(
5357
			set -o xtrace
5458
			sed -i -r 's/(cp.*)([[:space:]]+-p[[:space:]]+)/\1\2 -A pt /g' \
5559
				$(find . -name 'Makefile' -o -name 'Makefile.in')
5660
		)
5761
	else
5862
		(
5963
			set -o xtrace ; sed -i -r 's/(cp.*)([[:space:]]+-p[[:space:]]+)/\1\2--no-preserve=ownership /g' \
6064
				$(find . -name 'Makefile' -o -name 'Makefile.in')
6165
		)
6266
	fi
6367
fi
6468
6569
if $config_use_posix_ksh93_builtins ; then
6670
	# replace /bin/sh with /bin/ksh93 for speed
6771
	(set -o xtrace ; sed -i -r 's/\/bin\/sh/\/bin\/ksh93/g' \
6872
		$(find . -name 'Makefile' -o -name 'Makefile.in') )
6973
fi
7074
7175
#
7276
# build gcc
7377
#
74-
ksh93 -c 'export SHELL=/bin/ksh93 ; (yes | make -j10 all)'
78+
ksh93 -c 'export SHELL=/bin/ksh93 ; (yes | make -j6 all)'
7579
echo $?
7680
7781
echo "#Done."
7882

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