Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 774327

Summary: sys-libs/glibc undefined references to `__stack_chk_guard'
Product: Gentoo Linux Reporter: ephemer0l <om>
Component: Current packagesAssignee: Gentoo Toolchain Maintainers <toolchain>
Status: RESOLVED INVALID    
Severity: normal CC: sam
Priority: Normal    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: sys-libs/glibc-2.32-r7 build log
emerge --info sys-libs/glibc
gcc -v
emerge --info sys-devel/gcc
emerge --info sys-devel/gcc

Description ephemer0l 2021-03-05 17:39:36 UTC
I don't know how it might have happened, but I can't for the life of me build glibc on a hardend profile.

Reproducible: Always

Steps to Reproduce:
1.emerge -1 sys-libs/glibc
2.
3.
Actual Results:  
/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: /var/tmp/portage/sys-libs/glibc-2.32-r7/work/build-x86-x86_64-pc-linux-gnu-nptl/libc_pic.os: in function `iconv_open':
(.text+0x874): undefined reference to `__stack_chk_guard'
Comment 1 ephemer0l 2021-03-05 17:40:21 UTC
Created attachment 689493 [details]
sys-libs/glibc-2.32-r7 build log
Comment 2 ephemer0l 2021-03-05 17:41:12 UTC
Created attachment 689496 [details]
emerge --info sys-libs/glibc
Comment 3 Sergei Trofimovich (RETIRED) gentoo-dev 2021-03-05 18:07:57 UTC
USE=libssp looks very suspicious and it does move out __stack_* function to libssp if gcc is built with libssp.

Can you post your output of:
1. 'gcc -v'
2. emerge --info gcc
Comment 4 ephemer0l 2021-03-05 20:40:01 UTC
Created attachment 689505 [details]
gcc -v
Comment 5 ephemer0l 2021-03-05 20:41:29 UTC
Created attachment 689508 [details]
emerge --info sys-devel/gcc
Comment 6 ephemer0l 2021-03-05 20:47:00 UTC
Created attachment 689511 [details]
emerge --info sys-devel/gcc
Comment 7 ephemer0l 2021-03-05 20:56:37 UTC
This looks like my ignorance has bit me, again. I did force on libssp along with ssp... Sorry for wasting time, but maybe someone in the future will find this bug...
Comment 8 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-03-05 22:12:16 UTC
Glad it was simple. :)