public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libc/28786] New: Glibc 2.34 introduces C++ build failures
@ 2022-01-16 10:18 krejzi at email dot com
  2022-01-17 13:06 ` [Bug libc/28786] " fweimer at redhat dot com
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: krejzi at email dot com @ 2022-01-16 10:18 UTC (permalink / raw)
  To: glibc-bugs

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

            Bug ID: 28786
           Summary: Glibc 2.34 introduces C++ build failures
           Product: glibc
           Version: 2.34
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: libc
          Assignee: unassigned at sourceware dot org
          Reporter: krejzi at email dot com
                CC: drepper.fsp at gmail dot com
  Target Milestone: ---

When using glibc-2.34 with gcc-11.2.0 to build C++ code, importing some
headers, for example, stdlib.h will throw an error


In file included from /mnt/lfs/tools/include/c++/11.2.0/cstdlib:75,
                 from
/home/armin/src/pacman/tools/bootstrap/cmake-3.22.1/Source/CursesDialog/ccmake.cxx:6:
/tools/include/stdlib.h:565:5: error: expected initializer before
'__attr_dealloc_free'
  565 |     __attr_dealloc_free;
      |     ^~~~~~~~~~~~~~~~~~~
/tools/include/stdlib.h:569:14: error: expected initializer before
'__attr_dealloc'
  569 |      __THROW __attr_dealloc (reallocarray, 1);
      |              ^~~~~~~~~~~~~~

There are also issues with other packages and different C headers included
inside C++ code. Please advise on how to proceed here. The problem is not
present in glibc-2.33 and it's triggered by glibc-2.34 upgrade.

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

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

* [Bug libc/28786] Glibc 2.34 introduces C++ build failures
  2022-01-16 10:18 [Bug libc/28786] New: Glibc 2.34 introduces C++ build failures krejzi at email dot com
@ 2022-01-17 13:06 ` fweimer at redhat dot com
  2022-02-04 21:58 ` krejzi at email dot com
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: fweimer at redhat dot com @ 2022-01-17 13:06 UTC (permalink / raw)
  To: glibc-bugs

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

Florian Weimer <fweimer at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
     Ever confirmed|0                           |1
             Status|UNCONFIRMED                 |WAITING
   Last reconfirmed|                            |2022-01-17
                 CC|                            |fweimer at redhat dot com

--- Comment #1 from Florian Weimer <fweimer at redhat dot com> ---
Please attach preprocessed source code to this bug. Thanks.

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

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

* [Bug libc/28786] Glibc 2.34 introduces C++ build failures
  2022-01-16 10:18 [Bug libc/28786] New: Glibc 2.34 introduces C++ build failures krejzi at email dot com
  2022-01-17 13:06 ` [Bug libc/28786] " fweimer at redhat dot com
@ 2022-02-04 21:58 ` krejzi at email dot com
  2022-02-04 21:59 ` krejzi at email dot com
  2022-02-04 22:58 ` fweimer at redhat dot com
  3 siblings, 0 replies; 5+ messages in thread
From: krejzi at email dot com @ 2022-02-04 21:58 UTC (permalink / raw)
  To: glibc-bugs

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

--- Comment #2 from Armin K. <krejzi at email dot com> ---
Created attachment 13959
  --> https://sourceware.org/bugzilla/attachment.cgi?id=13959&action=edit
Preprocessed file

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

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

* [Bug libc/28786] Glibc 2.34 introduces C++ build failures
  2022-01-16 10:18 [Bug libc/28786] New: Glibc 2.34 introduces C++ build failures krejzi at email dot com
  2022-01-17 13:06 ` [Bug libc/28786] " fweimer at redhat dot com
  2022-02-04 21:58 ` krejzi at email dot com
@ 2022-02-04 21:59 ` krejzi at email dot com
  2022-02-04 22:58 ` fweimer at redhat dot com
  3 siblings, 0 replies; 5+ messages in thread
From: krejzi at email dot com @ 2022-02-04 21:59 UTC (permalink / raw)
  To: glibc-bugs

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

--- Comment #3 from Armin K. <krejzi at email dot com> ---
Reconfirmed with glibc-2.35.

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

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

* [Bug libc/28786] Glibc 2.34 introduces C++ build failures
  2022-01-16 10:18 [Bug libc/28786] New: Glibc 2.34 introduces C++ build failures krejzi at email dot com
                   ` (2 preceding siblings ...)
  2022-02-04 21:59 ` krejzi at email dot com
@ 2022-02-04 22:58 ` fweimer at redhat dot com
  3 siblings, 0 replies; 5+ messages in thread
From: fweimer at redhat dot com @ 2022-02-04 22:58 UTC (permalink / raw)
  To: glibc-bugs

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

Florian Weimer <fweimer at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |RESOLVED
         Resolution|---                         |WORKSFORME
              Flags|                            |security-

--- Comment #4 from Florian Weimer <fweimer at redhat dot com> ---
This seems to be some sort of sysroot escape.

# 75 "/mnt/lfs/tools/include/c++/11.2.0/cstdlib" 3
# 1 "/tools/include/stdlib.h" 1 3

But <sys/cdefs.h> is from the system default:

# 1 "/usr/include/sys/cdefs.h" 1 3

The system glibc version is probably older than this /tools/include/stdlib.h
file.

-- 
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:[~2022-02-04 22:58 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-16 10:18 [Bug libc/28786] New: Glibc 2.34 introduces C++ build failures krejzi at email dot com
2022-01-17 13:06 ` [Bug libc/28786] " fweimer at redhat dot com
2022-02-04 21:58 ` krejzi at email dot com
2022-02-04 21:59 ` krejzi at email dot com
2022-02-04 22:58 ` 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).