www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Build failure in the latest dmd with dub

reply Sobaya <sobaya007 gmail.com> writes:
I recently updated dmd to version 2.085.0.

But it breaks on compiling my small program.


struct A { float el; }
struct B { this(A[1]...) {} }


It successfully works using only dmd, but it fails using with dub.

Is this a bug?
Mar 16 2019
next sibling parent reply Bastiaan Veelo <Bastiaan Veelo.net> writes:
On Saturday, 16 March 2019 at 13:40:19 UTC, Sobaya wrote:
 I recently updated dmd to version 2.085.0.

 But it breaks on compiling my small program.


 struct A { float el; }
 struct B { this(A[1]...) {} }


 It successfully works using only dmd, but it fails using with 
 dub.

 Is this a bug?
Could it be some flag that dub uses and you don’t, or v.v.? Use the -v flag to dub to see how it invokes the compiler. Bastiaan.
Mar 16 2019
parent Sobaya <sobaya007 gmail.com> writes:
On Saturday, 16 March 2019 at 13:45:01 UTC, Bastiaan Veelo wrote:
 On Saturday, 16 March 2019 at 13:40:19 UTC, Sobaya wrote:
 I recently updated dmd to version 2.085.0.

 But it breaks on compiling my small program.


 struct A { float el; }
 struct B { this(A[1]...) {} }


 It successfully works using only dmd, but it fails using with 
 dub.

 Is this a bug?
Could it be some flag that dub uses and you don’t, or v.v.? Use the -v flag to dub to see how it invokes the compiler. Bastiaan.
Using "-v" flags and build with dub, it outputs below: Performing "debug" build using /home/sobaya/dlang/dmd-2.085.0/linux/bin64/dmd for x86_64. test ~master: building configuration "application"... predefs Have_test DigitalMars Posix linux ELFv1 CRuntime_Glibc CppRuntime_Gcc LittleEndian D_Version2 all D_SIMD D_InlineAsm_X86_64 X86_64 D_LP64 D_PIC assert D_ModuleInfo D_Exceptions D_TypeInfo D_HardFloat binary /home/sobaya/dlang/dmd-2.085.0/linux/bin64/dmd version v2.085.0 config /home/sobaya/dlang/dmd-2.085.0/linux/bin64/dmd.conf DFLAGS -I/home/sobaya/dlang/dmd-2.085.0/linux/bin64/../../src/phobos -I/home/sobaya/dlang/dmd-2.085.0/linux/bin64/../../src/druntime/import -L-L/home/sobaya/dlang/dmd-2.085.0/linux/bin64/../lib64 -L--export-dynamic -fPIC parse app importall app import object (/home/sobaya/dlang/dmd-2.085.0/linux/bin64/../../src/druntime/import/object.d) import core.internal.hash (/home/sobaya/dlang/dmd-2.085.0/linux/bin64/../../src/druntime/import/core/internal/hash.d) import core.internal.traits (/home/sobaya/dlang/dmd-2.085.0/linux/bin64/../../src/druntime/import/core/internal/traits.d) import core.internal.convert (/home/sobaya/dlang/dmd-2.085.0/linux/bin64/../../src/druntime/import/core/internal/convert.d) semantic app entry main source/app.d semantic2 app semantic3 app code app function app.A.__xopEquals function app.A.__xtoHash function app.B.this /home/sobaya/dlang/dmd-2.085.0/linux/bin64/dmd failed with exit code -4.
Mar 16 2019
prev sibling parent reply 9il <ilyayaroshenko gmail.com> writes:
On Saturday, 16 March 2019 at 13:40:19 UTC, Sobaya wrote:
 I recently updated dmd to version 2.085.0.

 But it breaks on compiling my small program.


 struct A { float el; }
 struct B { this(A[1]...) {} }


 It successfully works using only dmd, but it fails using with 
 dub.

 Is this a bug?
Yes, this is compiler regression. Have you filled this at https://issues.dlang.org/?
Apr 08 2019
parent 9il <ilyayaroshenko gmail.com> writes:
On Monday, 8 April 2019 at 07:34:41 UTC, 9il wrote:
 On Saturday, 16 March 2019 at 13:40:19 UTC, Sobaya wrote:
 I recently updated dmd to version 2.085.0.

 But it breaks on compiling my small program.


 struct A { float el; }
 struct B { this(A[1]...) {} }


 It successfully works using only dmd, but it fails using with 
 dub.

 Is this a bug?
Yes, this is compiler regression. Have you filled this at https://issues.dlang.org/?
https://issues.dlang.org/show_bug.cgi?id=19804
Apr 12 2019