Mercury Bugs - mercury
View Issue Details
0000469mercuryBugpublic2018-09-16 12:252018-09-19 11:19
Reportertaigua 
Assigned Towangp 
PrioritynormalSeveritymajorReproducibilityalways
StatusresolvedResolutionfixed 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0000469: mercury-srcdist-rotd-2018-09-11 compile failed on MinGW64 (Win10 64bit)
DescriptionEnviroment:
  Windows 10 64bit
  Msys2
  Mingw64: GCC 8.2.0

Compile failed log:
io.m: In function 'mercury__io__do_make_temp_8_p_0':
io.m:16798:9: error: 'strncat' output may be truncated copying 6 bytes from a string of length 255 [-Werror=stringop-truncation]
io.m: In function 'mercury__io__make_temp_file_6_p_0':
io.m:24403:9: error: 'strncat' output may be truncated copying 6 bytes from a string of length 255 [-Werror=stringop-truncation]
Steps To ReproduceCompile steps:
$ ./configure --prefix=D:/mercury --host=x86_64-w64-mingw32
$ make PARALLEL=-j4

Then it complains:
io.m: In function 'mercury__io__do_make_temp_8_p_0':
io.m:16798:9: error: 'strncat' output may be truncated copying 6 bytes from a string of length 255 [-Werror=stringop-truncation]
io.m: In function 'mercury__io__make_temp_file_6_p_0':
io.m:24403:9: error: 'strncat' output may be truncated copying 6 bytes from a string of length 255 [-Werror=stringop-truncation]
TagsNo tags attached.
Attached Files

Notes
(0001012)
wangp   
2018-09-19 11:19   
Should be fixed in commit 90c29e772

Issue History
2018-09-16 12:25taiguaNew Issue
2018-09-19 11:19wangpAssigned To => wangp
2018-09-19 11:19wangpStatusnew => resolved
2018-09-19 11:19wangpResolutionopen => fixed
2018-09-19 11:19wangpNote Added: 0001012