foss-for-synopsys-dwc-arc-processors / buildroot

The development tree for Buildroot support for the Synopsys DesignWare ARC processor family
https://github.com/foss-for-synopsys-dwc-arc-processors/toolchain/blob/arc-dev/README.md
Other
7 stars 2 forks source link

Error occurred while building a filesystem and kernel images for the HSDK with Buildroot #6

Open BarryWang2017 opened 5 years ago

BarryWang2017 commented 5 years ago

Hello, An error occurred when I built the Linux kernel and file system for the HSDK using Buildroot. The screenshot of the error is as follows: Error screenshot

What should I do to rule out this error?

Thank you, BarryWang

PS: Build steps:

git clone https://git.busybox.net/buildroot
cd buildroot
mkdir ../out_git
make O=`readlink -e ../out_git` snps_archs38_hsdk_defconfig
cd ../out_git/
make menuconfig

Modify the toolchain and save. Toolchain Building everything

make V=1

The build process lasted for a few minutes and there was such an error: Error screenshot

abrodkin commented 5 years ago

@BarryWang2017 my first guess will be non US locale. Could you please show me an output of command readelf -h vmlinux? Note I mean vmlinux located in your build folder: /home/barrywang/ARC-dev/buildroot/out_git/build/linux-4.16.8.

BarryWang2017 commented 5 years ago

@abrodkin Your guess is correct. I changed the host's system language to English and reboot. Then I rebuilt the project, the problem was solved. Thank you, BarryWang

abrodkin commented 5 years ago

@BarryWang2017 may I close this issue then?

BarryWang2017 commented 5 years ago

Yes, of course, thank you so much!

anthony-kolesov commented 5 years ago

@BarryWang2017 I'm not sure if this will help with this specific problem, but I think you might also try doing export LC_ALL=C before running make - thus no need to change language for the whole host and reboot. This used to help me with various issues caused by locales.

BarryWang2017 commented 5 years ago

@anthony-kolesov This method does not work. Just like the following screenshot, the system language is Chinese, and I run the command export LC_ALL=C before make. That error appears again. error

After modifying the system language, you do not need to restart the host, just re-login the account.