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

Bug 545762

Summary: sys-libs/glibc-2.20 error on build not causing build failure (bricking system)
Product: Gentoo Linux Reporter: totony <totony123>
Component: [OLD] Core systemAssignee: Gentoo Toolchain Maintainers <toolchain>
Status: RESOLVED INVALID    
Severity: normal CC: alexander
Priority: Normal    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge --info output
gzipped glibc build log

Description totony 2015-04-06 18:27:51 UTC
Created attachment 400716 [details]
emerge --info output

Hi,

glibc-2.20 builds, but errors are present in the build process, and this causes files to be missing (ldconfig for example, if you need the output of equery f feel free to ask).

Forum thread (more explanation): https://forums.gentoo.org/viewtopic-t-1014266-highlight-.html

The most obvious problems during the build process:
/tmp/portage/sys-libs/glibc-2.20-r2/work/glibc-2.20/sysdeps/unix/sysv/linux/configure:215: parse error near `user_version=$((`ech...'

and all the "__LINUX_KERNEL_VERSION" is not defined [-Wundef]

This seems to be caused by a problem with autoconf (others packages, for example pth, fail to build due to missing definitions/missing confdefs.h), but I am not 100% sure
Comment 1 totony 2015-04-06 18:28:29 UTC
Build log (too big for attachment): http://totony.gyc.ca/priv/sys-libs:glibc-2.20-r2:20150404-174138.log
Comment 2 SpanKY gentoo-dev 2015-04-08 04:03:17 UTC
(In reply to totony from comment #1)

compress it then before attaching
Comment 3 totony 2015-04-08 15:31:51 UTC
Created attachment 400852 [details]
gzipped glibc build log
Comment 4 totony 2015-04-08 15:33:49 UTC
NEEDINFO: What information do you need?
Comment 5 SpanKY gentoo-dev 2015-04-09 00:45:34 UTC
what is /bin/sh set to ?  can you attach `emerge --info --verbose glibc` ?
Comment 6 totony 2015-04-10 04:08:44 UTC
My /bin/sh was a symlink to /bin/zsh, I was oblivious not to look at this, thank you!
I changed it to sh-> /bin/bash and it all works now.

Although it is weird that we assume sh to be bash, is that an upstream bug or is it just deprecated?
Comment 7 SpanKY gentoo-dev 2015-04-12 22:51:32 UTC
afaik, zsh doesn't provide a POSIX shell, so you can't set it as /bin/sh target