Hello all,

I'm trying to build the GSL-19 on a PowerPC target which
does not have the hardware FPU. After configuration, 'make'
stops in ieee-utils:

/bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -g -O2 -c -o fp.lo fp.c gcc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -g -O2 -c fp.c -fPIC -DPIC -o .libs/fp.o
In file included from fp.c:8:
fp-gnuppc.c: In function 'gsl_ieee_set_mode':
fp-gnuppc.c:53: error: '_FPU_RC_NEAREST' undeclared (first use in this function)
fp-gnuppc.c:53: error: (Each undeclared identifier is reported only once
fp-gnuppc.c:53: error: for each function it appears in.)
fp-gnuppc.c:56: error: '_FPU_RC_DOWN' undeclared (first use in this function) fp-gnuppc.c:59: error: '_FPU_RC_UP' undeclared (first use in this function) fp-gnuppc.c:62: error: '_FPU_RC_ZERO' undeclared (first use in this function) fp-gnuppc.c:69: error: '_FPU_MASK_IM' undeclared (first use in this function) fp-gnuppc.c:82: error: '_FPU_MASK_ZM' undeclared (first use in this function) fp-gnuppc.c:85: error: '_FPU_MASK_OM' undeclared (first use in this function) fp-gnuppc.c:88: error: '_FPU_MASK_UM' undeclared (first use in this function)
make[2]: *** [fp.lo] Error 1
make[2]: Leaving directory `/usr/src/denx/SPECS/gsl-1.9/ieee-utils'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/denx/SPECS/gsl-1.9'
make: *** [all] Error 2


Investigation shows that the problem is that the "configure"
script chose the "gnuppc" IEEE arithmetic interface type by default,
which assume the FPU is present on the target and included
fp-gnuppc.c into the build.

Then the compilation failed because fp-gnuppc.c tries to operate
the FPU hardware constants from fpu_control.h for FPU-aware
powerpcs; these constants are absent on my system.

How can I build GSL?

Thanks in advance,
Sergei

Reply via email to