Hi, all,<div><br></div><div>I have a project that uses cmake as build system on a Synology NAS. </div><div><div>As I could not find binaries, I had successfully built cmake v2.8.4 one year ago on an old ARM-based model (DS-109). Now I want to migrate my project to a brand new Intel-based model (DS-412+ with Intel D2700 processor).</div>
<div><br></div><div>Unfortunately, I can't seem to be able to build cmake now. I first tried with v2.8.8 which failed, then tried again with 2.8.4, to no avail.</div><div><br></div><div>./bootstrap fails at link step with the following error on the console:</div>
<div><br></div><div><div>---------------------------------------------</div></div><div><div>g++ -I/opt/cmake-2.8.4/Bootstrap.cmk -I/opt/cmake-2.8.4/Source -I/opt/cmake-2.8.4/Bootstrap.cmk cmStandardIncludes.o cmake.o cmakemain.o cmakewizard.o cmCommandArgumentLexer.o cmCommandArgumentParser.o cmCommandArgumentParserHelper.o cmDefinitions.o cmDepends.o cmDependsC.o cmDocumentationFormatter.o cmDocumentationFormatterText.o cmPolicies.o cmProperty.o cmPropertyMap.o cmPropertyDefinition.o cmPropertyDefinitionMap.o cmMakeDepend.o cmMakefile.o cmExportFileGenerator.o cmExportInstallFileGenerator.o cmInstallDirectoryGenerator.o cmGeneratedFileStream.o cmGeneratorExpression.o cmGlobalGenerator.o cmLocalGenerator.o cmInstallGenerator.o cmInstallExportGenerator.o cmInstallFilesGenerator.o cmInstallScriptGenerator.o cmInstallTargetGenerator.o cmScriptGenerator.o cmSourceFile.o cmSourceFileLocation.o cmSystemTools.o cmTestGenerator.o cmVersion.o cmFileTimeComparison.o cmGlobalUnixMakefileGenerator3.o cmLocalUnixMakefileGenerator3.o cmMakefileExecutableTargetGenerator.o cmMakefileLibraryTargetGenerator.o cmMakefileTargetGenerator.o cmMakefileUtilityTargetGenerator.o cmBootstrapCommands.o cmCommands.o cmTarget.o cmTest.o cmCustomCommand.o cmCustomCommandGenerator.o cmDocumentVariables.o cmCacheManager.o cmListFileCache.o cmComputeLinkDepends.o cmComputeLinkInformation.o cmOrderDirectories.o cmComputeTargetDepends.o cmComputeComponentGraph.o cmExprLexer.o cmExprParser.o cmExprParserHelper.o cmListFileLexer.o Directory.o Glob.o RegularExpression.o SystemTools.o ProcessUNIX.o String.o System.o -o cmake</div>
<div><b>cmDepends.o: file not recognized: File truncated</b></div><div>collect2: ld returned 1 exit status</div><div>make: *** [cmake] Error 1</div><div>---------------------------------------------</div><div><br></div></div>
<div>Indeed, cmDepends.o is 0 bytes. I'm attaching the corresponding cmake_bootstrap.log</div><div><br></div><div>It happens on v2.8.8 too, but with another file (3 files were 0 bytes long in that case). </div><div><br>
</div><div>What is weirder is that different tries don't choke on the same file, which means that deleting 0-size files and restarting, in the end I can manage to get a complete set of object files</div><div><br></div>
<div>Then, upon link, I now get some errors like </div><div>cmBootstrapCommands.o: file not recognized: File format not recognized</div><div>by the same method, I get rid of those files and restart ./bootstrap, until it says</div>
<div><br></div><div>"CMake has bootstrapped. Now run make."</div><div><br></div><div>I'm rather happy but then make fails with </div><div>----------------------------------------------</div><div>...</div><div>
<div>[ 10%] Building C object Source/kwsys/CMakeFiles/cmsysTestSharedForward.dir/testSharedForward.o</div><div>Linking C executable cmsysTestSharedForward</div><div>/opt/lib/gcc/i686-linux-gnu/4.2.1/../../../../i686-linux-gnu/lib/crt1.o: In function `_start':</div>
<div>(.text+0x18): undefined reference to `main'</div><div>collect2: ld returned 1 exit status</div><div>make[2]: *** [Source/kwsys/cmsysTestSharedForward] Error 1</div><div>make[1]: *** [Source/kwsys/CMakeFiles/cmsysTestSharedForward.dir/all] Error 2</div>
<div>make: *** [all] Error 2</div></div><div><div>----------------------------------------------</div><div><br class="Apple-interchange-newline"></div></div><div>Which makes me think that things are not that good in the end.</div>
<div><br></div><div>Any idea what could cause this issue ?</div><div><br></div><div>Best regards,</div><div><br></div><div><br></div><div>Vicne</div></div><div><br></div>