Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#64596 - [glibc] Build failing in and out of chroot

Attached to Project: Arch Linux
Opened by Sp1d3rmxn (sp1d3rmxn) - Wednesday, 20 November 2019, 20:56 GMT
Last edited by Eli Schwartz (eschwartz) - Wednesday, 20 November 2019, 21:42 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

Package build fails on fresh installations building in chroot and outside of it with exactly the same error:

gcc -Wl,-O1,--sort-common,--as-needed,-z,relro -nostdlib -nostartfiles -r -o /build/glibc/src/glibc-build/elf/librtld.os '-Wl,-(' /build/glibc/src/glibc-build/elf/dl-allobjs.os /build/glibc/src/glibc-build/elf/rtld-libc.a -lgcc '-Wl,-)' \
-Wl,-Map,/build/glibc/src/glibc-build/elf/librtld.os.map
gcc -Wl,-O1,--sort-common,--as-needed,-z,relro -nostdlib -nostartfiles -shared -o /build/glibc/src/glibc-build/elf/ld.so.new \
-Wl,-z,combreloc -Wl,-z,relro -Wl,--hash-style=both -Wl,-z,defs -Wl,-z,now \
/build/glibc/src/glibc-build/elf/librtld.os -Wl,--version-script=/build/glibc/src/glibc-build/ld.map \
-Wl,-soname=ld-linux-x86-64.so.2 \
-Wl,-defsym=_begin=0
/usr/bin/ld: /build/glibc/src/glibc-build/elf/librtld.os: in function `lookup_doit':
/build/glibc/src/glibc/elf/rtld.c:633: undefined reference to `__stack_chk_fail'
/usr/bin/ld: /build/glibc/src/glibc-build/elf/librtld.os: in function `do_preload':
/build/glibc/src/glibc/elf/rtld.c:793: undefined reference to `__stack_chk_fail'
/usr/bin/ld: /build/glibc/src/glibc-build/elf/librtld.os: in function `print_statistics_item':
/build/glibc/src/glibc/elf/rtld.c:2773: undefined reference to `__stack_chk_fail'
/usr/bin/ld: /build/glibc/src/glibc-build/elf/librtld.os: in function `print_statistics':
/build/glibc/src/glibc/elf/rtld.c:2835: undefined reference to `__stack_chk_fail'
/usr/bin/ld: /build/glibc/src/glibc-build/elf/librtld.os: in function `process_dl_debug':
/build/glibc/src/glibc/elf/rtld.c:2489: undefined reference to `__stack_chk_fail'
/usr/bin/ld: /build/glibc/src/glibc-build/elf/librtld.os:/build/glibc/src/glibc/elf/rtld.c:548: more undefined references to `__stack_chk_fail' follow
collect2: error: ld returned 1 exit status
distcc[25831] ERROR: compile (null) on localhost failed
make[2]: *** [Makefile:508: /build/glibc/src/glibc-build/elf/ld.so] Error 1
make[2]: Leaving directory '/build/glibc/src/glibc/elf'
make[1]: *** [Makefile:259: elf/subdir_lib] Error 2
make[1]: Leaving directory '/build/glibc/src/glibc'
make: *** [Makefile:9: all] Error 2
==> ERROR: A failure occurred in build().
Aborting...

Additional info:
* package version(s) - 2.30-3

Steps to reproduce:
build in clean chroot AND outside of chroot (only on fresh install)
This task depends upon

Closed by  Eli Schwartz (eschwartz)
Wednesday, 20 November 2019, 21:42 GMT
Reason for closing:  Duplicate
Additional comments about closing:   FS#64569  DO NOT DO THAT

Loading...