public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug rust/108084] New: AArch64 Linux bootstrap failure in rust
@ 2022-12-13 14:41 ktkachov at gcc dot gnu.org
  2022-12-13 15:11 ` [Bug c++/108084] " pinskia at gcc dot gnu.org
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: ktkachov at gcc dot gnu.org @ 2022-12-13 14:41 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 108084
           Summary: AArch64 Linux bootstrap failure in rust
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Keywords: build
          Severity: normal
          Priority: P3
         Component: rust
          Assignee: unassigned at gcc dot gnu.org
          Reporter: ktkachov at gcc dot gnu.org
                CC: dkm at gcc dot gnu.org
  Target Milestone: ---
              Host: aarch64-none-linux-gnu
            Target: aarch64-none-linux-gnu

Congratulations on getting the rust frontend committed!
When trying a bootstrap on aarch64-none-linux with
--enable-languages=c,c++,fortran,rust I get a -Werror=nonnull failure

In file included from $SRC/gcc/rust/parse/rust-parse.h:730,
                 from $SRC/gcc/rust/expand/rust-macro-builtins.cc:25:
$SRC/gcc/rust/parse/rust-parse-impl.h: In member function
'Rust::AST::ClosureParam
Rust::Parser<ManagedTokenSource>::parse_closure_param() [with
ManagedTokenSource = Rust::Lexer]':
$SRC/gcc/rust/parse/rust-parse-impl.h:8916:70: error: 'this' pointer is null
[-Werror=nonnull]
 8916 |                             std::move (type), std::move (outer_attrs));
      |                                                                      ^
In file included from $SRC/gcc/rust/parse/rust-parse.h:730,
                 from $SRC/gcc/rust/expand/rust-macro-expand.h:23,
                 from $SRC/gcc/rust/expand/rust-macro-expand.cc:19:
$SRC/gcc/rust/parse/rust-parse-impl.h: In member function
'Rust::AST::ClosureParam
Rust::Parser<ManagedTokenSource>::parse_closure_param() [with
ManagedTokenSource = Rust::MacroInvocLexer]':
$SRC/gcc/rust/parse/rust-parse-impl.h:8916:70: error: 'this' pointer is null
[-Werror=nonnull]
 8916 |                             std::move (type), std::move (outer_attrs));
      |                                                                      ^
In file included from $SRC/gcc/rust/parse/rust-parse.h:730,
                 from $SRC/gcc/rust/rust-session-manager.cc:23:
$SRC/gcc/rust/parse/rust-parse-impl.h: In member function
'Rust::AST::ClosureParam
Rust::Parser<ManagedTokenSource>::parse_closure_param() [with
ManagedTokenSource = Rust::Lexer]':
$SRC/gcc/rust/parse/rust-parse-impl.h:8916:70: error: 'this' pointer is null
[-Werror=nonnull]
 8916 |                             std::move (type), std::move (outer_attrs));

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug c++/108084] AArch64 Linux bootstrap failure in rust
  2022-12-13 14:41 [Bug rust/108084] New: AArch64 Linux bootstrap failure in rust ktkachov at gcc dot gnu.org
@ 2022-12-13 15:11 ` pinskia at gcc dot gnu.org
  2022-12-13 16:39 ` pinskia at gcc dot gnu.org
                   ` (7 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu.org @ 2022-12-13 15:11 UTC (permalink / raw)
  To: gcc-bugs

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |diagnostic
          Component|rust                        |c++

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
This seems like a C++ front-end bug or a miscompiling of the C++ front-end.

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug c++/108084] AArch64 Linux bootstrap failure in rust
  2022-12-13 14:41 [Bug rust/108084] New: AArch64 Linux bootstrap failure in rust ktkachov at gcc dot gnu.org
  2022-12-13 15:11 ` [Bug c++/108084] " pinskia at gcc dot gnu.org
@ 2022-12-13 16:39 ` pinskia at gcc dot gnu.org
  2022-12-13 16:44 ` jakub at gcc dot gnu.org
                   ` (6 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu.org @ 2022-12-13 16:39 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
I can reproduce the failure.
It is happening in stage 2

Command line:
/home/ubuntu/src/upstream-gcc-aarch64/gcc/objdir/./prev-gcc/xg++
-B/home/ubuntu/src/upstream-gcc-aarch64/gcc/objdir/./prev-gcc/
-B/home/ubuntu/upstream-gcc/aarch64-unknown-linux-gnu/bin/ -nostdinc++
-B/home/ubuntu/src/upstream-gcc-aarch64/gcc/objdir/prev-aarch64-unknown-linux-gnu/libstdc++-v3/src/.libs
-B/home/ubuntu/src/upstream-gcc-aarch64/gcc/objdir/prev-aarch64-unknown-linux-gnu/libstdc++-v3/libsupc++/.libs

-I/home/ubuntu/src/upstream-gcc-aarch64/gcc/objdir/prev-aarch64-unknown-linux-gnu/libstdc++-v3/include/aarch64-unknown-linux-gnu

-I/home/ubuntu/src/upstream-gcc-aarch64/gcc/objdir/prev-aarch64-unknown-linux-gnu/libstdc++-v3/include
 -I/home/ubuntu/src/upstream-gcc-aarch64/gcc/libstdc++-v3/libsupc++
-L/home/ubuntu/src/upstream-gcc-aarch64/gcc/objdir/prev-aarch64-unknown-linux-gnu/libstdc++-v3/src/.libs
-L/home/ubuntu/src/upstream-gcc-aarch64/gcc/objdir/prev-aarch64-unknown-linux-gnu/libstdc++-v3/libsupc++/.libs
 -fno-PIE -c  -DIN_GCC_FRONTEND -g -O2 -fno-checking -gtoggle -DIN_GCC    
-fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing
-Wwrite-strings -Wcast-qual -Wmissing-format-attribute -Woverloaded-virtual
-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Werror
-Wno-unused-parameter -fno-common  -DHAVE_CONFIG_H -I. -Irust
-I/home/ubuntu/src/upstream-gcc-aarch64/gcc/gcc
-I/home/ubuntu/src/upstream-gcc-aarch64/gcc/gcc/rust
-I/home/ubuntu/src/upstream-gcc-aarch64/gcc/gcc/../include
-I/home/ubuntu/src/upstream-gcc-aarch64/gcc/gcc/../libcpp/include
-I/home/ubuntu/src/upstream-gcc-aarch64/gcc/gcc/../libcody 
-I/home/ubuntu/src/upstream-gcc-aarch64/gcc/gcc/../libdecnumber
-I/home/ubuntu/src/upstream-gcc-aarch64/gcc/gcc/../libdecnumber/bid
-I../libdecnumber
-I/home/ubuntu/src/upstream-gcc-aarch64/gcc/gcc/../libbacktrace   -o
rust/rust-ast-full-test.o -MT rust/rust-ast-full-test.o -MMD -MP -MF
rust/.deps/rust-ast-full-test.TPo -g -O2 -fno-checking -gtoggle -I
/home/ubuntu/src/upstream-gcc-aarch64/gcc/gcc/rust -I
/home/ubuntu/src/upstream-gcc-aarch64/gcc/gcc/rust/lex -I
/home/ubuntu/src/upstream-gcc-aarch64/gcc/gcc/rust/parse -I
/home/ubuntu/src/upstream-gcc-aarch64/gcc/gcc/rust/ast -I
/home/ubuntu/src/upstream-gcc-aarch64/gcc/gcc/rust/analysis -I
/home/ubuntu/src/upstream-gcc-aarch64/gcc/gcc/rust/backend -I
/home/ubuntu/src/upstream-gcc-aarch64/gcc/gcc/rust/expand -I
/home/ubuntu/src/upstream-gcc-aarch64/gcc/gcc/rust/hir/tree -I
/home/ubuntu/src/upstream-gcc-aarch64/gcc/gcc/rust/hir -I
/home/ubuntu/src/upstream-gcc-aarch64/gcc/gcc/rust/resolve -I
/home/ubuntu/src/upstream-gcc-aarch64/gcc/gcc/rust/util -I
/home/ubuntu/src/upstream-gcc-aarch64/gcc/gcc/rust/typecheck -I
/home/ubuntu/src/upstream-gcc-aarch64/gcc/gcc/rust/checks/lints -I
/home/ubuntu/src/upstream-gcc-aarch64/gcc/gcc/rust/checks/errors -I
/home/ubuntu/src/upstream-gcc-aarch64/gcc/gcc/rust/checks/errors/privacy -I
/home/ubuntu/src/upstream-gcc-aarch64/gcc/gcc/rust/util -I
/home/ubuntu/src/upstream-gcc-aarch64/gcc/gcc/rust/metadata
/home/ubuntu/src/upstream-gcc-aarch64/gcc/gcc/rust/ast/rust-ast-full-test.cc

Let me try to see if I can try to reduce what is going on.

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug c++/108084] AArch64 Linux bootstrap failure in rust
  2022-12-13 14:41 [Bug rust/108084] New: AArch64 Linux bootstrap failure in rust ktkachov at gcc dot gnu.org
  2022-12-13 15:11 ` [Bug c++/108084] " pinskia at gcc dot gnu.org
  2022-12-13 16:39 ` pinskia at gcc dot gnu.org
