zhemao / zhemao.github.com

Github pages page
http://zhemao.github.com
Other
4 stars 1 forks source link

Build Root Error #6

Closed bangonkali closed 10 years ago

bangonkali commented 10 years ago

To where should the toolchain path point? I have this error:

/bin/grep: /usr/local/src/buildroot-2013.11/output/host/usr/armeb-buildroot-linux-gnueabihf/sysroot/usr/local/src/buildroot-2013.11/output/host/usr/armeb-buildroot-linux-gnueabihf/sysroot/usr/lib/libassuan.la: No such file or directory
/bin/sed: can't read /usr/local/src/buildroot-2013.11/output/host/usr/armeb-buildroot-linux-gnueabihf/sysroot/usr/local/src/buildroot-2013.11/output/host/usr/armeb-buildroot-linux-gnueabihf/sysroot/usr/lib/libassuan.la: No such file or directory
libtool: link: `/usr/local/src/buildroot-2013.11/output/host/usr/armeb-buildroot-linux-gnueabihf/sysroot/usr/local/src/buildroot-2013.11/output/host/usr/armeb-buildroot-linux-gnueabihf/sysroot/usr/lib/libassuan.la' is not a valid libtool archive
make[3]: *** [libopkg.la] Error 1
make[3]: Leaving directory `/usr/local/src/buildroot-2013.11/output/build/opkg-v0.2.0/libopkg'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/usr/local/src/buildroot-2013.11/output/build/opkg-v0.2.0/libopkg'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/buildroot-2013.11/output/build/opkg-v0.2.0'
make: *** [/usr/local/src/buildroot-2013.11/output/build/opkg-v0.2.0/.stamp_built] Error 2
poky@poky:/usr/local/src/buildroot-2013.11$

As for my case the toolchain path I entered: /usr/local/src/gcc-linaro-arm-linux-gnueabihf-4.8-2013.11_linux

    Toolchain type (External toolchain)  --->
    Toolchain (Custom toolchain)  --->
    Toolchain origin (Pre-installed toolchain)  --->
(/usr/local/src/gcc-linaro-arm-linux-gnueabihf-4.8-2013.11_linux) Toolchain path
(arm-linux-gnueabihf) Toolchain prefix
    External toolchain C library (glibc/eglibc)  --->
[*] Toolchain has RPC support?
[*] Toolchain has C++ support?
()  Extra toolchain libraries to be copied to target
[ ] Copy gdb server to the Target
[ ] Build cross gdb for the host
[ ] Purge unwanted locales
()  Generate locale data
[*] Enable MMU support
(-pipe) Target Optimizations
()  Target linker options
[ ] Register toolchain within Eclipse Buildroot plug-in

Where

poky@poky:/usr/local/src/gcc-linaro-arm-linux-gnueabihf-4.8-2013.11_linux$ ls
arm-linux-gnueabihf  bin  lib  libexec  share
poky@poky:/usr/local/src/gcc-linaro-arm-linux-gnueabihf-4.8-2013.11_linux$ echo $PATH
/opt/DS-5/bin:/opt/altera/13.1/qprogrammer/bin:/opt/altera/13.1/nios2eds/bin:/opt/altera/13.1/modelsim_ae/bin:/opt/altera/13.1/quartus/bin:/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/src/gcc-linaro-arm-linux-gnueabihf-4.8-2013.11_linux/bin
poky@poky:/usr/local/src/gcc-linaro-arm-linux-gnueabihf-4.8-2013.11_linux$ arm-linux-gnueabihf-gcc --version
arm-linux-gnueabihf-gcc (crosstool-NG linaro-1.13.1-4.7-2013.03-20130313 - Linaro GCC 2013.03) 4.7.3 20130226 (prerelease)
Copyright (C) 2012 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
zhemao commented 10 years ago

That's odd. It looks like the error is coming from within the buildroot directory, not from the cross compiler. Do you have all the file permissions in the directory set correctly? They should all be owned by the user you are running make as.

bangonkali commented 10 years ago

If you check the first code block there is a statement there:

/usr/local/src/buildroot-2013.11/output/host/usr/armeb-buildroot-linux-gnueabihf/sysroot/usr/local/src/buildroot-2013.11/output/host/usr/armeb-buildroot-linux-gnueabihf/sysroot/usr/lib/libassuan.la

What could have produced this very long address? It seems this is caused by a misconfiguration on my part.

zhemao commented 10 years ago

Possibly, but I don't think it's in the toolchain section. What other changes did you make?

zhemao commented 10 years ago

Also, I would suggest copying the buildroot folder to somewhere in your home directory and building it there instead of in /usr/local/src. That might be causing an issue.

bangonkali commented 10 years ago

I think may have solved this. Probably it was due to an error in my part in defining the location of the buildroot toolchain path.