Changeset 2594b0a


Ignore:
Timestamp:
06/12/2009 05:25:14 AM (15 years ago)
Author:
Bryan Kadzban <bryan@…>
Branches:
10.0, 10.0-rc1, 10.1, 10.1-rc1, 11.0, 11.0-rc1, 11.0-rc2, 11.0-rc3, 11.1, 11.1-rc1, 11.2, 11.2-rc1, 11.3, 11.3-rc1, 12.0, 12.0-rc1, 12.1, 12.1-rc1, 6.5, 6.6, 6.7, 6.8, 7.0, 7.1, 7.2, 7.3, 7.4, 7.5, 7.5-systemd, 7.6, 7.6-systemd, 7.7, 7.7-systemd, 7.8, 7.8-systemd, 7.9, 7.9-systemd, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, arm, bdubbs/gcc13, ml-11.0, multilib, renodr/libudev-from-systemd, s6-init, trunk, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/lfs-next, xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1, xry111/mips64el, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
Children:
8effec6
Parents:
8e66c9d
Message:

Add a sed to glibc to fix the constants passed to futex(2) in 32-bit builds. Seems to fix testsuite hangs (the tst-mutex9 process never exits, for instance).

This change is in upstream git, so this can be reverted once we upgrade glibc.

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@8944 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • chapter01/changelog.xml

    r8e66c9d r2594b0a  
    3939
    4040    <listitem>
     41      <para>2009-06-11</para>
     42      <itemizedlist>
     43        <listitem>
     44          <para>[bryan] - Add a sed to glibc to fix the constants passed
     45          to futex(2) in 32-bit builds with certain --enable-kernel values,
     46          including our 2.6.18.</para>
     47        </listitem>
     48      </itemizedlist>
     49    </listitem>
     50
     51    <listitem>
    4152      <para>2009-06-06</para>
    4253      <itemizedlist>
  • chapter05/glibc.xml

    r8e66c9d r2594b0a  
    4343  <sect2 role="installation">
    4444    <title>Installation of Glibc</title>
     45
     46    <!-- This sed can be removed for any glibc newer than 2.10.1 (along with the
     47         matching sed in chapter 6).  See glibc bug 10262. -->
     48    <para>Fix an error in the constants that get passed to the futex system
     49    call in some cases, causing certain pthread_mutex operations to fail:</para>
     50
     51<screen><userinput remap="pre">cp nptl/sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S{,.orig}
     52sed -e 's/FUTEX_WAIT\( | FUTEX_CLOCK_REALTIME, reg\)/FUTEX_WAIT_BITSET\1/' \
     53        &lt;nptl/sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S.orig \
     54        &gt;nptl/sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S</userinput></screen>
    4555
    4656    <para>The Glibc documentation recommends building Glibc outside of the source
  • chapter06/glibc.xml

    r8e66c9d r2594b0a  
    108108sed -i '/tst-fgetws-ENV/ a\
    109109tst-fgetwc-ENV = LOCPATH=$(common-objpfx)localedata' libio/Makefile</userinput></screen>
     110
     111    <!-- This sed can be removed for any glibc newer than 2.10.1 (along with the
     112         matching sed in chapter 5).  See glibc bug 10262. -->
     113    <para>Fix an error in the constants that get passed to the futex system
     114    call in some cases, causing certain pthread_mutex operations to fail:</para>
     115
     116<screen><userinput remap="pre">sed -i -e 's/FUTEX_WAIT\( | FUTEX_CLOCK_REALTIME, reg\)/FUTEX_WAIT_BITSET\1/' \
     117        nptl/sysdeps/unix/sysv/linux/i386/i486/lowlevellock.S</userinput></screen>
    110118
    111119    <para>The Glibc documentation recommends building Glibc outside of the source
Note: See TracChangeset for help on using the changeset viewer.