Hi Chris,

I switched to Linux by installing Ubuntu on the same virtual box and am not
using the Docker Container any more. I could try it again today and get
back to you later.

Previously the problem I encountered seemed to be I was compiling a
tutorial package that doesn't exist (as pointed out by aditi). I switched
to Linux after that due to I thought that was a problem of the Docker
Container.

Br,
Lichun

2017年1月20日 上午6:51,"Christopher Collins" <[email protected]>寫道:

> Hi Li-Chun,
>
> I'm glad you got it working, but now I'm confused.  The docker container
> should already use the correct version of gcc (multilib).  Furthermore,
> as I understand it, installing a different compiler on your machine
> should not have any effect on the docker container.  Are you still using
> the docker container?
>
> Thanks,
> Chris
>
> On Thu, Jan 19, 2017 at 11:55:52PM +0800, Li-Chun Ko wrote:
> > Hi Fabio,
> >
> > After I install gcc-multilib all problems solved!
> > I guess it is worthwhile to add a note for this in the tutorial.
> > Thank you very much.
> >
> > BTW, I am using Ubuntu 16.04.1 64 bit version.
> >
> > Br,
> > Lichun
> >
> >
> > 2017-01-19 22:44 GMT+08:00 Li-Chun Ko <[email protected]>:
> >
> > > 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