trouble building glibc-2.24

Need help with C, C++, perl, python, etc?

trouble building glibc-2.24

Postby alwhaley » 2019-08-15 13:53

I needed to compile glibc in order to gdb a problem in one of the system call library stubs.
The problem is that after apt-install glibc-source (a standard package for debian 9.9), doing a
proper ../glibc-2.24/configure from a parallel build directory as required, the make runs well
for quite a while, compiling many programs, but then catches an error and produces:

make[2]: *** No rule to make target '/al/pkg/libc/glibc-build/bits/', needed by '/al/pkg/libc/glibc-build/bits/stdio_lim.h'. Stop.
make[2]: Leaving directory '/al/pkg/libc/glibc-2.24/csu'
Makefile:230: recipe for target 'csu/subdir_lib' failed
make[1]: *** [csu/subdir_lib] Error 2
make[1]: Leaving directory '/al/pkg/libc/glibc-2.24'

Is there any reason the debian version of glibc for this release wouldn't compile out of the box? I tried this on several machines. It's worth noting that if I download glibc-2.24 or glibc-2.30 from gnu, they compile to completion. I just happen to need to debug with the source code that matches my installed system.


al@hadron:~/pkg/libc/glibc-build$ uname -a
Linux 4.9.0-9-amd64 #1 SMP Debian 4.9.168-1+deb9u2 (2019-05-13) x86_64 GNU/Linux
al@hadron:~/pkg/libc/glibc-build$ lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 9.9 (stretch)
Release: 9.9
Codename: stretch
Posts: 1
Joined: 2019-08-14 22:58

Re: trouble building glibc-2.24

Postby stevepusser » 2019-08-15 19:02

Maybe Debian had to patch it to get it to build correctly. The manual method you're using won't apply the Debian patches.

I thought Debian provided debugging packages for libc6, though. Will those work instead you having to rebuild the whole schmeer?
MX Linux packager and developer
User avatar
Posts: 12182
Joined: 2009-10-06 05:53

Re: trouble building glibc-2.24

Postby Head_on_a_Stick » 2019-08-18 19:22

stevepusser wrote:I thought Debian provided debugging packages for libc6, though.

^ This. ... ng_symbols
Black Lives Matter

Debian buster-backports ISO image: for new hardware support
User avatar
Posts: 13041
Joined: 2014-06-01 17:46
Location: /dev/chair

Return to Programming

Who is online

Users browsing this forum: No registered users and 3 guests