[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Busybox for powerpc doesnt compile



On Sat, Jan 29, 2011 at 11:34:48AM +0530, Giriprasad Deviprasad wrote:
> Hi,
> 
>  I am trying to install glibc for the busybox required libs:
> echo "libc_cv_forced_unwind=yes" > config.cache
> echo "libc_cv_c_cleanup=yes" >> config.cache

This is not the right way to do this.  You need to use the proper flags
to configure.  config.cache is an implementation detail meant to speed
things up; it is acceptable for it to disappear at any time.

> export CFLAGS="-I /opt/mpc8250/tools/ppc_6xx/usr/include"
> ../glibc-2.8/configure --prefix=/opt/mpc8250/tools/ppc_6xx/glibc-2.8 --host=powerpc-linux --without-tls --without-cvs --disable-profile --disable-debug --disable-shared --enable-threads=no --with-headers=/opt/mpc8250/tools/ppc_6xx/usr/include/ --cache-file=config.cache

I strongly recommend you use a newer glibc.  There are definitely some
fixes to the PowerPC-specific parts of glibc, and that's just looking at
the Debian changelog, not upstream's.

> checking for sys/types.h... yes
> checking for sys/stat.h... yes
> checking for stdlib.h... yes
> checking for string.h... yes
> checking for memory.h... yes
> checking for strings.h... yes
> checking for inttypes.h... yes
> checking for stdint.h... yes
> checking for unistd.h... yes
> checking for long double... yes
> checking size of long double... configure: error: cannot compute sizeof (long double)
> See `config.log' for more details.

You should look at config.log and see why it fails.  Search for the text
"size of long double" and you'll probably find the right place.

-- 
brian m. carlson / brian with sandals: Houston, Texas, US
+1 832 623 2791 | http://www.crustytoothpaste.net/~bmc | My opinion only
OpenPGP: RSA v4 4096b: 88AC E9B2 9196 305B A994 7552 F1BA 225C 0223 B187

Attachment: signature.asc
Description: Digital signature


Reply to: