Build failure in the latest dmd with dub
Sobaya
sobaya007 at gmail.com
Sat Mar 16 14:01:52 UTC 2019
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.
More information about the Digitalmars-d
mailing list