annotate contrib/config-list.mk @ 158:494b0b89df80 default tip

...
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 25 May 2020 18:13:55 +0900
parents 1830386684a0
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 # Run tests covering all config.gcc cases.
kono
parents:
diff changeset
2 host_options='--with-mpc=/opt/cfarm/mpc' # gcc10
kono
parents:
diff changeset
3 TEST=all-gcc
kono
parents:
diff changeset
4 # Make sure you have a recent enough gcc (with ada support) in your path so
kono
parents:
diff changeset
5 # that --enable-werror-always will work.
kono
parents:
diff changeset
6 # To use, create a build directory with plenty of free disk space - a build of
kono
parents:
diff changeset
7 # all configurations can take 450GB.
kono
parents:
diff changeset
8 # By default, this file assumes the build directory is in a sibling directory
kono
parents:
diff changeset
9 # to the gcc sources, but you can override GCC_SRC_DIR to specify where to
kono
parents:
diff changeset
10 # find them. GCC_SRC_DIR is used in the directory below the build directory,
kono
parents:
diff changeset
11 # hence the two ".." in the default value; if overriding it, it's easiest to
kono
parents:
diff changeset
12 # supply an absolute path.
kono
parents:
diff changeset
13 GCC_SRC_DIR=../../gcc
kono
parents:
diff changeset
14
kono
parents:
diff changeset
15 # Use -j / -l make arguments and nice to assure a smooth resource-efficient
kono
parents:
diff changeset
16 # load on the build machine, e.g. for 24 cores:
kono
parents:
diff changeset
17 # svn co svn://gcc.gnu.org/svn/gcc/branches/foo-branch gcc
kono
parents:
diff changeset
18 # mkdir multi-mk; cd multi-mk
kono
parents:
diff changeset
19 # nohup nice make -j25 -l36 -f ../gcc/contrib/config-list.mk > make.out 2>&1 &
kono
parents:
diff changeset
20 #
kono
parents:
diff changeset
21 # Alternatively, if building against an existing gcc source tree:
kono
parents:
diff changeset
22 #
kono
parents:
diff changeset
23 # cd /somewhere/with/plenty/of/disk/space
kono
parents:
diff changeset
24 # mkdir multi-mk; cd multi-mk
kono
parents:
diff changeset
25 # nohup nice make \
kono
parents:
diff changeset
26 # -j25 -l36 \
kono
parents:
diff changeset
27 # -f /path/to/contrib/config-list.mk \
kono
parents:
diff changeset
28 # GCC_SRC_DIR=/path/to/gcc/source/tree \
kono
parents:
diff changeset
29 # > make.out 2>&1 &
kono
parents:
diff changeset
30 #
kono
parents:
diff changeset
31
kono
parents:
diff changeset
32 # v850e1-elf is rejected by config.sub
kono
parents:
diff changeset
33 LIST = aarch64-elf aarch64-linux-gnu aarch64-rtems \
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
34 alpha-linux-gnu alpha-netbsd alpha-openbsd \
111
kono
parents:
diff changeset
35 alpha64-dec-vms alpha-dec-vms \
145
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
36 amdgcn-amdhsa \
111
kono
parents:
diff changeset
37 arc-elf32OPT-with-cpu=arc600 arc-elf32OPT-with-cpu=arc700 \
kono
parents:
diff changeset
38 arc-linux-uclibcOPT-with-cpu=arc700 arceb-linux-uclibcOPT-with-cpu=arc700 \
kono
parents:
diff changeset
39 arm-wrs-vxworks arm-netbsdelf \
kono
parents:
diff changeset
40 arm-linux-androideabi arm-uclinux_eabi arm-eabi arm-rtems \
kono
parents:
diff changeset
41 arm-symbianelf avr-elf \
kono
parents:
diff changeset
42 bfin-elf bfin-uclinux bfin-linux-uclibc bfin-rtems bfin-openbsd \
145
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
43 bpf-unknown-none \
111
kono
parents:
diff changeset
44 c6x-elf c6x-uclinux cr16-elf cris-elf cris-linux crisv32-elf crisv32-linux \
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
45 csky-elf csky-linux-gnu \
111
kono
parents:
diff changeset
46 epiphany-elf epiphany-elfOPT-with-stack-offset=16 fido-elf \
kono
parents:
diff changeset
47 fr30-elf frv-elf frv-linux ft32-elf h8300-elf hppa-linux-gnu \
kono
parents:
diff changeset
48 hppa-linux-gnuOPT-enable-sjlj-exceptions=yes hppa64-linux-gnu \
kono
parents:
diff changeset
49 hppa2.0-hpux10.1 hppa64-hpux11.3 \
kono
parents:
diff changeset
50 hppa64-hpux11.0OPT-enable-sjlj-exceptions=yes hppa2.0-hpux11.9 \
kono
parents:
diff changeset
51 i686-pc-linux-gnu i686-apple-darwin i686-apple-darwin9 i686-apple-darwin10 \
kono
parents:
diff changeset
52 i486-freebsd4 i686-freebsd6 i686-kfreebsd-gnu \
kono
parents:
diff changeset
53 i686-netbsdelf9 \
kono
parents:
diff changeset
54 i686-openbsd i686-elf i686-kopensolaris-gnu i686-symbolics-gnu \
kono
parents:
diff changeset
55 i686-pc-msdosdjgpp i686-lynxos i686-nto-qnx \
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
56 i686-rtems i686-solaris2.11 i686-wrs-vxworks \
111
kono
parents:
diff changeset
57 i686-wrs-vxworksae \
kono
parents:
diff changeset
58 i686-cygwinOPT-enable-threads=yes i686-mingw32crt ia64-elf \
kono
parents:
diff changeset
59 ia64-freebsd6 ia64-linux ia64-hpux ia64-hp-vms iq2000-elf lm32-elf \
kono
parents:
diff changeset
60 lm32-rtems lm32-uclinux m32c-rtems m32c-elf m32r-elf m32rle-elf \
kono
parents:
diff changeset
61 m32r-linux m32rle-linux m68k-elf m68k-netbsdelf \
kono
parents:
diff changeset
62 m68k-openbsd m68k-uclinux m68k-linux m68k-rtems \
kono
parents:
diff changeset
63 mcore-elf microblaze-linux microblaze-elf \
kono
parents:
diff changeset
64 mips-netbsd \
kono
parents:
diff changeset
65 mips64el-st-linux-gnu mips64octeon-linux mipsisa64r2-linux \
kono
parents:
diff changeset
66 mipsisa32r2-linux-gnu mipsisa64r2-sde-elf mipsisa32-elfoabi \
kono
parents:
diff changeset
67 mipsisa64-elfoabi mipsisa64r2el-elf mipsisa64sr71k-elf mipsisa64sb1-elf \
kono
parents:
diff changeset
68 mipsel-elf mips64-elf mips64vr-elf mips64orion-elf mips-rtems \
kono
parents:
diff changeset
69 mips-wrs-vxworks mipstx39-elf mmix-knuth-mmixware mn10300-elf moxie-elf \
kono
parents:
diff changeset
70 moxie-uclinux moxie-rtems \
145
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
71 msp430-elf msp430-elfbare \
111
kono
parents:
diff changeset
72 nds32le-elf nds32be-elf \
kono
parents:
diff changeset
73 nios2-elf nios2-linux-gnu nios2-rtems \
kono
parents:
diff changeset
74 nvptx-none \
kono
parents:
diff changeset
75 pdp11-aout \
kono
parents:
diff changeset
76 powerpc-darwin8 \
kono
parents:
diff changeset
77 powerpc-darwin7 powerpc64-darwin powerpc-freebsd6 powerpc-netbsd \
145
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
78 powerpc-eabisimaltivec powerpc-eabisim ppc-elf \
111
kono
parents:
diff changeset
79 powerpc-eabialtivec powerpc-xilinx-eabi powerpc-eabi \
145
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
80 powerpc-rtems \
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
81 powerpc64-linux_altivec \
111
kono
parents:
diff changeset
82 powerpc-wrs-vxworks powerpc-wrs-vxworksae powerpc-wrs-vxworksmils \
kono
parents:
diff changeset
83 powerpc-lynxos powerpcle-elf \
kono
parents:
diff changeset
84 powerpcle-eabisim powerpcle-eabi \
kono
parents:
diff changeset
85 riscv32-unknown-linux-gnu riscv64-unknown-linux-gnu \
kono
parents:
diff changeset
86 rs6000-ibm-aix5.3.0 rs6000-ibm-aix6.1 rs6000-ibm-aix7.1 \
kono
parents:
diff changeset
87 rl78-elf rx-elf s390-linux-gnu s390x-linux-gnu s390x-ibm-tpf sh-elf \
kono
parents:
diff changeset
88 shle-linux sh-netbsdelf sh-superh-elf \
kono
parents:
diff changeset
89 sh-rtems sh-wrs-vxworks sparc-elf \
kono
parents:
diff changeset
90 sparc-leon-elf sparc-rtems sparc-linux-gnu \
kono
parents:
diff changeset
91 sparc-leon3-linux-gnuOPT-enable-target=all sparc-netbsdelf \
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
92 sparc64-sun-solaris2.11OPT-with-gnu-ldOPT-with-gnu-asOPT-enable-threads=posix \
111
kono
parents:
diff changeset
93 sparc-wrs-vxworks sparc64-elf sparc64-rtems sparc64-linux sparc64-freebsd6 \
145
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
94 sparc64-netbsd sparc64-openbsd \
111
kono
parents:
diff changeset
95 tilegx-linux-gnu tilegxbe-linux-gnu tilepro-linux-gnu \
kono
parents:
diff changeset
96 v850e-elf v850-elf v850-rtems vax-linux-gnu \
kono
parents:
diff changeset
97 vax-netbsdelf vax-openbsd visium-elf x86_64-apple-darwin \
kono
parents:
diff changeset
98 x86_64-pc-linux-gnuOPT-with-fpmath=avx \
kono
parents:
diff changeset
99 x86_64-elfOPT-with-fpmath=sse x86_64-freebsd6 x86_64-netbsd \
kono
parents:
diff changeset
100 x86_64-w64-mingw32 \
kono
parents:
diff changeset
101 x86_64-mingw32OPT-enable-sjlj-exceptions=yes x86_64-rtems \
kono
parents:
diff changeset
102 xstormy16-elf xtensa-elf \
kono
parents:
diff changeset
103 xtensa-linux
kono
parents:
diff changeset
104
kono
parents:
diff changeset
105 LOGFILES = $(patsubst %,log/%-make.out,$(LIST))
kono
parents:
diff changeset
106 all: $(LOGFILES)
kono
parents:
diff changeset
107 config: $(LIST)
kono
parents:
diff changeset
108 show:
kono
parents:
diff changeset
109 @echo $(LIST)
kono
parents:
diff changeset
110
kono
parents:
diff changeset
111 .PHONY: make-log-dir all config show
kono
parents:
diff changeset
112
kono
parents:
diff changeset
113 empty=
kono
parents:
diff changeset
114
kono
parents:
diff changeset
115 #Check for the presence of the MAINTAINERS file to make sure we've located
kono
parents:
diff changeset
116 #the gcc sources.
kono
parents:
diff changeset
117 make-log-dir: $(GCC_SRC_DIR)/MAINTAINERS
kono
parents:
diff changeset
118 -mkdir log
kono
parents:
diff changeset
119
kono
parents:
diff changeset
120 $(LIST): make-log-dir
kono
parents:
diff changeset
121 -mkdir $@
kono
parents:
diff changeset
122 ( \
kono
parents:
diff changeset
123 cd $@ && \
kono
parents:
diff changeset
124 TGT=`echo $@ | awk 'BEGIN { FS = "OPT" }; { print $$1 }'` && \
kono
parents:
diff changeset
125 TGT=`$(GCC_SRC_DIR)/config.sub $$TGT` && \
kono
parents:
diff changeset
126 case $$TGT in \
145
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
127 *-*-darwin* | *-*-cygwin* | *-*-mingw* | *-*-aix* | bpf-*-*) \
111
kono
parents:
diff changeset
128 ADDITIONAL_LANGUAGES=""; \
kono
parents:
diff changeset
129 ;; \
kono
parents:
diff changeset
130 *) \
kono
parents:
diff changeset
131 ADDITIONAL_LANGUAGES=",go"; \
kono
parents:
diff changeset
132 ;; \
kono
parents:
diff changeset
133 esac && \
kono
parents:
diff changeset
134 $(GCC_SRC_DIR)/configure \
kono
parents:
diff changeset
135 --target=$(subst SCRIPTS,`pwd`/../scripts/,$(subst OPT,$(empty) -,$@)) \
kono
parents:
diff changeset
136 --enable-werror-always ${host_options} \
kono
parents:
diff changeset
137 --enable-languages=all,ada$$ADDITIONAL_LANGUAGES; \
kono
parents:
diff changeset
138 ) > log/$@-config.out 2>&1
kono
parents:
diff changeset
139
kono
parents:
diff changeset
140 $(LOGFILES) : log/%-make.out : %
kono
parents:
diff changeset
141 -$(MAKE) -C $< $(TEST) > $@ 2>&1 && rm -rf $<