NetworkGradeLinux / mion

Main repository for the mion network operating system
Other
15 stars 0 forks source link

Failure to build Mion for APS BF2556X-1T #68

Closed frederic-loui closed 3 years ago

frederic-loui commented 3 years ago

Mion build for BF2556X-1T fails. Following the Mion documentation:

Step 1:

source openembedded-core/oe-init-build-env
### Shell environment set up for builds. ###

You can now run 'bitbake <target>'

Common targets are:
    core-image-minimal
    core-image-sato
    meta-toolchain
    meta-ide-support

You can also run generated qemu images with a command like 'runqemu qemux86'.

Other commonly useful commands are:
 - 'devtool' and 'recipetool' handle common recipe tasks
 - 'bitbake-layers' handles common layer tasks
 - 'oe-pkgdata-util' handles common target package tasks

Step 2

../mc_build.sh -m stordis-bf2556x-1t -h host-onie:mion-onie-image-onlpv1
Parsing recipes: 100% |##########################################################################################| Time: 0:00:18
Parsing of 2602 .bb files complete (0 cached, 2602 parsed). 7944 targets, 666 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies
NOTE: Resolving any missing task queue dependencies
NOTE: Resolving any missing task queue dependencies
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION           = "1.46.0"
BUILD_SYS            = "x86_64-linux"
NATIVELSBSTRING      = "debian"
TARGET_SYS           = "x86_64-mion-linux"
MACHINE              = "stordis-bf2556x-1t"
DISTRO               = "mion"
DISTRO_VERSION       = "Achill-0.9+snapshot"
TUNE_FEATURES        = "m64 corei7"
TARGET_FPU           = ""
meta                 = "HEAD:656d2070f8448681cb69a3d43dbae84a681c1a75"
meta-oe              
meta-networking      
meta-python          
meta-filesystems     = "HEAD:2a5c534d2b9f01e9c0f39701fccd7fc874945b1c"
meta-virtualization  = "HEAD:ff997b6b3ba800978546098ab3cdaa113b6695e1"
meta-tpm             = "HEAD:c74cc97641fd93e0e7a4383255e9a0ab3deaf9d7"
meta-yocto-bsp       = "HEAD:492e345b5e01e59f1f4374388005f81b860db636"
meta-mion            
meta-mion-simplerunc = "dunfell:c6ed14cad903b9775306d63ed957934ee77fc345"
meta-mender-core     = "HEAD:cc1fdd90820bf8912007b399217bdc3278473165"
meta-mion-stordis    = "dunfell:b8e229fe82944eb74386341f0db832a0112c39ec"
meta-python2         = "HEAD:07dca1e54f82a06939df9b890c6d1ce1e3197f75"

NOTE: Fetching uninative binary shim http://downloads.yoctoproject.org/releases/uninative/2.9/x86_64-nativesdk-libc.tar.xz;sha256sum=d07916b95c419c81541a19c8ef0ed8cbd78ae18437ff28a4c8a60ef40518e423 (will check PREMIRRORS first)

Build Configuration:
BB_VERSION           = "1.46.0"
BUILD_SYS            = "x86_64-linux"
NATIVELSBSTRING      = "debian"
TARGET_SYS           = "x86_64-mion-linux"
MACHINE              = "stordis-bf2556x-1t"
DISTRO               = "mion"
DISTRO_VERSION       = "Achill-0.9+snapshot"
TUNE_FEATURES        = "m64 corei7"
TARGET_FPU           = ""
meta                 = "HEAD:656d2070f8448681cb69a3d43dbae84a681c1a75"
meta-oe              
meta-networking      
meta-python          
meta-filesystems     = "HEAD:2a5c534d2b9f01e9c0f39701fccd7fc874945b1c"
meta-virtualization  = "HEAD:ff997b6b3ba800978546098ab3cdaa113b6695e1"
meta-tpm             = "HEAD:c74cc97641fd93e0e7a4383255e9a0ab3deaf9d7"
meta-yocto-bsp       = "HEAD:492e345b5e01e59f1f4374388005f81b860db636"
meta-mion            
meta-mion-simplerunc = "dunfell:c6ed14cad903b9775306d63ed957934ee77fc345"
meta-mender-core     = "HEAD:cc1fdd90820bf8912007b399217bdc3278473165"
meta-mion-stordis    = "dunfell:b8e229fe82944eb74386341f0db832a0112c39ec"
meta-python2         = "HEAD:07dca1e54f82a06939df9b890c6d1ce1e3197f75"

