Created attachment 293531 [details] build log On my ~amd64 machine with hardened gcc-4.6.2 I see the following error when trying to build cmake. When switching to vanilla-gcc-4.6.2 the error vanishes. x86_64-pc-linux-gnu-g++ -Wl,-O1 -Wl,--as-needed -O2 -pipe -march=native -ggdb -floop-interchange -floop-strip-mine -floop-block -finline-functions -I/var/tmp/portage/dev-util/cmake-2.8.6-r4/work/cmake-2.8.6/Bootstrap.cmk -I/var/tmp/portage/dev-util/cmake-2.8.6-r4/work/cmake-2.8.6/Source -I/var/tmp/portage/dev-util/cmake-2.8.6-r4/work/cmake-2.8.6/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 /usr/lib/gcc/x86_64-pc-linux-gnu/4.6.2/../../../../x86_64-pc-linux-gnu/bin/ld: cmBootstrapCommands.o: relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC cmBootstrapCommands.o: could not read symbols: Bad value collect2: ld returned 1 exit status gmake: *** [cmake] Error 1
Created attachment 293533 [details] emerge --info
@hardened: I'd be grateful for some advice here...
Does disabling ccache help?
Yes, disabling ccache helps. After disabling ccache dev-util/cmake compiles successfully and then aborts at the test failure '58 - BundledUtilities' (as per bug 390533).
Actually after clearing the ccache the issue has gone away, Strange thing, I don't remember this happening to me before. The test failure is still present.
(In reply to comment #5) > Actually after clearing the ccache the issue has gone away, Strange thing, I > don't remember this happening to me before. > > The test failure is still present. OK thanks. Could you please attach the test log with TEST_VERBOSE=1 to bug 390533 ?! TIA, Andreas