@ 2022-12-13 16:44 ` jakub at gcc dot gnu.org
  2022-12-13 16:48 ` pinskia at gcc dot gnu.org
                   ` (5 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: jakub at gcc dot gnu.org @ 2022-12-13 16:44 UTC (permalink / raw)
  To: gcc-bugs

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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jakub at gcc dot gnu.org

--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Can you please attach preprocessed source?
Trying x86_64-linux bootstrap with rust now if I can trigger it there too...

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug c++/108084] AArch64 Linux bootstrap failure in rust
  2022-12-13 14:41 [Bug rust/108084] New: AArch64 Linux bootstrap failure in rust ktkachov at gcc dot gnu.org
                   ` (2 preceding siblings ...)
  2022-12-13 16:44 ` jakub at gcc dot gnu.org
@ 2022-12-13 16:48 ` pinskia at gcc dot gnu.org
  2022-12-13 17:08 ` pinskia at gcc dot gnu.org
                   ` (4 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu.org @ 2022-12-13 16:48 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Jakub Jelinek from comment #3)
> Can you please attach preprocessed source?


I will in a few minutes.

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug c++/108084] AArch64 Linux bootstrap failure in rust
  2022-12-13 14:41 [Bug rust/108084] New: AArch64 Linux bootstrap failure in rust ktkachov at gcc dot gnu.org
                   ` (3 preceding siblings ...)
  2022-12-13 16:48 ` pinskia at gcc dot gnu.org
