public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug ports/26932] New: sh: Multiple floating point functions defined as stubs only since 2.31
@ 2020-11-23  1:45 glaubitz at physik dot fu-berlin.de
  2020-11-23 14:56 ` [Bug ports/26932] " glaubitz at physik dot fu-berlin.de
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: glaubitz at physik dot fu-berlin.de @ 2020-11-23  1:45 UTC (permalink / raw)
  To: glibc-bugs

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

            Bug ID: 26932
           Summary: sh: Multiple floating point functions defined as stubs
                    only since 2.31
           Product: glibc
           Version: 2.31
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: ports
          Assignee: unassigned at sourceware dot org
          Reporter: glaubitz at physik dot fu-berlin.de
                CC: adhemerval.zanella at linaro dot org, aurelien at aurel32 dot net,
                    carlos at redhat dot com,
                    sourceware-bugzilla at mkarcher dot dialup.fu-berlin.de
  Target Milestone: ---

Recently firebird3.0 started to fail to build from source on sh4 [1].

After some debugging, it turned out that the problem is that with glibc 2.31,
multiple floating point functions, including fegetenv() are no longer available
and are hence defined as __stub_ macros.

The complete list of missing functions can be seen by diffing the stubs.h
header:

--- stubs-2.30.h        2020-03-20 14:24:22.000000000 +0100
+++ stubs-2.31.h        2020-10-19 16:37:57.000000000 +0200
@@ -12,10 +12,25 @@
 #define __stub___compat_query_module
 #define __stub_chflags
 #define __stub_fchflags
+#define __stub_feclearexcept
+#define __stub_fedisableexcept
+#define __stub_feenableexcept
+#define __stub_fegetenv
+#define __stub_fegetexcept
+#define __stub_fegetexceptflag
+#define __stub_fegetmode
+#define __stub_fegetround
+#define __stub_feholdexcept
+#define __stub_feraiseexcept
+#define __stub_fesetenv
+#define __stub_fesetexcept
+#define __stub_fesetexceptflag
+#define __stub_fesetmode
+#define __stub_fesetround
+#define __stub_fetestexcept
+#define __stub_feupdateenv
 #define __stub_gtty
 #define __stub_lchmod
-#define __stub_pkey_alloc
-#define __stub_pkey_free
 #define __stub_revoke
 #define __stub_setlogin
 #define __stub_sigreturn

Bisecting led me to this commit as the culprit:

commit 605f38177dba31fe0d0183abb67e25a28fd37d15 (refs/bisect/bad)
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date:   Tue Jul 23 17:25:57 2019 -0300

    sh: Split BE/LE abilist

    The fix for BZ#18231 requires new symbols only for sh4eb.  This patch
    adds the required folder and files for both BE and LE abilist.  No
    semantic changes are expected.

    Checked with check-abi for sh4eb-linux-gnu and sh4-linux-gnu.

            * sysdeps/sh/preconfigure.ac: New file.
            * sysdeps/sh/preconfigure: Regenerate.
            * sysdeps/sh/be/sh3/Implies: New file.
            * sysdeps/sh/be/sh4/Implies: Likewise.
            * sysdeps/sh/le/sh3/Implies: Likewise.
            * sysdeps/sh/le/sh4/Implies: Likewise.
            * sysdeps/unix/sysv/linux/sh/le/sh3/Implies: Likewise.
            * sysdeps/unix/sysv/linux/sh/le/sh4/Implies: Likewise.
            * sysdeps/unix/sysv/linux/sh/*.abilist: Move to
            sysdeps/unix/sysv/linux/sh/le/*.abilist.
            * sysdeps/unix/sysv/linux/sh/be/*.abilist: New files.

It looks like the files sysdeps/sh/{le,be}/Implies are missing, I added them
with the content "sh" but that didn't help but chances are I did something
wrong as I don't fully understand the mechanism.

Since this affects 2.31 and higher, it would be nice if the fix could get
backported to the 2.31 branch.

> [1] https://buildd.debian.org/status/fetch.php?pkg=firebird3.0&arch=sh4&ver=3.0.7.33374.ds4-1&stamp=1603219363&raw=0

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

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

end of thread, other threads:[~2020-11-27 12:33 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-23  1:45 [Bug ports/26932] New: sh: Multiple floating point functions defined as stubs only since 2.31 glaubitz at physik dot fu-berlin.de
2020-11-23 14:56 ` [Bug ports/26932] " glaubitz at physik dot fu-berlin.de
2020-11-23 15:09 ` [Bug libc/26932] " schwab@linux-m68k.org
2020-11-23 15:15 ` glaubitz at physik dot fu-berlin.de
2020-11-25 17:58 ` adhemerval.zanella at linaro dot org
2020-11-26 21:26 ` glaubitz at physik dot fu-berlin.de
2020-11-26 21:27 ` glaubitz at physik dot fu-berlin.de
2020-11-27 12:32 ` adhemerval.zanella at linaro dot org
2020-11-27 12:33 ` adhemerval.zanella at linaro dot org

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).