Re: Recommended compiler version and NPTL

From: Alexander E. Patrakov (patrakov_at_ums.usu.ru)
Date: 05/30/04

  • Next message: David Lang: "Re: bk-3.2.0 released"
    Date:	Sun, 30 May 2004 09:52:07 +0600
    To: linux-kernel@vger.kernel.org
    
    

    There is one more place except the r8169 driver where gcc 2.95.3 is bad.
    To reproduce the problem:

    (you will need HJL Binutils >= 2.14.90.0.8 and gcc 3.3.x)

    Check out a known good glibc from CVS:

    cvs -z 3 -d :pserver:anoncvs@sources.redhat.com:/cvs/glibc \
         export -d glibc-2.3.4-20040510 -D "14:45:00 2004-05-10 UTC" libc
    sed -i -e "s/stable/2004-05-10/" -e "s/2\.3\.3/2.3.4/" \
         glibc-2.3.4-20040510/version.h

    Alternatively, there is a tarball available (created with these
    instructions) which you can download from the following location:
    ftp://gaosu.rave.org/pub/linux/lfs/packages/conglomeration/glibc-2.3.4-20040510.tar.bz2

    Build glibc:

    cd glibc-2.3.4-20040510
    mkdir ../glibc-build
    cd ../glibc-build
    ../glibc-2.3.4-20040510/configure --prefix=/usr \
         --disable-profile --enable-add-ons=nptl --with-tls \
         --without-cvs \
         --with-headers=/usr/src/linux/include
    make
    (we will not install anything)

    Back up the glibc-build directory for future reference, but don't remove
    it now.

    Issue the "make ckeck" command when running linux-2.6.6 compiled with
    gcc 3.3.3. If you get a failure, make a note of it and reissue the "make
    check" command.

    Once you know all failures, remove the glibc-build directory and restore
    it from the backup you made previously.

    Reboot into linux-2.6.6 compiled with gcc-2.95.3 published by Free
    Software Foundation. Redo the tests. You will notice several additional
    errors in NPTL testsuite. That's why I think that linux-2.6.6 should
    never be compiled with gcc-2.95.3.

    -- 
    Alexander E. Patrakov
    I am not subscribed to LKML, so please CC: me
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at  http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at  http://www.tux.org/lkml/
    

  • Next message: David Lang: "Re: bk-3.2.0 released"

    Relevant Pages

    • Re: signal handling issue.
      ... the 2.6.5 system has gcc 3.3.3, ... glibc 2.3.2. ... SBC Yahoo! ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: math.nroot [was Re: A brief question.]
      ... >> happy to use gcc, they all could have used the older gcc spellings ... parings of C compilers and C runtime libraries are ... use glibc, they all could have used the older glibc spellings. ... trap doesn't actually fire until the _next_ fp operation ...
      (comp.lang.python)
    • Re: [PATCH] Fix NR_KEYS off-by-one error
      ... > larger types (short or int, ... Probably gcc not warn, I think. ... > You are absolutely correct that overhead is insignificant. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: recommendation for toolchain
      ... What toolchain can you recommend to me? ... Building a cross-GCC for Linux shouldn't be any harder than building ... When producing GCC one needs premade binutils and a premade C ... So if you can find an existing premade glibc for the ...
      (comp.arch.embedded)
    • oops when copying from IDE CD
      ... gcc version 3.3.2 20030908 ... I haven't got any experience in reporting kernel panics, ... send the line "unsubscribe linux-kernel" in ... More majordomo info at http://vger.kernel.org/majordomo-info.html ...
      (Linux-Kernel)