public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "aros at gmx dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug bootstrap/105688] Cannot build GCC 11.3 on Fedora 36
Date: Tue, 05 Jul 2022 17:40:10 +0000	[thread overview]
Message-ID: <bug-105688-4-K14GuC7Hov@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-105688-4@http.gcc.gnu.org/bugzilla/>

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105688

--- Comment #28 from Artem S. Tashkinov <aros at gmx dot com> ---
(In reply to Jonathan Wakely from comment #27)
> (In reply to Artem S. Tashkinov from comment #25)
> > Can you please try with the script I posted in comment #4?
> 
> That works fine on F35 and F36.

I've just tried again, the result is the same. I have 100% standard Fedora 36
(sans a few custom environment variables defined - see below, nothing GCC
related) with all the updates installed.

The below commands are all run under the root user (not sudo, an actual login
under root).

# md5sum gcc-11.3.0.tar.xz 
4ee3e8c4c99e7b3444eb79f00f5f7a7e  gcc-11.3.0.tar.xz

# ld --version
GNU gold (version 2.37-27.fc36) 1.16

# gcc --version
gcc (GCC) 12.1.1 20220507 (Red Hat 12.1.1-1)

# ./build.sh
... skipped ...
libtool: compile:  /tmp/OBJDIR/./gcc/xgcc -shared-libgcc -B/tmp/OBJDIR/./gcc
-nostdinc++ -L/tmp/OBJDIR/x86_64-pc-linux-gnu/32/libstdc++-v3/src
-L/tmp/OBJDIR/x86_64-pc-linux-gnu/32/libstdc++-v3/src/.libs
-L/tmp/OBJDIR/x86_64-pc-linux-gnu/32/libstdc++-v3/libsupc++/.libs
-B/opt/gcc/x86_64-pc-linux-gnu/bin/ -B/opt/gcc/x86_64-pc-linux-gnu/lib/
-isystem /opt/gcc/x86_64-pc-linux-gnu/include -isystem
/opt/gcc/x86_64-pc-linux-gnu/sys-include -fno-checking -m32
-I/tmp/OBJDIR/x86_64-pc-linux-gnu/32/libstdc++-v3/include/x86_64-pc-linux-gnu
-I/tmp/OBJDIR/x86_64-pc-linux-gnu/32/libstdc++-v3/include
-I/tmp/gcc-11.3.0/libstdc++-v3/libsupc++ -std=gnu++98 -fPIC -DPIC
-fno-implicit-templates -Wall -Wextra -Wwrite-strings -Wcast-qual -Wabi=2
-fdiagnostics-show-location=once -ffunction-sections -fdata-sections
-frandom-seed=compatibility.lo -g -O2 -pipe -mtune=generic -D_GNU_SOURCE -m32
-fcf-protection -mshstk -c
/tmp/gcc-11.3.0/libstdc++-v3/src/c++98/compatibility.cc -o compatibility.o
>/dev/null 2>&1
/bin/sh ../libtool --tag CXX   --mode=link /tmp/OBJDIR/./gcc/xgcc
-shared-libgcc -B/tmp/OBJDIR/./gcc -nostdinc++
-L/tmp/OBJDIR/x86_64-pc-linux-gnu/32/libstdc++-v3/src
-L/tmp/OBJDIR/x86_64-pc-linux-gnu/32/libstdc++-v3/src/.libs
-L/tmp/OBJDIR/x86_64-pc-linux-gnu/32/libstdc++-v3/libsupc++/.libs
-B/opt/gcc/x86_64-pc-linux-gnu/bin/ -B/opt/gcc/x86_64-pc-linux-gnu/lib/
-isystem /opt/gcc/x86_64-pc-linux-gnu/include -isystem
/opt/gcc/x86_64-pc-linux-gnu/sys-include -fno-checking  -m32  -Wl,-O1
-Wl,-z,relro -Wl,--gc-sections  -std=gnu++98 -fPIC -DPIC
-fno-implicit-templates -Wall -Wextra -Wwrite-strings -Wcast-qual -Wabi=2
-fdiagnostics-show-location=once -ffunction-sections -fdata-sections
-frandom-seed=libstdc++.la  '-m32' -o libstdc++.la -version-info 6:29:0
-Wl,--version-script=libstdc++-symbols.ver -lm  -rpath /opt/gcc/lib/../lib
compatibility.lo compatibility-debug_list.lo compatibility-debug_list-2.lo 
compatibility-c++0x.lo compatibility-atomic-c++0x.lo
compatibility-thread-c++0x.lo compatibility-chrono.lo compatibility-condvar.lo 
 ../libsupc++/libsupc++convenience.la ../src/c++98/libc++98convenience.la
../src/c++11/libc++11convenience.la ../src/c++17/libc++17convenience.la
../src/c++20/libc++20convenience.la 
libtool: link: /tmp/OBJDIR/./gcc/xgcc -shared-libgcc -B/tmp/OBJDIR/./gcc
-nostdinc++ -L/tmp/OBJDIR/x86_64-pc-linux-gnu/32/libstdc++-v3/src
-L/tmp/OBJDIR/x86_64-pc-linux-gnu/32/libstdc++-v3/src/.libs
-L/tmp/OBJDIR/x86_64-pc-linux-gnu/32/libstdc++-v3/libsupc++/.libs
-B/opt/gcc/x86_64-pc-linux-gnu/bin/ -B/opt/gcc/x86_64-pc-linux-gnu/lib/
-isystem /opt/gcc/x86_64-pc-linux-gnu/include -isystem
/opt/gcc/x86_64-pc-linux-gnu/sys-include -fno-checking  -m32  -fPIC -DPIC
-D_GLIBCXX_SHARED -shared -nostdlib /lib/../lib/crti.o
/tmp/OBJDIR/./gcc/32/crtbeginS.o  .libs/compatibility.o
.libs/compatibility-debug_list.o .libs/compatibility-debug_list-2.o
.libs/compatibility-c++0x.o .libs/compatibility-atomic-c++0x.o
.libs/compatibility-thread-c++0x.o .libs/compatibility-chrono.o
.libs/compatibility-condvar.o  -Wl,--whole-archive
../libsupc++/.libs/libsupc++convenience.a
../src/c++98/.libs/libc++98convenience.a
../src/c++11/.libs/libc++11convenience.a
../src/c++17/.libs/libc++17convenience.a
../src/c++20/.libs/libc++20convenience.a -Wl,--no-whole-archive 
-L/tmp/OBJDIR/x86_64-pc-linux-gnu/32/libstdc++-v3/libsupc++/.libs
-L/tmp/OBJDIR/x86_64-pc-linux-gnu/32/libstdc++-v3/src
-L/tmp/OBJDIR/x86_64-pc-linux-gnu/32/libstdc++-v3/src/.libs -lm
-L/tmp/OBJDIR/./gcc/32 -L/lib/../lib -L/usr/lib/../lib -L/tmp/OBJDIR/./gcc -lc
-lgcc_s /tmp/OBJDIR/./gcc/32/crtendS.o /lib/../lib/crtn.o  -m32 -Wl,-O1 -Wl,-z
-Wl,relro -Wl,--gc-sections -m32 -Wl,--version-script=libstdc++-symbols.ver  
-Wl,-soname -Wl,libstdc++.so.6 -o .libs/libstdc++.so.6.0.29
/usr/bin/ld:
/tmp/OBJDIR/x86_64-pc-linux-gnu/libstdc++-v3/src/.libs/libstdc++.so.6: version
`GLIBCXX_3.4.30' not found (required by /usr/bin/ld)
collect2: error: ld returned 1 exit status
make[10]: *** [Makefile:732: libstdc++.la] Error 1
make[10]: Leaving directory
'/tmp/OBJDIR/x86_64-pc-linux-gnu/32/libstdc++-v3/src'
make[9]: *** [Makefile:765: all-recursive] Error 1
make[9]: Leaving directory
'/tmp/OBJDIR/x86_64-pc-linux-gnu/32/libstdc++-v3/src'
make[8]: *** [Makefile:568: all-recursive] Error 1
make[8]: Leaving directory '/tmp/OBJDIR/x86_64-pc-linux-gnu/32/libstdc++-v3'
make[7]: *** [Makefile:493: all] Error 2
make[7]: Leaving directory '/tmp/OBJDIR/x86_64-pc-linux-gnu/32/libstdc++-v3'
make[6]: *** [Makefile:862: multi-do] Error 1
make[6]: Leaving directory '/tmp/OBJDIR/x86_64-pc-linux-gnu/libstdc++-v3'
make[5]: *** [Makefile:832: all-multi] Error 2
make[5]: Leaving directory '/tmp/OBJDIR/x86_64-pc-linux-gnu/libstdc++-v3'
make[4]: *** [Makefile:568: all-recursive] Error 1
make[4]: Leaving directory '/tmp/OBJDIR/x86_64-pc-linux-gnu/libstdc++-v3'
make[3]: *** [Makefile:493: all] Error 2
make[3]: Leaving directory '/tmp/OBJDIR/x86_64-pc-linux-gnu/libstdc++-v3'
make[2]: *** [Makefile:16953: all-stage1-target-libstdc++-v3] Error 2
make[2]: Leaving directory '/tmp/OBJDIR'
make[1]: *** [Makefile:23946: stage1-bubble] Error 2
make[1]: Leaving directory '/tmp/OBJDIR'
make: *** [Makefile:1014: all] Error 2

# set
BASH=/usr/bin/bash
BASHOPTS=checkwinsize:cmdhist:complete_fullquote:expand_aliases:extquote:force_fignore:globasciiranges:histappend:hostcomplete:interactive_comments:progcomp:promptvars:sourcepath
BASHRCSOURCED=Y
BASH_ALIASES=()
BASH_ARGC=([0]="0")
BASH_ARGV=()
BASH_CMDS=()
BASH_LINENO=()
BASH_REMATCH=([0]="/root/.local/bin:/root/bin:")
BASH_SOURCE=()
BASH_VERSINFO=([0]="5" [1]="1" [2]="16" [3]="1" [4]="release"
[5]="x86_64-redhat-linux-gnu")
BASH_VERSION='5.1.16(1)-release'
COLUMNS=254
DEBUGINFOD_URLS='https://debuginfod.fedoraproject.org/ '
DIRSTACK=()
EUID=0
FREETYPE_PROPERTIES=truetype:interpreter-version=35
GROUPS=()
HISTCONTROL=ignoredups:ignorespace
HISTFILE=/root/.bash_history
HISTFILESIZE=33333
HISTSIZE=33333
HOME=/root
HOSTNAME=zen
HOSTTYPE=x86_64
IFS=$' \t\n'
LANG=en_US.UTF-8
LESSOPEN='||/usr/bin/lesspipe.sh %s'
LINES=66
LOGNAME=root
LS_COLORS=<skipped>
MACHTYPE=x86_64-redhat-linux-gnu
MAIL=/var/spool/mail/root
MAILCHECK=60
MC_SID=1057166
MC_TMPDIR=/var/tmp/mc-root
OLDPWD=/mnt/loop/Linux/kernel
OPTERR=1
OPTIND=1
OSTYPE=linux-gnu
PATH=/root/.local/bin:/root/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/opt/wine/bin
PIPESTATUS=([0]="2")
PPID=1057164
PROMPT_COMMAND=$'printf "\\033]0;%s@%s:%s\\007" "${USER}" "${HOSTNAME%%.*}"
"${PWD/#$HOME/\\~}"\npwd>&9;kill -STOP $$'
PS1='[\u@\h \W]\$ '
PS2='> '
PS4='+ '
PWD=/tmp/gcc-11.3.0
QML_DISABLE_DISK_CACHE=1
QT_AUTO_SCREEN_SCALE_FACTOR=0
QT_FONT_DPI=100
SHELL=/bin/bash
SHELLOPTS=braceexpand:emacs:hashall:histexpand:history:interactive-comments:monitor
SHLVL=2
TERM=xterm-256color
UID=0
USER=root
XDG_CACHE_HOME=/var/tmp/xdgcache-root
_=./build.sh
__GL_ExperimentalPerfStrategy=1
colors=/root/.dircolors
which_declare='declare -f'
which_opt=-f

  parent reply	other threads:[~2022-07-05 17:40 UTC|newest]

Thread overview: 49+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-05-22 10:02 [Bug c/105688] New: " aros at gmx dot com
2022-05-22 10:52 ` [Bug c/105688] " aros at gmx dot com
2022-05-22 11:04 ` aros at gmx dot com
2022-05-22 12:57 ` pinskia at gcc dot gnu.org
2022-05-22 12:59 ` aros at gmx dot com
2022-05-22 13:00 ` aros at gmx dot com
2022-05-23  7:24 ` rguenth at gcc dot gnu.org
2022-05-23  7:31 ` pinskia at gcc dot gnu.org
2022-05-23  7:32 ` [Bug bootstrap/105688] " pinskia at gcc dot gnu.org
2022-05-23  7:35 ` pinskia at gcc dot gnu.org
2022-05-23  7:37 ` aros at gmx dot com
2022-05-23 14:13 ` aros at gmx dot com
2022-05-23 15:27 ` amonakov at gcc dot gnu.org
2022-05-23 18:36 ` pinskia at gcc dot gnu.org
2022-05-23 23:35 ` aros at gmx dot com
2022-05-23 23:48 ` pinskia at gcc dot gnu.org
2022-05-23 23:51 ` pinskia at gcc dot gnu.org
2022-05-23 23:52 ` sam at gentoo dot org
2022-05-24  9:07 ` aros at gmx dot com
2022-05-24  9:10 ` aros at gmx dot com
2022-05-24  9:11 ` pinskia at gcc dot gnu.org
2022-07-04 15:02 ` vincent-gcc at vinc17 dot net
2022-07-04 16:20 ` redi at gcc dot gnu.org
2022-07-04 16:23 ` redi at gcc dot gnu.org
2022-07-04 16:24 ` sam at gentoo dot org
2022-07-04 16:26 ` aros at gmx dot com
2022-07-05  8:53 ` vincent-gcc at vinc17 dot net
2022-07-05 16:08 ` redi at gcc dot gnu.org
2022-07-05 17:40 ` aros at gmx dot com [this message]
2022-07-05 18:04 ` [Bug bootstrap/105688] GCC 11.3 doesn't build with the GNU gold linker (version 2.37-27.fc36) 1.16: libstdc++.so.6: version `GLIBCXX_3.4.30' not found aros at gmx dot com
2022-07-05 18:27 ` aros at gmx dot com
2022-07-05 18:30 ` aros at gmx dot com
2022-07-06  1:48 ` pinskia at gcc dot gnu.org
2022-07-06  2:48 ` vincent-gcc at vinc17 dot net
2022-07-06  2:54 ` pinskia at gcc dot gnu.org
2022-07-06  2:59 ` vincent-gcc at vinc17 dot net
2022-07-06  3:06 ` vincent-gcc at vinc17 dot net
2022-07-06  3:14 ` pinskia at gcc dot gnu.org
2022-07-06  7:08 ` redi at gcc dot gnu.org
2022-07-06  9:43 ` vincent-gcc at vinc17 dot net
2022-07-06 10:52 ` aros at gmx dot com
2022-07-06 12:17 ` redi at gcc dot gnu.org
2022-07-06 15:29 ` aros at gmx dot com
2022-07-20 15:12 ` redi at gcc dot gnu.org
2023-04-24 19:46 ` arsen at gcc dot gnu.org
2023-04-24 19:55 ` arsen at gcc dot gnu.org
2024-01-24 10:28 ` [Bug bootstrap/105688] GCC breaks build process if bootstrapping a downgraded GCC (was "GCC 11.3 doesn't build with the GNU gold linker (version 2.37-27.fc36) 1.16: libstdc++.so.6: version `GLIBCXX_3.4.30' not found") redi at gcc dot gnu.org
2024-01-24 19:14 ` jason at gcc dot gnu.org
2024-01-24 22:37 ` jason at gcc dot gnu.org

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=bug-105688-4-K14GuC7Hov@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).