Check-in [250028d1d6]
Overview
Comment:Added more cross-compiler build scripts

Added more cross-compiled tests

Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 250028d1d6e5191b648d4aafd5edc1383af18211
User & Date: rkeene on 2011-08-02 23:49:37
Other Links: manifest | tags
Context
2011-08-03
19:53
Added more cross-compilers

Updated cross-compiling to use a fake "uname" to deal with Tcl's broken-ness with respect to cross-compiling check-in: 8efaf47298 user: rkeene tags: trunk

2011-08-02
23:49
Added more cross-compiler build scripts

Added more cross-compiled tests check-in: 250028d1d6 user: rkeene tags: trunk

2011-07-20
22:52
Added missing build flag check-in: e125d9df77 user: rkeene tags: trunk
Changes

Added build/make-kit-crosscompile version [b27dfe1f7d].


















1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
#! /bin/sh

if [ -z "${CROSS}" ]; then
	echo 'Error: Environment variable CROSS is empty/unset.  Aborting.' >&2

	exit 1
fi

PATH="${PATH}:${HOME}/root/cross-compilers/${CROSS}/bin"
AR="${CROSS}-ar"
CC="${CROSS}-gcc ${CC_ADD}"
CXX="${CROSS}-g++ ${CC_ADD}"
RANLIB="${CROSS}-ranlib"
STRIP="${CROSS}-strip"
export PATH AR CC CXX RANLIB STRIP

./kitcreator "$@" --host="${CROSS}"

Added build/make-kit-hpux-hppa64 version [c50e5cc86a].







1
2
3
4
5
6
+
+
+
+
+
+
#! /bin/sh

CROSS="hppa64-hp-hpux11.11"
export CROSS

./build/make-kit-crosscompile "$@" --enable-64bit

Modified build/make-kit-linux-amd64 from [72e0bb339e] to [069082a8ec].

1
2
3
4

5
6
7
8
9


10
11

1
2


3





4
5
6

7


-
-
+
-
-
-
-
-
+
+

-
+
#! /bin/sh

PATH="${PATH}:${HOME}/root/cross-compilers/x86_64-unknown-linux-gnu/bin/"
AR=x86_64-unknown-linux-gnu-ar
CROSS="x86_64-unknown-linux-gnu"
CC=x86_64-unknown-linux-gnu-gcc
CXX=x86_64-unknown-linux-gnu-g++
RANLIB=x86_64-unknown-linux-gnu-ranlib
STRIP=x86_64-unknown-linux-gnu-strip
export PATH AR CC CXX RANLIB STRIP
CC_ADD="-m64"
export CROSS CC_ADD

./kitcreator "$@" --host=x86_64-unknown-linux-gnu --enable-64bit
./build/make-kit-crosscompile "$@" --enable-64bit

Added build/make-kit-solaris-amd64 version [c26413604c].








1
2
3
4
5
6
7
+
+
+
+
+
+
+
#! /bin/sh

CROSS="i386-pc-solaris2.10"
CC_ADD="-m64"
export CROSS CC_ADD

./build/make-kit-crosscompile "$@" --enable-64bit

Added build/make-kit-solaris-i386 version [439be66c77].







1
2
3
4
5
6
+
+
+
+
+
+
#! /bin/sh

CROSS="i386-pc-solaris2.10"
export CROSS

./build/make-kit-crosscompile "$@"

Added build/make-kit-solaris-sparc version [dc7f25759c].







1
2
3
4
5
6
+
+
+
+
+
+
#! /bin/sh

CROSS="sparc-sun-solaris2.10"
export CROSS

./build/make-kit-crosscompile "$@"

Added build/make-kit-solaris-sparc64 version [34488cfc02].








1
2
3
4
5
6
7
+
+
+
+
+
+
+
#! /bin/sh

CROSS="sparc-sun-solaris2.10"
CC_ADD="-m64"
export CROSS CC_ADD

./build/make-kit-crosscompile "$@" --enable-64bit

Modified build/test/test from [2b7bb890ec] to [bf30a5a38f].

40
41
42
43
44
45
46














47
48
49
50
51
52
53
54
55
56

57
58
59
60
61
62
63
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69

70
71
72
73
74
75
76
77







+
+
+
+
+
+
+
+
+
+
+
+
+
+









-
+







	if echo "${file}" | grep -- '-build.log$' >/dev/null; then
		continue
	fi

	rm -f "${file}"
done

# Disable WINE debugging
WINEPREFIX="${TESTDIR}/.wine"
export WINEPREFIX
rm -rf "${WINEPREFIX}"
mkdir "${WINEPREFIX}"

cat << \_EOF_ > "${WINEPREFIX}/update-reg"
[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\AeDebug]
"Auto"=dword:00000001
"Debugger"="false"
_EOF_

regedit "${WINEPREFIX}/update-reg" >/dev/null 2>/dev/null

# Start Xvfb for X11-based tests
XVFB_PID="$(
	Xvfb :31 -screen 0 800x600x24 -nolisten tcp >/dev/null 2>/dev/null &
	echo "$!"
)"
DISPLAY=:31
export DISPLAY

