This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/14624] New: `make localedata/install-locales` fails with "FATAL: kernel too old"


http://sourceware.org/bugzilla/show_bug.cgi?id=14624

             Bug #: 14624
           Summary: `make localedata/install-locales` fails with "FATAL:
                    kernel too old"
           Product: glibc
           Version: 2.16
            Status: NEW
          Severity: normal
          Priority: P2
         Component: libc
        AssignedTo: unassigned@sourceware.org
        ReportedBy: christophe.jarry@ouvaton.org
                CC: drepper.fsp@gmail.com
    Classification: Unclassified


I have the error "FATAL: kernel too old" when I try to generate
locales with "make localedata/install-locales".

I installed Linux headers from linux-libre-3.5.4-gnu
(http://linux-libre.fsfla.org/pub/linux-libre/releases/3.5.4-gnu/linux-libre-3.5.4-gnu.tar.bz2),
then binutils-2.22, and gcc-4.7.2 (gmp-5.0.5, mpc-1.0.1, mpfr-3.1.1).

I am trying to cross-compile glibc-2.16.0 with the above tools:

tar xf glibc-2.16.0.tar.bz2
pushd glibc-2.16.0
tar xf ../glibc-ports-2.16.0.tar.bz2
mv -v glibc-ports-2.16.0 ports
sed -i.orig "s/\ -lgcc_eh\|\ -lgcc_s//g" Makeconfig
# The above command is required in order for the build to complete
echo "" > ports/sysdeps/mips/mips64/n64/Makefile
echo "" > ports/sysdeps/mips/mips64/n32/Makefile
echo "" > ports/sysdeps/mips/mips32/Makefile
sed -i "/default) machine=/s/n32/64/g" \
    ports/sysdeps/mips/preconfigure
mkdir -pv ../glibc-build
cd ../glibc-build

cat > config.cache << EOF
libc_cv_c_cleanup=yes
libc_cv_slibdir=/lib
EOF

cat > configparms << EOF
install_root=${TARGET_DIR}
libdir=/usr/lib
EOF

BUILD_CC="gcc" \
    CC="mips64el-unknown-linux-gnu-gcc -march=loongson2f -mabi=64" \
    AR="mips64el-unknown-linux-gnu-ar" \
    RANLIB="mips64el-unknown-linux-gnu-ranlib" \
    ../glibc-2.16.0/configure \
    --prefix=/usr \
    --libexecdir=/usr/lib/glibc \
    --build=mipsel-unknown-linux-gnu \
    --host=mips64el-unknown-linux-gnu \
    --disable-profile \
    --enable-add-ons \
    --with-tls \
    --enable-kernel=3.5.4 \
    --with-__thread \
    --with-binutils=/gllfsc/cross-tools/bin \
    --with-headers=/gllfsc/usr/include \
    --cache-file=config.cache
make
make install
make localedata/install-locales

The last command outputs:

make -r PARALLELMFLAGS="" -C ../glibc-2.16.0 objdir=`pwd`
localedata/install-locales
make[1]: Entering directory `/gllfsc/build/glibc-2.16.0'
make  -C localedata install-locales
make[2]: Entering directory `/gllfsc/build/glibc-2.16.0/localedata'
.././scripts/mkinstalldirs /gllfsc/usr/lib/locale
aa_DJ.UTF-8...FATAL: kernel too old
 done
aa_DJ.ISO-8859-1...FATAL: kernel too old
 done
.
.
.
zu_ZA.UTF-8...FATAL: kernel too old
 done
zu_ZA.ISO-8859-1...FATAL: kernel too old
 done
make[2]: Leaving directory `/gllfsc/build/glibc-2.16.0/localedata'
make[1]: Leaving directory `/gllfsc/build/glibc-2.16.0'

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]