@ 2022-12-13 17:08 ` pinskia at gcc dot gnu.org
  2022-12-13 17:21 ` pinskia at gcc dot gnu.org
                   ` (3 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu.org @ 2022-12-13 17:08 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Created attachment 54078
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=54078&action=edit
Preprocessed source

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug c++/108084] AArch64 Linux bootstrap failure in rust
  2022-12-13 14:41 [Bug rust/108084] New: AArch64 Linux bootstrap failure in rust ktkachov at gcc dot gnu.org
                   ` (4 preceding siblings ...)
  2022-12-13 17:08 ` pinskia at gcc dot gnu.org
@ 2022-12-13 17:21 ` pinskia at gcc dot gnu.org
  2022-12-13 17:26 ` pinskia at gcc dot gnu.org
                   ` (2 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu.org @ 2022-12-13 17:21 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #6 from Andrew Pinski <pinskia at gcc dot gnu.org> ---

The command line which is able to reproduce on aarch64:
../prev-gcc/cc1plus -fpreprocessed t.ii -quiet -dumpdir rust/ -dumpbase
rust-ast-full-test.cc -dumpbase-ext .cc  -g -g -gtoggle -O2 -O2 -Wextra -Wall
-Wno-narrowing -Wwrite-strings -Wcast-qual -Wsuggest-attribute=format
-Woverloaded-virtual=2 -Wpedantic -Wno-long-long -Wno-variadic-macros
-Wno-overlength-strings -Werror -Wno-unused-parameter -version -fno-PIE
-fno-exceptions -fno-rtti -fasynchronous-unwind-tables -fno-common
-fno-checking -o rust/rust-ast-full-test.s

But the following command line which does not produce the warning (still on
aarch64):
../prev-gcc/cc1plus t.ii -fpreprocessed -quiet -fno-exceptions -fno-rtti
-fasynchronous-unwind-tables -W -Wall -Wno-narrowing -Wwrite-strings
-Wcast-qual -Wmissing-format-attribute -Woverloaded-virtual -pedantic
-Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Werror
-Wno-unused-parameter -fno-common -o t.s


Note I can't reproduce it on x86_64 with cc1plus built from
r13-4401-gf57ff189572575 .

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug c++/108084] AArch64 Linux bootstrap failure in rust
  2022-12-13 14:41 [Bug rust/108084] New: AArch64 Linux bootstrap failure in rust ktkachov at gcc dot gnu.org
                   ` (5 preceding siblings ...)
  2022-12-13 17:21 ` pinskia at gcc dot gnu.org
