apache / mynewt-newt

An OS to build, deploy and securely manage billions of devices
https://mynewt.apache.org/
Apache License 2.0
117 stars 96 forks source link

Error: panic error instead of missing package information #519

Closed wpiet closed 1 week ago

wpiet commented 1 year ago

I have had not installed 'arm-none-eabi-objdump' and while attempting to create an image the following error appears:

$ newt create-image nrf52_blinky 1.0.0

anic: unexpected error type: *exec.Error

goroutine 1 [running]:
mynewt.apache.org/newt/newt/cli.NewtUsage(0x0, {0x863b00, 0xc000161ca0})
        /tmp/mynewt.gS57lNxSZ3/src/mynewt.apache.org/newt/newt/cli/util.go:54 +0x26d
mynewt.apache.org/newt/newt/cli.createImageRunCmd(0xc0001d1b00?, {0xc000160ae0, 0x2, 0x2})
        /tmp/mynewt.gS57lNxSZ3/src/mynewt.apache.org/newt/newt/cli/image_cmds.go:146 +0x672
github.com/spf13/cobra.(*Command).execute(0xc0001d1b00, {0xc000160a80, 0x2, 0x2})
        /home/michal/go/pkg/mod/github.com/spf13/cobra@v1.6.1/command.go:920 +0x847
github.com/spf13/cobra.(*Command).ExecuteC(0xc0001d0000)
        /home/michal/go/pkg/mod/github.com/spf13/cobra@v1.6.1/command.go:1044 +0x3bd
github.com/spf13/cobra.(*Command).Execute(...)
        /home/michal/go/pkg/mod/github.com/spf13/cobra@v1.6.1/command.go:968
main.main()
        /tmp/mynewt.gS57lNxSZ3/src/mynewt.apache.org/newt/newt/newt.go:184 +0x26e

I managed to fix it by installing the package 'binutils-arm-none-eabi'.