GDC generate wrong .exe ("not a valid win32 application")

Patric Dexheimer via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Jun 19 17:25:47 PDT 2017


On Monday, 19 June 2017 at 23:55:54 UTC, rjframe wrote:
> On Mon, 19 Jun 2017 14:08:56 +0000, Patric Dexheimer wrote:
>
>> Fresh install of GDC. (tried with 32x ad 32_64x)
>> 
>> GDC: 6.3.0 DUB: 1.3.0
>> 
>> dub run --build=release --arch=x86 --compiler=gdc
>> 
>> (...)
>> Running .\main Failed to spawn new process (%1 is not a valid 
>> win32
>> application)
>
> If you try compiling a single file directly (gdc app.d -o app), 
> does it work?
>
> If it does, what's the output of `dub run -v ...`?

Same problem compiling directly.

dub verbose output:

C:\Users\User\Desktop\d_test>dub run --build=debug --arch=x86 
--compiler=gdc -v
Using dub registry url 'http://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\Roaming\dub\packages\local-packages.json
Note: Failed to determine version of package d_test 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\Roaming\dub\packages\local-packages.json
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\Roaming\dub\packages\local-packages.json
Checking for upgrades.
Using cached upgrade results...
Generating using build
Generate target d_test (executable C:\Users\User\Desktop\d_test 
d_test)
Performing "debug" build using gdc for x86.
d_test ~master: target for configuration "application" is up to 
date.
Using existing build in 
C:\Users\User\Desktop\d_test\.dub\build\application-debug-linux.posix-x86-gdc_2068-413C114DFC17AD06F727410485B0042A\.
Copying target from 
C:\Users\User\Desktop\d_test\.dub\build\application-debug-linux.posix-x86-gdc_2068-413C114DFC17AD06F727410485B0042A\d_test to C:\Users\User\Desktop\d_test
To force a rebuild of up-to-date targets, run again with --force.
Running .\d_test
Failed to spawn new process (%1 n├úo ├® um aplicativo Win32 
válido.)


More information about the Digitalmars-d-learn mailing list