failed=""
for kit in normal normal-zip normal-threaded normal-threaded-zip normal-statictk normal-notk normal-threaded-notk normal-threaded-zip-notk normal-nomk4 min min-static normal-kitdll normal-threaded-kitdll normal-notk-kitdll normal-nomk4-kitdll normal-nomk4-notk-kitdll normal-threaded-nomk4-kitdll normal-threaded-notk-nomk4-kitdll min-kitdll win32-i586 win32-i586-zip win32-i586-threaded win32-i586-threaded-zip win32-i586-notk win32-i586-threaded-notk win32-i586-nomk4 win32-i586-kitdll win32-i586-threaded-kitdll win32-i586-notk-kitdll win32-i586-nomk4-kitdll win32-i586-nomk4-notk-kitdll win32-i586-threaded-nomk4-kitdll win32-i586-threaded-notk-nomk4-kitdll linux-mipsel-min linux-mipsel-min-kitdll linux-amd64-notk linux-amd64-notk-kitdll; do
for kit in normal normal-zip normal-threaded normal-threaded-zip normal-statictk normal-notk normal-threaded-notk normal-threaded-zip-notk normal-nomk4 min min-static normal-kitdll normal-threaded-kitdll normal-notk-kitdll normal-nomk4-kitdll normal-nomk4-notk-kitdll normal-threaded-nomk4-kitdll normal-threaded-notk-nomk4-kitdll min-kitdll win32-i586 win32-i586-zip win32-i586-threaded win32-i586-threaded-zip win32-i586-notk win32-i586-threaded-notk win32-i586-nomk4 win32-i586-kitdll win32-i586-threaded-kitdll win32-i586-notk-kitdll win32-i586-nomk4-kitdll win32-i586-nomk4-notk-kitdll win32-i586-threaded-nomk4-kitdll win32-i586-threaded-notk-nomk4-kitdll linux-mipsel-min linux-mipsel-min-kitdll linux-amd64-notk linux-amd64-notk-kitdll solaris-i386 solaris-i386-kitdll solaris-amd64 solaris-amd64-kitdll solaris-sparc solaris-sparc-kitdll solaris-sparc64 solaris-sparc64-kitdll hpux-hppa64-notk hpux-hppa64-notk-kitdll; do
	kitcreator="./kitcreator"
	args=""
	runnable="1"
	iszip="0"
	statictk="0"
	notk="0"
	nomk4="0"
92
93
94
95
96
97
98
99
100








101
102
103
104
105
106
107
106
107
108
109
110
111
112


113
114
115
116
117
118
119
120
121
122
123
124
125
126
127







-
-
+
+
+
+
+
+
+
+







		linux-mipsel-min|linux-mipsel-min-kitdll)
			kitcreator="./build/make-kit-mipsel"
			runnable="0"
			xcompile="1"
			notk="1"
			iszip="1"
			;;
		linux-amd64|linux-amd64-*)
			kitcreator="./build/make-kit-linux-amd64"
		linux-amd64|linux-amd64-*|\
		solaris-i386|solaris-i386-*|\
		solaris-amd64|solaris-amd64-*|\
		solaris-sparc|solaris-sparc-*|\
		solaris-sparc64|solaris-sparc64-*|\
		hpux-hppa64|hpux-hppa64-*)
			platform="$(echo "${kit}" | cut -f 1-2 -d '-')"
			kitcreator="./build/make-kit-${platform}"
			runnable="0"
			xcompile="1"
			iszip="0"
			;;
	esac

	if [ "${xcompile}" != "0" ]; then
234
235
236
237
238
239
240









241
242
243
244
245
246
247
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276







+
+
+
+
+
+
+
+
+







				# Several build scripts rely on minkit to work
				if grep './build/make-minkit' "${kitcreator}" >/dev/null 2>/dev/null; then
					echo "  cat << \__EOF__ > ./build/make-minkit" >> "${buildlog}"
					sed 's@^@  @'  './build/make-minkit' >> "${buildlog}"
					echo "  __EOF__" >> "${buildlog}"
					echo '' >> "${buildlog}"
				fi

				# Several build scripts rely on make-kit-crosscompile to work
				if grep './build/make-kit-crosscompile' "${kitcreator}" >/dev/null 2>/dev/null; then
					echo "  cat << \__EOF__ > ./build/make-kit-crosscompile" >> "${buildlog}"
					sed 's@^@  @'  './build/make-kit-crosscompile' >> "${buildlog}"
					echo "  __EOF__" >> "${buildlog}"
					echo '' >> "${buildlog}"
				fi

				echo "  cat << \__EOF__ > ${kitcreator}" >> "${buildlog}"
				sed 's@^@  @'  "${kitcreator}" >> "${buildlog}"
				echo "  __EOF__" >> "${buildlog}"
				echo '' >> "${buildlog}"
			fi
			echo "  \"${kitcreator}\" \"${version}\" ${args}" >> "${buildlog}"
			echo '' >> "${buildlog}"