@ 2022-12-13 17:26 ` pinskia at gcc dot gnu.org
  2022-12-13 17:35 ` pinskia at gcc dot gnu.org
  2022-12-14 10:06 ` [Bug rust/108084] " tschwinge at gcc dot gnu.org
  8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu.org @ 2022-12-13 17:26 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #7 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
I built cc1plus on x86_64 at r13-4678-g8f4634fb82d and still not able to
reproduce it. This is a bit interesting.

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug c++/108084] AArch64 Linux bootstrap failure in rust
  2022-12-13 14:41 [Bug rust/108084] New: AArch64 Linux bootstrap failure in rust ktkachov at gcc dot gnu.org
                   ` (6 preceding siblings ...)
  2022-12-13 17:26 ` pinskia at gcc dot gnu.org
@ 2022-12-13 17:35 ` pinskia at gcc dot gnu.org
  2022-12-14 10:06 ` [Bug rust/108084] " tschwinge at gcc dot gnu.org
  8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu.org @ 2022-12-13 17:35 UTC (permalink / raw)
  To: gcc-bugs

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |DUPLICATE

--- Comment #8 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Dup of bug 106072.

*** This bug has been marked as a duplicate of bug 106072 ***

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [Bug rust/108084] AArch64 Linux bootstrap failure in rust
  2022-12-13 14:41 [Bug rust/108084] New: AArch64 Linux bootstrap failure in rust ktkachov at gcc dot gnu.org
                   ` (7 preceding siblings ...)
  2022-12-13 17:35 ` pinskia at gcc dot gnu.org
@ 2022-12-14 10:06 ` tschwinge at gcc dot gnu.org
  8 siblings, 0 replies; 10+ messages in thread
From: tschwinge at gcc dot gnu.org @ 2022-12-14 10:06 UTC (permalink / raw)
  To: gcc-bugs

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

Thomas Schwinge <tschwinge at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |gcc-rust at gcc dot gnu.org,
                   |                            |tschwinge at gcc dot gnu.org
           Keywords|diagnostic                  |
          Component|c++                         |rust
           See Also|https://gcc.gnu.org/bugzill |
                   |a/show_bug.cgi?id=106072    |

--- Comment #9 from Thomas Schwinge <tschwinge at gcc dot gnu.org> ---
Per PR106072, this actually is a GCC/Rust issue, not C++ diagnostic.

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2022-12-14 10:06 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-13 14:41 [Bug rust/108084] New: AArch64 Linux bootstrap failure in rust ktkachov at gcc dot gnu.org
2022-12-13 15:11 ` [Bug c++/108084] " pinskia at gcc dot gnu.org
2022-12-13 16:39 ` pinskia at gcc dot gnu.org
2022-12-13 16:44 ` jakub at gcc dot gnu.org
2022-12-13 16:48 ` pinskia at gcc dot gnu.org
2022-12-13 17:08 ` pinskia at gcc dot gnu.org
2022-12-13 17:21 ` pinskia at gcc dot gnu.org
2022-12-13 17:26 ` pinskia at gcc dot gnu.org
2022-12-13 17:35 ` pinskia at gcc dot gnu.org
2022-12-14 10:06 ` [Bug rust/108084] " tschwinge at gcc dot gnu.org

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).