binutils-cross_2.38.bb:do_compile failed

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

binutils-cross_2.38.bb:do_compile failed

2,179 Views
SVC2
Contributor II
Hi,
 
I am trying to build an image using:
Description: Ubuntu 22.04.2 LTS
Release: 22.04
 
I downloaded  yocto :
repo init -u https://github.com/nxp-imx/ -b imx-linux-kirkstone -m imx-5.15.32-2.0.0.xml
 
I tried to build using:
MACHINE=imx7dsabresd DISTRO=fsl-imx-fb source ./imx-setup-release.sh -b build
MACHINE=imx7dsabresd bitbake fsl-image-machine-test
 
and I get the following error:
 
| ERROR: oe_runmake failed
| WARNING: exit code 1 from a shell command.
ERROR: Task (/home/simon/yocto_imx_5_15_32/sources/poky/meta/recipes-devtools/binutils/binutils-cross_2.38.bb:do_compile) failed with exit code '1'
 
Summary: 1 task failed:
  /home/simon/yocto_imx_5_15_32/sources/poky/meta/recipes-devtools/binutils/binutils-cross_2.38.bb:do_compile
 
What am I missing?
 
Thank you,
S.
 
0 Kudos
Reply
3 Replies

2,145 Views
SVC2
Contributor II

Thanks Brian,

  • I am using: Ubuntu 22.04.2 LTS

 

  • The application pylint3 is deprecated.

$ sudo apt install pylint3
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package pylint3

  • I installed pylint and made a link to pylint3:

$ ls -l /usr/bin/pylint*
-rwxr-xr-x 1 root root 956 Dec 5 2021 /usr/bin/pylint
lrwxrwxrwx 1 root root 6 Apr 14 14:13 /usr/bin/pylint3 -> pylint

 

  • The rest of the application are installed:

$ sudo apt install gawk wget git diffstat unzip texinfo gcc build-essential chrpath socat cpio python3 python3-pip python3-pexpect xz-utils debianutils iputils-ping python3-git python3-jinja2 libegl1-mesa libsdl1.2-dev xterm python3-subunit mesa-common-dev zstd liblz4-tool rsync curl
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
build-essential is already the newest version (12.9ubuntu3).
cpio is already the newest version (2.13+dfsg-7).
debianutils is already the newest version (5.5-1ubuntu2).
diffstat is already the newest version (1.64-1build2).
gawk is already the newest version (1:5.1.0-1build3).
gcc is already the newest version (4:11.2.0-1ubuntu1).
iputils-ping is already the newest version (3:20211215-1).
python3-jinja2 is already the newest version (3.0.3-1).
python3-pexpect is already the newest version (4.8.0-2ubuntu1).
socat is already the newest version (1.7.4.1-3ubuntu4).
wget is already the newest version (1.21.2-2ubuntu1).
xz-utils is already the newest version (5.2.5-2ubuntu1).
zstd is already the newest version (1.4.8+dfsg-3build1).
chrpath is already the newest version (0.16-2).
liblz4-tool is already the newest version (1.9.3-2build2).
libsdl1.2-dev is already the newest version (1.2.15+dfsg2-6).
python3-git is already the newest version (3.1.24-1).
python3-subunit is already the newest version (1.4.0-3).
texinfo is already the newest version (6.8-4build1).
xterm is already the newest version (372-1ubuntu1).
curl is already the newest version (7.81.0-1ubuntu1.10).
git is already the newest version (1:2.34.1-1ubuntu1.8).
mesa-common-dev is already the newest version (22.2.5-0ubuntu0.1~22.04.1).
python3 is already the newest version (3.10.6-1~22.04).
rsync is already the newest version (3.2.7-0ubuntu0.22.04.2).
unzip is already the newest version (6.0-26ubuntu3.1).
libegl1-mesa is already the newest version (22.2.5-0ubuntu0.1~22.04.1).
python3-pip is already the newest version (22.0.2+dfsg-1ubuntu0.2).
The following packages were automatically installed and are no longer required:
libflashrom1 libftdi1-2 libllvm13
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 17 not upgraded.

  • I downloaded yocto using:

repo init -u https://github.com/nxp-imx/ -b imx-linux-kirkstone -m imx-5.15.32-2.0.0.xml

  • Tried to build using:

MACHINE=imx7dsabresd bitbake fsl-image-machine-test

  • Build fails:
