Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 774327 - sys-libs/glibc undefined references to `__stack_chk_guard'
Summary: sys-libs/glibc undefined references to `__stack_chk_guard'
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-03-05 17:39 UTC by ephemer0l
Modified: 2021-03-05 22:12 UTC (History)
1 user (show)

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


Attachments
sys-libs/glibc-2.32-r7 build log (build.log.gz,275.90 KB, application/gzip)
2021-03-05 17:40 UTC, ephemer0l
Details
emerge --info sys-libs/glibc (file_774327.txt,21.77 KB, text/plain)
2021-03-05 17:41 UTC, ephemer0l
Details
gcc -v (file_774327.txt,1.54 KB, text/plain)
2021-03-05 20:40 UTC, ephemer0l
Details
emerge --info sys-devel/gcc (file_774327.txt,22.13 KB, text/plain)
2021-03-05 20:41 UTC, ephemer0l
Details
emerge --info sys-devel/gcc (file_774327.txt,21.53 KB, text/plain)
2021-03-05 20:47 UTC, ephemer0l
Details

Note You need to log in before you can comment on or make changes to this bug.
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. :)