openthread/ot-efr32

build failed

lancersky opened this issue · 2 comments

$ sudo lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 20.04.4 LTS
Release:        20.04
Codename:       focal

$ git log -1
commit 76f4284760e3cb0f9202e9240d23d59f657ca2ef (HEAD -> main, origin/main, origin/HEAD)
Author: Mason Tran <mason.tran@silabs.com>
Date:   Thu Oct 20 18:30:45 2022 -0400

    [actions] update 'actions/cache' to 'v3' (#436)
lancer@gl-inet:/data/workspace/git-maintain/openthread


$ ./script/bootstrap
$ board="brd4161a"
$ ./script/build $board
......
/opt/gcc-arm-none-eabi-9-2020-q2-update/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/bin/ld:../../../../third_party/silabs/gecko_sdk/platform/emdrv/nvm3/lib/libnvm3_CM4_gcc.a: file format not recognized; treating as linker script
/opt/gcc-arm-none-eabi-9-2020-q2-update/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/bin/ld:../../../../third_party/silabs/gecko_sdk/platform/emdrv/nvm3/lib/libnvm3_CM4_gcc.a:1: syntax error
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.
+ cleanup
+ '[' 1 -eq 14 ']'
+ cleanup
+ revert_patches
+ '[' false = false ']'
+ return

Hi @lancersky,

It looks like you need to do a git LFS pull in gecko_sdk

cd third_party/silabs/gecko_sdk
git lfs pull

If git-lfs isn't installed in your system, you should run ./script/bootstrap to install all prerequisites.

You might also run into the odd case where you have git-lfs installed in your system, but the hooks aren't installed for the submodule. If that's the case, you'll want to do the following

cd third_party/silabs/gecko_sdk
git lfs install
git lfs pull

Please let me know if this helps!

Cheers,
Mason

Hi @lmnotran
It solves the problem, thanks.