Thread overview
[Issue 22491] Building errors on dub build --build=release
[Issue 22491] Multiple building issues using dmd or ldc2 on new Fedora 35
Nov 08, 2021
Alexey
Nov 08, 2021
Alexey
Nov 10, 2021
Alexey
Nov 12, 2021
Alexey
Nov 12, 2021
Alexey
Dec 04, 2021
Alexey
Dec 17, 2022
Iain Buclaw
November 08, 2021
https://issues.dlang.org/show_bug.cgi?id=22491

--- Comment #1 from Alexey <animuspexus@protonmail.com> ---
I've tried to rebuild dmd and phobos as described (here https://wiki.dlang.org/Building_under_Posix). I also rebuilt (with build.d) and reinstalled dub to ~/bin with no success: 'dub build --build=release' results in error:


============================
dub build --build=release
WARNING: A deprecated branch based version specification is used for the
dependency dtk. Please use numbered versions instead. Also note that you can
still use the dub.selections.json file to override a certain dependency to use
a branch instead.
Performing "release" build using dmd for x86_64.
bindbc-loader 1.0.1: target for configuration "noBC" is up to date.
bindbc-freetype 1.0.2: target for configuration "dynamic" is up to date.
bindbc-sdl 1.0.1: target for configuration "dynamic" is up to date.
taggedalgebraic 0.11.22: target for configuration "library" is up to date.
eventcore 0.9.17: target for configuration "epoll" is up to date.
stdx-allocator 2.77.5: target for configuration "library" is up to date.
vibe-core 1.20.0: target for configuration "epoll" is up to date.
observable 1.0.3: target for configuration "library" is up to date.
dtk ~master: building configuration "platform-sdl-desktop"...
creating property "text"
using freetype font manager
generating redraw_x for Button
generating redraw_x for ButtonCheck
generating redraw_x for ButtonRadio
generating redraw_x for Form
generating redraw_x for Layout
connectToFontFile_onAfterChanged
connectToFontFace_onAfterChanged
connectToFontColor_onAfterChanged
connectToFontSize_onAfterChanged
connectToFontItalic_onAfterChanged
connectToFontBold_onAfterChanged
connectToLayoutLines_onAfterChanged
connectToLayoutChars_onAfterChanged
connectToDrawBewelAndBackground_onAfterChanged
connectToBewelBackgroundColor_onAfterChanged
connectToMultiline_onAfterChanged
connectToVirtualWrapByChar_onAfterChanged
connectToVirtualWrapByWord_onAfterChanged
connectToForceMonowidth_onAfterChanged
connectToTextSelectable_onAfterChanged
connectToTextEditable_onAfterChanged
generating redraw_x for TextEntry
---
ERROR: This is a compiler bug.
Please report it via https://issues.dlang.org/enter_bug.cgi
with, preferably, a reduced, reproducible example and the information below.
DustMite (https://github.com/CyberShadow/DustMite/wiki) can help with the
reduction.
---
DMD v2.098.0
predefs   SDL_204 BindSDL_Static SDL_Image BindFT_Static
DTK_PLATFORM_SDL_DESKTOP Have_dtk Have_bindbc_freetype Have_bindbc_sdl
Have_observable Have_bindbc_loader Have_vibe_core Have_eventcore
Have_stdx_allocator EventcoreEpollDriver Have_taggedalgebraic DigitalMars
LittleEndian D_Version2 all D_SIMD Posix ELFv1 linux CRuntime_Glibc
CppRuntime_Gcc D_InlineAsm_X86_64 X86_64 D_LP64 D_PIC D_ModuleInfo D_Exceptions
D_TypeInfo D_HardFloat
binary    dmd
version   v2.098.0
config
/home/animuspexus/dlang/d_v2.098.0/dmd/generated/linux/release/64/dmd.conf
DFLAGS
-I/home/animuspexus/dlang/d_v2.098.0/dmd/generated/linux/release/64/../../../../../druntime/import
-I/home/animuspexus/dlang/d_v2.098.0/dmd/generated/linux/release/64/../../../../../phobos
-L-L/home/animuspexus/dlang/d_v2.098.0/dmd/generated/linux/release/64/../../../../../phobos/generated/linux/release/64
-L--export-dynamic -fPIC
---
core.exception.AssertError@src/dmd/statementsem.d(3966): Assertion failure
----------------
??:? _d_assertp [0x90a3b0]
??:? _ZN24StatementSemanticVisitor5visitEP17TryCatchStatement [0x795000]
??:? _ZN17TryCatchStatement6acceptEP7Visitor [0x78642d]
??:? _Z17statementSemanticP9StatementP5Scope [0x787a13]
??:? _ZN16Semantic3Visitor5visitEP15FuncDeclaration [0x77e720]
??:? _ZN16Semantic3Visitor5visitEP15CtorDeclaration [0x781f3f]
??:? _ZN15CtorDeclaration6acceptEP7Visitor [0x713fe5]
??:? _Z9semantic3P7DsymbolP5Scope [0x77d18d]
??:? _ZN16Semantic3Visitor5visitEP20AggregateDeclaration [0x7821a3]
??:? _ZN16ParseTimeVisitorI10ASTCodegenE5visitEP16ClassDeclaration [0x778651]
??:? _ZN16ClassDeclaration6acceptEP7Visitor [0x61fb19]
??:? _Z9semantic3P7DsymbolP5Scope [0x77d18d]
??:? _ZN16Semantic3Visitor5visitEP6Module [0x77d5a5]
??:? _ZN6Module6acceptEP7Visitor [0x6468a5]
??:? _Z9semantic3P7DsymbolP5Scope [0x77d18d]
??:? int dmd.mars.tryMain(ulong, const(char)**, ref dmd.globals.Param)
[0x5d02b2]
??:? _Dmain [0x5d1fc5]
dmd failed with exit code 1.
============================

--
November 08, 2021
https://issues.dlang.org/show_bug.cgi?id=22491

--- Comment #2 from Alexey <animuspexus@protonmail.com> ---
Fedora detected ldc crush and informed what somebody already reported this in Fedora's ldc bugtracker https://retrace.fedoraproject.org/faf/reports/281376/

--
November 10, 2021
https://issues.dlang.org/show_bug.cgi?id=22491

--- Comment #3 from Alexey <animuspexus@protonmail.com> ---
on simple 'hello world' projects --build=release works ok with both dmd and
ldc2.
still having same errors for --build=release on my 'dtk' project for both dmd
and ldc2.

--
November 12, 2021
https://issues.dlang.org/show_bug.cgi?id=22491

--- Comment #4 from Alexey <animuspexus@protonmail.com> ---
Looks like it's not Fedora related, as some users reported this on Linux Mint

--
November 12, 2021
https://issues.dlang.org/show_bug.cgi?id=22491

Alexey <animuspexus@protonmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|Multiple building issues    |Building errors on dub
                   |using dmd or ldc2 on new    |build --build=release
                   |Fedora 35                   |

--
December 04, 2021
https://issues.dlang.org/show_bug.cgi?id=22491

--- Comment #5 from Alexey <animuspexus@protonmail.com> ---
removed all 'debug' marked code from source - this helped. but I can't
determine, which part exactly fixed the issue. here is diff to my code
https://github.com/AnimusPEXUS/dtk/commit/07a99a5dd1a86db553916ffa00a1447e1ec0c252

now dub build --build=release works ok on both dmd and ldc2

--
December 17, 2022
https://issues.dlang.org/show_bug.cgi?id=22491

Iain Buclaw <ibuclaw@gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P1                          |P3

--
December 13
https://issues.dlang.org/show_bug.cgi?id=22491

--- Comment #6 from dlangBugzillaToGithub <robert.schadek@posteo.de> ---
THIS ISSUE HAS BEEN MOVED TO GITHUB

https://github.com/dlang/dmd/issues/20003

DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB

--