Return-Path: newt
tutorials pages, install it.
OS X ships with a C compiler called Clang. To build applications for the Mynewt simulator, you will need a different compiler: gcc.
+OS X ships with a C compiler called Clang. To build applications for the Mynewt simulator with, a different compiler is used as default: gcc.
$ brew install gcc ... ... @@ -383,6 +383,36 @@+
Check the gcc version you have installed (either using brew or previously installed). If the gcc version is 6.1 rather the expected 5.x by the default .yml configuration file, you have to modify the
+<mynewt-src-directory>/repos/apache-mynewt-core/compiler/sim/compiler.yml
file to change the defaultgcc v-5
defined there.Replace the lines shown highlighted below:
++ + +# OS X. +compiler.path.cc.DARWIN.OVERWRITE: "/usr/local/bin/gcc-5" +compiler.path.as.DARWIN.OVERWRITE: "/usr/local/bin/gcc-5 -x assembler-with-cpp" +compiler.path.objdump.DARWIN.OVERWRITE: "gobjdump" +compiler.path.objsize.DARWIN.OVERWRITE: "objsize" +compiler.path.objcopy.DARWIN.OVERWRITE: "gobjcopy" +with the following:
++ + +compiler.path.cc.DARWIN.OVERWRITE: "/usr/local/bin/gcc-6" +compiler.path.as.DARWIN.OVERWRITE: "/usr/local/bin/gcc-6 -x assembler-with-cpp” ++
In case you wish to use Clang, you can change your
+<mynewt-src-directory>/repos/apache-mynewt-core/compiler/sim/compiler.yml
to use Clang. Delete the gcc-5 DARWIN.OVERWRITE lines highlighted below.+ + +# OS X. +compiler.path.cc.DARWIN.OVERWRITE: "/usr/local/bin/gcc-5" +compiler.path.as.DARWIN.OVERWRITE: "/usr/local/bin/gcc-5 -x assembler-with-cpp" +compiler.path.objdump.DARWIN.OVERWRITE: "gobjdump" +compiler.path.objsize.DARWIN.OVERWRITE: "objsize" +compiler.path.objcopy.DARWIN.OVERWRITE: "gobjcopy" +Note: Both the newer gcc 6.x and Clang report a few warnings but they can be ignored.
+
Install gdb
$ brew install gdb ... http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/8c971757/develop/sitemap.xml ---------------------------------------------------------------------- diff --git a/develop/sitemap.xml b/develop/sitemap.xml index 16b74fd..82db895 100644 --- a/develop/sitemap.xml +++ b/develop/sitemap.xml @@ -4,7 +4,7 @@@@ -12,7 +12,7 @@ http://mynewt.apache.org/ -2016-08-09 +2016-08-22 daily @@ -20,7 +20,7 @@ http://mynewt.apache.org/quick-start/ -2016-08-09 +2016-08-22 daily @@ -28,7 +28,7 @@ http://mynewt.apache.org/about/ -2016-08-09 +2016-08-22 daily @@ -36,7 +36,7 @@ http://mynewt.apache.org/download/ -2016-08-09 +2016-08-22 daily @@ -44,7 +44,7 @@ http://mynewt.apache.org/community/ -2016-08-09 +2016-08-22 daily @@ -53,7 +53,7 @@ http://mynewt.apache.org/events/ -2016-08-09 +2016-08-22 daily @@ -65,7 +65,7 @@ http://mynewt.apache.org/os/introduction/ -2016-08-09 +2016-08-22 daily @@ -105,13 +105,13 @@ http://mynewt.apache.org/os/get_started/vocabulary/ -2016-08-09 +2016-08-22 daily http://mynewt.apache.org/faq/how_to_edit_docs/ -2016-08-09 +2016-08-22 daily http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/8c971757/latest/mkdocs/search_index.json ---------------------------------------------------------------------- diff --git a/latest/mkdocs/search_index.json b/latest/mkdocs/search_index.json index 8db138d..032fe80 100644 --- a/latest/mkdocs/search_index.json +++ b/latest/mkdocs/search_index.json @@ -182,7 +182,7 @@ }, { "location": "/os/get_started/native_tools/", - "text": "Installing Native Mynewt Tools\n\n\nThis page shows how to install tools for native Mynewt targets (simulated targets on your laptop/computer) without using a Docker container. In other words, it allows you to run Mynewt OS as a native application on your Mac or Linux machine to simulate a target and use the Newt tool running natively on your machine to manage the simulated target. It also allows you to run the test suites for all packages not requiring HW support. You may choose to do this instead of using the build toolchain and Newt tool available in a Docker container.\n\n\nThis page provides guidance for MAC and Linux. See the relevant sections below.\n\n\n\n\nSet up toolchain for Mac\n\n\nInstall Brew\n\n\nIf you have not already installed Homebrew from the \n\nnewt\n tutorials pages\n, install it. \n\n\n\n\nInstall gcc/libc\n\n\nOS X ships with a C compiler called Clang. To build applications for the Mynewt simulator, you will need a different compiler: gcc.\n\n\n$ brew install gcc\n...\n...\n==\n Summary\n\ud83c\udf7a /usr/local/Cellar/gcc/5.2.0: 1353 files, 248M\n\n\n\n\n\n\n\nInstall gdb\n\n\n$ brew install gdb\n...\n...\n==\n Summary\n\ud83c\udf7a /usr/local/Cellar/gdb/7.10.1: XXX files,YYM\n\n\n\n\n\n\n\nNOTE:\n When running a program with gdb, you may need to sign your gdb\nexecutable. \nThis page\n\nshows a recipe for gdb signing. Alternately you can skip this step and\ncontinue without the ability to debug your mynewt application on your PC.*\n\n\n\n\nSet up toolchain for Linux\n\n\nThe below procedure can be used to set up a Debian-based Linux system (e.g.,\nUbuntu). If you are running a different Linux distribution, you will need to\nsubstitute invocations of \napt-get\n in the below steps with the package manager\nthat your distro uses.\n\n\n\n\nInstall gcc/libc that will produce 32-bit executables:\n\n\n$ sudo apt-get install gcc-multilib libc6-i386\n\n\n\n\n\n\n\nInstall gdb\n\n\n$ sudo apt-get install gdb\n\nReadi ng package lists... Done\nBuilding dependency tree \nReading state information... Done\nSuggested packages:\n gdb-doc gdbserver\nThe following NEW packages will be installed:\n gdb\n...\nProcessing triggers for man-db (2.6.7.1-1ubuntu1) ...\nSetting up gdb (7.7.1-0ubuntu5~14.04.2) ...\n\n\n\n\n\n\n\nAt this point you have installed all the necessary software to build and test code on a simluator running on your Mac or Linux. Proceed to the \nCreate Your First Project\n section.", + "text": "Installing Native Mynewt Tools\n\n\nThis page shows how to install tools for native Mynewt targets (simulated targets on your laptop/computer) without using a Docker container. In other words, it allows you to run Mynewt OS as a native application on your Mac or Linux machine to simulate a target and use the Newt tool running natively on your machine to manage the simulated target. It also allows you to run the test suites for all packages not requiring HW support. You may choose to do this instead of using the build toolchain and Newt tool available in a Docker container.\n\n\nThis page provides guidance for MAC and Linux. See the relevant sections below.\n\n\n\n\nSet up toolchain for Mac\n\n\nInstall Brew\n\n\nIf you have not already installed Homebrew from the \n\nnewt\n tutorials pages\n, install it. \n\n\n\n\nInstall gcc/libc\n\n\nOS X ships with a C compiler called Clang. To build applications for the Mynewt simulator with, a different compiler is used as default: gcc.\n\n\n$ brew install gcc\n...\n...\n==\n Summary\n\ud83c\udf7a /usr/local/Cellar/gcc/5.2.0: 1353 files, 248M\n\n\n\n\n\n\n\nCheck the gcc version you have installed (either using brew or previously installed). If the gcc version is 6.1 rather the expected 5.x by the default .yml configuration file, you have to modify the \nmynewt-src-directory\n/repos/apache-mynewt-core/compiler/sim/compiler.yml\n file to change the default \ngcc v-5\n defined there.\n\n\nReplace the lines shown highlighted below:\n\n\n# OS X.\n\ncompiler.path.cc.DARWIN.OVERWRITE: \n/usr/local/bin/gcc-5\n\n\ncompiler.path.as.DARWIN.OVERWRITE: \n/usr/local/bin/gcc-5 -x assembler-with-cpp\n\n\ncompiler.path.objdump.DARWIN.OVERWRITE: \ngobjdump\n\ncompiler.path.objsize.DARWIN.OVERWRITE: \nobjsize\n\ncompiler.path.objcopy.DARWIN.OVERWRITE: \ngobjcopy\n\n\n\n\n\n\nwith the following:\n\n\ncompiler.path.cc.DARWIN.OVERWRITE: \n/usr/local/bin/gcc-6\n\ncompiler.path.as.DARWIN.OVERWRITE: \n/usr/local/bin/gcc-6 -x assembler-with-cpp\u201d\n\n\n\n\n\n\n\nIn case you wish to use Clang, you can change your \nmynewt-src-directory\n/repos/apache-mynewt-core/compiler/sim/compiler.yml\n to use Clang. Delete the gcc-5 DARWIN.OVERWRITE lines highlighted below.\n\n\n# OS X.\n\ncompiler.path.cc.DARWIN.OVERWRITE: \n/usr/local/bin/gcc-5\n\n\ncompiler.path.as.DARWIN.OVERWRITE: \n/usr/local/bin/gcc-5 -x assembler-with-cpp\n\n\ncompiler.path.objdump.DARWIN.OVERWRITE: \ngobjdump\n\ncompiler.path.objsize.DARWIN.OVERWRITE: \nobjsize\n\ncompiler.path.objcopy.DARWIN.OVERWRITE: \ngobjcopy\n\n\n\n\n\n\nNote:\n Both the newer gcc 6.x and Clang report a few warnings but they can be ignored.\n\n\n\n\nInstall gdb\n\n\n$ brew install gdb\n...\n...\n==\n Summary\n\ud83c\udf7a /usr/local/Cellar/gdb/7.10.1: XXX files,YYM\n\n\n\n\n\n\n\nNOTE:\n When running a program with gdb, you may need to sign your gdb\nexecutable. \nThis page\n\nshows a recipe for gdb signing. Alternately you can skip this step and\ncontinue witho ut the ability to debug your mynewt application on your PC.*\n\n\n\n\nSet up toolchain for Linux\n\n\nThe below procedure can be used to set up a Debian-based Linux system (e.g.,\nUbuntu). If you are running a different Linux distribution, you will need to\nsubstitute invocations of \napt-get\n in the below steps with the package manager\nthat your distro uses.\n\n\n\n\nInstall gcc/libc that will produce 32-bit executables:\n\n\n$ sudo apt-get install gcc-multilib libc6-i386\n\n\n\n\n\n\n\nInstall gdb\n\n\n$ sudo apt-get install gdb\n\nReading package lists... Done\nBuilding dependency tree \nReading state information... Done\nSuggested packages:\n gdb-doc gdbserver\nThe following NEW packages will be installed:\n gdb\n...\nProcessing triggers for man-db (2.6.7.1-1ubuntu1) ...\nSetting up gdb (7.7.1-0ubuntu5~14.04.2) ...\n\n\n\n\n\n\n\nAt this point you have installed all the necessary software to build and test code on a simluator running on your Mac or Linux. Proceed to t he \nCreate Your First Project\n section.", "title": "toc" }, { @@ -202,7 +202,7 @@ }, { "location": "/os/get_started/native_tools/#install-gcclibc", - "text": "OS X ships with a C compiler called Clang. To build applications for the Mynewt simulator, you will need a different compiler: gcc. $ brew install gcc\n...\n...\n== Summary\n\ud83c\udf7a /usr/local/Cellar/gcc/5.2.0: 1353 files, 248M", + "text": "OS X ships with a C compiler called Clang. To build applications for the Mynewt simulator with, a different compiler is used as default: gcc. $ brew install gcc\n...\n...\n== Summary\n\ud83c\udf7a /usr/local/Cellar/gcc/5.2.0: 1353 files, 248M Check the gcc version you have installed (either using brew or previously installed). If the gcc version is 6.1 rather the expected 5.x by the default .yml configuration file, you have to modify the mynewt-src-directory /repos/apache-mynewt-core/compiler/sim/compiler.yml file to change the default gcc v-5 defined there. Replace the lines shown highlighted below: # OS X. compiler.path.cc.DARWIN.OVERWRITE: /usr/local/bin/gcc-5 compiler.path.as.DARWIN.OVERWRITE: /usr/local/bin/gcc-5 -x assembler-with-cpp compiler.path.objdump.DARWIN.OVERWRITE: gobjdump \ncompiler.path.objsize.DARWIN.OVERWRITE: objsize \ncompiler.path.objcopy.DARWIN.OVERWRITE: gobjcopy with the following: compiler.path.cc.DARWIN.OVERWRITE: /usr/local/bin/gcc-6 \ncompiler.path.as.DARWIN.OVERWRITE: /usr/local/bin/gcc-6 -x assembler-with-cpp\u201d In case you wish to use Clang, you can change your mynewt-src-directory /repos/apache-mynewt-core/compiler/sim/compiler.yml to use Clang. Delete the gcc-5 DARWIN.OVERWRITE lines highlighted below. # OS X. compiler.path.cc.DARWIN.OVERWRITE: /usr/local/bin/gcc-5 compiler.path.as.DARWIN.OVERWRITE: /usr/local/bin/gcc-5 -x assembler-with-cpp compiler.path.objdump.DARWIN.OVERWRITE: gobjdump \ncompiler.path.objsize.DARWIN.OVERWRITE: objsize \ncompiler.path.objcopy.DARWIN.OVERWRITE: gobjcopy Note: Both the newer gcc 6.x and Clang report a few warnings but they can be ignored.", "title": "Install gcc/libc" }, { http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/8c971757/latest/os/get_started/native_tools/index.html ---------------------------------------------------------------------- diff --git a/latest/os/get_started/native_tools/index.html b/latest/os/get_started/native_tools/index.html index e419af4..d7a48ed 100644 --- a/latest/os/get_started/native_tools/index.html +++ b/latest/os/get_started/native_tools/index.html @@ -373,7 +373,7 @@ http://mynewt.apache.org/faq/answers/ -2016-08-09 +2016-08-22 daily newt
tutorials pages, install it.
Install gcc/libc
-OS X ships with a C compiler called Clang. To build applications for the Mynewt simulator, you will need a different compiler: gcc.
+OS X ships with a C compiler called Clang. To build applications for the Mynewt simulator with, a different compiler is used as default: gcc.
$ brew install gcc ... ... @@ -383,6 +383,36 @@+
Check the gcc version you have installed (either using brew or previously installed). If the gcc version is 6.1 rather the expected 5.x by the default .yml configuration file, you have to modify the
+<mynewt-src-directory>/repos/apache-mynewt-core/compiler/sim/compiler.yml
file to change the defaultgcc v-5
defined there.Replace the lines shown highlighted below:
++ + +# OS X. +compiler.path.cc.DARWIN.OVERWRITE: "/usr/local/bin/gcc-5" +compiler.path.as.DARWIN.OVERWRITE: "/usr/local/bin/gcc-5 -x assembler-with-cpp" +compiler.path.objdump.DARWIN.OVERWRITE: "gobjdump" +compiler.path.objsize.DARWIN.OVERWRITE: "objsize" +compiler.path.objcopy.DARWIN.OVERWRITE: "gobjcopy" +with the following:
++ + +compiler.path.cc.DARWIN.OVERWRITE: "/usr/local/bin/gcc-6" +compiler.path.as.DARWIN.OVERWRITE: "/usr/local/bin/gcc-6 -x assembler-with-cpp” ++
In case you wish to use Clang, you can change your
+<mynewt-src-directory>/repos/apache-mynewt-core/compiler/sim/compiler.yml
to use Clang. Delete the gcc-5 DARWIN.OVERWRITE lines highlighted below.+ + +# OS X. +compiler.path.cc.DARWIN.OVERWRITE: "/usr/local/bin/gcc-5" +compiler.path.as.DARWIN.OVERWRITE: "/usr/local/bin/gcc-5 -x assembler-with-cpp" +compiler.path.objdump.DARWIN.OVERWRITE: "gobjdump" +compiler.path.objsize.DARWIN.OVERWRITE: "objsize" +compiler.path.objcopy.DARWIN.OVERWRITE: "gobjcopy" +Note: Both the newer gcc 6.x and Clang report a few warnings but they can be ignored.
+
Install gdb
$ brew install gdb ... http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/8c971757/latest/sitemap.xml ---------------------------------------------------------------------- diff --git a/latest/sitemap.xml b/latest/sitemap.xml index 16b74fd..82db895 100644 --- a/latest/sitemap.xml +++ b/latest/sitemap.xml @@ -4,7 +4,7 @@@@ -12,7 +12,7 @@ http://mynewt.apache.org/ -2016-08-09 +2016-08-22 daily @@ -20,7 +20,7 @@ http://mynewt.apache.org/quick-start/ -2016-08-09 +2016-08-22 daily @@ -28,7 +28,7 @@ http://mynewt.apache.org/about/ -2016-08-09 +2016-08-22 daily @@ -36,7 +36,7 @@ http://mynewt.apache.org/download/ -2016-08-09 +2016-08-22 daily @@ -44,7 +44,7 @@ http://mynewt.apache.org/community/ -2016-08-09 +2016-08-22 daily @@ -53,7 +53,7 @@ http://mynewt.apache.org/events/ -2016-08-09 +2016-08-22 daily @@ -65,7 +65,7 @@ http://mynewt.apache.org/os/introduction/ -2016-08-09 +2016-08-22 daily @@ -105,13 +105,13 @@ http://mynewt.apache.org/os/get_started/vocabulary/ -2016-08-09 +2016-08-22 daily http://mynewt.apache.org/faq/how_to_edit_docs/ -2016-08-09 +2016-08-22 daily http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/8c971757/mkdocs/search_index.json ---------------------------------------------------------------------- diff --git a/mkdocs/search_index.json b/mkdocs/search_index.json index 8db138d..032fe80 100644 --- a/mkdocs/search_index.json +++ b/mkdocs/search_index.json @@ -182,7 +182,7 @@ }, { "location": "/os/get_started/native_tools/", - "text": "Installing Native Mynewt Tools\n\n\nThis page shows how to install tools for native Mynewt targets (simulated targets on your laptop/computer) without using a Docker container. In other words, it allows you to run Mynewt OS as a native application on your Mac or Linux machine to simulate a target and use the Newt tool running natively on your machine to manage the simulated target. It also allows you to run the test suites for all packages not requiring HW support. You may choose to do this instead of using the build toolchain and Newt tool available in a Docker container.\n\n\nThis page provides guidance for MAC and Linux. See the relevant sections below.\n\n\n\n\nSet up toolchain for Mac\n\n\nInstall Brew\n\n\nIf you have not already installed Homebrew from the \n\nnewt\n tutorials pages\n, install it. \n\n\n\n\nInstall gcc/libc\n\n\nOS X ships with a C compiler called Clang. To build applications for the Mynewt simulator, you will need a different compiler: gcc.\n\n\n$ brew install gcc\n...\n...\n==\n Summary\n\ud83c\udf7a /usr/local/Cellar/gcc/5.2.0: 1353 files, 248M\n\n\n\n\n\n\n\nInstall gdb\n\n\n$ brew install gdb\n...\n...\n==\n Summary\n\ud83c\udf7a /usr/local/Cellar/gdb/7.10.1: XXX files,YYM\n\n\n\n\n\n\n\nNOTE:\n When running a program with gdb, you may need to sign your gdb\nexecutable. \nThis page\n\nshows a recipe for gdb signing. Alternately you can skip this step and\ncontinue without the ability to debug your mynewt application on your PC.*\n\n\n\n\nSet up toolchain for Linux\n\n\nThe below procedure can be used to set up a Debian-based Linux system (e.g.,\nUbuntu). If you are running a different Linux distribution, you will need to\nsubstitute invocations of \napt-get\n in the below steps with the package manager\nthat your distro uses.\n\n\n\n\nInstall gcc/libc that will produce 32-bit executables:\n\n\n$ sudo apt-get install gcc-multilib libc6-i386\n\n\n\n\n\n\n\nInstall gdb\n\n\n$ sudo apt-get install gdb\n\nReadi ng package lists... Done\nBuilding dependency tree \nReading state information... Done\nSuggested packages:\n gdb-doc gdbserver\nThe following NEW packages will be installed:\n gdb\n...\nProcessing triggers for man-db (2.6.7.1-1ubuntu1) ...\nSetting up gdb (7.7.1-0ubuntu5~14.04.2) ...\n\n\n\n\n\n\n\nAt this point you have installed all the necessary software to build and test code on a simluator running on your Mac or Linux. Proceed to the \nCreate Your First Project\n section.", + "text": "Installing Native Mynewt Tools\n\n\nThis page shows how to install tools for native Mynewt targets (simulated targets on your laptop/computer) without using a Docker container. In other words, it allows you to run Mynewt OS as a native application on your Mac or Linux machine to simulate a target and use the Newt tool running natively on your machine to manage the simulated target. It also allows you to run the test suites for all packages not requiring HW support. You may choose to do this instead of using the build toolchain and Newt tool available in a Docker container.\n\n\nThis page provides guidance for MAC and Linux. See the relevant sections below.\n\n\n\n\nSet up toolchain for Mac\n\n\nInstall Brew\n\n\nIf you have not already installed Homebrew from the \n\nnewt\n tutorials pages\n, install it. \n\n\n\n\nInstall gcc/libc\n\n\nOS X ships with a C compiler called Clang. To build applications for the Mynewt simulator with, a different compiler is used as default: gcc.\n\n\n$ brew install gcc\n...\n...\n==\n Summary\n\ud83c\udf7a /usr/local/Cellar/gcc/5.2.0: 1353 files, 248M\n\n\n\n\n\n\n\nCheck the gcc version you have installed (either using brew or previously installed). If the gcc version is 6.1 rather the expected 5.x by the default .yml configuration file, you have to modify the \nmynewt-src-directory\n/repos/apache-mynewt-core/compiler/sim/compiler.yml\n file to change the default \ngcc v-5\n defined there.\n\n\nReplace the lines shown highlighted below:\n\n\n# OS X.\n\ncompiler.path.cc.DARWIN.OVERWRITE: \n/usr/local/bin/gcc-5\n\n\ncompiler.path.as.DARWIN.OVERWRITE: \n/usr/local/bin/gcc-5 -x assembler-with-cpp\n\n\ncompiler.path.objdump.DARWIN.OVERWRITE: \ngobjdump\n\ncompiler.path.objsize.DARWIN.OVERWRITE: \nobjsize\n\ncompiler.path.objcopy.DARWIN.OVERWRITE: \ngobjcopy\n\n\n\n\n\n\nwith the following:\n\n\ncompiler.path.cc.DARWIN.OVERWRITE: \n/usr/local/bin/gcc-6\n\ncompiler.path.as.DARWIN.OVERWRITE: \n/usr/local/bin/gcc-6 -x assembler-with-cpp\u201d\n\n\n\n\n\n\n\nIn case you wish to use Clang, you can change your \nmynewt-src-directory\n/repos/apache-mynewt-core/compiler/sim/compiler.yml\n to use Clang. Delete the gcc-5 DARWIN.OVERWRITE lines highlighted below.\n\n\n# OS X.\n\ncompiler.path.cc.DARWIN.OVERWRITE: \n/usr/local/bin/gcc-5\n\n\ncompiler.path.as.DARWIN.OVERWRITE: \n/usr/local/bin/gcc-5 -x assembler-with-cpp\n\n\ncompiler.path.objdump.DARWIN.OVERWRITE: \ngobjdump\n\ncompiler.path.objsize.DARWIN.OVERWRITE: \nobjsize\n\ncompiler.path.objcopy.DARWIN.OVERWRITE: \ngobjcopy\n\n\n\n\n\n\nNote:\n Both the newer gcc 6.x and Clang report a few warnings but they can be ignored.\n\n\n\n\nInstall gdb\n\n\n$ brew install gdb\n...\n...\n==\n Summary\n\ud83c\udf7a /usr/local/Cellar/gdb/7.10.1: XXX files,YYM\n\n\n\n\n\n\n\nNOTE:\n When running a program with gdb, you may need to sign your gdb\nexecutable. \nThis page\n\nshows a recipe for gdb signing. Alternately you can skip this step and\ncontinue witho ut the ability to debug your mynewt application on your PC.*\n\n\n\n\nSet up toolchain for Linux\n\n\nThe below procedure can be used to set up a Debian-based Linux system (e.g.,\nUbuntu). If you are running a different Linux distribution, you will need to\nsubstitute invocations of \napt-get\n in the below steps with the package manager\nthat your distro uses.\n\n\n\n\nInstall gcc/libc that will produce 32-bit executables:\n\n\n$ sudo apt-get install gcc-multilib libc6-i386\n\n\n\n\n\n\n\nInstall gdb\n\n\n$ sudo apt-get install gdb\n\nReading package lists... Done\nBuilding dependency tree \nReading state information... Done\nSuggested packages:\n gdb-doc gdbserver\nThe following NEW packages will be installed:\n gdb\n...\nProcessing triggers for man-db (2.6.7.1-1ubuntu1) ...\nSetting up gdb (7.7.1-0ubuntu5~14.04.2) ...\n\n\n\n\n\n\n\nAt this point you have installed all the necessary software to build and test code on a simluator running on your Mac or Linux. Proceed to t he \nCreate Your First Project\n section.", "title": "toc" }, { @@ -202,7 +202,7 @@ }, { "location": "/os/get_started/native_tools/#install-gcclibc", - "text": "OS X ships with a C compiler called Clang. To build applications for the Mynewt simulator, you will need a different compiler: gcc. $ brew install gcc\n...\n...\n== Summary\n\ud83c\udf7a /usr/local/Cellar/gcc/5.2.0: 1353 files, 248M", + "text": "OS X ships with a C compiler called Clang. To build applications for the Mynewt simulator with, a different compiler is used as default: gcc. $ brew install gcc\n...\n...\n== Summary\n\ud83c\udf7a /usr/local/Cellar/gcc/5.2.0: 1353 files, 248M Check the gcc version you have installed (either using brew or previously installed). If the gcc version is 6.1 rather the expected 5.x by the default .yml configuration file, you have to modify the mynewt-src-directory /repos/apache-mynewt-core/compiler/sim/compiler.yml file to change the default gcc v-5 defined there. Replace the lines shown highlighted below: # OS X. compiler.path.cc.DARWIN.OVERWRITE: /usr/local/bin/gcc-5 compiler.path.as.DARWIN.OVERWRITE: /usr/local/bin/gcc-5 -x assembler-with-cpp compiler.path.objdump.DARWIN.OVERWRITE: gobjdump \ncompiler.path.objsize.DARWIN.OVERWRITE: objsize \ncompiler.path.objcopy.DARWIN.OVERWRITE: gobjcopy with the following: compiler.path.cc.DARWIN.OVERWRITE: /usr/local/bin/gcc-6 \ncompiler.path.as.DARWIN.OVERWRITE: /usr/local/bin/gcc-6 -x assembler-with-cpp\u201d In case you wish to use Clang, you can change your mynewt-src-directory /repos/apache-mynewt-core/compiler/sim/compiler.yml to use Clang. Delete the gcc-5 DARWIN.OVERWRITE lines highlighted below. # OS X. compiler.path.cc.DARWIN.OVERWRITE: /usr/local/bin/gcc-5 compiler.path.as.DARWIN.OVERWRITE: /usr/local/bin/gcc-5 -x assembler-with-cpp compiler.path.objdump.DARWIN.OVERWRITE: gobjdump \ncompiler.path.objsize.DARWIN.OVERWRITE: objsize \ncompiler.path.objcopy.DARWIN.OVERWRITE: gobjcopy Note: Both the newer gcc 6.x and Clang report a few warnings but they can be ignored.", "title": "Install gcc/libc" }, { http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/8c971757/os/get_started/native_tools/index.html ---------------------------------------------------------------------- diff --git a/os/get_started/native_tools/index.html b/os/get_started/native_tools/index.html index b791e0c..1017118 100644 --- a/os/get_started/native_tools/index.html +++ b/os/get_started/native_tools/index.html @@ -373,7 +373,7 @@ http://mynewt.apache.org/faq/answers/ -2016-08-09 +2016-08-22 daily newt
tutorials pages, install it.
Install gcc/libc
-OS X ships with a C compiler called Clang. To build applications for the Mynewt simulator, you will need a different compiler: gcc.
+OS X ships with a C compiler called Clang. To build applications for the Mynewt simulator with, a different compiler is used as default: gcc.
$ brew install gcc ... ... @@ -383,6 +383,36 @@+
Check the gcc version you have installed (either using brew or previously installed). If the gcc version is 6.1 rather the expected 5.x by the default .yml configuration file, you have to modify the
+<mynewt-src-directory>/repos/apache-mynewt-core/compiler/sim/compiler.yml
file to change the defaultgcc v-5
defined there.Replace the lines shown highlighted below:
++ + +# OS X. +compiler.path.cc.DARWIN.OVERWRITE: "/usr/local/bin/gcc-5" +compiler.path.as.DARWIN.OVERWRITE: "/usr/local/bin/gcc-5 -x assembler-with-cpp" +compiler.path.objdump.DARWIN.OVERWRITE: "gobjdump" +compiler.path.objsize.DARWIN.OVERWRITE: "objsize" +compiler.path.objcopy.DARWIN.OVERWRITE: "gobjcopy" +with the following:
++ + +compiler.path.cc.DARWIN.OVERWRITE: "/usr/local/bin/gcc-6" +compiler.path.as.DARWIN.OVERWRITE: "/usr/local/bin/gcc-6 -x assembler-with-cpp” ++
In case you wish to use Clang, you can change your
+<mynewt-src-directory>/repos/apache-mynewt-core/compiler/sim/compiler.yml
to use Clang. Delete the gcc-5 DARWIN.OVERWRITE lines highlighted below.+ + +# OS X. +compiler.path.cc.DARWIN.OVERWRITE: "/usr/local/bin/gcc-5" +compiler.path.as.DARWIN.OVERWRITE: "/usr/local/bin/gcc-5 -x assembler-with-cpp" +compiler.path.objdump.DARWIN.OVERWRITE: "gobjdump" +compiler.path.objsize.DARWIN.OVERWRITE: "objsize" +compiler.path.objcopy.DARWIN.OVERWRITE: "gobjcopy" +Note: Both the newer gcc 6.x and Clang report a few warnings but they can be ignored.
+
Install gdb
$ brew install gdb ... http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/8c971757/sitemap.xml ---------------------------------------------------------------------- diff --git a/sitemap.xml b/sitemap.xml index 16b74fd..82db895 100644 --- a/sitemap.xml +++ b/sitemap.xml @@ -4,7 +4,7 @@@@ -12,7 +12,7 @@ http://mynewt.apache.org/ -2016-08-09 +2016-08-22 daily @@ -20,7 +20,7 @@ http://mynewt.apache.org/quick-start/ -2016-08-09 +2016-08-22 daily @@ -28,7 +28,7 @@ http://mynewt.apache.org/about/ -2016-08-09 +2016-08-22 daily @@ -36,7 +36,7 @@ http://mynewt.apache.org/download/ -2016-08-09 +2016-08-22 daily @@ -44,7 +44,7 @@ http://mynewt.apache.org/community/ -2016-08-09 +2016-08-22 daily @@ -53,7 +53,7 @@ http://mynewt.apache.org/events/ -2016-08-09 +2016-08-22 daily @@ -65,7 +65,7 @@ http://mynewt.apache.org/os/introduction/ -2016-08-09 +2016-08-22 daily @@ -105,13 +105,13 @@ http://mynewt.apache.org/os/get_started/vocabulary/ -2016-08-09 +2016-08-22 daily http://mynewt.apache.org/faq/how_to_edit_docs/ -2016-08-09 +2016-08-22 daily http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/8c971757/v0_9_0/mkdocs/search_index.json ---------------------------------------------------------------------- diff --git a/v0_9_0/mkdocs/search_index.json b/v0_9_0/mkdocs/search_index.json index 8db138d..032fe80 100644 --- a/v0_9_0/mkdocs/search_index.json +++ b/v0_9_0/mkdocs/search_index.json @@ -182,7 +182,7 @@ }, { "location": "/os/get_started/native_tools/", - "text": "Installing Native Mynewt Tools\n\n\nThis page shows how to install tools for native Mynewt targets (simulated targets on your laptop/computer) without using a Docker container. In other words, it allows you to run Mynewt OS as a native application on your Mac or Linux machine to simulate a target and use the Newt tool running natively on your machine to manage the simulated target. It also allows you to run the test suites for all packages not requiring HW support. You may choose to do this instead of using the build toolchain and Newt tool available in a Docker container.\n\n\nThis page provides guidance for MAC and Linux. See the relevant sections below.\n\n\n\n\nSet up toolchain for Mac\n\n\nInstall Brew\n\n\nIf you have not already installed Homebrew from the \n\nnewt\n tutorials pages\n, install it. \n\n\n\n\nInstall gcc/libc\n\n\nOS X ships with a C compiler called Clang. To build applications for the Mynewt simulator, you will need a different compiler: gcc.\n\n\n$ brew install gcc\n...\n...\n==\n Summary\n\ud83c\udf7a /usr/local/Cellar/gcc/5.2.0: 1353 files, 248M\n\n\n\n\n\n\n\nInstall gdb\n\n\n$ brew install gdb\n...\n...\n==\n Summary\n\ud83c\udf7a /usr/local/Cellar/gdb/7.10.1: XXX files,YYM\n\n\n\n\n\n\n\nNOTE:\n When running a program with gdb, you may need to sign your gdb\nexecutable. \nThis page\n\nshows a recipe for gdb signing. Alternately you can skip this step and\ncontinue without the ability to debug your mynewt application on your PC.*\n\n\n\n\nSet up toolchain for Linux\n\n\nThe below procedure can be used to set up a Debian-based Linux system (e.g.,\nUbuntu). If you are running a different Linux distribution, you will need to\nsubstitute invocations of \napt-get\n in the below steps with the package manager\nthat your distro uses.\n\n\n\n\nInstall gcc/libc that will produce 32-bit executables:\n\n\n$ sudo apt-get install gcc-multilib libc6-i386\n\n\n\n\n\n\n\nInstall gdb\n\n\n$ sudo apt-get install gdb\n\nReadi ng package lists... Done\nBuilding dependency tree \nReading state information... Done\nSuggested packages:\n gdb-doc gdbserver\nThe following NEW packages will be installed:\n gdb\n...\nProcessing triggers for man-db (2.6.7.1-1ubuntu1) ...\nSetting up gdb (7.7.1-0ubuntu5~14.04.2) ...\n\n\n\n\n\n\n\nAt this point you have installed all the necessary software to build and test code on a simluator running on your Mac or Linux. Proceed to the \nCreate Your First Project\n section.", + "text": "Installing Native Mynewt Tools\n\n\nThis page shows how to install tools for native Mynewt targets (simulated targets on your laptop/computer) without using a Docker container. In other words, it allows you to run Mynewt OS as a native application on your Mac or Linux machine to simulate a target and use the Newt tool running natively on your machine to manage the simulated target. It also allows you to run the test suites for all packages not requiring HW support. You may choose to do this instead of using the build toolchain and Newt tool available in a Docker container.\n\n\nThis page provides guidance for MAC and Linux. See the relevant sections below.\n\n\n\n\nSet up toolchain for Mac\n\n\nInstall Brew\n\n\nIf you have not already installed Homebrew from the \n\nnewt\n tutorials pages\n, install it. \n\n\n\n\nInstall gcc/libc\n\n\nOS X ships with a C compiler called Clang. To build applications for the Mynewt simulator with, a different compiler is used as default: gcc.\n\n\n$ brew install gcc\n...\n...\n==\n Summary\n\ud83c\udf7a /usr/local/Cellar/gcc/5.2.0: 1353 files, 248M\n\n\n\n\n\n\n\nCheck the gcc version you have installed (either using brew or previously installed). If the gcc version is 6.1 rather the expected 5.x by the default .yml configuration file, you have to modify the \nmynewt-src-directory\n/repos/apache-mynewt-core/compiler/sim/compiler.yml\n file to change the default \ngcc v-5\n defined there.\n\n\nReplace the lines shown highlighted below:\n\n\n# OS X.\n\ncompiler.path.cc.DARWIN.OVERWRITE: \n/usr/local/bin/gcc-5\n\n\ncompiler.path.as.DARWIN.OVERWRITE: \n/usr/local/bin/gcc-5 -x assembler-with-cpp\n\n\ncompiler.path.objdump.DARWIN.OVERWRITE: \ngobjdump\n\ncompiler.path.objsize.DARWIN.OVERWRITE: \nobjsize\n\ncompiler.path.objcopy.DARWIN.OVERWRITE: \ngobjcopy\n\n\n\n\n\n\nwith the following:\n\n\ncompiler.path.cc.DARWIN.OVERWRITE: \n/usr/local/bin/gcc-6\n\ncompiler.path.as.DARWIN.OVERWRITE: \n/usr/local/bin/gcc-6 -x assembler-with-cpp\u201d\n\n\n\n\n\n\n\nIn case you wish to use Clang, you can change your \nmynewt-src-directory\n/repos/apache-mynewt-core/compiler/sim/compiler.yml\n to use Clang. Delete the gcc-5 DARWIN.OVERWRITE lines highlighted below.\n\n\n# OS X.\n\ncompiler.path.cc.DARWIN.OVERWRITE: \n/usr/local/bin/gcc-5\n\n\ncompiler.path.as.DARWIN.OVERWRITE: \n/usr/local/bin/gcc-5 -x assembler-with-cpp\n\n\ncompiler.path.objdump.DARWIN.OVERWRITE: \ngobjdump\n\ncompiler.path.objsize.DARWIN.OVERWRITE: \nobjsize\n\ncompiler.path.objcopy.DARWIN.OVERWRITE: \ngobjcopy\n\n\n\n\n\n\nNote:\n Both the newer gcc 6.x and Clang report a few warnings but they can be ignored.\n\n\n\n\nInstall gdb\n\n\n$ brew install gdb\n...\n...\n==\n Summary\n\ud83c\udf7a /usr/local/Cellar/gdb/7.10.1: XXX files,YYM\n\n\n\n\n\n\n\nNOTE:\n When running a program with gdb, you may need to sign your gdb\nexecutable. \nThis page\n\nshows a recipe for gdb signing. Alternately you can skip this step and\ncontinue witho ut the ability to debug your mynewt application on your PC.*\n\n\n\n\nSet up toolchain for Linux\n\n\nThe below procedure can be used to set up a Debian-based Linux system (e.g.,\nUbuntu). If you are running a different Linux distribution, you will need to\nsubstitute invocations of \napt-get\n in the below steps with the package manager\nthat your distro uses.\n\n\n\n\nInstall gcc/libc that will produce 32-bit executables:\n\n\n$ sudo apt-get install gcc-multilib libc6-i386\n\n\n\n\n\n\n\nInstall gdb\n\n\n$ sudo apt-get install gdb\n\nReading package lists... Done\nBuilding dependency tree \nReading state information... Done\nSuggested packages:\n gdb-doc gdbserver\nThe following NEW packages will be installed:\n gdb\n...\nProcessing triggers for man-db (2.6.7.1-1ubuntu1) ...\nSetting up gdb (7.7.1-0ubuntu5~14.04.2) ...\n\n\n\n\n\n\n\nAt this point you have installed all the necessary software to build and test code on a simluator running on your Mac or Linux. Proceed to t he \nCreate Your First Project\n section.", "title": "toc" }, { @@ -202,7 +202,7 @@ }, { "location": "/os/get_started/native_tools/#install-gcclibc", - "text": "OS X ships with a C compiler called Clang. To build applications for the Mynewt simulator, you will need a different compiler: gcc. $ brew install gcc\n...\n...\n== Summary\n\ud83c\udf7a /usr/local/Cellar/gcc/5.2.0: 1353 files, 248M", + "text": "OS X ships with a C compiler called Clang. To build applications for the Mynewt simulator with, a different compiler is used as default: gcc. $ brew install gcc\n...\n...\n== Summary\n\ud83c\udf7a /usr/local/Cellar/gcc/5.2.0: 1353 files, 248M Check the gcc version you have installed (either using brew or previously installed). If the gcc version is 6.1 rather the expected 5.x by the default .yml configuration file, you have to modify the mynewt-src-directory /repos/apache-mynewt-core/compiler/sim/compiler.yml file to change the default gcc v-5 defined there. Replace the lines shown highlighted below: # OS X. compiler.path.cc.DARWIN.OVERWRITE: /usr/local/bin/gcc-5 compiler.path.as.DARWIN.OVERWRITE: /usr/local/bin/gcc-5 -x assembler-with-cpp compiler.path.objdump.DARWIN.OVERWRITE: gobjdump \ncompiler.path.objsize.DARWIN.OVERWRITE: objsize \ncompiler.path.objcopy.DARWIN.OVERWRITE: gobjcopy with the following: compiler.path.cc.DARWIN.OVERWRITE: /usr/local/bin/gcc-6 \ncompiler.path.as.DARWIN.OVERWRITE: /usr/local/bin/gcc-6 -x assembler-with-cpp\u201d In case you wish to use Clang, you can change your mynewt-src-directory /repos/apache-mynewt-core/compiler/sim/compiler.yml to use Clang. Delete the gcc-5 DARWIN.OVERWRITE lines highlighted below. # OS X. compiler.path.cc.DARWIN.OVERWRITE: /usr/local/bin/gcc-5 compiler.path.as.DARWIN.OVERWRITE: /usr/local/bin/gcc-5 -x assembler-with-cpp compiler.path.objdump.DARWIN.OVERWRITE: gobjdump \ncompiler.path.objsize.DARWIN.OVERWRITE: objsize \ncompiler.path.objcopy.DARWIN.OVERWRITE: gobjcopy Note: Both the newer gcc 6.x and Clang report a few warnings but they can be ignored.", "title": "Install gcc/libc" }, { http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/8c971757/v0_9_0/os/get_started/native_tools/index.html ---------------------------------------------------------------------- diff --git a/v0_9_0/os/get_started/native_tools/index.html b/v0_9_0/os/get_started/native_tools/index.html index b791e0c..1017118 100644 --- a/v0_9_0/os/get_started/native_tools/index.html +++ b/v0_9_0/os/get_started/native_tools/index.html @@ -373,7 +373,7 @@ http://mynewt.apache.org/faq/answers/ -2016-08-09 +2016-08-22 daily newt
tutorials pages, install it.
Install gcc/libc
-OS X ships with a C compiler called Clang. To build applications for the Mynewt simulator, you will need a different compiler: gcc.
+OS X ships with a C compiler called Clang. To build applications for the Mynewt simulator with, a different compiler is used as default: gcc.
$ brew install gcc ... ... @@ -383,6 +383,36 @@+
Check the gcc version you have installed (either using brew or previously installed). If the gcc version is 6.1 rather the expected 5.x by the default .yml configuration file, you have to modify the
+<mynewt-src-directory>/repos/apache-mynewt-core/compiler/sim/compiler.yml
file to change the defaultgcc v-5
defined there.Replace the lines shown highlighted below:
++ + +# OS X. +compiler.path.cc.DARWIN.OVERWRITE: "/usr/local/bin/gcc-5" +compiler.path.as.DARWIN.OVERWRITE: "/usr/local/bin/gcc-5 -x assembler-with-cpp" +compiler.path.objdump.DARWIN.OVERWRITE: "gobjdump" +compiler.path.objsize.DARWIN.OVERWRITE: "objsize" +compiler.path.objcopy.DARWIN.OVERWRITE: "gobjcopy" +with the following:
++ + +compiler.path.cc.DARWIN.OVERWRITE: "/usr/local/bin/gcc-6" +compiler.path.as.DARWIN.OVERWRITE: "/usr/local/bin/gcc-6 -x assembler-with-cpp” ++
In case you wish to use Clang, you can change your
+<mynewt-src-directory>/repos/apache-mynewt-core/compiler/sim/compiler.yml
to use Clang. Delete the gcc-5 DARWIN.OVERWRITE lines highlighted below.+ + +# OS X. +compiler.path.cc.DARWIN.OVERWRITE: "/usr/local/bin/gcc-5" +compiler.path.as.DARWIN.OVERWRITE: "/usr/local/bin/gcc-5 -x assembler-with-cpp" +compiler.path.objdump.DARWIN.OVERWRITE: "gobjdump" +compiler.path.objsize.DARWIN.OVERWRITE: "objsize" +compiler.path.objcopy.DARWIN.OVERWRITE: "gobjcopy" +Note: Both the newer gcc 6.x and Clang report a few warnings but they can be ignored.
+
Install gdb
$ brew install gdb ... http://git-wip-us.apache.org/repos/asf/incubator-mynewt-site/blob/8c971757/v0_9_0/sitemap.xml ---------------------------------------------------------------------- diff --git a/v0_9_0/sitemap.xml b/v0_9_0/sitemap.xml index 16b74fd..82db895 100644 --- a/v0_9_0/sitemap.xml +++ b/v0_9_0/sitemap.xml @@ -4,7 +4,7 @@@@ -12,7 +12,7 @@ http://mynewt.apache.org/ -2016-08-09 +2016-08-22 daily @@ -20,7 +20,7 @@ http://mynewt.apache.org/quick-start/ -2016-08-09 +2016-08-22 daily @@ -28,7 +28,7 @@ http://mynewt.apache.org/about/ -2016-08-09 +2016-08-22 daily @@ -36,7 +36,7 @@ http://mynewt.apache.org/download/ -2016-08-09 +2016-08-22 daily @@ -44,7 +44,7 @@ http://mynewt.apache.org/community/ -2016-08-09 +2016-08-22 daily @@ -53,7 +53,7 @@ http://mynewt.apache.org/events/ -2016-08-09 +2016-08-22 daily @@ -65,7 +65,7 @@ http://mynewt.apache.org/os/introduction/ -2016-08-09 +2016-08-22 daily @@ -105,13 +105,13 @@ http://mynewt.apache.org/os/get_started/vocabulary/ -2016-08-09 +2016-08-22 daily http://mynewt.apache.org/faq/how_to_edit_docs/ -2016-08-09 +2016-08-22 daily http://mynewt.apache.org/faq/answers/ -2016-08-09 +2016-08-22 daily