[Issue 23486] New: LINK : fatal error LNK1104: cannot open file '..\generated\windows\copyimports.exe'

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Nov 14 17:34:44 UTC 2022


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

          Issue ID: 23486
           Summary: LINK : fatal error LNK1104: cannot open file
                    '..\generated\windows\copyimports.exe'
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: installer
          Assignee: nobody at puremagic.com
          Reporter: ibuclaw at gdcproject.org

The introduction of copyimports.d introduced a build regression. This happens
quite often, and only intermittently works.


Running: make MODEL=32
"DMD=C:\Users\vagrant\clones\dmd\generated\windows\release\32\dmd.exe"
HOST_DC=C:\Users\vagrant\ldc/ldc2-1.30.0-windows-multilib/bin/ldmd2.exe
HOST_DMD=C:\Users\vagrant\ldc/ldc2-1.30.0-windows-multilib/bin/ldmd2.exe
ENABLE_RELEASE=1 ENABLE_LTO=1 LATEST=2.101.0 -f win32.mak target implibs
"make" -f mak/WINDOWS copydir
DMD="C:\Users\vagrant\clones\dmd\generated\windows\release\32\dmd.exe"
HOST_DMD="C:\Users\vagrant\ldc/ldc2-1.30.0-windows-multilib/bin/ldmd2.exe"
MODEL=32 IMPDIR="import"
if not exist ..\generated md ..\generated
if not exist ..\generated\windows md ..\generated\windows
if exist "../../release-build/dmd-2.079.0/windows/bin/dmd.exe" (echo
@"../../release-build/dmd-2.079.0/windows/bin/dmd.exe" %*
>..\generated\windows\host_dmd.bat)
if not ""  == "" ("\dmd2\Windows\bin\dmd.exe" --version >nul 2>&1 && echo
@"\dmd2\Windows\bin\dmd.exe" %* >..\generated\windows\host_dmd.bat)
if not ""  == "" (""  --version >nul 2>&1 && echo @"" %*
>..\generated\windows\host_dmd.bat)
if not "C:\Users\vagrant\ldc/ldc2-1.30.0-windows-multilib/bin/ldmd2.exe" == ""
("C:\Users\vagrant\ldc/ldc2-1.30.0-windows-multilib/bin/ldmd2.exe" --version
>nul 2>&1 && echo
@"C:\Users\vagrant\ldc/ldc2-1.30.0-windows-multilib/bin/ldmd2.exe" %*
>..\generated\windows\host_dmd.bat)
..\generated\windows\host_dmd.bat -of=..\generated\windows\copyimports.exe -m32
mak\copyimports.d



"make" -f mak/WINDOWS copy
DMD="C:\Users\vagrant\clones\dmd\generated\windows\release\32\dmd.exe"
HOST_DMD="C:\Users\vagrant\ldc/ldc2-1.30.0-windows-multilib/bin/ldmd2.exe"
MODEL=32 IMPDIR="import"
if not exist ..\generated md ..\generated
if not exist ..\generated\windows md ..\generated\windows
if exist "../../release-build/dmd-2.079.0/windows/bin/dmd.exe" (echo
@"../../release-build/dmd-2.079.0/windows/bin/dmd.exe" %*
>..\generated\windows\host_dmd.bat)
if not ""  == "" ("\dmd2\Windows\bin\dmd.exe" --version >nul 2>&1 && echo
@"\dmd2\Windows\bin\dmd.exe" %* >..\generated\windows\host_dmd.bat)
if not ""  == "" (""  --version >nul 2>&1 && echo @"" %*
>..\generated\windows\host_dmd.bat)
if not "C:\Users\vagrant\ldc/ldc2-1.30.0-windows-multilib/bin/ldmd2.exe" == ""
("C:\Users\vagrant\ldc/ldc2-1.30.0-windows-multilib/bin/ldmd2.exe" --version
>nul 2>&1 && echo
@"C:\Users\vagrant\ldc/ldc2-1.30.0-windows-multilib/bin/ldmd2.exe" %*
>..\generated\windows\host_dmd.bat)
..\generated\windows\host_dmd.bat -of=..\generated\windows\copyimports.exe -m32
mak\copyimports.d
LINK : fatal error LNK1104: cannot open file
'..\generated\windows\copyimports.exe'
Error: C:\Program Files (x86)\Microsoft Visual
Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX64\x86\link.exe
failed with status: 1104
Error: '..\generated\windows\copyimports.exe' not found

--- errorlevel 1
create_dmd_release: Error: Command failed (ran from dir 'clones\dmd\druntime'):
make MODEL=32
"DMD=C:\Users\vagrant\clones\dmd\generated\windows\release\32\dmd.exe"
HOST_DC=C:\Users\vagrant\ldc/ldc2-1.30.0-windows-multilib/bin/ldmd2.exe
HOST_DMD=C:\Users\vagrant\ldc/ldc2-1.30.0-windows-multilib/bin/ldmd2.exe
ENABLE_RELEASE=1 ENABLE_LTO=1 LATEST=2.101.0 -f win32.mak target implibs

--


More information about the Digitalmars-d-bugs mailing list