Initialising tasks: 100% |#######################################################################################| Time: 0:00:04
Sstate summary: Wanted 1251 Found 0 Missed 1251 Current 0 (0% match, 0% complete)
NOTE: Executing Tasks
WARNING: mc:host-onie:make-native-4.3-r0 do_fetch: Failed to fetch URL https://ftp.gnu.org/gnu/make/make-4.3.tar.gz, attempting MIRRORS if available
WARNING: mc:host-onie:rsync-native-3.1.3-r0 do_fetch: Failed to fetch URL https://download.samba.org/pub/rsync/src/rsync-3.1.3.tar.gz, attempting MIRRORS if available
WARNING: mc:host-onie:netbase-1_6.1-r0 do_fetch: Failed to fetch URL http://ftp.debian.org/debian/pool/main/n/netbase/netbase_6.1.tar.xz, attempting MIRRORS if available
WARNING: mc:host-onie:sysfsutils-2.1.0-r5 do_fetch: Failed to fetch URL https://downloads.sourceforge.net/linux-diag/sysfsutils-2.1.0.tar.gz, attempting MIRRORS if available
WARNING: mc:host-onie:unzip-native-1_6.0-r5 do_fetch: Failed to fetch URL https://downloads.sourceforge.net/infozip/UnZip%206.x%20%28latest%29/UnZip%206.0/unzip60.tar.gz, attempting MIRRORS if available
ERROR: mc:host-onie:onlpv1-1.1+gitAUTOINC+1cc0d3f6f8_16ce9cd77f_94091600fa-r0 do_configure: Execution of '/home/p4/mion/build/tmp-glibc/work/stordis_bf2556x_1t-mion-linux/onlpv1/1.1+gitAUTOINC+1cc0d3f6f8_16ce9cd77f_94091600fa-r0/temp/run.do_configure.2318847' failed with exit code 127:
/home/p4/mion/build/tmp-glibc/work/stordis_bf2556x_1t-mion-linux/onlpv1/1.1+gitAUTOINC+1cc0d3f6f8_16ce9cd77f_94091600fa-r0/temp/run.do_configure.2318847: 104: /home/p4/mion/build/tmp-glibc/work/stordis_bf2556x_1t-mion-linux/onlpv1/1.1+gitAUTOINC+1cc0d3f6f8_16ce9cd77f_94091600fa-r0/git/sm/infra/builder/unix/tools/modtool.py: not found
WARNING: exit code 127 from a shell command.

ERROR: Logfile of failure stored in: /home/p4/mion/build/tmp-glibc/work/stordis_bf2556x_1t-mion-linux/onlpv1/1.1+gitAUTOINC+1cc0d3f6f8_16ce9cd77f_94091600fa-r0/temp/log.do_configure.2318847
Log data follows:
| DEBUG: Executing shell function do_configure
| /home/p4/mion/build/tmp-glibc/work/stordis_bf2556x_1t-mion-linux/onlpv1/1.1+gitAUTOINC+1cc0d3f6f8_16ce9cd77f_94091600fa-r0/temp/run.do_configure.2318847: 104: /home/p4/mion/build/tmp-glibc/work/stordis_bf2556x_1t-mion-linux/onlpv1/1.1+gitAUTOINC+1cc0d3f6f8_16ce9cd77f_94091600fa-r0/git/sm/infra/builder/unix/tools/modtool.py: not found
| WARNING: exit code 127 from a shell command.
| ERROR: Execution of '/home/p4/mion/build/tmp-glibc/work/stordis_bf2556x_1t-mion-linux/onlpv1/1.1+gitAUTOINC+1cc0d3f6f8_16ce9cd77f_94091600fa-r0/temp/run.do_configure.2318847' failed with exit code 127:
| /home/p4/mion/build/tmp-glibc/work/stordis_bf2556x_1t-mion-linux/onlpv1/1.1+gitAUTOINC+1cc0d3f6f8_16ce9cd77f_94091600fa-r0/temp/run.do_configure.2318847: 104: /home/p4/mion/build/tmp-glibc/work/stordis_bf2556x_1t-mion-linux/onlpv1/1.1+gitAUTOINC+1cc0d3f6f8_16ce9cd77f_94091600fa-r0/git/sm/infra/builder/unix/tools/modtool.py: not found
| WARNING: exit code 127 from a shell command.
| 
ERROR: Task (mc:host-onie:/home/p4/mion/meta-mion/meta-mion/recipes-platform/onlpv1/onlpv1_1.0.bb:do_configure) failed with exit code '1'
NOTE: Tasks Summary: Attempted 2905 tasks of which 1 didn't need to be rerun and 1 failed.

Summary: 1 task failed:
  mc:host-onie:/home/p4/mion/meta-mion/meta-mion/recipes-platform/onlpv1/onlpv1_1.0.bb:do_configure
Summary: There were 5 WARNING messages shown.
Summary: There was 1 ERROR message shown, returning a non-zero exit code.
frederic-loui commented 3 years ago

You can close this issue.

I identified the problem that you'll have to solve when the time comes :)

Indeed, I was lent a very powerful Bare Metal Server. So all compilation could be done very quickly (I recompile kernel-yocto-5.4.49-standard in 5 minutes) Naturally, I wanted to do the same with Mion ...

But i did not pay attention to the fact that the BMS was running a pristine Debian Bullseye and of course Mion build fails as some of Yocto build scripts are based on python2.

Moving to a very slow VM running Debian 10 solved the issue.

Conclusion: Moving to python3 won't be easy except if Yocto move itself to python3. I tried to convert some scripts but it turned out that it involves a lot of them ...