WARNING: You have included the meta-virtualization layer, but 'virtualization' has not been enabled in your DISTRO_FEATURES. Some bbappend files may not take effect. See the meta-virtualization README for details on enabling virtualization support.
WARNING: Host distribution "ubuntu-22.04" has not been validated with this version of the build system; you may possibly experience unexpected failures. It is recommended that you use a tested distribution.
Loading cache: 100% |###############################################################################################################################################################################| Time: 0:00:10
Loaded 4736 entries from dependency cache.
Parsing recipes: 100% |#############################################################################################################################################################################| Time: 0:00:07
Parsing of 3187 .bb files complete (3186 cached, 1 parsed). 4737 targets, 652 skipped, 5 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION           = "2.0.0"
BUILD_SYS            = "x86_64-linux"
NATIVELSBSTRING      = "universal"
TARGET_SYS           = "arm-poky-linux-gnueabi"
MACHINE              = "imx7dsabresd"
DISTRO               = "fsl-imx-fb"
DISTRO_VERSION       = "5.15-kirkstone"
TUNE_FEATURES        = "arm vfp cortexa7 neon thumb callconvention-hard"
TARGET_FPU           = "hard"
meta                 
meta-poky            = "HEAD:27de52e402ae000dfa502d52908cd6e6aef923ec"
meta-oe              
meta-multimedia      
meta-python          = "HEAD:5357c7a40eaf8d1bcf7ff58edbba8e9527e40c7d"
meta-freescale       = "HEAD:2fb1ce365338126aad365012ebb913b3e4a9f1be"
meta-freescale-3rdparty = "HEAD:de0eb1408150d77f9cce97c559f9a5a3c71e5d6c"
meta-freescale-distro = "HEAD:fc15f5003043da23212596be7366ae2547c308ad"
meta-bsp             
meta-sdk             
meta-ml              
meta-v2x             = "HEAD:9fa550c958b950526e1bb1c8e8ed8b6ac4f29119"
meta-nxp-demo-experience = "HEAD:35c364933945dd15b7a96b60675fc304ce6fb881"
meta-chromium        = "HEAD:d25d8ee98a656b2534d0eec6138ef264529fab4f"
meta-clang           = "HEAD:85d956d95401479ca666139e31f662f60c156d5f"
meta-gnome           
meta-networking      
meta-filesystems     = "HEAD:5357c7a40eaf8d1bcf7ff58edbba8e9527e40c7d"
meta-qt6             = "HEAD:b2894aad5c1aaa85f2f5c7b94391b7c51c39e555"
meta-virtualization  = "HEAD:973c8d0964c6f40338857efe5b8009b2f647d485"

Initialising tasks: 100% |##########################################################################################################################################################################| Time: 0:00:14
Sstate summary: Wanted 2352 Local 0 Mirrors 0 Missed 2352 Current 83 (0% match, 3% complete)
NOTE: Executing Tasks
ERROR: binutils-cross-arm-2.38-r0 do_compile: oe_runmake failed
ERROR: binutils-cross-arm-2.38-r0 do_compile: ExecutionError('/home/simon/yocto_imx_5_15_32/build/tmp/work/x86_64-linux/binutils-cross-arm/2.38-r0/temp/run.do_compile.397350', 1, None, None)
ERROR: Logfile of failure stored in: /home/simon/yocto_imx_5_15_32/build/tmp/work/x86_64-linux/binutils-cross-arm/2.38-r0/temp/log.do_compile.397350
Log data follows:
... ...  ....
 ... etc ....
... ...  ....

... ...  ....

ERROR: Task (/home/simon/yocto_imx_5_15_32/sources/poky/meta/recipes-devtools/binutils/binutils-cross_2.38.bb:do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 374 tasks of which 368 didn't need to be rerun and 1 failed.

Summary: 1 task failed:
  /home/simon/yocto_imx_5_15_32/sources/poky/meta/recipes-devtools/binutils/binutils-cross_2.38.bb:do_compile
Summary: There were 2 WARNING messages.
Summary: There were 2 ERROR messages, returning a non-zero exit code.
 
 
Simon
0 Kudos
Reply

2,137 Views
brian14
NXP TechSupport
NXP TechSupport

Hi @SVC2,

Please put this new reply on your recent community post: binutils-cross_2.38.bb:do_compile failed - NXP Community

I will help you on that post. 

Thank you. 

0 Kudos
Reply

2,134 Views
SVC2
Contributor II