public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "burnus at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug bootstrap/107059] [13 regression] bootstrap failure after r13-2887-gb04208895fed34 Date: Wed, 28 Sep 2022 18:40:07 +0000 [thread overview] Message-ID: <bug-107059-4-MUXszvGv2C@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-107059-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107059 --- Comment #23 from Tobias Burnus <burnus at gcc dot gnu.org> --- Regarding the $BUILD/gcc/include-fixed and xgcc -B $BUILD/gcc: In gcc.cc's driver_handle_option: add_prefix (&include_prefixes, arg, NULL, PREFIX_PRIORITY_B_OPT, 0, 0); Adds "$BUILD/gcc/" to the prefix list in include_prefix.plist (priority = PREFIX_PRIORITY_B_OPT, require_machine_suffix = os_multilib = 0) the include_prefixes.name is "include". This is later processed in do_spec_1 as: info.option = "-isystem"; info.append = "include"; ... for_each_path (&include_prefixes, false, info.append_len, spec_path, &info); ... info.append = "include-fixed"; for_each_path (&include_prefixes, false, info.append_len, spec_path, &info); which in turn runs with (<prefix> = "$BUILD/gcc/"): <prefix>/x86_64-pc-linux-gnu/13.0.0/ <prefix>/x86_64-linux-gnu/ <prefix> It also sets -iprefix $BUILD/gcc/../lib/gcc/x86_64-pc-linux-gnu/13.0.0/ -isystem $BUILD/gcc/{include,include-fixed} Without -B, include_prefix.plist is NULL and also no -iprefix is set. Thus, cc1 has to find the paths itself. – The iprefix does not really matter, except that with the installed compiler, the include-fixed can be found at <prefix>/include-fixed which is $INSTALL/lib/gcc/$target/13.0.0/include-fixed and is part of the 'cpp_include_defaults' array. With the in-build compiler, $BUILD/lib/gcc/$target/13.0.0/include-fixed is checked for - but does not exist. The additionally specified -isystem is processed - but not under the multiarch processing. * * * Thus, one possibility that should work as well is to create the include-fixed not under gcc/ but under lib/gcc/$target/$version/include-fixed Or to change the for_each_path + spec_path such that it puts "include-fixed' between plist->name and the multiarch and then uses "" as suffix (alias info.append)
next prev parent reply other threads:[~2022-09-28 18:40 UTC|newest] Thread overview: 36+ messages / expand[flat|nested] mbox.gz Atom feed top 2022-09-27 16:46 [Bug bootstrap/107059] New: " seurer at gcc dot gnu.org 2022-09-27 17:10 ` [Bug bootstrap/107059] " jakub at gcc dot gnu.org 2022-09-27 17:28 ` marxin at gcc dot gnu.org 2022-09-27 17:37 ` jakub at gcc dot gnu.org 2022-09-27 18:40 ` seurer at gcc dot gnu.org 2022-09-27 18:50 ` jakub at gcc dot gnu.org 2022-09-27 18:52 ` seurer at gcc dot gnu.org 2022-09-27 19:13 ` jakub at gcc dot gnu.org 2022-09-27 19:20 ` seurer at gcc dot gnu.org 2022-09-27 19:26 ` jakub at gcc dot gnu.org 2022-09-27 19:59 ` seurer at gcc dot gnu.org 2022-09-27 20:22 ` jakub at gcc dot gnu.org 2022-09-28 9:45 ` tnfchris at gcc dot gnu.org 2022-09-28 9:46 ` jakub at gcc dot gnu.org 2022-09-28 10:12 ` jakub at gcc dot gnu.org 2022-09-28 10:59 ` burnus at gcc dot gnu.org 2022-09-28 11:18 ` burnus at gcc dot gnu.org 2022-09-28 11:26 ` burnus at gcc dot gnu.org 2022-09-28 11:37 ` jakub at gcc dot gnu.org 2022-09-28 12:58 ` burnus at gcc dot gnu.org 2022-09-28 13:10 ` burnus at gcc dot gnu.org 2022-09-28 13:12 ` jakub at gcc dot gnu.org 2022-09-28 17:16 ` joseph at codesourcery dot com 2022-09-28 18:40 ` burnus at gcc dot gnu.org [this message] 2022-09-28 18:47 ` jakub at gcc dot gnu.org 2022-09-28 18:57 ` burnus at gcc dot gnu.org 2022-09-28 19:04 ` jakub at gcc dot gnu.org 2022-09-28 19:20 ` manuel.lauss at googlemail dot com 2022-09-29 8:07 ` rguenth at gcc dot gnu.org 2022-09-29 10:06 ` cvs-commit at gcc dot gnu.org 2022-09-29 10:14 ` jakub at gcc dot gnu.org 2022-10-03 15:29 ` seurer at gcc dot gnu.org 2022-10-03 15:33 ` jakub at gcc dot gnu.org 2022-10-07 7:00 ` cvs-commit at gcc dot gnu.org 2022-10-07 7:00 ` cvs-commit at gcc dot gnu.org 2022-10-07 7:01 ` jakub 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-107059-4-MUXszvGv2C@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: linkBe 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).