RESOLVED WONTFIX 110416
[CMake] VS 2008 fails to link WebCore.lib because it is too large
https://bugs.webkit.org/show_bug.cgi?id=110416
Summary [CMake] VS 2008 fails to link WebCore.lib because it is too large
Mark Salisbury
Reported 2013-02-20 17:33:03 PST
This is a bug in Visual Studio's linker but it can be worked around with a link flag. This error looks like "NK1106: invalid file or disk full: cannot seek to ...." See https://connect.microsoft.com/VisualStudio/feedback/details/521439/link-failure-lnk1106-on-ltcg-for-a-static-library for more info.
Attachments
Proposed fix (2.84 KB, patch)
2013-02-20 18:01 PST, Mark Salisbury
no flags
Proposed fix (2.84 KB, patch)
2013-02-21 10:20 PST, Mark Salisbury
no flags
Proposed fix (2.84 KB, patch)
2013-02-21 10:32 PST, Mark Salisbury
no flags
Mark Salisbury
Comment 1 2013-02-20 18:01:55 PST
Created attachment 189433 [details] Proposed fix
WebKit Review Bot
Comment 2 2013-02-20 18:11:02 PST
Attachment 189433 [details] did not pass style-queue: Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/WebCore/CMakeLists.txt', u'Source/WebCore/ChangeLog', u'Source/WebCore/PlatformWinCE.cmake']" exit_code: 1 Source/WebCore/PlatformWinCE.cmake:135: Use lowercase command "if" [command/lowercase] [5] Source/WebCore/PlatformWinCE.cmake:139: Use lowercase command "list" [command/lowercase] [5] Source/WebCore/PlatformWinCE.cmake:140: Use lowercase command "endif" [command/lowercase] [5] Total errors found: 3 in 3 files If any of these errors are false positives, please file a bug against check-webkit-style.
Mark Salisbury
Comment 3 2013-02-21 10:20:37 PST
Created attachment 189550 [details] Proposed fix This patch addresses style issues found in the first patch
WebKit Review Bot
Comment 4 2013-02-21 10:23:47 PST
Attachment 189550 [details] did not pass style-queue: Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/WebCore/CMakeLists.txt', u'Source/WebCore/ChangeLog', u'Source/WebCore/PlatformWinCE.cmake']" exit_code: 1 Source/WebCore/PlatformWinCE.cmake:139: No space between command "list" and its parentheses, should be "list(" [whitespace/parentheses] [5] Total errors found: 1 in 3 files If any of these errors are false positives, please file a bug against check-webkit-style.
Mark Salisbury
Comment 5 2013-02-21 10:32:18 PST
Created attachment 189554 [details] Proposed fix another style fix... should be the last
Patrick R. Gansterer
Comment 6 2013-02-22 04:36:28 PST
Comment on attachment 189554 [details] Proposed fix is it really necessary to add this ugly variables? Isn't it possible to set tis LINK_FLAGS globally?
Mark Salisbury
Comment 7 2013-02-22 08:52:29 PST
Q1: Yes, unfortunately. Q2: I don't think we want to reserve space for all libraries globally, just webcore as it's the big beast. I initially wanted to only change Source/WebCore/PlatformWinCE.cmake, but the pattern for all other libraries is to create a variable named <library name>_LINK_FLAGS, so that the common cmake file could set link flags but at the same time allow platform specific link flags to be specified. I think the other reason that I had to add code to WebCore/CMakeLists.txt to add the link flags is that the link flags have to be added after the "add_library" command but the platform file must be included before the "add_library" command. I could make my changes smaller by not providing support for setting link flags if building webcore as SHARED_CORE (dll). I did some experimenting with building webcore as a dll and found other problems that prevented building webcore as a .dll (believe those were dependencies on webkit and lack of exports).
Mark Salisbury
Comment 8 2013-02-26 09:29:53 PST
Thoughts?
Andreas Kling
Comment 9 2014-02-05 11:11:58 PST
Comment on attachment 189554 [details] Proposed fix Clearing review flag on patches from before 2014. If this patch is still relevant, please reset the r? flag.
Ahmad Saleem
Comment 10 2024-04-19 08:24:37 PDT
VS2008 is EOL (End of Life) - https://learn.microsoft.com/en-us/lifecycle/products/visual-studio-2008 I think we wouldn't have these issues with newer MSVC plus 'PlatformWinCE.cmake' don't exist anymore. Marking this as 'RESOLVED WONTFIX' and CCing 'Fuji' for his visibility.
Note You need to log in before you can comment on or make changes to this bug.