I am trying to compile buildroot, but i am facing some error during compilation. I have attached the error file.
Toolchain version: ADI-2014R1-RC2.i386
Hi Sharath, have you checked if all the required packages are installed on your Linux PC, as described in this document? installing_linux [Analog Devices Open Source| Mixed-signal and Digital Signal Processing ICs]
I have installed all the required packages as described in the document.
I have installed
Is there anything related to it, and my toolchain-prefix option is set to bfin-linux-uclibc.
Hi Sharath, If you are using the uclibc-full version, the changes we need to make from user's prospective is we have to turn on some extra toolchain option in the "make menuconfig" for buidlroot:
[*] Toolchain has IPv6 support
[*] Toolchain has WCHAR support
This can't be the issue because the make output will prompt you to turn on them in this case.
My advice is still to check the environment, including the toolchain are properly installed, there is a quick example of extracting them one by one: toolchain:installing [Analog Devices Open Source| Mixed-signal and Digital Signal Processing ICs]
I have extracted all the packages one by one and checked but still some error like shown below occurs:
debianutils/lib.a(mktemp.o): In function `_mktemp_main':
debianutils/mktemp.c:(.text.mktemp_main+0xb0): warning: the use of OBSOLESCENT `tempnam' is discouraged, use `mkstemp'
libbb/lib.a(inet_common.o): In function `_INET_rresolve':
libbb/inet_common.c:(.text.INET_rresolve+0xa4): warning: gethostbyaddr is obsolescent, use getaddrinfo() instead.
loginutils/lib.a(passwd.o): In function `_passwd_main':
loginutils/passwd.c:(.text.passwd_main+0xd2): undefined reference to `_bb_internal_getspnam_r'
loginutils/lib.a(sulogin.o): In function `_sulogin_main':
loginutils/sulogin.c:(.text.sulogin_main+0xee): undefined reference to `_bb_internal_getspnam_r'
libbb/lib.a(correct_password.o): In function `_correct_password':
libbb/correct_password.c:(.text.correct_password+0x56): undefined reference to `_bb_internal_getspnam_r'
/home/sharath/opt/uClinux/bfin-linux-uclibc/bin/../lib/gcc/bfin-linux-uclibc/4.3.5/../../../../bfin-linux-uclibc/bin/ld: busybox_unstripped: hidden symbol `_bb_internal_getspnam_r' isn't defined
/home/sharath/opt/uClinux/bfin-linux-uclibc/bin/../lib/gcc/bfin-linux-uclibc/4.3.5/../../../../bfin-linux-uclibc/bin/ld: final link failed: Nonrepresentable section on output
collect2: ld returned 1 exit status
make: *** [busybox_unstripped] Error 1
make: Leaving directory `/home/sharath/Desktop/blackfin-buildroot/output/build/busybox-1.20.2'
make: *** [/home/sharath/Desktop/blackfin-buildroot/output/build/busybox-1.20.2/.stamp_built] Error 2
What Linux distribution you are using as development station? We are mostly using Ubuntu ( for example 12.04). I would have a try from scratch on Ubuntu to install the environment and toolchain if I have difficulty do the default building according to document.
I am using Ubuntu14.04
I tried compiling buildroot without busybox it compiled successfully and generated the uImage file also..
14.04 should be fine. I would double check if something is missing. And you can run "make 2>err_log" and share us the generated err_log file.
Please find the attached error log file.
Retrieving data ...