You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@mynewt.apache.org by "Mariusz Ryndzionek (JIRA)" <ji...@apache.org> on 2016/06/30 08:25:10 UTC
[jira] [Created] (MYNEWT-331) Cloned projects build problem
Mariusz Ryndzionek created MYNEWT-331:
-----------------------------------------
Summary: Cloned projects build problem
Key: MYNEWT-331
URL: https://issues.apache.org/jira/browse/MYNEWT-331
Project: Mynewt
Issue Type: Bug
Components: Newt
Affects Versions: v0_9_0
Environment: Linux Mint x86_64
Reporter: Mariusz Ryndzionek
Assignee: Sterling Hughes
Priority: Minor
After creating new project:
```sh
$ newt new hello_world
$ cd hello_world
$ newt install -v
$ newt target create hello
$ newt target set hello app=@apache-mynewt-core/apps/blinky
$ newt target set hello bsp=@apache-mynewt-core/hw/bsp/nrf51dk
$ newt target set hello build_profile=optimized
$ newt build hello
```
all seems okay. The project compiles. It also looks like it's being ready to be put under
Git source control:
```sh
$ git init
$ git add .
$ git commit -m "Initial commit"
```
Unfortunately after cloning this project it does not build:
```sh
$ newt install -v
apache-mynewt-core
Downloading repository description for apache-mynewt-core... success!
apache-mynewt-core correct version already installed
$ newt install -v -f
apache-mynewt-core
Downloading repository description for apache-mynewt-core... success!
apache-mynewt-core correct version already installed
```
```sh
$ newt build hello
Error: Could not resolve BSP package: @apache-mynewt-core/hw/bsp/nrf51dk
```
As a workaround one can use:
```sh
$ rm project.state
$ newt install -v -f
apache-mynewt-core
Downloading repository description for apache-mynewt-core... success!
Downloading repository incubator-mynewt-core (branch: master; commit: mynewt_0_9_0_tag) at https://github.com/apache/incubator-mynewt-core.git
Cloning into '/tmp/newt-repo046078242'...
remote: Counting objects: 25966, done.
remote: Compressing objects: 100% (54/54), done.
remote: Total 25966 (delta 15), reused 0 (delta 0), pack-reused 25904
Receiving objects: 100% (25966/25966), 8.86 MiB | 2.67 MiB/s, done.
Resolving deltas: 100% (15522/15522), done.
Checking connectivity... done.
apache-mynewt-core successfully installed version 0.9.0-none
```
Only after those commmand the build succeeds.
This should probably be fixed by ignoring generated `project.state` file or modifying
the project state detection function.
Best regards,
Mariusz Ryndzionek
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)