www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - dfmt build never finished

reply Test123 <test123 gmail.com> writes:
Try build dfmt with ldc2, "dub" or "dub -b release" never 
finished.

alost 1 hour and never return.

Try with dmd2 get this error:

Running pre-generate commands for dfmt...
ld: in /opt/tools/dmd2/osx/lib/libphobos2.a(object_12_612.o), 
section __DATA/__thread_bss has type zero-fill but non-zero file 
offset for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to 
see invocation)
Error: linker exited with status 1
uncaught exception
object.Exception source/dub/internal/utils.d(218): Command failed 
with exit code 1: rdmd "/opt/tools/dfmt/dubhash.d"
----------------
??:? pure  safe bool 
std.exception.enforce!().enforce!(bool).enforce(bool, lazy 
const(char)[], immutable(char)[], ulong) [0x10247cb1a]
??:? void dub.internal.utils.runCommands(in immutable(char)[][], 
immutable(char)[][immutable(char)[]], immutable(char)[]) 
[0x10221ec4a]
??:? void dub.generators.generator.runBuildCommands(in 
immutable(char)[][], in dub.package_.Package, in 
dub.project.Project, in 
dub.generators.generator.GeneratorSettings, in 
dub.compilers.buildsettings.BuildSettings, in 
immutable(char)[][immutable(char)[]][]) [0x102280d74]
??:? int 
dub.generators.generator.ProjectGenerator.generate(dub.generators.generator.GeneratorSettings
.__foreachbody8(ref dub.package_.Package) [0x102276e9b]
Abort trap: 6
Feb 18 2022
next sibling parent reply Test123 <test123 gmail.com> writes:
On Friday, 18 February 2022 at 18:10:43 UTC, Test123 wrote:
 Try build dfmt with ldc2, "dub" or "dub -b release" never 
 finished.
Try download DMD Beta 2.099.0-beta.1, https://s3.us-west-2.amazonaws.com/downloads.dlang.org/pre-releases/2021/dmd.2.099 0-beta.1.osx.tar.xz and dmg file not exists.
Feb 18 2022
parent Test123 <test123 gmail.com> writes:
On Friday, 18 February 2022 at 18:11:59 UTC, Test123 wrote:
 https://s3.us-west-2.amazonaws.com/downloads.dlang.org/pre-releases/2021/dmd.2.099
0-beta.1.osx.tar.xz and dmg file not exists.
try dfmt v0.14.2 and master, same result
Feb 18 2022
prev sibling parent reply WebFreak001 <d.forum webfreak.org> writes:
On Friday, 18 February 2022 at 18:10:43 UTC, Test123 wrote:
 Try build dfmt with ldc2, "dub" or "dub -b release" never 
 finished.

 [...]
it seems `rdmd` fails to run here. Try editing the dub.json in dfmt and change the line ``` "preGenerateCommands" : [ "rdmd \"$PACKAGE_DIR/dubhash.d\"" ] ``` to ``` "preGenerateCommands" : [ "dmd -run \"$PACKAGE_DIR/dubhash.d\"" ] ```
Feb 18 2022
parent reply Test123 <test123 gmail.com> writes:
On Friday, 18 February 2022 at 18:34:46 UTC, WebFreak001 wrote:
 On Friday, 18 February 2022 at 18:10:43 UTC, Test123 wrote:
 to
 ```
     "preGenerateCommands" : [
       "dmd -run \"$PACKAGE_DIR/dubhash.d\""
     ]
 ```
after modify get this error: ld: in /opt/tools/dmd2/osx/lib/libphobos2.a(object_12_612.o), section __DATA/__thread_bss has type zero-fill but non-zero file offset for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) Error: linker exited with status 1 uncaught exception object.Exception source/dub/internal/utils.d(218): Command failed with exit code 1: dmd -run "/opt/tools/dfmt/dubhash.d" ---------------- ??:? pure safe bool std.exception.enforce!().enforce!(bool).enforce(bool, lazy const(char)[], immutable(char)[], ulong) [0x1075d8b1a] ??:? void dub.internal.utils.runCommands(in immutable(char)[][], immutable(char)[][immutable(char)[]], immutable(char)[]) [0x10737ac4a] ??:? void dub.generators.generator.runBuildCommands(in immutable(char)[][], in dub.package_.Package, in dub.project.Project, in dub.generators.generator.GeneratorSettings, in dub.compilers.buildsettings.BuildSettings, in immutable(char)[][immutable(char)[]][]) [0x1073dcd74] ??:? int dub.generators.generator.ProjectGenerator.generate(dub.generators.generator.GeneratorSettings .__foreachbody8(ref dub.package_.Package) [0x1073d2e9b] dmd2.sh: line 2: 36587 Abort trap: 6 dub -b release
Feb 18 2022
parent reply WebFreak001 <d.forum webfreak.org> writes:
On Friday, 18 February 2022 at 18:44:02 UTC, Test123 wrote:
 [...]
it seems your D install is broken as basic `dmd` calls don't work. Can you verify that or check if `dub` is somehow broken? What architecture are you on? Try simply replacing dmd with ldc2 here as well.
Feb 18 2022
parent Test123 <test123 gmail.com> writes:
On Friday, 18 February 2022 at 21:05:21 UTC, WebFreak001 wrote:
 On Friday, 18 February 2022 at 18:44:02 UTC, Test123 wrote:
 [...]
it seems your D install is broken as basic `dmd` calls don't work. Can you verify that or check if `dub` is somehow broken? What architecture are you on? Try simply replacing dmd with ldc2 here as well.
x86-64 macOS. I use homebrew dfmt version now.
Feb 19 2022