Hi Chris, I've modified my app setup to point to the nimble repo:
*$ newt target show split-apptargets/split-app app=@apache-mynewt-core/apps/splitty bsp=@apache-mynewt-core/hw/bsp/nordic_pca20020 build_profile=optimized loader=@apache-mynewt-nimble/apps/bleprph syscfg=BLE_LL_CFG_FEAT_LE_ENCRYPTION=0:BLE_SM_LEGACY=0* Then I've treid to build it: *newt build split-appBuilding target targets/split-apppanic: Resolver lacks mapping for seed package @apache-mynewt-nimble/nimble/controllergoroutine 1 [running]:mynewt.apache.org/newt/newt/resolve.(*Resolver).pruneOrphans(0xc0001f11e0 <http://mynewt.apache.org/newt/newt/resolve.(*Resolver).pruneOrphans(0xc0001f11e0>, 0xc00055e240, 0xc000161300, 0x0) /tmp/mynewt.XX0GkgW8XL/src/mynewt.apache.org/newt/newt/resolve/resolve.go:812 <http://mynewt.apache.org/newt/newt/resolve/resolve.go:812> +0x317mynewt.apache.org/newt/newt/resolve.(*Resolver).resolveHardDepsOnce(0xc0001f11e0 <http://mynewt.apache.org/newt/newt/resolve.(*Resolver).resolveHardDepsOnce(0xc0001f11e0>, 0x1, 0x0, 0x0) /tmp/mynewt.XX0GkgW8XL/src/mynewt.apache.org/newt/newt/resolve/resolve.go:854 <http://mynewt.apache.org/newt/newt/resolve/resolve.go:854> +0x11amynewt.apache.org/newt/newt/resolve.(*Resolver).resolveHardDeps(0xc0001f11e0 <http://mynewt.apache.org/newt/newt/resolve.(*Resolver).resolveHardDeps(0xc0001f11e0>, 0x80, 0xc000645800) /tmp/mynewt.XX0GkgW8XL/src/mynewt.apache.org/newt/newt/resolve/resolve.go:878 <http://mynewt.apache.org/newt/newt/resolve/resolve.go:878> +0x2bmynewt.apache.org/newt/newt/resolve.(*Resolver).resolveDeps(0xc0001f11e0 <http://mynewt.apache.org/newt/newt/resolve.(*Resolver).resolveDeps(0xc0001f11e0>, 0xc0001f1248, 0xc00009c160, 0xc0006106c0, 0xc000610420, 0x0) /tmp/mynewt.XX0GkgW8XL/src/mynewt.apache.org/newt/newt/resolve/resolve.go:896 <http://mynewt.apache.org/newt/newt/resolve/resolve.go:896> +0x2fmynewt.apache.org/newt/newt/resolve.ResolveFull(0xc000112400 <http://mynewt.apache.org/newt/newt/resolve.ResolveFull(0xc000112400>, 0xb, 0x10, 0xc000222000, 0xb, 0xc, 0xc0006106c0, 0xc000610420, 0x0, 0x0, ...) /tmp/mynewt.XX0GkgW8XL/src/mynewt.apache.org/newt/newt/resolve/resolve.go:1149 <http://mynewt.apache.org/newt/newt/resolve/resolve.go:1149> +0xd70mynewt.apache.org/newt/newt/builder.(*TargetBuilder).ensureResolved(0xc0000d8070 <http://mynewt.apache.org/newt/newt/builder.(*TargetBuilder).ensureResolved(0xc0000d8070>, 0x0, 0x0) /tmp/mynewt.XX0GkgW8XL/src/mynewt.apache.org/newt/newt/builder/targetbuild.go:207 <http://mynewt.apache.org/newt/newt/builder/targetbuild.go:207> +0x29emynewt.apache.org/newt/newt/builder.(*TargetBuilder).PrepBuild(0xc0000d8070 <http://mynewt.apache.org/newt/newt/builder.(*TargetBuilder).PrepBuild(0xc0000d8070>, 0xc0001199a0, 0xc000578960) /tmp/mynewt.XX0GkgW8XL/src/mynewt.apache.org/newt/newt/builder/targetbuild.go:305 <http://mynewt.apache.org/newt/newt/builder/targetbuild.go:305> +0x43mynewt.apache.org/newt/newt/builder.(*TargetBuilder).Build(0xc0000d8070 <http://mynewt.apache.org/newt/newt/builder.(*TargetBuilder).Build(0xc0000d8070>, 0x0, 0xc0000d8070) /tmp/mynewt.XX0GkgW8XL/src/mynewt.apache.org/newt/newt/builder/targetbuild.go:474 <http://mynewt.apache.org/newt/newt/builder/targetbuild.go:474> +0x2fmynewt.apache.org/newt/newt/cli.buildRunCmd(0xc0000aea00 <http://mynewt.apache.org/newt/newt/cli.buildRunCmd(0xc0000aea00>, 0xc00004cf30, 0x1, 0x1, 0x0) /tmp/mynewt.XX0GkgW8XL/src/mynewt.apache.org/newt/newt/cli/build_cmds.go:161 <http://mynewt.apache.org/newt/newt/cli/build_cmds.go:161> +0x2bcmynewt.apache.org/newt/newt/cli.AddBuildCommands.func1(0xc0000aea00 <http://mynewt.apache.org/newt/newt/cli.AddBuildCommands.func1(0xc0000aea00>, 0xc00004cf30, 0x1, 0x1) /tmp/mynewt.XX0GkgW8XL/src/mynewt.apache.org/newt/newt/cli/build_cmds.go:434 <http://mynewt.apache.org/newt/newt/cli/build_cmds.go:434> +0x5fmynewt.apache.org/newt/vendor/github.com/spf13/cobra.(*Command).execute(0xc0000aea00 <http://mynewt.apache.org/newt/vendor/github.com/spf13/cobra.(*Command).execute(0xc0000aea00>, 0xc00004cef0, 0x1, 0x1, 0xc0000aea00, 0xc00004cef0) /tmp/mynewt.XX0GkgW8XL/src/mynewt.apache.org/newt/vendor/github.com/spf13/cobra/command.go:766 <http://mynewt.apache.org/newt/vendor/github.com/spf13/cobra/command.go:766> +0x2aemynewt.apache.org/newt/vendor/github.com/spf13/cobra.(*Command).ExecuteC(0xc0000ae500 <http://mynewt.apache.org/newt/vendor/github.com/spf13/cobra.(*Command).ExecuteC(0xc0000ae500>, 0x7e5aa4, 0x5, 0x2) /tmp/mynewt.XX0GkgW8XL/src/mynewt.apache.org/newt/vendor/github.com/spf13/cobra/command.go:852 <http://mynewt.apache.org/newt/vendor/github.com/spf13/cobra/command.go:852> +0x2c0mynewt.apache.org/newt/vendor/github.com/spf13/cobra.(*Command).Execute(.. <http://mynewt.apache.org/newt/vendor/github.com/spf13/cobra.(*Command).Execute(..>.) /tmp/mynewt.XX0GkgW8XL/src/mynewt.apache.org/newt/vendor/github.com/spf13/cobra/command.go:800 <http://mynewt.apache.org/newt/vendor/github.com/spf13/cobra/command.go:800>main.main() /tmp/mynewt.XX0GkgW8XL/src/mynewt.apache.org/newt/newt/newt.go:185 <http://mynewt.apache.org/newt/newt/newt.go:185> +0x180* Any idea ? Thanks. Regards. /joseph Le sam. 27 avr. 2019 à 17:28, Christopher Collins <ch...@runtime.io> a écrit : > Hi Joseph, > > On Sat, Apr 27, 2019 at 04:01:17PM +0200, joseph reveane wrote: > > Hi Chris, > > > > I've fetched your fixes and tried to build a split image with the same > > parameters as the > > ones I used to open this issue: > > > > 1) loader app: > > > > > > > > > > > > > > *newt target show thingy-loadertargets/thingy-loader > > app=@apache-mynewt-core/apps/bleprph > > bsp=@apache-mynewt-core/hw/bsp/nordic_pca20020 > > build_profile=optimized > > syscfg=BLE_LL_CFG_FEAT_LE_ENCRYPTION=0:BLE_SM_LEGACY=0* > > > > 2) user's application: > > > > > > > > > > > > > > > > *newt target show split-apptargets/split-app > > app=@apache-mynewt-core/apps/splitty > > bsp=@apache-mynewt-core/hw/bsp/nordic_pca20020 > > build_profile=optimized loader=@apache-mynewt-core/apps/bleprph > > syscfg=BLE_LL_CFG_FEAT_LE_ENCRYPTION=0:BLE_SM_LEGACY=0* > > > > 3) Build output: > > > > > > > > *newt build -v split-appBuilding target targets/split-app2019/04/27 > > 15:58:05.226 [WARNING] Transient package @apache-mynewt-core/apps/bleprph > > used, update configuration to use linked package instead > > (@apache-mynewt-nimble/apps/bleprph)Error: Two app packages in build: > > apps/bleprph, apps/splitty* > > > > So, this must be an other issue than the one you've fixed then... > > This looks like a bug involving transient packages. The package > `@apache-mynewt-core/apps/bleprph` is transient; it is just a link to > the real bleprph (`@apache-mynewt-nimble/apps/bleprph`). > > Can you please try changing your target so that its `loader` setting > points to the "real" version of this app (in the nimble repo)? > > Thanks, > Chris >