Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 486140 - dev-lang/ghc-7.6.3-r1 - add-c_nonshared-to-ghci-libs() failed (no error message)
Summary: dev-lang/ghc-7.6.3-r1 - add-c_nonshared-to-ghci-libs() failed (no error message)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Haskell Language team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-09-27 00:00 UTC by Anton Kochkov
Modified: 2013-09-29 18:23 UTC (History)
0 users

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


Attachments
ghc.log.gz (ghc.log.gz,105.43 KB, application/x-gzip)
2013-09-27 00:00 UTC, Anton Kochkov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Anton Kochkov 2013-09-27 00:00:08 UTC
Created attachment 359578 [details]
ghc.log.gz

/usr/lib/portage/bin/ebuild-helpers/xattr/install -c -m 755 -d "/var/tmp/portage/dev-lang/ghc-7.6.3-r1/image/usr/lib/ghc-7.6.3"
for i in utils/unlit/dist/build/tmp/unlit; do \
	/usr/lib/portage/bin/ebuild-helpers/xattr/install -c -m 755  $i "/var/tmp/portage/dev-lang/ghc-7.6.3-r1/image/usr/lib/ghc-7.6.3"; \
done
 [32;01m*[0m relinking '/var/tmp/portage/dev-lang/ghc-7.6.3-r1/image//usr/lib/ghc-7.6.3/ghc-prim-0.3.0.0/HSghc-prim-0.3.0.0.o' with c_includes
`__x86.get_pc_thunk.bx' referenced in section `.text' of /var/tmp/portage/dev-lang/ghc-7.6.3-r1/temp/libc_nonshared_objects/fstat_weakened.o: defined in discarded section `.text.__x86.get_pc_thunk.bx[__x86.get_pc_thunk.bx]' of /var/tmp/portage/dev-lang/ghc-7.6.3-r1/temp/libc_nonshared_objects/fstat_weakened.o
`__x86.get_pc_thunk.bx' referenced in section `.text' of /var/tmp/portage/dev-lang/ghc-7.6.3-r1/temp/libc_nonshared_objects/lstat_weakened.o: defined in discarded section `.text.__x86.get_pc_thunk.bx[__x86.get_pc_thunk.bx]' of /var/tmp/portage/dev-lang/ghc-7.6.3-r1/temp/libc_nonshared_objects/lstat_weakened.o
`__x86.get_pc_thunk.bx' referenced in section `.text' of /var/tmp/portage/dev-lang/ghc-7.6.3-r1/temp/libc_nonshared_objects/mknod_weakened.o: defined in discarded section `.text.__x86.get_pc_thunk.bx[__x86.get_pc_thunk.bx]' of /var/tmp/portage/dev-lang/ghc-7.6.3-r1/temp/libc_nonshared_objects/mknod_weakened.o
`__x86.get_pc_thunk.bx' referenced in section `.text' of /var/tmp/portage/dev-lang/ghc-7.6.3-r1/temp/libc_nonshared_objects/stat64_weakened.o: defined in discarded section `.text.__x86.get_pc_thunk.bx[__x86.get_pc_thunk.bx]' of /var/tmp/portage/dev-lang/ghc-7.6.3-r1/temp/libc_nonshared_objects/stat64_weakened.o
`__x86.get_pc_thunk.bx' referenced in section `.text' of /var/tmp/portage/dev-lang/ghc-7.6.3-r1/temp/libc_nonshared_objects/fstat64_weakened.o: defined in discarded section `.text.__x86.get_pc_thunk.bx[__x86.get_pc_thunk.bx]' of /var/tmp/portage/dev-lang/ghc-7.6.3-r1/temp/libc_nonshared_objects/fstat64_weakened.o
`__x86.get_pc_thunk.bx' referenced in section `.text' of /var/tmp/portage/dev-lang/ghc-7.6.3-r1/temp/libc_nonshared_objects/lstat64_weakened.o: defined in discarded section `.text.__x86.get_pc_thunk.bx[__x86.get_pc_thunk.bx]' of /var/tmp/portage/dev-lang/ghc-7.6.3-r1/temp/libc_nonshared_objects/lstat64_weakened.o
`__x86.get_pc_thunk.bx' referenced in section `.text' of /var/tmp/portage/dev-lang/ghc-7.6.3-r1/temp/libc_nonshared_objects/fstatat_weakened.o: defined in discarded section `.text.__x86.get_pc_thunk.bx[__x86.get_pc_thunk.bx]' of /var/tmp/portage/dev-lang/ghc-7.6.3-r1/temp/libc_nonshared_objects/fstatat_weakened.o
`__x86.get_pc_thunk.bx' referenced in section `.text' of /var/tmp/portage/dev-lang/ghc-7.6.3-r1/temp/libc_nonshared_objects/fstatat64_weakened.o: defined in discarded section `.text.__x86.get_pc_thunk.bx[__x86.get_pc_thunk.bx]' of /var/tmp/portage/dev-lang/ghc-7.6.3-r1/temp/libc_nonshared_objects/fstatat64_weakened.o
`__x86.get_pc_thunk.bx' referenced in section `.text' of /var/tmp/portage/dev-lang/ghc-7.6.3-r1/temp/libc_nonshared_objects/mknodat_weakened.o: defined in discarded section `.text.__x86.get_pc_thunk.bx[__x86.get_pc_thunk.bx]' of /var/tmp/portage/dev-lang/ghc-7.6.3-r1/temp/libc_nonshared_objects/mknodat_weakened.o
 [31;01m*[0m ERROR: dev-lang/ghc-7.6.3-r1::gentoo failed (install phase):
 [31;01m*[0m   (no error message)
 [31;01m*[0m 
 [31;01m*[0m Call stack:
 [31;01m*[0m     ebuild.sh, line   93:  Called src_install
 [31;01m*[0m   environment, line 4127:  Called add-c_nonshared-to-ghci-libs
 [31;01m*[0m   environment, line  631:  Called die
 [31;01m*[0m The specific snippet of code:
 [31;01m*[0m           $(tc-getLD) -r -o "${ghci_lib}" "${ghci_lib}".unrelinked.o $(get-nonshared-objects) || die;
 [31;01m*[0m 
 [31;01m*[0m If you need support, post the output of `emerge --info '=dev-lang/ghc-7.6.3-r1::gentoo'`,
 [31;01m*[0m the complete build log and the output of `emerge -pqv '=dev-lang/ghc-7.6.3-r1::gentoo'`.
 [31;01m*[0m The complete build log is located at '/var/tmp/portage/dev-lang/ghc-7.6.3-r1/temp/build.log'.
 [31;01m*[0m The ebuild environment file is located at '/var/tmp/portage/dev-lang/ghc-7.6.3-r1/temp/environment'.
 [31;01m*[0m Working directory: '/var/tmp/portage/dev-lang/ghc-7.6.3-r1/work/ghc-7.6.3'
 [31;01m*[0m S: '/var/tmp/portage/dev-lang/ghc-7.6.3-r1/work/ghc-7.6.3'
[33;01m * [39;49;00mQA Notice: Unrecognized configure options:
[33;01m * [39;49;00m
[33;01m * [39;49;00m	--with-compiler
[33;01m * [39;49;00m	--with-gcc
[33;01m * [39;49;00m	--with-compiler
[33;01m * [39;49;00m	--with-gcc
[33;01m * [39;49;00m	--with-compiler
[33;01m * [39;49;00m	--with-gcc
[33;01m * [39;49;00m	--with-compiler
[33;01m * [39;49;00m	--with-gcc
[33;01m * [39;49;00m	--with-compiler
[33;01m * [39;49;00m	--with-gcc
[33;01m * [39;49;00m	--with-compiler
[33;01m * [39;49;00m	--with-gcc
[33;01m * [39;49;00m	--with-compiler
[33;01m * [39;49;00m	--with-gcc
[33;01m * [39;49;00m	--with-compiler
[33;01m * [39;49;00m	--with-gcc
[33;01m * [39;49;00m	--with-compiler
[33;01m * [39;49;00m	--with-gcc
[33;01m * [39;49;00m	--with-compiler
[33;01m * [39;49;00m	--with-gcc
[33;01m * [39;49;00m	--with-compiler
[33;01m * [39;49;00m	--with-gcc
[33;01m * [39;49;00m	--with-compiler
[33;01m * [39;49;00m	--with-gcc
[33;01m * [39;49;00m	--with-compiler
[33;01m * [39;49;00m	--with-gcc
[33;01m * [39;49;00m	--with-compiler
[33;01m * [39;49;00m	--with-gcc
[33;01m * [39;49;00m	--with-compiler
[33;01m * [39;49;00m	--with-gcc
[33;01m * [39;49;00m	--with-compiler
[33;01m * [39;49;00m	--with-gcc
Comment 1 Anton Kochkov 2013-09-27 00:00:44 UTC
emerge --info output: https://bugs.gentoo.org/attachment.cgi?id=359568
Comment 2 Sergei Trofimovich (RETIRED) gentoo-dev 2013-09-27 17:16:09 UTC
The real error is this one:

relinking '/var/tmp/portage/dev-lang/ghc-7.6.3-r1/image//usr/lib/ghc-7.6.3/ghc-prim-0.3.0.0/HSghc-prim-0.3.0.0.o' with c_includes
`__x86.get_pc_thunk.bx' referenced in section `.text' of /var/tmp/portage/dev-lang/ghc-7.6.3-r1/temp/libc_nonshared_objects/fstat_weakened.o: defined in dis
carded section `.text.__x86.get_pc_thunk.bx[__x86.get_pc_thunk.bx]' of /var/tmp/portage/dev-lang/ghc-7.6.3-r1/temp/libc_nonshared_objects/fstat_weakened.o

It means that hardened toolchain builds even static libc bits as relocatable objects.

I'll try to put some workaround soonish.
Comment 3 Sergei Trofimovich (RETIRED) gentoo-dev 2013-09-29 18:23:21 UTC
Pushed as:

> 29 Sep 2013; Sergei Trofimovich <slyfox@gentoo.org> ghc-7.6.3-r1.ebuild:
> Disable ghci linker hack on x86-hardened (bug #486140 by Anton Kochkov).

Thanks for the report!