public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: "Arsen Arsenović" <arsen@aarsen.me>
To: Salvatore Filippone <filippone.salvatore@gmail.com>
Cc: gcc-help@gcc.gnu.org
Subject: Re: Bootstrap failure on Fedora 37
Date: Tue, 21 Feb 2023 16:58:01 +0100	[thread overview]
Message-ID: <86fsaznh08.fsf@aarsen.me> (raw)
In-Reply-To: <CANSzZf5rr-OG=s+Zf5c-bGeh1JSexwN+vDTjfVnACG1WL+gu4g@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 4946 bytes --]

Hi Salvatore,

Salvatore Filippone via Gcc-help <gcc-help@gcc.gnu.org> writes:

> Hi there,
> I need to build some older versions of the compiler on Fedora 37 (which has
> 12.2.1 installed); at least 11 and 10, possibly also 9.

These failures are coming from libsanitizer, you can either
--disable-libsanitizer or backport a few fixes, like
r13-1609-g2701442d0cf629.  Please also check whether latest snapshots
build, since the fixes might be backported into those already.

I seem to recall building 12.2.1 20230218 recently without much trouble,
but I'm unsure if my kernel headers were recent enough to cause trouble.

> I tried bootstrapping 11.3.0 and I got this output. Any idea? (config.log
> attached)
> Thanks a lot
> Salvatore
> --------------------------------------------------------------
> libtool: compile:  /data/travel/SOFTWARE/GNU/BUILDS/obj-11.3.0/./gcc/xgcc
> -shared-libgcc -B/data/travel/SOFTWARE/GNU/BUILDS/obj-11.3.0/./gcc
> -nostdinc++
> -L/data/travel/SOFTWARE/GNU/BUILDS/obj-11.3.0/x86_64-pc-linux-gnu/libstdc++-v3/src
> -L/data/travel/SOFTWARE/GNU/BUILDS/obj-11.3.0/x86_64-pc-linux-gnu/libstdc++-v3/src/.libs
> -L/data/travel/SOFTWARE/GNU/BUILDS/obj-11.3.0/x86_64-pc-linux-gnu/libstdc++-v3/libsupc++/.libs
> -B/opt/gnu/11.3.0/x86_64-pc-linux-gnu/bin/
> -B/opt/gnu/11.3.0/x86_64-pc-linux-gnu/lib/ -isystem
> /opt/gnu/11.3.0/x86_64-pc-linux-gnu/include -isystem
> /opt/gnu/11.3.0/x86_64-pc-linux-gnu/sys-include -fchecking=1 -D_GNU_SOURCE
> -D_DEBUG -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS
> -D__STDC_LIMIT_MACROS -DHAVE_RPC_XDR_H=0 -DHAVE_TIRPC_RPC_XDR_H=0 -I.
> -I../../../../gcc-11.3.0/libsanitizer/sanitizer_common -I.. -I
> ../../../../gcc-11.3.0/libsanitizer/include -I
> ../../../../gcc-11.3.0/libsanitizer -isystem
> ../../../../gcc-11.3.0/libsanitizer/include/system -Wall -W
> -Wno-unused-parameter -Wwrite-strings -pedantic -Wno-long-long -fPIC
> -fno-builtin -fno-exceptions -fno-rtti -fomit-frame-pointer -funwind-tables
> -fvisibility=hidden -Wno-variadic-macros -I../../libstdc++-v3/include
> -I../../libstdc++-v3/include/x86_64-pc-linux-gnu
> -I../../../../gcc-11.3.0/libsanitizer/../libstdc++-v3/libsupc++
> -std=gnu++14 -fcf-protection -mshstk -DSANITIZER_LIBBACKTRACE
> -DSANITIZER_CP_DEMANGLE -I
> ../../../../gcc-11.3.0/libsanitizer/../libbacktrace -I ../libbacktrace -I
> ../../../../gcc-11.3.0/libsanitizer/../include -include
> ../../../../gcc-11.3.0/libsanitizer/libbacktrace/backtrace-rename.h -g -O2
> -D_GNU_SOURCE -MT sanitizer_platform_limits_posix.lo -MD -MP -MF
> .deps/sanitizer_platform_limits_posix.Tpo -c
> ../../../../gcc-11.3.0/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp
>  -fPIC -DPIC -o .libs/sanitizer_platform_limits_posix.o
> In file included from /usr/include/linux/fs.h:19,
>                  from
> ../../../../gcc-11.3.0/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp:75:
> /usr/include/linux/mount.h:95:6: error: multiple definition of ‘enum
> fsconfig_command’
>    95 | enum fsconfig_command {
>       |      ^~~~~~~~~~~~~~~~
> In file included from
> ../../../../gcc-11.3.0/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp:62:
> /data/travel/SOFTWARE/GNU/BUILDS/obj-11.3.0/gcc/include-fixed/sys/mount.h:249:6:
> note: previous definition here
>   249 | enum fsconfig_command
>       |      ^~~~~~~~~~~~~~~~
> In file included from /usr/include/linux/fs.h:19,
>                  from
> ../../../../gcc-11.3.0/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp:75:
> /usr/include/linux/mount.h:129:8: error: redefinition of ‘struct mount_attr’
>   129 | struct mount_attr {
>       |        ^~~~~~~~~~
> In file included from
> ../../../../gcc-11.3.0/libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.cpp:62:
> /data/travel/SOFTWARE/GNU/BUILDS/obj-11.3.0/gcc/include-fixed/sys/mount.h:219:8:
> note: previous definition of ‘struct mount_attr’
>   219 | struct mount_attr
>       |        ^~~~~~~~~~
> make[4]: *** [Makefile:615: sanitizer_platform_limits_posix.lo] Errore 1
> make[4]: uscita dalla directory
> «/data/travel/SOFTWARE/GNU/BUILDS/obj-11.3.0/x86_64-pc-linux-gnu/libsanitizer/sanitizer_common»
> make[3]: *** [Makefile:531: all-recursive] Errore 1
> make[3]: uscita dalla directory
> «/data/travel/SOFTWARE/GNU/BUILDS/obj-11.3.0/x86_64-pc-linux-gnu/libsanitizer»
> make[2]: *** [Makefile:418: all] Errore 2
> make[2]: uscita dalla directory
> «/data/travel/SOFTWARE/GNU/BUILDS/obj-11.3.0/x86_64-pc-linux-gnu/libsanitizer»
> make[1]: *** [Makefile:21826: all-target-libsanitizer] Errore 2
> make[1]: uscita dalla directory
> «/data/travel/SOFTWARE/GNU/BUILDS/obj-11.3.0»
> make: *** [Makefile:29174: bootstrap] Errore 2
> ------------------------------------------------------------------------

Hope that helps, have a good day.
-- 
Arsen Arsenović

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 381 bytes --]

  reply	other threads:[~2023-02-21 16:02 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-02-21 15:48 Salvatore Filippone
2023-02-21 15:58 ` Arsen Arsenović [this message]
2023-02-21 16:56   ` Salvatore Filippone
2023-02-21 17:02     ` Xi Ruoyao
2023-02-22  8:11       ` Salvatore Filippone

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=86fsaznh08.fsf@aarsen.me \
    --to=arsen@aarsen.me \
    --cc=filippone.salvatore@gmail.com \
    --cc=gcc-help@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).