annotate contrib/config-list.mk @ 138:fc828634a951

merge
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Thu, 08 Nov 2018 14:17:14 +0900
parents 84e7813d76e9
children 1830386684a0
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 \
kono
parents:
diff changeset
36 arc-elf32OPT-with-cpu=arc600 arc-elf32OPT-with-cpu=arc700 \
kono
parents:
diff changeset
37 arc-linux-uclibcOPT-with-cpu=arc700 arceb-linux-uclibcOPT-with-cpu=arc700 \
kono
parents:
diff changeset
38 arm-wrs-vxworks arm-netbsdelf \
kono
parents:
diff changeset
39 arm-linux-androideabi arm-uclinux_eabi arm-eabi arm-rtems \
kono
parents:
diff changeset
40 arm-symbianelf avr-elf \
kono
parents:
diff changeset
41 bfin-elf bfin-uclinux bfin-linux-uclibc bfin-rtems bfin-openbsd \
kono
parents:
diff changeset
42 c6x-elf c6x-uclinux cr16-elf cris-elf cris-linux crisv32-elf crisv32-linux \
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
43 csky-elf csky-linux-gnu \
111
kono
parents:
diff changeset
44 epiphany-elf epiphany-elfOPT-with-stack-offset=16 fido-elf \
kono
parents:
diff changeset
45 fr30-elf frv-elf frv-linux ft32-elf h8300-elf hppa-linux-gnu \
kono
parents:
diff changeset
46 hppa-linux-gnuOPT-enable-sjlj-exceptions=yes hppa64-linux-gnu \
kono
parents:
diff changeset
47 hppa2.0-hpux10.1 hppa64-hpux11.3 \
kono
parents:
diff changeset
48 hppa64-hpux11.0OPT-enable-sjlj-exceptions=yes hppa2.0-hpux11.9 \
kono
parents:
diff changeset
49 i686-pc-linux-gnu i686-apple-darwin i686-apple-darwin9 i686-apple-darwin10 \
kono
parents:
diff changeset
50 i486-freebsd4 i686-freebsd6 i686-kfreebsd-gnu \
kono
parents:
diff changeset
51 i686-netbsdelf9 \
kono
parents:
diff changeset
52 i686-openbsd i686-elf i686-kopensolaris-gnu i686-symbolics-gnu \
kono
parents:
diff changeset
53 i686-pc-msdosdjgpp i686-lynxos i686-nto-qnx \
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
54 i686-rtems i686-solaris2.11 i686-wrs-vxworks \
111
kono
parents:
diff changeset
55 i686-wrs-vxworksae \
kono
parents:
diff changeset
56 i686-cygwinOPT-enable-threads=yes i686-mingw32crt ia64-elf \
kono
parents:
diff changeset
57 ia64-freebsd6 ia64-linux ia64-hpux ia64-hp-vms iq2000-elf lm32-elf \
kono
parents:
diff changeset
58 lm32-rtems lm32-uclinux m32c-rtems m32c-elf m32r-elf m32rle-elf \
kono
parents:
diff changeset
59 m32r-linux m32rle-linux m68k-elf m68k-netbsdelf \
kono
parents:
diff changeset
60 m68k-openbsd m68k-uclinux m68k-linux m68k-rtems \
kono
parents:
diff changeset
61 mcore-elf microblaze-linux microblaze-elf \
kono
parents:
diff changeset
62 mips-netbsd \
kono
parents:
diff changeset
63 mips64el-st-linux-gnu mips64octeon-linux mipsisa64r2-linux \
kono
parents:
diff changeset
64 mipsisa32r2-linux-gnu mipsisa64r2-sde-elf mipsisa32-elfoabi \
kono
parents:
diff changeset
65 mipsisa64-elfoabi mipsisa64r2el-elf mipsisa64sr71k-elf mipsisa64sb1-elf \
kono
parents:
diff changeset
66 mipsel-elf mips64-elf mips64vr-elf mips64orion-elf mips-rtems \
kono
parents:
diff changeset
67 mips-wrs-vxworks mipstx39-elf mmix-knuth-mmixware mn10300-elf moxie-elf \
kono
parents:
diff changeset
68 moxie-uclinux moxie-rtems \
kono
parents:
diff changeset
69 msp430-elf \
kono
parents:
diff changeset
70 nds32le-elf nds32be-elf \
kono
parents:
diff changeset
71 nios2-elf nios2-linux-gnu nios2-rtems \
kono
parents:
diff changeset
72 nvptx-none \
kono
parents:
diff changeset
73 pdp11-aout \
kono
parents:
diff changeset
74 powerpc-darwin8 \
kono
parents:
diff changeset
75 powerpc-darwin7 powerpc64-darwin powerpc-freebsd6 powerpc-netbsd \
kono
parents:
diff changeset
76 powerpc-eabispe powerpc-eabisimaltivec powerpc-eabisim ppc-elf \
kono
parents:
diff changeset
77 powerpc-eabialtivec powerpc-xilinx-eabi powerpc-eabi \
kono
parents:
diff changeset
78 powerpc-rtems powerpc-linux_spe \
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
79 powerpc64-linux_altivec \
111
kono
parents:
diff changeset
80 powerpc-wrs-vxworks powerpc-wrs-vxworksae powerpc-wrs-vxworksmils \
kono
parents:
diff changeset
81 powerpc-lynxos powerpcle-elf \
kono
parents:
diff changeset
82 powerpcle-eabisim powerpcle-eabi \
kono
parents:
diff changeset
83 riscv32-unknown-linux-gnu riscv64-unknown-linux-gnu \
kono
parents:
diff changeset
84 rs6000-ibm-aix5.3.0 rs6000-ibm-aix6.1 rs6000-ibm-aix7.1 \
kono
parents:
diff changeset
85 rl78-elf rx-elf s390-linux-gnu s390x-linux-gnu s390x-ibm-tpf sh-elf \
kono
parents:
diff changeset
86 shle-linux sh-netbsdelf sh-superh-elf \
kono
parents:
diff changeset
87 sh-rtems sh-wrs-vxworks sparc-elf \
kono
parents:
diff changeset
88 sparc-leon-elf sparc-rtems sparc-linux-gnu \
kono
parents:
diff changeset
89 sparc-leon3-linux-gnuOPT-enable-target=all sparc-netbsdelf \
131
84e7813d76e9 gcc-8.2
mir3636
parents: 111
diff changeset
90 sparc64-sun-solaris2.11OPT-with-gnu-ldOPT-with-gnu-asOPT-enable-threads=posix \
111
kono
parents:
diff changeset
91 sparc-wrs-vxworks sparc64-elf sparc64-rtems sparc64-linux sparc64-freebsd6 \
kono
parents:
diff changeset
92 sparc64-netbsd sparc64-openbsd spu-elf \
kono
parents:
diff changeset
93 tilegx-linux-gnu tilegxbe-linux-gnu tilepro-linux-gnu \
kono
parents:
diff changeset
94 v850e-elf v850-elf v850-rtems vax-linux-gnu \
kono
parents:
diff changeset
95 vax-netbsdelf vax-openbsd visium-elf x86_64-apple-darwin \
kono
parents:
diff changeset
96 x86_64-pc-linux-gnuOPT-with-fpmath=avx \
kono
parents:
diff changeset
97 x86_64-elfOPT-with-fpmath=sse x86_64-freebsd6 x86_64-netbsd \
kono
parents:
diff changeset
98 x86_64-w64-mingw32 \
kono
parents:
diff changeset
99 x86_64-mingw32OPT-enable-sjlj-exceptions=yes x86_64-rtems \
kono
parents:
diff changeset
100 xstormy16-elf xtensa-elf \
kono
parents:
diff changeset
101 xtensa-linux
kono
parents:
diff changeset
102
kono
parents:
diff changeset
103 LOGFILES = $(patsubst %,log/%-make.out,$(LIST))
kono
parents:
diff changeset
104 all: $(LOGFILES)
kono
parents:
diff changeset
105 config: $(LIST)
kono
parents:
diff changeset
106 show:
kono
parents:
diff changeset
107 @echo $(LIST)
kono
parents:
diff changeset
108
kono
parents:
diff changeset
109 .PHONY: make-log-dir all config show
kono
parents:
diff changeset
110
kono
parents:
diff changeset
111 empty=
kono
parents:
diff changeset
112
kono
parents:
diff changeset
113 #Check for the presence of the MAINTAINERS file to make sure we've located
kono
parents:
diff changeset
114 #the gcc sources.
kono
parents:
diff changeset
115 make-log-dir: $(GCC_SRC_DIR)/MAINTAINERS
kono
parents:
diff changeset
116 -mkdir log
kono
parents:
diff changeset
117
kono
parents:
diff changeset
118 $(LIST): make-log-dir
kono
parents:
diff changeset
119 -mkdir $@
kono
parents:
diff changeset
120 ( \
kono
parents:
diff changeset
121 cd $@ && \
kono
parents:
diff changeset
122 TGT=`echo $@ | awk 'BEGIN { FS = "OPT" }; { print $$1 }'` && \
kono
parents:
diff changeset
123 TGT=`$(GCC_SRC_DIR)/config.sub $$TGT` && \
kono
parents:
diff changeset
124 case $$TGT in \
kono
parents:
diff changeset
125 *-*-darwin* | *-*-cygwin* | *-*-mingw* | *-*-aix*) \
kono
parents:
diff changeset
126 ADDITIONAL_LANGUAGES=""; \
kono
parents:
diff changeset
127 ;; \
kono
parents:
diff changeset
128 *) \
kono
parents:
diff changeset
129 ADDITIONAL_LANGUAGES=",go"; \
kono
parents:
diff changeset
130 ;; \
kono
parents:
diff changeset
131 esac && \
kono
parents:
diff changeset
132 $(GCC_SRC_DIR)/configure \
kono
parents:
diff changeset
133 --target=$(subst SCRIPTS,`pwd`/../scripts/,$(subst OPT,$(empty) -,$@)) \
kono
parents:
diff changeset
134 --enable-werror-always ${host_options} \
kono
parents:
diff changeset
135 --enable-languages=all,ada$$ADDITIONAL_LANGUAGES; \
kono
parents:
diff changeset
136 ) > log/$@-config.out 2>&1
kono
parents:
diff changeset
137
kono
parents:
diff changeset
138 $(LOGFILES) : log/%-make.out : %
kono
parents:
diff changeset
139 -$(MAKE) -C $< $(TEST) > $@ 2>&1 && rm -rf $<