public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug d/104835] New: [12 Regression] libphobos fails to build on mips64el-linux-gnu
@ 2022-03-08 8:17 doko at gcc dot gnu.org
2022-03-08 8:19 ` [Bug d/104835] " rguenth at gcc dot gnu.org
` (6 more replies)
0 siblings, 7 replies; 8+ messages in thread
From: doko at gcc dot gnu.org @ 2022-03-08 8:17 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104835
Bug ID: 104835
Summary: [12 Regression] libphobos fails to build on
mips64el-linux-gnu
Product: gcc
Version: 12.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: d
Assignee: ibuclaw at gdcproject dot org
Reporter: doko at gcc dot gnu.org
Target Milestone: ---
seen with trunk 20220302 on mips64el-linux-gnu:
libtool: compile: /<<PKGBUILDDIR>>/build/./gcc/gdc
-B/<<PKGBUILDDIR>>/build/./gcc/ -B/usr/mips6
4el-linux-gnuabi64/bin/ -B/usr/mips64el-linux-gnuabi64/lib/ -isystem
/usr/mips64el-linux-gnuabi6
4/include -isystem /usr/mips64el-linux-gnuabi64/sys-include -isystem
/<<PKGBUILDDIR>>/build/sys-
include -fno-checking -fversion=Shared -Wall -frelease -ffunction-sections
-fdata-sections -O2 -
g -fpreview=dip1000 -fpreview=fieldwise -fpreview=dtorfields -nostdinc -I
../../../../src/libpho
bos/libdruntime -I . -c
../../../../src/libphobos/libdruntime/core/internal/parseoptions.d -fPI
C -fversion=Shared -o core/internal/.libs/parseoptions.o
d21: internal compiler error: Segmentation fault
0x1203cbc7f
_D3dmd10dinterpret11Interpreter21interpretAssignCommonMFCQCd10expression6BinExpPFKxS
QDe7globals3LocCQDu5mtype4TypeCQEjQCg10ExpressionQtZSQFfQDc8UnionExpiZv
../../src/gcc/d/dmd/dinterpret.d:3678
0x1203b7de3
_D3dmd10dinterpret9interpretFPSQBd10expression8UnionExpCQCcQz10ExpressionPSQCvQCu10I
nterStateEQDoQDn8CTFEGoalZQCd
../../src/gcc/d/dmd/dinterpret.d:6420
0x1203b7de3
_D3dmd10dinterpret15interpretRegionFCQBj10expression10ExpressionPSQCmQCl10InterState
EQDfQDe8CTFEGoalZQCn
../../src/gcc/d/dmd/dinterpret.d:6448
0x1203cf5a3 Interpreter::visit(CallExp*)
../../src/gcc/d/dmd/dinterpret.d:4843
0x1203b855b
_D3dmd10dinterpret9interpretFPSQBd10expression8UnionExpCQCcQz10ExpressionPSQCvQCu10I
nterStateEQDoQDn8CTFEGoalZQCd
../../src/gcc/d/dmd/dinterpret.d:6420
0x1203b855b Interpreter::visit(ExpStatement*)
../../src/gcc/d/dmd/dinterpret.d:805
0x1203b855b Interpreter::visit(ExpStatement*)
../../src/gcc/d/dmd/dinterpret.d:790
0x1203b8c7b
_D3dmd10dinterpret9interpretFPSQBd10expression8UnionExpCQCc9statement9StatementPSQDbQDa10InterStateZCQDvQCs10Expression
../../src/gcc/d/dmd/dinterpret.d:6485
0x1203b8c7b Interpreter::visit(IfStatement*)
../../src/gcc/d/dmd/dinterpret.d:907
0x1203b577b
_D3dmd10dinterpret9interpretFPSQBd10expression8UnionExpCQCc9statement9StatementPSQDbQDa10InterStateZCQDvQCs10Expression
../../src/gcc/d/dmd/dinterpret.d:6485
0x1203b577b Interpreter::visit(CompoundStatement*)
../../src/gcc/d/dmd/dinterpret.d:823
0x1203b577b
_D3dmd10dinterpret9interpretFPSQBd10expression8UnionExpCQCc9statement9StatementPSQDbQDa10InterStateZCQDvQCs10Expression
../../src/gcc/d/dmd/dinterpret.d:6485
0x1203b577b Interpreter::visit(CompoundStatement*)
../../src/gcc/d/dmd/dinterpret.d:823
0x1203c5b97
_D3dmd10dinterpret9interpretFPSQBd10expression8UnionExpCQCc9statement9StatementPSQDbQDa10InterStateZCQDvQCs10Expression
../../src/gcc/d/dmd/dinterpret.d:6485
0x1203c5b97
_D3dmd10dinterpret17interpretFunctionFPSQBm10expression8UnionExpCQCl4func15FuncDeclarationPSQDmQDl10InterStatePSQEg4root5array__T5ArrayTCQFfQDt10ExpressionZQBbQxZQBa
../../src/gcc/d/dmd/dinterpret.d:644
0x1203cefcf Interpreter::visit(CallExp*)
../../src/gcc/d/dmd/dinterpret.d:4962
0x1203b9483
_D3dmd10dinterpret9interpretFPSQBd10expression8UnionExpCQCcQz10ExpressionPSQCvQCu10InterStateEQDoQDn8CTFEGoalZQCd
../../src/gcc/d/dmd/dinterpret.d:6420
0x1203b9483 Interpreter::visit(ReturnStatement*)
../../src/gcc/d/dmd/dinterpret.d:1037
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
Please include the complete backtrace with any bug report.
See <file:///usr/share/doc/gcc-12/README.Bugs> for instructions.
make[7]: *** [Makefile:2475: core/internal/parseoptions.lo] Error 1
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug d/104835] [12 Regression] libphobos fails to build on mips64el-linux-gnu
2022-03-08 8:17 [Bug d/104835] New: [12 Regression] libphobos fails to build on mips64el-linux-gnu doko at gcc dot gnu.org
@ 2022-03-08 8:19 ` rguenth at gcc dot gnu.org
2022-03-09 9:35 ` rguenth at gcc dot gnu.org
` (5 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu.org @ 2022-03-08 8:19 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104835
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |12.0
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug d/104835] [12 Regression] libphobos fails to build on mips64el-linux-gnu
2022-03-08 8:17 [Bug d/104835] New: [12 Regression] libphobos fails to build on mips64el-linux-gnu doko at gcc dot gnu.org
2022-03-08 8:19 ` [Bug d/104835] " rguenth at gcc dot gnu.org
@ 2022-03-09 9:35 ` rguenth at gcc dot gnu.org
2022-03-09 10:30 ` ibuclaw at gdcproject dot org
` (4 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu.org @ 2022-03-09 9:35 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104835
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Priority|P3 |P4
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug d/104835] [12 Regression] libphobos fails to build on mips64el-linux-gnu
2022-03-08 8:17 [Bug d/104835] New: [12 Regression] libphobos fails to build on mips64el-linux-gnu doko at gcc dot gnu.org
2022-03-08 8:19 ` [Bug d/104835] " rguenth at gcc dot gnu.org
2022-03-09 9:35 ` rguenth at gcc dot gnu.org
@ 2022-03-09 10:30 ` ibuclaw at gdcproject dot org
2022-03-10 23:56 ` ibuclaw at gdcproject dot org
` (3 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: ibuclaw at gdcproject dot org @ 2022-03-09 10:30 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104835
Iain Buclaw <ibuclaw at gdcproject dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |syq at debian dot org
--- Comment #1 from Iain Buclaw <ibuclaw at gdcproject dot org> ---
*** Bug 104538 has been marked as a duplicate of this bug. ***
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug d/104835] [12 Regression] libphobos fails to build on mips64el-linux-gnu
2022-03-08 8:17 [Bug d/104835] New: [12 Regression] libphobos fails to build on mips64el-linux-gnu doko at gcc dot gnu.org
` (2 preceding siblings ...)
2022-03-09 10:30 ` ibuclaw at gdcproject dot org
@ 2022-03-10 23:56 ` ibuclaw at gdcproject dot org
2022-03-11 0:15 ` ibuclaw at gdcproject dot org
` (2 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: ibuclaw at gdcproject dot org @ 2022-03-10 23:56 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104835
--- Comment #2 from Iain Buclaw <ibuclaw at gdcproject dot org> ---
The backtrace I get is:
d21: internal compiler error: output_operand: '%l' operand isn't a label
0x1208268cf output_operand_lossage(char const*, ...)
../../gcc/final.cc:3235
0x12082692b output_asm_label(rtx_def*)
../../gcc/final.cc:3638
0x1203d83af
_D3dmd10expression__T10emplaceExpHTCQBiQBh15ArrayLiteralExpTSQCh7globals3LocTCQCy5mtype4TypeTPSQDp4root5array__T5ArrayTCQEoQEn10ExpressionZQBbZQEsFPvQDlQCxQCkZv
/home/ibuclaw/gcc/gcc/d/dmd/expression.d:77
0x1203de093
_D3dmd8ctfeexpr24changeArrayLiteralLengthFKxSQBr7globals3LocCQCh5mtype9TypeArrayCQDb10expression10ExpressionmmZSQEgQBf8UnionExp
../../gcc/d/dmd/ctfeexpr.d:1826
0x12040dcbf
_D3dmd10dinterpret11Interpreter21interpretAssignCommonMFCQCd10expression6BinExpPFKxSQDe7globals3LocCQDu5mtype4TypeCQEjQCg10ExpressionQtZSQFfQDc8UnionExpiZv
../../gcc/d/dmd/dinterpret.d:3678
... (the rest as per the original)
The jump from front-end to final.cc is not in code.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug d/104835] [12 Regression] libphobos fails to build on mips64el-linux-gnu
2022-03-08 8:17 [Bug d/104835] New: [12 Regression] libphobos fails to build on mips64el-linux-gnu doko at gcc dot gnu.org
` (3 preceding siblings ...)
2022-03-10 23:56 ` ibuclaw at gdcproject dot org
@ 2022-03-11 0:15 ` ibuclaw at gdcproject dot org
2022-03-11 15:28 ` ibuclaw at gdcproject dot org
2022-03-13 13:18 ` ibuclaw at gdcproject dot org
6 siblings, 0 replies; 8+ messages in thread
From: ibuclaw at gdcproject dot org @ 2022-03-11 0:15 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104835
--- Comment #3 from Iain Buclaw <ibuclaw at gdcproject dot org> ---
Ends with:
#86 0x0000000120582768 in semantic3(Dsymbol*, Scope*) (sc=<error reading
variable: dwarf2_find_location_expression: Corrupted DWARF expression.>,
dsym=<error reading variable: dwarf2_find_location_expression: Corrupted
DWARF expression.>) at ../../gcc/d/dmd/semantic3.d:1525
#87 Semantic3Visitor::visit(AggregateDeclaration*) (this=0xffffffbab0,
ad=0xfff76c0800) at ../../gcc/d/dmd/semantic3.d:1526
#88 0x000000012057e608 in semantic3(Dsymbol*, Scope*) (sc=<error reading
variable: dwarf2_find_location_expression: Corrupted DWARF expression.>,
dsym=<error reading variable: dwarf2_find_location_expression: Corrupted
DWARF expression.>) at ../../gcc/d/dmd/semantic3.d:193
#89 Semantic3Visitor::visit(Module*) (this=<error reading variable:
dwarf2_find_location_expression: Corrupted DWARF expression.>,
mod=0xfff76b2400) at ../../gcc/d/dmd/semantic3.d:195
#90 Semantic3Visitor::visit(Module*) (this=<optimized out>, mod=0xfff76b2400)
at ../../gcc/d/dmd/semantic3.d:179
#91 0x000000012057eb70 in semantic3(Dsymbol*, Scope*) (dsym=<optimized out>,
sc=<optimized out>) at ../../gcc/d/dmd/semantic3.d:82
#92 0x0000000120634800 in d_parse_file () at ../../gcc/d/d-lang.cc:1244
#93 0x0000000120c16944 in compile_file () at ../../gcc/toplev.cc:452
#94 0x000000012038688c in do_compile (no_backend=false) at
../../gcc/toplev.cc:2168
#95 toplev::main (this=<optimized out>, argc=<error reading variable:
dwarf2_find_location_expression: Corrupted DWARF expression.>,
argv=<error reading variable: dwarf2_find_location_expression: Corrupted
DWARF expression.>) at ../../gcc/toplev.cc:2320
#96 0x0000000120388208 in main (argc=<optimized out>, argv=0xffffffbf98) at
../../gcc/main.cc:39
96 doesn't seem deep enough for it to be a stack overflow, but that's the only
explanation of the cause. The interpret code does have a heavy emphasis on
stack with the UnionExp passed around.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug d/104835] [12 Regression] libphobos fails to build on mips64el-linux-gnu
2022-03-08 8:17 [Bug d/104835] New: [12 Regression] libphobos fails to build on mips64el-linux-gnu doko at gcc dot gnu.org
` (4 preceding siblings ...)
2022-03-11 0:15 ` ibuclaw at gdcproject dot org
@ 2022-03-11 15:28 ` ibuclaw at gdcproject dot org
2022-03-13 13:18 ` ibuclaw at gdcproject dot org
6 siblings, 0 replies; 8+ messages in thread
From: ibuclaw at gdcproject dot org @ 2022-03-11 15:28 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104835
Iain Buclaw <ibuclaw at gdcproject dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
See Also| |https://github.com/dlang/dm
| |d/pull/13805
--- Comment #4 from Iain Buclaw <ibuclaw at gdcproject dot org> ---
Raised pull request in upstream dmd.
Why the new version works but the old doesn't is anyone's guess though. It's
the difference between:
---
T tmp = T(args);
__builtin_memcpy(p, (void*)&tmp, sizeof(T));
---
and
---
new(p) T(args);
---
As far as I can tell, both should end up with the same outcome.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug d/104835] [12 Regression] libphobos fails to build on mips64el-linux-gnu
2022-03-08 8:17 [Bug d/104835] New: [12 Regression] libphobos fails to build on mips64el-linux-gnu doko at gcc dot gnu.org
` (5 preceding siblings ...)
2022-03-11 15:28 ` ibuclaw at gdcproject dot org
@ 2022-03-13 13:18 ` ibuclaw at gdcproject dot org
6 siblings, 0 replies; 8+ messages in thread
From: ibuclaw at gdcproject dot org @ 2022-03-13 13:18 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104835
Iain Buclaw <ibuclaw at gdcproject dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |FIXED
--- Comment #5 from Iain Buclaw <ibuclaw at gdcproject dot org> ---
Fix committed in r12-7636.
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2022-03-13 13:18 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-08 8:17 [Bug d/104835] New: [12 Regression] libphobos fails to build on mips64el-linux-gnu doko at gcc dot gnu.org
2022-03-08 8:19 ` [Bug d/104835] " rguenth at gcc dot gnu.org
2022-03-09 9:35 ` rguenth at gcc dot gnu.org
2022-03-09 10:30 ` ibuclaw at gdcproject dot org
2022-03-10 23:56 ` ibuclaw at gdcproject dot org
2022-03-11 0:15 ` ibuclaw at gdcproject dot org
2022-03-11 15:28 ` ibuclaw at gdcproject dot org
2022-03-13 13:18 ` ibuclaw at gdcproject dot 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).