Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 391717 - dev-util/cmake-2.8.6-r4 fails to build in src_prepare (hardened gcc-4.6.2)
Summary: dev-util/cmake-2.8.6-r4 fails to build in src_prepare (hardened gcc-4.6.2)
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-23 16:35 UTC by Markus Walter
Modified: 2011-11-24 20:42 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build log (build.log,36.75 KB, text/plain)
2011-11-23 16:35 UTC, Markus Walter
Details
emerge --info (info.txt,5.39 KB, text/plain)
2011-11-23 16:35 UTC, Markus Walter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Markus Walter 2011-11-23 16:35:29 UTC
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
Comment 1 Markus Walter 2011-11-23 16:35:41 UTC
Created attachment 293533 [details]
emerge --info
Comment 2 Andreas K. Hüttel archtester gentoo-dev 2011-11-23 20:49:07 UTC
@hardened: I'd be grateful for some advice here...
Comment 3 Andreas K. Hüttel archtester gentoo-dev 2011-11-23 21:07:07 UTC
Does disabling ccache help?
Comment 4 Markus Walter 2011-11-24 13:19:16 UTC
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).
Comment 5 Markus Walter 2011-11-24 14:39:38 UTC
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.
Comment 6 Andreas K. Hüttel archtester gentoo-dev 2011-11-24 20:42:05 UTC
(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