Hi,
I've got a user on the openSUSE forums who's trying to build backfire
stable on openSUSE 12.1 and he's running into an issue with the build
failing. I've also duplicated the issue, and am just looking for some
advice on what to advise him for his build.
The build works fine on openSUSE 11.4.
Here's how I duplicated the problem:
1. Clean install of openSUSE 12.1
2. Fresh download of backfire stable from svn:
svn co svn://svn.openwrt.org/openwrt/branches/backfire
3. make menuconfig (installing dependencies as needed)
4. Select ar71xx target system, TP-LINK TL-WR1043ND v1 target profile
5. No other selections in menuconfig (save config)
6. make world V=99
The build runs for a while and then ends with:
make[5]: Leaving directory
`/home/jhenderson/backfire/build_dir/toolchain-mips_r2_gcc-4.3.3+cs_uClibc-0.9.30.1/gcc-4.3.3-initial/gcc'
make[5]: Entering directory
`/home/jhenderson/backfire/build_dir/toolchain-mips_r2_gcc-4.3.3+cs_uClibc-0.9.30.1/gcc-4.3.3-initial/mips-openwrt-linux-uclibc/libgcc'
/bin/sh
/home/jhenderson/backfire/build_dir/toolchain-mips_r2_gcc-4.3.3+cs_uClibc-0.9.30.1/gcc-4.3.3/libgcc/../mkinstalldirs
/home/jhenderson/backfire/staging_dir/toolchain-mips_r2_gcc-4.3.3+cs_uClibc-0.9.30.1/usr/lib64/gcc/mips-openwrt-linux-uclibc/4.3.3
/usr/bin/install -c -m 644 libgcc.a
/home/jhenderson/backfire/staging_dir/toolchain-mips_r2_gcc-4.3.3+cs_uClibc-0.9.30.1/usr/lib64/gcc/mips-openwrt-linux-uclibc/4.3.3/
chmod 644
/home/jhenderson/backfire/staging_dir/toolchain-mips_r2_gcc-4.3.3+cs_uClibc-0.9.30.1/usr/lib64/gcc/mips-openwrt-linux-uclibc/4.3.3/libgcc.a
/home/jhenderson/backfire/staging_dir/toolchain-mips_r2_gcc-4.3.3+cs_uClibc-0.9.30.1/usr/mips-openwrt-linux-uclibc/bin/ranlib
/home/jhenderson/backfire/staging_dir/toolchain-mips_r2_gcc-4.3.3+cs_uClibc-0.9.30.1/usr/lib64/gcc/mips-openwrt-linux-uclibc/4.3.3/libgcc.a
/usr/bin/install -c -m 644 libgcov.a
/home/jhenderson/backfire/staging_dir/toolchain-mips_r2_gcc-4.3.3+cs_uClibc-0.9.30.1/usr/lib64/gcc/mips-openwrt-linux-uclibc/4.3.3/
chmod 644
/home/jhenderson/backfire/staging_dir/toolchain-mips_r2_gcc-4.3.3+cs_uClibc-0.9.30.1/usr/lib64/gcc/mips-openwrt-linux-uclibc/4.3.3/libgcov.a
/home/jhenderson/backfire/staging_dir/toolchain-mips_r2_gcc-4.3.3+cs_uClibc-0.9.30.1/usr/mips-openwrt-linux-uclibc/bin/ranlib
/home/jhenderson/backfire/staging_dir/toolchain-mips_r2_gcc-4.3.3+cs_uClibc-0.9.30.1/usr/lib64/gcc/mips-openwrt-linux-uclibc/4.3.3/libgcov.a
parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o crtfastmath.o";
\
for file in $parts; do \
rm -f
/home/jhenderson/backfire/staging_dir/toolchain-mips_r2_gcc-4.3.3+cs_uClibc-0.9.30.1/usr/lib64/gcc/mips-openwrt-linux-uclibc/4.3.3/$file;
\
/usr/bin/install -c -m 644 $file
/home/jhenderson/backfire/staging_dir/toolchain-mips_r2_gcc-4.3.3+cs_uClibc-0.9.30.1/usr/lib64/gcc/mips-openwrt-linux-uclibc/4.3.3/;
\
done
make[5]: Leaving directory
`/home/jhenderson/backfire/build_dir/toolchain-mips_r2_gcc-4.3.3+cs_uClibc-0.9.30.1/gcc-4.3.3-initial/mips-openwrt-linux-uclibc/libgcc'
make[4]: Leaving directory
`/home/jhenderson/backfire/build_dir/toolchain-mips_r2_gcc-4.3.3+cs_uClibc-0.9.30.1/gcc-4.3.3-initial'
# XXX: glibc insists on linking against libgcc_eh
( cd
/home/jhenderson/backfire/staging_dir/toolchain-mips_r2_gcc-4.3.3+cs_uClibc-0.9.30.1/usr/lib/gcc/mips-openwrt-linux-uclibc/4.3.3
; [ -e libgcc_eh.a ] || ln -sf libgcc.a libgcc_eh.a ; cp libgcc.a
libgcc_initial.a; )
cp: cannot stat `libgcc.a': No such file or directory
make[3]: ***
[/home/jhenderson/backfire/staging_dir/toolchain-mips_r2_gcc-4.3.3+cs_uClibc-0.9.30.1/stamp/.gcc-initial_installed]
Error 1
make[3]: Leaving directory `/home/jhenderson/backfire/toolchain/gcc'
make[2]: *** [toolchain/gcc/compile] Error 2
make[2]: Leaving directory `/home/jhenderson/backfire'
make[1]: ***
[/home/jhenderson/backfire/staging_dir/toolchain-mips_r2_gcc-4.3.3+cs_uClibc-0.9.30.1/stamp/.toolchain_install]
Error 2
make[1]: Leaving directory `/home/jhenderson/backfire'
make: *** [world] Error 2
The only dependency not installed for the actual build is mpfr-devel. The
version installed is 3.0.1-3.1.5. The x64 gcc binary is 4.6.15.
Looking at what's on my system when it finishes, it looks like the problem
is that the 64-bit library is built, but the 32-bit library is what it's
trying to use. I do find:
/home/jhenderson/backfire/staging_dir/toolchain-mips_r2_gcc-4.3.3+cs_uClibc-0.9.30.1/usr/lib64/gcc/mips-openwrt-linux-uclibc/4.3.3/libgcc.a
on my system after the failure, but I note that the cp command where it
fails is looking for [...]/usr/lib/gcc/[...]. There is a libgcc_eh.a in the
lib directory but it's a symlink to a nonexistent libgcc.a file in the same
directory.
Any ideas on a fix would be greatly appreciated.
Thanks,
Jim
--
Jim Henderson
Please keep on-topic replies on the list so everyone benefits
_______________________________________________
openwrt-users mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-users