Lines Matching +full:fails +full:- +full:without +full:- +full:test +full:- +full:cd

3 # Common variables for the gcc-initial and gcc-final packages.
14 GCC_SITE = $(call github,foss-for-synopsys-dwc-arc-processors,gcc,$(GCC_VERSION))
15 GCC_SOURCE = gcc-$(GCC_VERSION).tar.gz
17 GCC_SITE = $(BR2_GNU_MIRROR:/=)/gcc/gcc-$(GCC_VERSION)
18 GCC_SOURCE = gcc-$(GCC_VERSION).tar.xz
25 $(call arch-xtensa-overlay-extract,$(@D),gcc)
32 # gcc is a special package, not named gcc, but gcc-initial and
33 # gcc-final, but patches are nonetheless stored in package/gcc in the
40 if test -d $${patchdir}; then \
55 mkdir -p $(@D)/build
56 ln -sf ../configure $(@D)/build/configure
64 host-binutils \
65 host-gmp \
66 host-mpc \
67 host-mpfr \
68 $(if $(BR2_BINFMT_FLAT),host-elf2flt)
71 --target=$(GNU_TARGET_NAME) \
72 --with-sysroot=$(STAGING_DIR) \
73 --enable-__cxa_atexit \
74 --with-gnu-ld \
75 --disable-libssp \
76 --disable-multilib \
77 --disable-decimal-float \
78 --enable-plugins \
79 --enable-lto \
80 --with-gmp=$(HOST_DIR) \
81 --with-mpc=$(HOST_DIR) \
82 --with-mpfr=$(HOST_DIR) \
83 --with-pkgversion="Buildroot $(BR2_VERSION_FULL)" \
84 --with-bugurl="http://bugs.buildroot.net/" \
85 --without-zstd
88 HOST_GCC_COMMON_CONF_OPTS += --with-debug-prefix-map=$(BASE_DIR)=buildroot
99 …72:21: error: 'st.st_mode' may be used uninitialized in this function [-Werror=maybe-uninitialized]
101 GCC_COMMON_TARGET_CFLAGS += -Wno-error
104 # Make sure libgcc & libstdc++ always get built with -matomic on ARC700
106 GCC_COMMON_TARGET_CFLAGS += -matomic
107 GCC_COMMON_TARGET_CXXFLAGS += -matomic
113 HOST_GCC_COMMON_CONF_ENV += AR_FOR_TARGET=gcc-ar NM_FOR_TARGET=gcc-nm RANLIB_FOR_TARGET=gcc-ranlib
117 HOST_GCC_COMMON_CONF_OPTS += --disable-libitm
122 HOST_GCC_COMMON_CONF_OPTS += --disable-libmpx
127 HOST_GCC_COMMON_CONF_OPTS += --enable-libquadmath --enable-libquadmath-support
129 HOST_GCC_COMMON_CONF_OPTS += --disable-libquadmath --disable-libquadmath-support
135 HOST_GCC_COMMON_CONF_OPTS += --disable-libsanitizer
141 HOST_GCC_COMMON_CONF_OPTS += --disable-libsanitizer
148 HOST_GCC_COMMON_CONF_OPTS += --disable-libsanitizer
151 # libsanitizer bundled in gcc 12 fails to build for mips32 due to
154 HOST_GCC_COMMON_CONF_OPTS += --disable-libsanitizer
159 # empty, i.e when cross-compiling. However, some platforms do not have
165 # TLS support is not needed on uClibc/no-thread and
166 # uClibc/linux-threads, otherwise, for all other situations (glibc,
169 HOST_GCC_COMMON_CONF_OPTS += --disable-tls
171 HOST_GCC_COMMON_CONF_OPTS += --enable-tls
176 --disable-threads \
177 --disable-libitm \
178 --disable-libatomic
180 HOST_GCC_COMMON_CONF_OPTS += --enable-threads
184 # https://gcc.gnu.org/gcc-5/changes.html and we don't support graphite
187 HOST_GCC_COMMON_DEPENDENCIES += host-isl
188 HOST_GCC_COMMON_CONF_OPTS += --with-isl=$(HOST_DIR)
190 HOST_GCC_COMMON_CONF_OPTS += --without-isl --without-cloog
194 HOST_GCC_COMMON_DEPENDENCIES += host-flex host-bison
198 # only mips*-*-*, arm*-*-* and sparc*-*-* accept --with-float
201 HOST_GCC_COMMON_CONF_OPTS += --with-float=soft
207 HOST_GCC_COMMON_CONF_OPTS += --with-arch="$(GCC_TARGET_ARCH)"
210 HOST_GCC_COMMON_CONF_OPTS += --with-abi="$(GCC_TARGET_ABI)"
214 HOST_GCC_COMMON_CONF_OPTS += --with-nan="$(GCC_TARGET_NAN)"
218 HOST_GCC_COMMON_CONF_OPTS += --with-fp-32="$(GCC_TARGET_FP32_MODE)"
221 HOST_GCC_COMMON_CONF_OPTS += --with-cpu=$(GCC_TARGET_CPU)
225 HOST_GCC_COMMON_CONF_OPTS += --with-fpu=$(GCC_TARGET_FPU)
229 HOST_GCC_COMMON_CONF_OPTS += --with-float=$(GCC_TARGET_FLOAT_ABI)
233 HOST_GCC_COMMON_CONF_OPTS += --with-mode=$(GCC_TARGET_MODE)
239 --enable-obsolete \
240 --enable-e500_double \
241 --with-long-double-128
244 # Set default to Secure-PLT to prevent run-time
246 # SELinux non-exemem capabilities)
248 HOST_GCC_COMMON_CONF_OPTS += --enable-secureplt
257 --with-abi=elfv2 \
258 --without-long-double-128
266 --with-long-double-128
271 --with-long-double-128
274 HOST_GCC_COMMON_TOOLCHAIN_WRAPPER_ARGS += -DBR_CROSS_PATH_SUFFIX='".br_real"'
276 # For gcc-initial, we need to tell gcc that the C library will be
280 # For gcc-final, the gcc logic to detect whether SSP support is
292 # stored in a sub-directory called 'gcc' even if it's not technically
308 HOST_GCC_COMMON_TOOLCHAIN_WRAPPER_ARGS += -DBR_CCACHE_HASH=\"`\
310 $(subst --with-pkgversion="Buildroot $(BR2_VERSION_FULL)",,$($(PKG)_CONF_OPTS))) \
311 | sha256sum - $(HOST_GCC_COMMON_CCACHE_HASH_FILES) \
312 | cut -c -64 | tr -d '\n'`\"
316 # the lto plugin. These wrappers are called *-gcc-ar, *-gcc-ranlib, and
317 # *-gcc-nm and should be used instead of the real programs when -flto is
319 # match the *cc-* pattern. Therefore, an additional case is added for *-ar,
320 # *-ranlib and *-nm.
324 # Also create <arch>-linux-<tool> symlinks.
326 $(Q)cd $(HOST_DIR)/bin; \
327 for i in $(GNU_TARGET_NAME)-*; do \
331 *-ar|*-ranlib|*-nm) \
332 ln -snf $$i $(ARCH)-linux$${i##$(GNU_TARGET_NAME)}; \
334 *cc|*cc-*|*++|*++-*|*cpp|*-gfortran|*-gdc) \
335 rm -f $$i.br_real; \
337 ln -sf toolchain-wrapper $$i; \
338 ln -sf toolchain-wrapper $(ARCH)-linux$${i##$(GNU_TARGET_NAME)}; \
339 ln -snf $$i.br_real $(ARCH)-linux$${i##$(GNU_TARGET_NAME)}.br_real; \
342 ln -snf $$i $(ARCH)-linux$${i##$(GNU_TARGET_NAME)}; \