www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 18015] New: [Reg 2.075] link failure unknown [0] section `'


          Issue ID: 18015
           Summary: [Reg 2.075] link failure unknown [0] section `' in
                    group [.group]
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: regression
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: llucenic gmail.com

Pull request #6564 (indicated by digger) definitively causes a regression
besides the one solved in issue 17338. This regression is valid for DMD
releases since 2.075.0 thru 2.077.0 (at the time of this writing).

I have a project split in dub configuration into three subpackages. When I try
to build it monolithic (all source files at once) the build succeeds.
But when I let the subpackages be built as libraries and linked into the final
binary I get linker errors:

unknown [0] section `' in group [.group]
unknown [0] section `' in group [.group]
error adding symbols: File format not recognized
collect2: error: ld returned 1 exit status
Error: linker exited with status 1
dmd failed with exit code 1.

Content of the library that is built from one of the subpackages (ars-engine)
is corrupt. Utility 'nm' reports for some object files within the library the
same error (see the issue title) as the linker in the later phase when building
the application.

The project is built on top of vibe.d, what may be somehow connected with

Will this error message be enough or do I need to provide more information on
the issue?

Nov 26 2017