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

Re: Busybox for powerpc doesnt compile



Hi,

 Thanks for the details. Glibc configures, makes, and installs fine:
../glibc-2.9/configure --host=powerpc-linux --target=powerpc-linux- --prefix=/opt/mpc8250/tools/glibc2.9 --build=i686-pc-linux-gnu --with-headers=/opt/mpc8250/tools/ppc_6xx/usr/include/ --cache-file=config.cache

Now, I try to compile busybox.1.17.1 as :
 make ARCH=powerpc CROSS_COMPILE=powerpc-linux-

At the very end, errors as :
Trying libraries: crypt m
 Library crypt is not needed, excluding it
 Library m is not needed, excluding it
Final link with: <none>
powerpc-linux-strip: there are no sections to be copied!
make: *** [busybox] Error 1

.config:
CONFIG_EXTRA_CFLAGS="-I/opt/mpc8250/tools/ppc_6xx/usr/include/ -L/opt/mpc8250/tools/ppc_6xx/usr/lib/ -L/opt/mpc8250/tools/glibc2.9/opt/mpc8250/tools/glibc2.9/lib -nostdlib"


Can any please suggest why?

Thanks & Regards,
D.Giriprasad


--- On Sat, 29/1/11, brian m. carlson <sandals@crustytoothpaste.net> wrote:

From: brian m. carlson <sandals@crustytoothpaste.net>
Subject: Re: Busybox for powerpc doesnt compile
To: debian-powerpc@lists.debian.org
Date: Saturday, 29 January, 2011, 3:51 PM

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


Reply to: