Hi Guys,

I am trying to compile gcc 4.4.5 with glibc as my main toolchain and i
recall at some point it uses to work but i am getting the following error
can anybody help?

P.S. My development environment is Ubuntu 10.10

Applying ./patches/2.6.1/603-powerpc-softfloat.patch using plaintext:
patching file sysdeps/powerpc/nofpu/Makefile
ln -snf glibc-ports-2.6.1
/openwrt_trunk-glibc/build_dir/toolchain-powerpc_gcc-4.4.5_glibc-2.6.1/glibc-ports
touch
/openwrt_trunk-glibc/build_dir/toolchain-powerpc_gcc-4.4.5_glibc-2.6.1/glibc-ports-2.6.1/.prepared
make[3]: Leaving directory `/openwrt_trunk-glibc/toolchain/glibc-ports'
make[3]: Entering directory `/openwrt_trunk-glibc/toolchain/glibc'
mkdir -p /openwrt_trunk-glibc/dl
/openwrt_trunk-glibc/scripts/download.pl "/openwrt_trunk-glibc/dl"
"glibc-2.6.1.tar.bz2" "11cf6d3fc86dbe0890b8d00372eb6286" "@GNU/glibc/"
--2011-06-16 17:25:05--  ftp://ftp.gnu.org/gnu/glibc/glibc-2.6.1.tar.bz2
           => `-'
Resolving ftp.gnu.org... 140.186.70.20
Connecting to ftp.gnu.org|140.186.70.20|:21... connected.
Logging in as anonymous ... Logged in!
==> SYST ... done.    ==> PWD ... done.
==> TYPE I ... done.  ==> CWD (1) /gnu/glibc ... done.
==> SIZE glibc-2.6.1.tar.bz2 ... 15767401
==> PASV ... done.    ==> RETR glibc-2.6.1.tar.bz2 ... done.
Length: 15767401 (15M) (unauthoritative)

100%[=====================================================================================================================================================================>]
15,767,401   974K/s   in 16s

2011-06-16 17:25:22 (954 KB/s) - written to stdout [15767401]

/openwrt_trunk-glibc/staging_dir/host/bin/sed -i -e
's,^\(LIBC_TYPE\)=.*,\1=glibc,'
/openwrt_trunk-glibc/staging_dir/toolchain-powerpc_gcc-4.4.5_glibc-2.6.1/
info.mk
/openwrt_trunk-glibc/staging_dir/host/bin/sed -i -e 's,^\(LIBC_URL\)=.*,\1=
http://www.gnu.org/software/libc/,'
/openwrt_trunk-glibc/staging_dir/toolchain-powerpc_gcc-4.4.5_glibc-2.6.1/
info.mk
/openwrt_trunk-glibc/staging_dir/host/bin/sed -i -e
's,^\(LIBC_VERSION\)=.*,\1=2.6.1,'
/openwrt_trunk-glibc/staging_dir/toolchain-powerpc_gcc-4.4.5_glibc-2.6.1/
info.mk
/openwrt_trunk-glibc/staging_dir/host/bin/sed -i -e
's,^\(LIBC_SO_VERSION\)=.*,\1=2.6.1,'
/openwrt_trunk-glibc/staging_dir/toolchain-powerpc_gcc-4.4.5_glibc-2.6.1/
info.mk
. /openwrt_trunk-glibc/include/shell.sh; bzcat
/openwrt_trunk-glibc/dl/glibc-2.6.1.tar.bz2 | /bin/tar -C
/openwrt_trunk-glibc/build_dir/toolchain-powerpc_gcc-4.4.5_glibc-2.6.1/glibc-2.6.1/..
-xf -

Applying ./patches/2.6.1/101-binutils_2_19.patch using plaintext:
patching file sysdeps/i386/fpu/ftestexcept.c

Applying ./patches/2.6.1/102-gcc_4_3.patch using plaintext:
patching file configure.in
patching file configure
ln -snf glibc-2.6.1
/openwrt_trunk-glibc/build_dir/toolchain-powerpc_gcc-4.4.5_glibc-2.6.1/glibc
ln -snf ../glibc-ports
/openwrt_trunk-glibc/build_dir/toolchain-powerpc_gcc-4.4.5_glibc-2.6.1/glibc-2.6.1/ports
mkdir -p
/openwrt_trunk-glibc/build_dir/toolchain-powerpc_gcc-4.4.5_glibc-2.6.1/glibc-2.6.1-initial
( cd
/openwrt_trunk-glibc/build_dir/toolchain-powerpc_gcc-4.4.5_glibc-2.6.1/glibc-2.6.1-initial;
rm -f config.cache; BUILD_CC="gcc" AR=powerpc-openwrt-linux-gnu-ar
AS="powerpc-openwrt-linux-gnu-gcc -c -Os -pipe -fno-caller-saves -mcpu=440
-fhonour-copts -msoft-float" LD=powerpc-openwrt-linux-gnu-ld
NM=powerpc-openwrt-linux-gnu-nm CC="powerpc-openwrt-linux-gnu-gcc"
GCC="powerpc-openwrt-linux-gnu-gcc" CXX="powerpc-openwrt-linux-gnu-g++"
RANLIB=powerpc-openwrt-linux-gnu-ranlib
STRIP=powerpc-openwrt-linux-gnu-strip
OBJCOPY=powerpc-openwrt-linux-gnu-objcopy
OBJDUMP=powerpc-openwrt-linux-gnu-objdump
SIZE=powerpc-openwrt-linux-gnu-size CFLAGS="-O2 -pipe -fno-caller-saves
-mcpu=440 -fhonour-copts -msoft-float" libc_cv_forced_unwind=yes
libc_cv_c_cleanup=yes libc_cv_386_tls=yes libc_cv_slibdir="/lib"
/openwrt_trunk-glibc/build_dir/toolchain-powerpc_gcc-4.4.5_glibc-2.6.1/glibc-2.6.1/configure
--prefix= --build=i686-linux-gnu --host=powerpc-openwrt-linux-gnu
--with-headers="/openwrt_trunk-glibc/staging_dir/toolchain-powerpc_gcc-4.4.5_glibc-2.6.1/include"
--disable-debug --disable-profile --enable-add-ons="nptl, ports,"
--without-gd --without-cvs  --without-fp --disable-sanity-checks
--enable-hacker-mode  );
checking build system type... i686-pc-linux-gnu
checking host system type... powerpc-openwrt-linux-gnu
configure: running configure fragment for add-on nptl
checking add-on ports for preconfigure fragments... am33 arm hppa m68k mips
checking sysdep dirs... sysdeps/powerpc/powerpc32/elf sysdeps/powerpc/elf
ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu
ports/sysdeps/powerpc/nofpu ports/sysdeps/powerpc/soft-fp
sysdeps/powerpc/soft-fp nptl/sysdeps/unix/sysv/linux/powerpc/powerpc32
ports/sysdeps/unix/sysv/linux/powerpc/powerpc32
sysdeps/unix/sysv/linux/powerpc/powerpc32
nptl/sysdeps/unix/sysv/linux/powerpc ports/sysdeps/unix/sysv/linux/powerpc
sysdeps/unix/sysv/linux/powerpc sysdeps/ieee754/ldbl-128ibm
sysdeps/ieee754/ldbl-opt nptl/sysdeps/unix/sysv/linux nptl/sysdeps/pthread
sysdeps/pthread ports/sysdeps/unix/sysv/linux sysdeps/unix/sysv/linux
sysdeps/gnu sysdeps/unix/common sysdeps/unix/mman sysdeps/unix/inet
nptl/sysdeps/unix/sysv ports/sysdeps/unix/sysv sysdeps/unix/sysv
sysdeps/unix/powerpc nptl/sysdeps/unix ports/sysdeps/unix sysdeps/unix
sysdeps/posix sysdeps/powerpc/powerpc32 sysdeps/wordsize-32
nptl/sysdeps/powerpc ports/sysdeps/powerpc sysdeps/powerpc
sysdeps/ieee754/dbl-64 sysdeps/ieee754/flt-32 sysdeps/ieee754
sysdeps/generic/elf sysdeps/generic
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking for powerpc-openwrt-linux-gnu-gcc... powerpc-openwrt-linux-gnu-gcc
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether powerpc-openwrt-linux-gnu-gcc accepts -g... yes
checking for powerpc-openwrt-linux-gnu-gcc option to accept ANSI C... none
needed
checking for gcc... gcc
checking how to run the C preprocessor... powerpc-openwrt-linux-gnu-gcc -E
checking for powerpc-openwrt-linux-gnu-g++... powerpc-openwrt-linux-gnu-g++
checking whether we are using the GNU C++ compiler... no
checking whether powerpc-openwrt-linux-gnu-g++ accepts -g... no
checking whether
/openwrt_trunk-glibc/staging_dir/toolchain-powerpc_gcc-4.4.5_glibc-2.6.1/lib/gcc/powerpc-openwrt-linux-gnu/4.4.5/../../../../powerpc-openwrt-linux-gnu/bin/as
is GNU as... yes
checking whether
/openwrt_trunk-glibc/staging_dir/toolchain-powerpc_gcc-4.4.5_glibc-2.6.1/lib/gcc/powerpc-openwrt-linux-gnu/4.4.5/../../../../powerpc-openwrt-linux-gnu/bin/ld
is GNU ld... yes
checking for
/openwrt_trunk-glibc/staging_dir/toolchain-powerpc_gcc-4.4.5_glibc-2.6.1/lib/gcc/powerpc-openwrt-linux-gnu/4.4.5/../../../../powerpc-openwrt-linux-gnu/bin/as...
/openwrt_trunk-glibc/staging_dir/toolchain-powerpc_gcc-4.4.5_glibc-2.6.1/lib/gcc/powerpc-openwrt-linux-gnu/4.4.5/../../../../powerpc-openwrt-linux-gnu/bin/as
checking version of
/openwrt_trunk-glibc/staging_dir/toolchain-powerpc_gcc-4.4.5_glibc-2.6.1/lib/gcc/powerpc-openwrt-linux-gnu/4.4.5/../../../../powerpc-openwrt-linux-gnu/bin/as...
2.20.1, bad
checking for
/openwrt_trunk-glibc/staging_dir/toolchain-powerpc_gcc-4.4.5_glibc-2.6.1/lib/gcc/powerpc-openwrt-linux-gnu/4.4.5/../../../../powerpc-openwrt-linux-gnu/bin/ld...
/openwrt_trunk-glibc/staging_dir/toolchain-powerpc_gcc-4.4.5_glibc-2.6.1/lib/gcc/powerpc-openwrt-linux-gnu/4.4.5/../../../../powerpc-openwrt-linux-gnu/bin/ld
checking version of
/openwrt_trunk-glibc/staging_dir/toolchain-powerpc_gcc-4.4.5_glibc-2.6.1/lib/gcc/powerpc-openwrt-linux-gnu/4.4.5/../../../../powerpc-openwrt-linux-gnu/bin/ld...
2.20.1, bad
checking for pwd... /bin/pwd
checking for powerpc-openwrt-linux-gnu-gcc... (cached)
powerpc-openwrt-linux-gnu-gcc
checking version of powerpc-openwrt-linux-gnu-gcc... 4.4.5, ok
checking for gnumake... no
checking for gmake... no
checking for make... make
checking version of make... 3.81, ok
checking for gnumsgfmt... no
checking for gmsgfmt... no
checking for msgfmt... msgfmt
checking version of msgfmt... 0.18.1, ok
checking for makeinfo... no
checking for sed... sed
checking version of sed... 4.2.1, ok
checking for autoconf... autoconf
checking whether autoconf works... yes
configure: error:
*** These critical programs are missing or too old: as ld
*** Check the INSTALL file for required versions.
make[3]: ***
[/openwrt_trunk-glibc/build_dir/toolchain-powerpc_gcc-4.4.5_glibc-2.6.1/glibc-2.6.1/.prepared]
Error 1
make[3]: Leaving directory `/openwrt_trunk-glibc/toolchain/glibc'
make[2]: *** [toolchain/glibc/prepare] Error 2
make[2]: Leaving directory `/openwrt_trunk-glibc'
make[1]: ***
[/openwrt_trunk-glibc/staging_dir/toolchain-powerpc_gcc-4.4.5_glibc-2.6.1/stamp/.toolchain_install]
Error 2
make[1]: Leaving directory `/openwrt_trunk-glibc'
make: *** [world] Error 2


Thanks
Pawel
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to