Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SR-9765] Build fails on Windows amd64 #52193

Closed
swift-ci opened this issue Jan 25, 2019 · 3 comments
Closed

[SR-9765] Build fails on Windows amd64 #52193

swift-ci opened this issue Jan 25, 2019 · 3 comments
Assignees
Labels
compiler The Swift compiler in itself

Comments

@swift-ci
Copy link
Collaborator

Previous ID SR-9765
Radar None
Original Reporter Snownoob (JIRA User)
Type Sub-task
Status Resolved
Resolution Done
Additional Detail from JIRA
Votes 0
Component/s Compiler
Labels Sub-task
Assignee @compnerd
Priority Medium

md5: 1e98257c1559bbf6d06a9038bad7e3ff

Parent-Task:

Issue Description:

The cmake build fails to produce swiftSwiftOnoneSupport.lib.

The matching DLL file is properly built, but no .lib is generated and no errors are appearing in my console. This causes problems when trying to build swiftWinSDK and other .dll files. Output for swiftWinSDK included below.

[5/16] Linking CXX shared library bin\swiftWinSDK.dll
FAILED: bin/swiftWinSDK.dll lib/swift/windows/x86_64/swiftWinSDK.lib
cmd.exe /C "cd . && D:\swift\cmake\bin\cmake.exe -E vs_link_dll --intdir=stdlib\public\Windows\CMakeFiles\swiftWinSDK-windows-x86_64.dir --manifests  -- C:\PROGRA~2\MICROS~3\2017\COMMUN~1\VC\Tools\MSVC\1411~1.255\bin\HostX64\x64\link.exe /nologo stdlib\public\Windows\windows\x86_64\WinSDK.obj lib\swift\windows\x86_64\swiftrt.obj  /out:bin\swiftWinSDK.dll /implib:lib\swift\windows\x86_64\swiftWinSDK.lib /pdb:bin\swiftWinSDK.pdb /dll /version:0.0 /INCREMENTAL:NO /debug    "-LIBPATH:S:/build/Ninja-DebugAssert/swift-windows-amd64/./lib/swift/windows/x86_64" "-LIBPATH:S:/build/Ninja-DebugAssert/swift-windows-amd64/./bin/../lib/swift/windows/x86_64" "-LIBPATH:S:/build/Ninja-DebugAssert/swift-windows-amd64/./bin/../lib/swift/windows" "-LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.11.25503\/Lib/x64" "-LIBPATH:C:\Program Files (x86)\Windows Kits\10\/Lib/10.0.17763.0/ucrt/x64" "-LIBPATH:C:\Program Files (x86)\Windows Kits\10\/Lib/10.0.17763.0/um/x64" "-LIBPATH:S:/build/Ninja-DebugAssert/swift-windows-amd64/winsdk_lib_x86_64_symlinks" "-LIBPATH:S:/icu/lib64" "-LIBPATH:S:/icu/lib64" -LIBPATH:S:\build\Ninja-DebugAssert\llvm-windows-amd64\.\lib lib\swift\windows\x86_64\swiftCore.lib lib\swift\windows\x86_64\swiftSwiftOnoneSupport.lib kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib  && cd ."
LINK: command "C:\PROGRA~2\MICROS~3\2017\COMMUN~1\VC\Tools\MSVC\1411~1.255\bin\HostX64\x64\link.exe /nologo stdlib\public\Windows\windows\x86_64\WinSDK.obj lib\swift\windows\x86_64\swiftrt.obj /out:bin\swiftWinSDK.dll /implib:lib\swift\windows\x86_64\swiftWinSDK.lib /pdb:bin\swiftWinSDK.pdb /dll /version:0.0 /INCREMENTAL:NO /debug -LIBPATH:S:/build/Ninja-DebugAssert/swift-windows-amd64/./lib/swift/windows/x86_64 -LIBPATH:S:/build/Ninja-DebugAssert/swift-windows-amd64/./bin/../lib/swift/windows/x86_64 -LIBPATH:S:/build/Ninja-DebugAssert/swift-windows-amd64/./bin/../lib/swift/windows -LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.11.25503\/Lib/x64 -LIBPATH:C:\Program Files (x86)\Windows Kits\10\/Lib/10.0.17763.0/ucrt/x64 -LIBPATH:C:\Program Files (x86)\Windows Kits\10\/Lib/10.0.17763.0/um/x64 -LIBPATH:S:/build/Ninja-DebugAssert/swift-windows-amd64/winsdk_lib_x86_64_symlinks -LIBPATH:S:/icu/lib64 -LIBPATH:S:/icu/lib64 -LIBPATH:S:\build\Ninja-DebugAssert\llvm-windows-amd64\.\lib lib\swift\windows\x86_64\swiftCore.lib lib\swift\windows\x86_64\swiftSwiftOnoneSupport.lib kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib /MANIFEST /MANIFESTFILE:bin\swiftWinSDK.dll.manifest" failed (exit code 1181) with the following output:
LINK : fatal error LNK1181: cannot open input file 'lib\swift\windows\x86_64\swiftSwiftOnoneSupport.lib'
ninja: build stopped: subcommand failed.
@swift-ci
Copy link
Collaborator Author

Comment by Jason Frost (JIRA)

Build finishes without errors by passing the following to CMake for generating the Ninja build, but I'm not sure at this point if this is going to produce more problems further down the line.

 -DCMAKE_WINDOWS_EXPORT_ALL_SYMBOLS=TRUE^
 -DBUILD_SHARED_LIBS=TRUE

@belkadan
Copy link
Contributor

cc @compnerd

@compnerd
Copy link
Collaborator

compnerd commented Feb 5, 2019

0007eaf

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compiler The Swift compiler in itself
Projects
None yet
Development

No branches or pull requests

3 participants