This is the mail archive of the
libc-help@sourceware.org
mailing list for the glibc project.
Problem trying to build eglibc for m68k Coldfire MCF54418
- From: Gilles DOFFE <gdoffe+linux at gmail dot com>
- To: libc-help at sourceware dot org
- Date: Sun, 23 Mar 2014 09:56:47 +0100
- Subject: Problem trying to build eglibc for m68k Coldfire MCF54418
- Authentication-results: sourceware.org; auth=none
Hello,
I'm trying to build eglibc 2.19-svnr25243 for a Coldfire MCF54418 (has
no fpu and but has a MMU) with buildroot.
The configuration is this one : (extract from config.log) :
=================
/home/user/buildroot/output/build/glibc-2.19-svnr25243/libc/configure
ac_cv_path_BASH_SHELL=/bin/bash libc_cv_forced_unwind=yes
--target=m68k-buildroot-linux-gnu --host=m68k-buildroot-linux-gnu
--build=x86_64-unknown-linux-gnu --prefix=/usr --enable-shared
--without-fp --with-pkgversion=Buildroot --without-cvs
--disable-profile --without-gd --enable-obsolete-rpc
--with-headers=/home/user/buildroot/output/host/usr/m68k-buildroot-linux-gnu/sysroot/usr/include
=================
But I always get this kind of errors :
=================
In file included from ../sysdeps/ieee754/flt-32/math_private.h:3:0,
from ../sysdeps/ieee754/dbl-64/e_exp.c:40:
../sysdeps/ieee754/dbl-64/e_exp.c: In function '__ieee754_exp':
../sysdeps/ieee754/dbl-64/e_exp.c:61:22: error: 'FE_TONEAREST'
undeclared (first use in this function)
SET_RESTORE_ROUND (FE_TONEAREST);
^
../sysdeps/generic/math_private.h:584:32: note: in definition of macro
'SET_RESTORE_ROUND_GENERIC'
ROUNDFUNC (&__libc_save_rm, (RM))
^
../sysdeps/ieee754/dbl-64/e_exp.c:61:3: note: in expansion of macro
'SET_RESTORE_ROUND'
SET_RESTORE_ROUND (FE_TONEAREST);
^
../sysdeps/ieee754/dbl-64/e_exp.c:61:22: note: each undeclared
identifier is reported only once for each function it appears in
SET_RESTORE_ROUND (FE_TONEAREST);
^
../sysdeps/generic/math_private.h:584:32: note: in definition of macro
'SET_RESTORE_ROUND_GENERIC'
ROUNDFUNC (&__libc_save_rm, (RM))
^
../sysdeps/ieee754/dbl-64/e_exp.c:61:3: note: in expansion of macro
'SET_RESTORE_ROUND'
SET_RESTORE_ROUND (FE_TONEAREST);
=================
I always get this errors even if I use -msoft-float in CFLAGS and CXXFLAGS.
Did I miss an option somewhere ?
Since I specified --without-fp in my configure options, should FE_*
macros not be disabled with some #ifdef ?
Thanks in advance for your help,
Gilles