View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0015278CMakeCMakepublic2014-12-03 09:072015-11-02 09:15
Reporterbogdanm 
Assigned To 
PrioritynormalSeveritymajorReproducibilityalways
StatusclosedResolutionunable to reproduce 
PlatformWin32OSWindowsOS VersionWindows 7
Product VersionCMake 3.0.2 
Target VersionFixed in Version 
Summary0015278: Ninja generator breaks when creating archives with GNU 'ar' in Windows
DescriptionWhen creating an archive in Windows, the Ninja generator doesn't list all the archive members on the command line; instead, it creates a file with a list of all the archive members and gives that to 'ar' using '@file'. That in itself is a very good idea; unfortunately, backslashes in @file are interpreted as escape sequences, which effectively disregards the Windows path separator '\'. This can be fixed by using '\\' instead of '\' in @file.
TagsCMake, ninja
Attached Files

 Relationships
related to 0015439closedBrad King ninja: no possibility to control type of path delimiter and line break for linker response file 

  Notes
(0038469)
Brad King (manager)
2015-04-07 15:49

I cannot reproduce this with CMake 3.2. I tested with a simple test project that has 1000 source files whose objects should be placed in the archive. This is enough to cause the _RSP_FILE rule to be used. The build.ninja file gets a "build ...: ..." line for the static library with forward slashes on the explicit dependencies. This causes ninja to write the RSP_FILE with forward slashes.
(0038470)
Brad King (manager)
2015-04-07 15:54

I've resolved this as "unable to reproduce" for now.

Please provide more detail about how you encountered this.
(0038472)
Brad King (manager)
2015-04-07 16:02

See also 0015439:0038471.
(0038725)
Thomas Herz (reporter)
2015-05-07 04:01

@Brad:
I guess, you cannot reproduce this because you used MinGW toolchain. For MinGW the workaround for the correct slashes is already here. With my GCC-based cross-toolchain, I can reproduce it with CMake 3.2.2.
(0038735)
Brad King (manager)
2015-05-08 09:39

See related changes linked in 0015439:0038728.
(0039805)
Robert Maynard (manager)
2015-11-02 09:15

Closing resolved issues that have not been updated in more than 4 months.

 Issue History
Date Modified Username Field Change
2014-12-03 09:07 bogdanm New Issue
2014-12-03 09:07 bogdanm Tag Attached: CMake
2014-12-03 09:07 bogdanm Tag Attached: ninja
2014-12-03 09:42 Brad King Status new => acknowledged
2014-12-03 09:42 Brad King Target Version => CMake 3.2
2015-02-04 15:36 Brad King Target Version CMake 3.2 => CMake 3.3
2015-03-11 08:27 Brad King Relationship added related to 0015439
2015-04-07 15:49 Brad King Note Added: 0038469
2015-04-07 15:49 Brad King Status acknowledged => resolved
2015-04-07 15:49 Brad King Resolution open => unable to reproduce
2015-04-07 15:49 Brad King Target Version CMake 3.3 =>
2015-04-07 15:54 Brad King Note Added: 0038470
2015-04-07 16:02 Brad King Note Added: 0038472
2015-05-07 04:01 Thomas Herz Note Added: 0038725
2015-05-08 09:39 Brad King Note Added: 0038735
2015-11-02 09:15 Robert Maynard Note Added: 0039805
2015-11-02 09:15 Robert Maynard Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team