public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Jaromir Capik <jcapik@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/gcc] rhel-f41-base: STAGE1-*: Moving config args to recipes & fixing FTBFS
Date: Mon, 29 Jun 2026 12:26:50 GMT [thread overview]
Message-ID: <178273601074.1.13870036535114702961.rpms-gcc-274d6185bdb5@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/gcc
Branch : rhel-f41-base
Commit : 274d6185bdb5f8df53bd02df46bad2e5f170fb21
Author : Jaromir Capik <jcapik@redhat.com>
Date : 2015-06-24T13:15:28+02:00
Stats : +82/-6 in 4 file(s)
URL : https://src.fedoraproject.org/rpms/gcc/c/274d6185bdb5f8df53bd02df46bad2e5f170fb21?branch=rhel-f41-base
Log:
STAGE1-*: Moving config args to recipes & fixing FTBFS
This commit moves the *GCC_CONFIGARGS from the stage1 script
to the *gcc* recipes so that the args can be tweaked by the
gcc maintainers in the future. This adds a bit of redundancy,
but still worthy.
This commit also disables gcc bootstrap in stage1 and splits
the build dir for gcc-host, gcc-libgcc and gcc so that it is
clean prior starting each build. It resolves strange config
issues that appear just under some combinations of build and
target arch.
---
diff --git a/STAGE1-gcc b/STAGE1-gcc
index cc10f06..11744b8 100644
--- a/STAGE1-gcc
+++ b/STAGE1-gcc
@@ -1,11 +1,32 @@
srpm gcc
mcd $BUILDDIR/gcc
+# These are for gcc cross-tools (politics sometime result in slightly
+# different arch names)
+GCC_CONFIGARGS="--prefix=$PREFIX
+ --libdir=$PREFIX/lib${SUFFIX}
+ --target=$TARGET
+ ${GCC_CONFIG_EXTRA}
+ --enable-languages=c,c++
+ --with-sysroot=$ROOTFS
+ --with-build-sysroot=$ROOTFS
+ --cache-file=config.cache
+ --disable-bootstrap
+ --enable-threads=posix
+ --enable-64-bit-bfd
+ --disable-lto
+ $WITHPPL
+"
+
# prefill gcc cache
echo 'lt_cv_shlibpath_overrides_runpath=no' > config.cache
echo 'gcc_cv_libc_provides_ssp=yes' >> config.cache
-$SRC/gcc-*/configure $GCC_CONFIGARGS --with-headers=$ROOTFS/usr/include --cache-file=config.cache
+if [ ! "$BUILDER_ARCH" = "$TARGET_ARCH" ]; then
+ WITH_HEADERS="--with-headers=$ROOTFS/usr/include"
+fi
+
+$SRC/gcc-*/configure $GCC_CONFIGARGS $WITH_HEADERS
notparallel
make $J
make $J install
diff --git a/STAGE1-gcc-host b/STAGE1-gcc-host
index a9fe747..514a58f 100644
--- a/STAGE1-gcc-host
+++ b/STAGE1-gcc-host
@@ -1,5 +1,22 @@
srpm gcc
-mcd $BUILDDIR/gcc
+mcd $BUILDDIR/gcc-host
+
+# These are for gcc cross-tools (politics sometime result in slightly
+# different arch names)
+GCC_CONFIGARGS="--prefix=$PREFIX
+ --libdir=$PREFIX/lib${SUFFIX}
+ --target=$TARGET
+ ${GCC_CONFIG_EXTRA}
+ --enable-languages=c,c++
+ --with-sysroot=$ROOTFS
+ --with-build-sysroot=$ROOTFS
+ --cache-file=config.cache
+ --disable-bootstrap
+ --enable-threads=posix
+ --enable-64-bit-bfd
+ --disable-lto
+ $WITHPPL
+"
# prefill gcc cache
echo 'lt_cv_shlibpath_overrides_runpath=no' > config.cache
@@ -9,7 +26,7 @@ if [ ! "$BUILDER_ARCH" = "$TARGET_ARCH" ]; then
WITH_HEADERS="--with-headers=$ROOTFS/usr/include"
fi
-$SRC/gcc-*/configure $GCC_CONFIGARGS $WITH_HEADERS --cache-file=config.cache
+$SRC/gcc-*/configure $GCC_CONFIGARGS $WITH_HEADERS
notparallel
# Pass gcc_cv_libc_provides_ssp down, because the config.cache
diff --git a/STAGE1-gcc-libgcc b/STAGE1-gcc-libgcc
index a73e524..2600172 100644
--- a/STAGE1-gcc-libgcc
+++ b/STAGE1-gcc-libgcc
@@ -1,11 +1,32 @@
srpm gcc
-mcd $BUILDDIR/gcc
+mcd $BUILDDIR/gcc-libgcc
+
+# These are for gcc cross-tools (politics sometime result in slightly
+# different arch names)
+GCC_CONFIGARGS="--prefix=$PREFIX
+ --libdir=$PREFIX/lib${SUFFIX}
+ --target=$TARGET
+ ${GCC_CONFIG_EXTRA}
+ --enable-languages=c,c++
+ --with-sysroot=$ROOTFS
+ --with-build-sysroot=$ROOTFS
+ --cache-file=config.cache
+ --disable-bootstrap
+ --enable-threads=posix
+ --enable-64-bit-bfd
+ --disable-lto
+ $WITHPPL
+"
# prefill gcc cache
echo 'lt_cv_shlibpath_overrides_runpath=no' > config.cache
echo 'gcc_cv_libc_provides_ssp=yes' >> config.cache
-$SRC/gcc-*/configure $GCC_CONFIGARGS --with-headers=$ROOTFS/usr/include --cache-file=config.cache
+if [ ! "$BUILDER_ARCH" = "$TARGET_ARCH" ]; then
+ WITH_HEADERS="--with-headers=$ROOTFS/usr/include"
+fi
+
+$SRC/gcc-*/configure $GCC_CONFIGARGS $WITH_HEADERS
notparallel
# Pass gcc_cv_libc_provides_ssp down, because the config.cache
# version is not passed down to the gcc subdir.
diff --git a/STAGE1-t-gcc b/STAGE1-t-gcc
index fa5eaca..ed20101 100644
--- a/STAGE1-t-gcc
+++ b/STAGE1-t-gcc
@@ -1,6 +1,23 @@
srpm gcc
mcd $BUILDDIR/t-gcc
-$SRC/gcc-*/configure $GCC_TCONFIGARGS --enable-linker-build-id
+
+GCC_TCONFIGARGS="--prefix=/usr
+ --libdir=/usr/lib${SUFFIX}
+ --with-sysroot=/
+ --with-build-sysroot=$ROOTFS
+ --build=$BUILD
+ --host=$TARGET
+ --target=$TARGET
+ --disable-bootstrap
+ --enable-werror=no
+ --enable-cxx
+ ${GCC_CONFIG_EXTRA}
+ --enable-languages=c,c++
+ --enable-threads=posix
+ --enable-linker-build-id
+"
+
+$SRC/gcc-*/configure $GCC_TCONFIGARGS
notparallel
make $J
make $J install DESTDIR=${ROOTFS}
reply other threads:[~2026-06-29 12:26 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=178273601074.1.13870036535114702961.rpms-gcc-274d6185bdb5@fedoraproject.org \
--to=jcapik@redhat.com \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox