public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/30798] New: sysdeps/nptl/lowlevellock.h and lowlevellock-futex.h
@ 2023-08-28  2:24 asholomitskiy84 at gmail dot com
  2023-08-28  5:29 ` [Bug libc/30798] " fweimer at redhat dot com
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: asholomitskiy84 at gmail dot com @ 2023-08-28  2:24 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=30798

            Bug ID: 30798
           Summary: sysdeps/nptl/lowlevellock.h and lowlevellock-futex.h
           Product: glibc
           Version: 2.31
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: libc
          Assignee: unassigned at sourceware dot org
          Reporter: asholomitskiy84 at gmail dot com
                CC: drepper.fsp at gmail dot com
  Target Milestone: ---

Created attachment 15089
  --> https://sourceware.org/bugzilla/attachment.cgi?id=15089&action=edit
my system description

Hi!
Please, forgive me for long letter:)
I have Linux Mint 20.3 x86_64 with glibc 2.31-0ubuntu9.9 (system.txt applied)
Original system kernel was 5.4.126 (from repository), and native system header
file /usr/include/linux/version.h defines LINUX_VERSION_CODE 328907 (i.e. 5.4).
Some time later I have installed linux-5.15.79 from repository, after that I
first time build kernel 5.15.79 from source. Mannually built kernel works
without problems, like it was from repository and as similar size. Ok.

my question: I'd like to try build glibc-2.31 manually, but with new kernel
headers 5.15.79, can I do it?
I understand, different Linux systems have different patches, in order to have
less problems I downloded sources by:
$ apt-get source glibc

$ cd glibc-2.31
$ mkdir mybuild; cd mybuild
$ ../configure --prefix=/tools/glibc-2.31 --disable-werror
--enable-kernel=5.15.0 --with-selinux --enable-stack-protector=strong
--with-headers=/usr/local/lib/modules/5.15.79/source/include --with-tls
--enable-add-ons --enable-multi-arch --enable-nss-crypt --enable-pt_chown
--enable-tunables=yes --enable-shared

$ make returns many warnings, but the difficult errors are:
1) sysdeps/generic/_itoa.h::36:30: error: missing binary operator before token
"("
# define _ITOA_NEEDED (LONG_MAX != LLONG_MAX)
I had similar errors but I solved them by making additional symlinks inside
headers folder for files with types description.

I looked for '(LONG_MAX' reason, but nothing found and replaced string to
# define _ITOA_NEEDED 0 // (LONG_MAX != LLONG_MAX)

2) I stopped at sysdeps/nptl/lowlevellock.h and lowlevellock-futex.h
error: expected expression before ‘)’ token
../sysdeps/nptl/lowlevellock.h:173:20:
173 |      int __private = (private);
                                   ^
sysdeps/nptl/lowlevellock-futex.h:60:39: 
60 |     __lll_private_flag_priv = (private);
                                           ^
C_INCLUDE_PATH=/usr/local/include:/usr/src/linux-5.15.79/include:/usr/include:/usr/include/x86_64-linux-gnu
CPP_INCLUDE_PATH has the same value (another variables in system.txt)

I tried to build glibc-2.31 on another system:
Debian 11.0 with glibc 2.31-13+deb11u3 (clean install), but have the same
errors

Also I tried compiled glibc-2.31 and glibc-2.34 from
https://ftp.gnu.org/gnu/glibc/  , but without success

mayby I could build glibc only with native /usr/include headers only?
Could you give me a tip to solve this error?

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-08-29  6:26 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-08-28  2:24 [Bug libc/30798] New: sysdeps/nptl/lowlevellock.h and lowlevellock-futex.h asholomitskiy84 at gmail dot com
2023-08-28  5:29 ` [Bug libc/30798] " fweimer at redhat dot com
2023-08-28  5:44 ` asholomitskiy84 at gmail dot com
2023-08-29  5:29 ` asholomitskiy84 at gmail dot com
2023-08-29  6:26 ` fweimer at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).