Hi all,

I tried "$newt test @repos/apache-mynewt-core/kernel/os" in Linux but it
still doesn't work.
I also attached the error message of executing "$newt test all" below.
It seems some files are missing.

Br,
Lichun

1. Error message when executing $newt test
@repos/apache-mynewt-core/kernel/os:

lcko@lcko-VirtualBox:~/dev/go/myproj$ $newt test
@repos/apache-mynewt-core/kernel/os
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xb code=0x1 addr=0x0 pc=0x6879bf]

goroutine 1 [running]:
panic(0x963920, 0xc82000e170)
    /usr/lib/go-1.6/src/runtime/panic.go:481 +0x3e6
mynewt.apache.org/newt/newt/repo.(*Repo).Name(0x0, 0x1c, 0x0)
    /home/lcko/dev/go/src/mynewt.apache.org/newt/newt/repo/repo.go:290 +0x1f
mynewt.apache.org/newt/newt/pkg.(*Dependency).setRepoAndName(0xc82043cbe0,
0x7fcd8a960200, 0x0, 0x7ffdb79b70e3, 0x1c, 0x0, 0x0)
    /home/lcko/dev/go/src/mynewt.apache.org/newt/newt/pkg/dependency.go:63
+0x147
mynewt.apache.org/newt/newt/pkg.(*Dependency).Init(0xc82043cbe0,
0x7fcd8a960200, 0x0, 0x7ffdb79b70e3, 0x1c, 0x0, 0x0)
    /home/lcko/dev/go/src/mynewt.apache.org/newt/newt/pkg/dependency.go:74
+0x55
mynewt.apache.org/newt/newt/pkg.NewDependency(0x7fcd8a960200, 0x0,
0x7ffdb79b70e3, 0x1c, 0xd0dc40, 0x0, 0x0)
    /home/lcko/dev/go/src/mynewt.apache.org/newt/newt/pkg/dependency.go:84
+0x7f
mynewt.apache.org/newt/newt/project.(*Project).ResolvePackage(0xc820054540,
0x7fcd8a960200, 0xc820070510, 0x7ffdb79b70dc, 0x23, 0x4, 0x0, 0x0)
    /home/lcko/dev/go/src/mynewt.apache.org/newt/newt/project/project.go:522
+0x448
mynewt.apache.org/newt/newt/cli.testRunCmd(0xc82042cd80, 0xc820435210, 0x1,
0x1)
    /home/lcko/dev/go/src/mynewt.apache.org/newt/newt/cli/build_cmds.go:225
+0x140e
mynewt.apache.org/newt/newt/vendor/github.com/spf13/cobra.(*Command).execute(0xc82042cd80,
0xc8204351d0, 0x1, 0x1, 0x0, 0x0)
    /home/lcko/dev/go/src/
mynewt.apache.org/newt/newt/vendor/github.com/spf13/cobra/command.go:636
+0x8e9
mynewt.apache.org/newt/newt/vendor/github.com/spf13/cobra.(*Command).ExecuteC(0xc820075440,
0xc82042cd80, 0x0, 0x0)
    /home/lcko/dev/go/src/
mynewt.apache.org/newt/newt/vendor/github.com/spf13/cobra/command.go:722
+0x55c
mynewt.apache.org/newt/newt/vendor/github.com/spf13/cobra.(*Command).Execute(0xc820075440,
0x0, 0x0)
    /home/lcko/dev/go/src/
mynewt.apache.org/newt/newt/vendor/github.com/spf13/cobra/command.go:681
+0x2d
main.main()
    /home/lcko/dev/go/src/mynewt.apache.org/newt/newt/newt.go:146 +0x2a2
exit status 2


2. Error message when executing $newt test all:

lcko@lcko-VirtualBox:~/dev/go/myproj$ cd repos
lcko@lcko-VirtualBox:~/dev/go/myproj/repos$ $newt test all
Testing package @apache-mynewt-core/boot/boot_serial/test
Compiling boot_serial.c
In file included from /usr/include/assert.h:35:0,
                 from boot_serial.c:19:
/usr/include/features.h:367:25: fatal error: sys/cdefs.h: No such file or
directory
compilation terminated.
Testing package @apache-mynewt-core/boot/bootutil/test
Compiling bootutil_misc.c
In file included from /usr/include/assert.h:35:0,
                 from bootutil_misc.c:20:
/usr/include/features.h:367:25: fatal error: sys/cdefs.h: No such file or
directory
compilation terminated.
Testing package @apache-mynewt-core/crypto/mbedtls/test
Compiling bootutil_misc.c
In file included from /usr/include/assert.h:35:0,
                 from bootutil_misc.c:20:
