-
Notifications
You must be signed in to change notification settings - Fork 96
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sys-devel/gcc: Fails to compile with jit
USE
#846
Comments
Confirmed, this code path wasn't taken before the change in Here is a temporary fix.
--- a/gcc/configure 2022-06-02 03:40:20.557616640 -0400
+++ b/gcc/configure 2022-06-02 03:41:33.216325056 -0400
@@ -5392,8 +5392,8 @@
# optimizations to be activated explicitly by the toplevel.
case "$CC" in
*/prev-gcc/xgcc*) ;;
- *) CFLAGS=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" `
- CXXFLAGS=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/-O[0-9]*[ ]//" ` ;;
+ *) CFLAGS=`echo "$CFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/\(^\|[ ]\)-O[0-9]*[ ]/\1/" `
+ CXXFLAGS=`echo "$CXXFLAGS " | sed -e "s/-Ofast[ ]//" -e "s/-O[gs][ ]//" -e "s/\(^\|[ ]\)-O[0-9]*[ ]/\1/" ` ;;
esac
|
There's a fix in ::gentoo for 10.4+/11.3+/12 now, so this can be closed. But as per my comment on Bugzilla, I'd still really suggest disabling the flag mangling from bashrc anyway. |
[Imported from 14.2.0/gentoo/28_all_drop_CFLAGS_sed.patch] Bug: https://bugs.gentoo.org/849722 Bug: InBetweenNames/gentooLTO#846 Bug: vaeth/portage-bashrc-mv#11
[Imported from 14.2.0/gentoo/28_all_drop_CFLAGS_sed.patch] Bug: https://bugs.gentoo.org/849722 Bug: InBetweenNames/gentooLTO#846 Bug: vaeth/portage-bashrc-mv#11
When emerging
sys-devel/gcc
with thejit
useflag it fails to configurebuild-jit/gcc
with this error.Looking at
work/build-jit/gcc/config.log
I noticed it put-Wl,-Wl,--as-needed
causingld
to fail.Adding
sys-devel/gcc NOLDADD=1
topackage.cflags
seems to work.I think this started happening after this commit to
toolchain.eclass
.EDIT: Here's some log files if they're needed.
emerge --info
emerge --info sys-devel/gcc
/var/tmp/portage/sys-devel/gcc-11.3.0/temp/build.log.
/var/tmp/portage/sys-devel/gcc-11.3.0/work/build-jit/gcc/config.log
The text was updated successfully, but these errors were encountered: