[Issue 22020] The profile flag does not work in Windows.

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Jun 18 17:02:44 UTC 2021


https://issues.dlang.org/show_bug.cgi?id=22020

--- Comment #2 from lempiji at gmail.com ---
The same thing happened when I ran app.exe as is.
I couldn't figure out how to build without using dub.

The link between mir-algorithm.lib and mir-core.lib seems to be necessary, and
the condition of occurrence is very difficult to understand.
Also, I replaced 'iota' with 'sliced' and got the same result.

The log for `dub run -v --single --build=profile app.d` looks like this.
Some of the logs are in Japanese.

```
PS C:\work\dev\D\sandbox-mir> dub run -v --single --build=profile app.d
Using dub registry url 'https://code.dlang.org/'
Refreshing local packages (refresh existing: true)...
Looking for local package map at
C:\ProgramData\dub\packages\local-packages.json
Looking for local package map at
C:\Users\User\AppData\Local\dub\packages\local-packages.json
Try to load local package map at
C:\Users\User\AppData\Local\dub\packages\local-packages.json
Determined package version using GIT: my-skelton 0.0.2
Determined package version using GIT: lib-blas 1.0.0
Determined package version using GIT: lib-lapack 1.0.0
Note: Failed to determine version of package finance at .. Assuming ~master.
Determined package version using GIT: test-skelton 1.0.0
Determined package version using GIT: dagon 0.10.1+commit.145.g2f43d56
Determined package version using GIT: tfd 0.0.5+commit.2.g033292d
Determined package version using GIT: libfuture ~master
Determined package version using GIT: golem 0.7.0+commit.2.gf0e91a7
Note: Failed to determine version of package golemancer at .. Assuming ~master.
Determined package version using GIT: lightbulb ~master
Looking for local package map at
C:\work\dev\D\sandbox-mir\.dub\packages\local-packages.json
Determined package version using GIT: botan 1.12.19
Determined package version using GIT: botan-math 1.0.3+commit.4.g1b85c88
Determined package version using GIT: memutils 1.0.4+commit.2.g6701e32
Note: Failed to determine version of package sandbox-mir at .. Assuming
~master.
Refreshing local packages (refresh existing: false)...
Looking for local package map at
C:\ProgramData\dub\packages\local-packages.json
Looking for local package map at
C:\Users\User\AppData\Local\dub\packages\local-packages.json
Try to load local package map at
C:\Users\User\AppData\Local\dub\packages\local-packages.json
Determined package version using GIT: my-skelton 0.0.2
Determined package version using GIT: lib-blas 1.0.0
Determined package version using GIT: lib-lapack 1.0.0
Note: Failed to determine version of package finance at .. Assuming ~master.
Determined package version using GIT: test-skelton 1.0.0
Determined package version using GIT: dagon 0.10.1+commit.145.g2f43d56
Determined package version using GIT: tfd 0.0.5+commit.2.g033292d
Determined package version using GIT: libfuture ~master
Determined package version using GIT: golem 0.7.0+commit.2.gf0e91a7
Note: Failed to determine version of package golemancer at .. Assuming ~master.
Determined package version using GIT: lightbulb ~master
Looking for local package map at
C:\work\dev\D\sandbox-mir\.dub\packages\local-packages.json
  Found dependency mir-algorithm 3.10.60
    Found dependency mir-core 1.1.70
Refreshing local packages (refresh existing: false)...
Looking for local package map at
C:\ProgramData\dub\packages\local-packages.json
Looking for local package map at
C:\Users\User\AppData\Local\dub\packages\local-packages.json
Try to load local package map at
C:\Users\User\AppData\Local\dub\packages\local-packages.json
Determined package version using GIT: my-skelton 0.0.2
Determined package version using GIT: lib-blas 1.0.0
Determined package version using GIT: lib-lapack 1.0.0
Note: Failed to determine version of package finance at .. Assuming ~master.
Determined package version using GIT: test-skelton 1.0.0
Determined package version using GIT: dagon 0.10.1+commit.145.g2f43d56
Determined package version using GIT: tfd 0.0.5+commit.2.g033292d
Determined package version using GIT: libfuture ~master
Determined package version using GIT: golem 0.7.0+commit.2.gf0e91a7
Note: Failed to determine version of package golemancer at .. Assuming ~master.
Determined package version using GIT: lightbulb ~master
Looking for local package map at
C:\work\dev\D\sandbox-mir\.dub\packages\local-packages.json
  Found dependency mir-algorithm 3.10.60
    Found dependency mir-core 1.1.70
Generating using build
Configuring dependent app, deps:"mir-algorithm"
  Configuring dependent mir-algorithm, deps:"mir-core"
    Configuring dependent mir-core, deps:
Performing "profile" build using C:\D\dmd2\windows\bin64\dmd.exe for x86_64.
mir-core 1.1.70: target for configuration "library" is up to date.
Using existing build in
C:\Users\User\AppData\Local\dub\packages\mir-core-1.1.70\mir-core\.dub\build\library-profile-windows-x86_64-dmd_v2.097.0-dirty-D627CE87F82063401DAD5E4C3043F56C\.
Copying target from
C:\Users\User\AppData\Local\dub\packages\mir-core-1.1.70\mir-core\.dub\build\library-profile-windows-x86_64-dmd_v2.097.0-dirty-D627CE87F82063401DAD5E4C3043F56C\mir-core.lib
to C:\Users\User\AppData\Local\dub\packages\mir-core-1.1.70\mir-core
mir-algorithm 3.10.60: target for configuration "default" is up to date.
Using existing build in
C:\Users\User\AppData\Local\dub\packages\mir-algorithm-3.10.60\mir-algorithm\.dub\build\default-profile-windows-x86_64-dmd_v2.097.0-dirty-687726DACCEA92C05C74272DCD97EAC4\.
Copying target from
C:\Users\User\AppData\Local\dub\packages\mir-algorithm-3.10.60\mir-algorithm\.dub\build\default-profile-windows-x86_64-dmd_v2.097.0-dirty-687726DACCEA92C05C74272DCD97EAC4\mir-algorithm.lib
to C:\Users\User\AppData\Local\dub\packages\mir-algorithm-3.10.60\mir-algorithm
File '.' modified, need rebuild.
app ~master: building configuration "application"...
C:\D\dmd2\windows\bin64\dmd.exe -m64 -c
-of.dub\build\application-profile-windows-x86_64-dmd_v2.097.0-dirty-65C579894C2BC0DD48D19A35BCFC5075\app.obj
-g -inline -O -profile -w -version=Have_app -version=Have_mir_algorithm
-version=Have_mir_core
-IC:\Users\User\AppData\Local\dub\packages\mir-algorithm-3.10.60\mir-algorithm\source
-IC:\Users\User\AppData\Local\dub\packages\mir-core-1.1.70\mir-core\source
app.d -vcolumns
Linking...
C:\D\dmd2\windows\bin64\dmd.exe
-of.dub\build\application-profile-windows-x86_64-dmd_v2.097.0-dirty-65C579894C2BC0DD48D19A35BCFC5075\app.exe
.dub\build\application-profile-windows-x86_64-dmd_v2.097.0-dirty-65C579894C2BC0DD48D19A35BCFC5075\app.obj
C:\Users\User\AppData\Local\dub\packages\mir-algorithm-3.10.60\mir-algorithm\.dub\build\default-profile-windows-x86_64-dmd_v2.097.0-dirty-687726DACCEA92C05C74272DCD97EAC4\mir-algorithm.lib
C:\Users\User\AppData\Local\dub\packages\mir-core-1.1.70\mir-core\.dub\build\library-profile-windows-x86_64-dmd_v2.097.0-dirty-D627CE87F82063401DAD5E4C3043F56C\mir-core.lib
-m64 -g
LINK : 前回のインクリメンタル リンクで
.dub\build\application-profile-windows-x86_64-dmd_v2.097.0-dirty-65C579894C2BC0DD48D19A35BCFC5075\app.exe
が見つからなかったか、ビル
ドされませんでした。フル リンクを行います。
Copying target from
C:\work\dev\D\sandbox-mir\.dub\build\application-profile-windows-x86_64-dmd_v2.097.0-dirty-65C579894C2BC0DD48D19A35BCFC5075\app.exe
to C:\work\dev\D\sandbox-mir
To force a rebuild of up-to-date targets, run again with --force.
Running app.exe
Program exited with code -1073741819
```

--


More information about the Digitalmars-d-bugs mailing list