/usr/include/features.h:367:25: fatal error: sys/cdefs.h: No such file or
directory
compilation terminated.
Testing package @apache-mynewt-core/encoding/base64/test
Compiling bootutil_misc.c
In file included from /usr/include/assert.h:35:0,
                 from bootutil_misc.c:20:
/usr/include/features.h:367:25: fatal error: sys/cdefs.h: No such file or
directory
compilation terminated.
Testing package @apache-mynewt-core/encoding/json/test
Compiling bootutil_misc.c
In file included from /usr/include/assert.h:35:0,
                 from bootutil_misc.c:20:
/usr/include/features.h:367:25: fatal error: sys/cdefs.h: No such file or
directory
compilation terminated.
Testing package @apache-mynewt-core/fs/fcb/test
Compiling bootutil_misc.c
In file included from /usr/include/assert.h:35:0,
                 from bootutil_misc.c:20:
/usr/include/features.h:367:25: fatal error: sys/cdefs.h: No such file or
directory
compilation terminated.
Testing package @apache-mynewt-core/fs/nffs/test
Compiling bootutil_misc.c
In file included from /usr/include/assert.h:35:0,
                 from bootutil_misc.c:20:
/usr/include/features.h:367:25: fatal error: sys/cdefs.h: No such file or
directory
compilation terminated.
Testing package @apache-mynewt-core/kernel/os/test
Compiling bootutil_misc.c
In file included from /usr/include/assert.h:35:0,
                 from bootutil_misc.c:20:
/usr/include/features.h:367:25: fatal error: sys/cdefs.h: No such file or
directory
compilation terminated.
Testing package @apache-mynewt-core/net/ip/mn_socket/test
Compiling bootutil_misc.c
In file included from /usr/include/assert.h:35:0,
                 from bootutil_misc.c:20:
/usr/include/features.h:367:25: fatal error: sys/cdefs.h: No such file or
directory
compilation terminated.
Testing package @apache-mynewt-core/net/nimble/host/test
Compiling bootutil_misc.c
In file included from /usr/include/assert.h:35:0,
                 from bootutil_misc.c:20:
/usr/include/features.h:367:25: fatal error: sys/cdefs.h: No such file or
directory
compilation terminated.
Testing package @apache-mynewt-core/sys/config/test-fcb
Compiling bootutil_misc.c
In file included from /usr/include/assert.h:35:0,
                 from bootutil_misc.c:20:
/usr/include/features.h:367:25: fatal error: sys/cdefs.h: No such file or
directory
compilation terminated.
Testing package @apache-mynewt-core/sys/config/test-nffs
Compiling bootutil_misc.c
In file included from /usr/include/assert.h:35:0,
                 from bootutil_misc.c:20:
/usr/include/features.h:367:25: fatal error: sys/cdefs.h: No such file or
directory
compilation terminated.
Testing package @apache-mynewt-core/sys/flash_map/test
Compiling bootutil_misc.c
In file included from /usr/include/assert.h:35:0,
                 from bootutil_misc.c:20:
/usr/include/features.h:367:25: fatal error: sys/cdefs.h: No such file or
directory
compilation terminated.
Testing package @apache-mynewt-core/sys/log/test
Compiling bootutil_misc.c
In file included from /usr/include/assert.h:35:0,
                 from bootutil_misc.c:20:
/usr/include/features.h:367:25: fatal error: sys/cdefs.h: No such file or
directory
compilation terminated.
Testing package @apache-mynewt-core/util/cbmem/test
Compiling bootutil_misc.c
In file included from /usr/include/assert.h:35:0,
                 from bootutil_misc.c:20:
/usr/include/features.h:367:25: fatal error: sys/cdefs.h: No such file or
directory
compilation terminated.
Error: Test failure(s):
Passed tests: []
Failed tests: [boot/boot_serial/test boot/bootutil/test crypto/mbedtls/test
encoding/base64/test encoding/json/test fs/fcb/test fs/nffs/test
kernel/os/test net/ip/mn_socket/test net/nimble/host/test
sys/config/test-fcb sys/config/test-nffs sys/flash_map/test sys/log/test
util/cbmem/test]
exit status 1



2017-01-19 20:33 GMT+08:00 Fabio Utzig <[email protected]>:

> On Thu, Jan 19, 2017, at 06:55 AM, Li-Chun Ko wrote:
> >
> > In addition, I also found the conmend:
> >
> > newt test all
> >
> > did not work in Linux and resulted in compiling errors and somehow I feel
> > there is some issues with the  newt install commend.
>
> Hi, could you copy the error here?
>

Reply via email to