Skip to content
This repository has been archived by the owner on May 24, 2020. It is now read-only.

Building on a Mac #15

Closed
torntrousers opened this issue Sep 19, 2018 · 34 comments
Closed

Building on a Mac #15

torntrousers opened this issue Sep 19, 2018 · 34 comments

Comments

@torntrousers
Copy link

torntrousers commented Sep 19, 2018

I run esp-rs/build.sh --install and get the following fail:

esp-rs/build.sh --install
info: component 'rust-std' for target 'i686-unknown-linux-gnu' is up to date
Building mrustc/minicargo@b5b7089
make: Nothing to be done for `RUSTCSRC'.
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f Makefile all
[CXX] -o .obj/main.o
In file included from src/main.cpp:25:
In file included from src/trans/main_bindings.hpp:10:
src/trans/trans_list.hpp:62:1: warning: 'TransList' defined as a class here but previously declared as a struct [-Wmismatched-tags]
class TransList
^
src/mir/main_bindings.hpp:14:1: note: did you mean class here?
struct TransList;
^~~~~~
class
src/main.cpp:72:3: error: "Unable to detect a suitable default target"
# error "Unable to detect a suitable default target"
  ^
src/main.cpp:181:30: error: use of undeclared identifier 'DEFAULT_TARGET_NAME'
    ::std::string   target = DEFAULT_TARGET_NAME;
                             ^
1 warning and 2 errors generated.
make[1]: *** [.obj/main.o] Error 1
make: *** [bin/mrustc] Error 2
C02V83QTG8WN-478:rust-esp8266 anthonyelder$

Any ideas on how to fix or debug this?

@torntrousers
Copy link
Author

torntrousers commented Sep 19, 2018

Adding define DEFAULT_TARGET_NAME "x86_64-apple-macosx" in src/main.cpp got past that but hit two further errors, fixed with:

git diff src/expand/proc_macro.cpp
diff --git a/src/expand/proc_macro.cpp b/src/expand/proc_macro.cpp
index d34a91a5..0c29a215 100644
--- a/src/expand/proc_macro.cpp
+++ b/src/expand/proc_macro.cpp
@@ -27,6 +27,7 @@
 #if defined(__OpenBSD__) || defined(__NetBSD__)
 extern char **environ;
 #endif
+extern char **environ;

 #define NEWNODE(_ty, ...)   ::AST::ExprNodeP(new ::AST::ExprNode##_ty(__VA_ARGS__))

and

git diff Makefile
diff --git a/Makefile b/Makefile
index 18415510..2b734aa3 100644
--- a/Makefile
+++ b/Makefile
@@ -308,9 +308,9 @@ $(BIN): $(OBJ) tools/bin/common_lib.a
        $V$(CXX) -o $@ $(LINKFLAGS) $(OBJ) tools/bin/common_lib.a $(LIBS)
 ifeq ($(OS),Windows_NT)
 else
-       objcopy --only-keep-debug $(BIN) $(BIN).debug
-       objcopy --add-gnu-debuglink=$(BIN).debug $(BIN)
-       strip $(BIN)
+       gobjcopy --only-keep-debug $(BIN) $(BIN).debug
+       gobjcopy --add-gnu-debuglink=$(BIN).debug $(BIN)
+       # strip $(BIN)
 endif

but then it fails with:

esp-rs/build.sh --install
info: component 'rust-std' for target 'i686-unknown-linux-gnu' is up to date
Building mrustc/minicargo@b5b7089
make: Nothing to be done for `RUSTCSRC'.
/Applications/Xcode.app/Contents/Developer/usr/bin/make -f Makefile all
[CXX] -o .obj/expand/proc_macro.o
[CXX] -o bin/mrustc
gobjcopy --only-keep-debug bin/mrustc bin/mrustc.debug
gobjcopy --add-gnu-debuglink=bin/mrustc.debug bin/mrustc
# strip bin/mrustc
test -e bin/mrustc
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C tools/minicargo/
make[1]: Nothing to be done for `all'.
test -e tools/bin/minicargo
tools/bin/minicargo rustc-1.19.0-src/src/libstd --script-overrides script-overrides/stable-1.19.0-linux/ --output-dir output/
EXCEPTION: Empty path being constructed
make: *** [output/libstd.hir] Error 1

Trying:

C02V83QTG8WN-478:mrustc anthonyelder$ pwd
/Users/anthonyelder/.esp-rs/mrustc
C02V83QTG8WN-478:mrustc anthonyelder$ bin/mrustc rustc-1.19.0-src/src/libcore/lib.rs --crate-name core --crate-type rlib -g --cfg debug_assertions -O -o output/libcore.hir -L output
Killed: 9

Actually, simply bin/mrustc gives Killed: 9.

Any ideas how to fix that?

@torntrousers torntrousers changed the title src/main.cpp:72:3: error: "Unable to detect a suitable default target" Building on a Mac Sep 19, 2018
@arve0
Copy link

arve0 commented Dec 11, 2018

Using the Dockerfile seems to work:

git clone https://github.com/emosenkis/esp-rs
cd esp-rs
docker build .

@torntrousers
Copy link
Author

I gave the Dockerfile a try, it seemed to be going well and spent ages compiling stuff then eventually failed with:

...
Run Build- DEBUG: - rustdoc has 7 deps remaining
Run Build- DEBUG: Building output/rustc-build/librustc.hir - Missing
BUILDING rustc from rustc v0.0.0 with features []
Run Build- Calling /root/.esp-rs/mrustc/bin/mrustc rustc-1.19.0-src/src/librustc/lib.rs --crate-name rustc --crate-type rlib -g --cfg debug_assertions -O -o output/rustc-build/librustc.hir -L output/rustc-build --extern arena=output/rustc-build/libarena.hir --extern fmt_macros=output/rustc-build/libfmt_macros.hir --extern graphviz=output/rustc-build/libgraphviz.hir --extern log=output/rustc-build/liblog-0_3_7.hir --extern owning_ref=output/rustc-build/libowning_ref-0_3_3.hir --extern rustc_back=output/rustc-build/librustc_back.hir --extern rustc_bitflags=output/rustc-build/librustc_bitflags.hir --extern rustc_const_math=output/rustc-build/librustc_const_math.hir --extern rustc_data_structures=output/rustc-build/librustc_data_structures.hir --extern rustc_errors=output/rustc-build/librustc_errors.hir --extern serialize=output/rustc-build/libserialize.hir --extern syntax=output/rustc-build/libsyntax.hir --extern syntax_pos=output/rustc-build/libsyntax_pos.hir -L output
Run Build- DEBUG: Environment { OUT_DIR=/root/.esp-rs/mrustc/output/rustc-build/build_rustc CARGO_MANIFEST_DIR=/root/.esp-rs/mrustc/rustc-1.19.0-src/src/librustc CARGO_PKG_VERSION=0.0.0 CARGO_PKG_VERSION_MAJOR=0 CARGO_PKG_VERSION_MINOR=0 CARGO_PKG_VERSION_PATCH=0 }
BUILD FAILED
Run Build- DEBUG: Compiler was terminated with signal 9
Run Build- DEBUG: See output/rustc-build/librustc.hir_dbg.txt for the compiler output
minicargo.mk:83: recipe for target 'output/rustc' failed
make: *** [output/rustc] Error 1
The command '/bin/sh -c ./build.sh --install' returned a non-zero code: 1

I can't find output/rustc-build/librustc.hir_dbg.txt (docker newbie), where is that?

@arve0
Copy link

arve0 commented Dec 11, 2018

Probably inside the docker file system. Normally you can get a terminal inside the image with

docker exec container-name bash

, but unsure if this holds for crashed images. You can list your containers with docker ps -a to get the container-name.

@torntrousers
Copy link
Author

docker ps -a
CONTAINER ID        IMAGE               COMMAND                  CREATED             STATUS                   PORTS               NAMES
d877e27ad42a        3283fc1eaec7        "/bin/sh -c './bui..."   3 days ago          Exited (1) 2 hours ago                       objective_hypatia
$ docker exec d877e27ad42a bash
Error response from daemon: Container d877e27ad42aa0205ab6e64d5e3edc7905e768ddd82eaf0f3e7381ad8166b501 is not running

@arve0
Copy link

arve0 commented Dec 11, 2018

You might try docker run -i -t --entrypoint /bin/bash container-name.

Anyhow, on first attempt, docker build failed with out of space, fixed in Docker preferences → Disk.

Second attempt went well:

tool-esptool @ 1.413.0 has been successfully installed!
The platform 'espressif8266' has been successfully installed!
The rest of packages will be installed automatically depending on your build environment.
Removing intermediate container 6b3522c2d389
 ---> ac39d4399729
Successfully built ac39d4399729

Docker image size is ~20GB:

$ docker images
REPOSITORY                                          TAG                 IMAGE ID            CREATED             SIZE
<none>                                              <none>              ac39d4399729        26 minutes ago      19.4GB

@emosenkis
Copy link
Owner

Anything here that you might be able to add to the Dockerfile, README, or build.sh to help others have an easier time with this? I'd be happy to get a pull request.

@emosenkis
Copy link
Owner

@antonok-edm who initially contributed the Dockerfile

@antonok-edm
Copy link
Contributor

It's hard to tell without confirmation from @torntrousers but that looks to me like it could have been a disk space error. If so, adding information about the required disk space would certainly be useful.

@torntrousers
Copy link
Author

I can't see how to change the disk space. In the Docker Preferences, in the Advanced tab where I can set CPUs and memory, it shows the location of the disk image but mentions nothing about changing the size (looking in Mac Finder its 38.21GB).

@antonok-edm
Copy link
Contributor

@torntrousers Docker doesn't impose any artificial limits on a container's available disk space, so check that you still have space on the drive your Docker images are located on.

@arve0
Copy link

arve0 commented Dec 12, 2018

Docker doesn't impose any artificial limits on a container's available disk space

That is correct for linux, but not for Mac, at least not for version 18.06:

image

@torntrousers
Copy link
Author

I had an older version of Docker, newer versions for a Mac do have a disk option, so I've updated to Version 2.0.0.0-mac82 (29268). I've set the disk size to 64.0GB which is the max it would let me. Then I deleted all the old docker images with docker system prune -a and that ended with Total reclaimed space: 30.13GB. Then built this, with docker build . and that trundled away for a couple of hours and failed, the end of the log is:

...
Run Build- DEBUG: - rustdoc has 7 deps remaining
Run Build- DEBUG: Building output/rustc-build/librustc.hir - Missing
BUILDING rustc from rustc v0.0.0 with features []
Run Build- Calling /root/.esp-rs/mrustc/bin/mrustc rustc-1.19.0-src/src/librustc/lib.rs --crate-name rustc --crate-type rlib -g --cfg debug_assertions -O -o output/rustc-build/librustc.hir -L output/rustc-build --extern arena=output/rustc-build/libarena.hir --extern fmt_macros=output/rustc-build/libfmt_macros.hir --extern graphviz=output/rustc-build/libgraphviz.hir --extern log=output/rustc-build/liblog-0_3_7.hir --extern owning_ref=output/rustc-build/libowning_ref-0_3_3.hir --extern rustc_back=output/rustc-build/librustc_back.hir --extern rustc_bitflags=output/rustc-build/librustc_bitflags.hir --extern rustc_const_math=output/rustc-build/librustc_const_math.hir --extern rustc_data_structures=output/rustc-build/librustc_data_structures.hir --extern rustc_errors=output/rustc-build/librustc_errors.hir --extern serialize=output/rustc-build/libserialize.hir --extern syntax=output/rustc-build/libsyntax.hir --extern syntax_pos=output/rustc-build/libsyntax_pos.hir -L output
Run Build- DEBUG: Environment { OUT_DIR=/root/.esp-rs/mrustc/output/rustc-build/build_rustc CARGO_MANIFEST_DIR=/root/.esp-rs/mrustc/rustc-1.19.0-src/src/librustc CARGO_PKG_VERSION=0.0.0 CARGO_PKG_VERSION_MAJOR=0 CARGO_PKG_VERSION_MINOR=0 CARGO_PKG_VERSION_PATCH=0 }
The command '/bin/sh -c ./build.sh --install' returned a non-zero code: 137

Any ideas on that?

@torntrousers
Copy link
Author

Success! I upped the Docker memory to 6GB and swap to 1.5GB ( I can't remember what there were before) and tried again and now it works.

...
Unpacking
tool-esptool @ 1.413.0 has been successfully installed!
The platform 'espressif8266' has been successfully installed!
The rest of packages will be installed automatically depending on your build environment.
Removing intermediate container 493e729a21ba
 ---> 49363eba1b56
Successfully built 49363eba1b56
$

Now what? Has it built a binary image somewhere I can flash on an ESP8266?

@torntrousers
Copy link
Author

Muddling on, do I now do this step - https://github.com/emosenkis/esp-rs#usage - so

mkdir my-project
cd my-project
/where/you/cloned/esp-rs/build.sh

I've tried that and get:

/build/esp-rs/build.sh
Installation does not seem to be complete. Try running with --install.
root@240e8789861a:/ant/my-project# /build/esp-rs/build.sh --install
info: component 'rust-std' for target 'i686-unknown-linux-gnu' is up to date
Installing bindgen...
    Updating crates.io index
  Installing bindgen v0.44.0
error: binary `bindgen` already exists in destination as part of `bindgen v0.44.0`
Add --force to overwrite
root@240e8789861a:/ant/my-project# /build/esp-rs/build.sh --install --force
info: component 'rust-std' for target 'i686-unknown-linux-gnu' is up to date
Installing bindgen...
    Updating crates.io index
  Installing bindgen v0.44.0
error: binary `bindgen` already exists in destination as part of `bindgen v0.44.0`
Add --force to overwrite

looking in the build.sh I guess thats coming from here: https://github.com/emosenkis/esp-rs/blob/master/build.sh#L19 so trying those manually:

rustup --version
rustup 1.16.0 (beab5ac2b 2018-12-06)
root@240e8789861a:/ant/my-project# platformio --version
PlatformIO, version 3.6.3
root@240e8789861a:/ant/my-project# which rustfmt
/root/.cargo/bin/rustfmt
root@240e8789861a:/ant/my-project# bindgen --version
thread 'main' panicked at 'Unable to find libclang: "couldn\'t find any valid shared libraries matching: [\'libclang.so\', \'libclang-*.so\', \'libclang.so.*\'], set the `LIBCLANG_PATH` environment variable to a path where one of these files can be found (invalid: [])"', src/libcore/result.rs:1009:5
note: Run with `RUST_BACKTRACE=1` for a backtrace.

Any hints on what could be up with bindgen?

@antonok-edm
Copy link
Contributor

@torntrousers Admittedly, I hadn't actually tried building anything from the Docker image -- I intended it solely as a step forward to getting CI working, just to make sure the build step proceeded ok. Looking at it now, it seems like using the image for builds would be great too, so it could just be hosted on Docker hub and users wouldn't have to spend an hour compiling the entirety of mrustc just to get a blinking light working.

Looks like bindgen needs clang installed as a runtime dependency. Could you run apt-get install clang in the container and then try build.sh again?

@torntrousers
Copy link
Author

Thanks @antonok-edm , that gets it further. Now:

/build/esp-rs/build.sh
Initializing PlatformIO project...

The current working directory /ant/my-project will be used for the project.

The next files/directories have been created in /ant/my-project
include - Put project header files here
lib - Put here project specific (private) libraries
src - Put project source files here
platformio.ini - Project Configuration File

Project has been successfully initialized! Useful commands:
`pio run` - process/build project from the current directory
`pio run --target upload` or `pio run -t upload` - upload firmware to a target
`pio run --target clean` - clean project (remove compiled files)
`pio run --help` - additional information
Initializing Cargo project...
error: Failed to create package `my-project` at `/ant/my-project/.`

Caused by:
  could not determine the current user, please set $USER

@antonok-edm
Copy link
Contributor

Docker runs as root by default and has a very minimal environment setup, so you'll have to run export USER=root manually.

Not sure if running as root will cause any problems, but I guess we can find out!

@torntrousers
Copy link
Author

That gets a bit further:

export USER=root
root@240e8789861a:/ant/my-project# /build/esp-rs/build.sh
Initializing Cargo project...
     Created binary (application) package
Generating src/lib.rs
    Updating crates.io index
  Downloaded esp8266-hal v0.0.1
  Downloaded embedded-hal v0.2.2
  Downloaded nb v0.1.1
  Downloaded 3 crates (37.0 KB) in 2.67s
   Vendoring embedded-hal v0.2.2 (/root/.cargo/registry/src/github.com-1ecc6299db9ec823/embedded-hal-0.2.2) to /ant/my-project/vendor/embedded-hal
   Vendoring esp8266-hal v0.0.1 (/root/.cargo/registry/src/github.com-1ecc6299db9ec823/esp8266-hal-0.0.1) to /ant/my-project/vendor/esp8266-hal
   Vendoring libc v0.2.45 (/root/.cargo/registry/src/github.com-1ecc6299db9ec823/libc-0.2.45) to /ant/my-project/vendor/libc
   Vendoring nb v0.1.1 (/root/.cargo/registry/src/github.com-1ecc6299db9ec823/nb-0.1.1) to /ant/my-project/vendor/nb
   Vendoring void v1.0.2 (/root/.cargo/registry/src/github.com-1ecc6299db9ec823/void-1.0.2) to /ant/my-project/vendor/void
To use vendored sources, add this to your .cargo/config for this project:

[source.crates-io]
replace-with = "vendored-sources"

[source.vendored-sources]
directory = "/ant/my-project/vendor"
Generating src/main.ino
++ echo '#include <Esp.h>'
+ bindgen --use-core --ctypes-prefix libc --rustfmt-bindings --raw-line '#![allow(non_snake_case,non_camel_case_types,non_upper_case_globals)]' --raw-line 'extern crate libc;' --output /ant/my-project/src/bindings.rs --whitelist-type=LED_BUILTIN --whitelist-function=LED_BUILTIN --whitelist-var=LED_BUILTIN --whitelist-type=delay --whitelist-function=delay --whitelist-var=delay /dev/fd/63 -- -x c++ -nostdinc -m32 -I/root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2 -I/root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2/xtensa-lx106-elf -Itools/sdk/libc/xtensa-lx106-elf/include -I/root/.platformio/packages/framework-arduinoespressif8266/tools/sdk/include -I/root/.platformio/packages/framework-arduinoespressif8266/tools/sdk/libc/xtensa-lx106-elf/include -I/root/.platformio/packages/framework-arduinoespressif8266/cores/esp8266 -I/root/.platformio/packages/framework-arduinoespressif8266/tools/sdk/lwip2/include -I/root/.platformio/packages/framework-arduinoespressif8266/variants/nodemcu -I/ant/my-project/lib/generated -I/root/.platformio/packages/framework-arduinoespressif8266/libraries/ArduinoOTA -I/root/.platformio/packages/framework-arduinoespressif8266/libraries/DNSServer/src -I/root/.platformio/packages/framework-arduinoespressif8266/libraries/EEPROM -I/root/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266AVRISP/src -I/root/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266HTTPClient/src -I/root/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266HTTPUpdateServer/src -I/root/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266LLMNR -I/root/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266NetBIOS -I/root/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266SSDP -I/root/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WebServer/src -I/root/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src -I/root/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFiMesh/src -I/root/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266httpUpdate/src -I/root/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266mDNS -I/root/.platformio/packages/framework-arduinoespressif8266/libraries/Ethernet/src -I/root/.platformio/packages/framework-arduinoespressif8266/libraries/GDBStub/src -I/root/.platformio/packages/framework-arduinoespressif8266/libraries/Hash/src -I/root/.platformio/packages/framework-arduinoespressif8266/libraries/SD/src -I/root/.platformio/packages/framework-arduinoespressif8266/libraries/SPI -I/root/.platformio/packages/framework-arduinoespressif8266/libraries/SPISlave/src -I/root/.platformio/packages/framework-arduinoespressif8266/libraries/Servo/src -I/root/.platformio/packages/framework-arduinoespressif8266/libraries/SoftwareSerial -I/root/.platformio/packages/framework-arduinoespressif8266/libraries/TFT_Touch_Shield_V2 -I/root/.platformio/packages/framework-arduinoespressif8266/libraries/Ticker -I/root/.platformio/packages/framework-arduinoespressif8266/libraries/Wire -I/root/.platformio/packages/framework-arduinoespressif8266/libraries/esp8266/src -I/root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include -I/root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2 -I/root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2/xtensa-lx106-elf -I/root/.platformio/packages/toolchain-xtensa/lib/gcc/xtensa-lx106-elf/4.8.2/include -I/root/.platformio/packages/toolchain-xtensa/lib/gcc/xtensa-lx106-elf/4.8.2/include-fixed -I/root/.platformio/packages/tool-unity -I/ant/my-project/include -I/ant/my-project/src -fno-rtti -fno-exceptions -std=c++11 -Os -falign-functions=4 -U__STRICT_ANSI__ -ffunction-sections -fdata-sections -Wall
++ grep '^#include ' /ant/my-project/src/main.ino
++ grep -ve '"generated/.*\.hir.o.c"'
warning: optimization flag '-falign-functions=4' is not supported [-Wignored-optimization-argument], err: false
tools/sdk/libc/xtensa-lx106-elf/include/stdlib.h:122:44: warning: unknown attribute '__warning__' ignored [-Wunknown-attributes], err: false
tools/sdk/libc/xtensa-lx106-elf/include/stdlib.h:133:65: warning: unknown attribute '__warning__' ignored [-Wunknown-attributes], err: false
/root/.platformio/packages/framework-arduinoespressif8266/cores/esp8266/HardwareSerial.h:156:12: warning: 'write' overrides a member function but is not marked 'override' [-Winconsistent-missing-override], err: false
[2018-12-13T21:51:34Z ERROR bindgen::ir::item] Unhandled cursor kind 417: Cursor(default kind: attribute(visibility), loc: /root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2/bits/stl_relops.h:67:15, usr: None)
[2018-12-13T21:51:34Z ERROR bindgen::ir::item] Unhandled cursor kind 417: Cursor(default kind: attribute(visibility), loc: /root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2/bits/move.h:36:15, usr: None)
[2018-12-13T21:51:34Z ERROR bindgen::ir::item] Unhandled cursor kind 417: Cursor(default kind: attribute(visibility), loc: /root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2/type_traits:40:15, usr: None)
[2018-12-13T21:51:34Z ERROR bindgen::ir::item] Unhandled cursor kind 417: Cursor(default kind: attribute(visibility), loc: /root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2/bits/move.h:59:15, usr: None)
...stripping out a lot of similar errors...
[2018-12-13T21:51:34Z ERROR bindgen::ir::item] Unhandled cursor kind 24: Cursor(function<type-parameter-0-0 (type-parameter-0-1...)> kind: CXXConstructor, loc: /root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2/functional:2430:5, usr: Some("c:@N@std@SP>2#T#pT@function>#Ft0.0Pt0.1@F@function<type-parameter-0-0 (type-parameter-0-1...)>#&1>@N@std@ST>1#T@function1S0_#"))
[2018-12-13T21:51:34Z ERROR bindgen::ir::item] Unhandled cursor kind 417: Cursor(default kind: attribute(visibility), loc: /root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2/bits/stl_algo.h:71:15, usr: None)
[2018-12-13T21:51:34Z ERROR bindgen::ir::item] Unhandled cursor kind 21: Cursor(getCycleCount kind: CXXMethod, loc: /root/.platformio/packages/framework-arduinoespressif8266/cores/esp8266/Esp.h:151:20, usr: Some("c:@S@EspClass@F@getCycleCount#"))
error: 'rustfmt' is not installed for the toolchain 'stable-x86_64-unknown-linux-gnu'
To install, run `rustup component add rustfmt`
Custom { kind: Other, error: StringError("Internal rustfmt error") }
Running cargo check
    Checking nb v0.1.1
    Checking void v1.0.2
   Compiling libc v0.2.45
    Checking embedded-hal v0.2.2
    Checking esp8266-hal v0.0.1
    Checking my-project v0.1.0 (/ant/my-project)
error[E0658]: imports can only refer to extern crate names passed with `--extern` on stable channel (see issue #53130)
 --> src/lib.rs:8:5
  |
7 | mod bindings;
  | ------------- not an extern crate passed with `--extern`
8 | use bindings::*;
  |     ^^^^^^^^
  |
note: this import refers to the module defined here
 --> src/lib.rs:7:1
  |
7 | mod bindings;
  | ^^^^^^^^^^^^^

error: aborting due to previous error

For more information about this error, try `rustc --explain E0658`.
error: Could not compile `my-project`.

To learn more, run the command again with --verbose.
root@240e8789861a:/ant/my-project#

@antonok-edm
Copy link
Contributor

@torntrousers this looks like a similar class of errors I encountered when upgrading my rust projects to the 2018 edition. My hunch is that since you've just installed rustup in the container, it is initializing a 2018 project by default but still trying to build old 2015 edition sources. If the Cargo.toml file says edition = "2018", you should be able to continue by just removing that line.

@emosenkis Either we'll need to add that change as a build step or update the source. Do you know if this project will work with 2018 features if the syntax is changed?

@torntrousers
Copy link
Author

Thanks! It did have the edition = "2018" line and I've deleted it so it now looks like:

cat Cargo.toml
[package]
name = "my-project"
version = "0.1.0"
authors = ["root"]

[dependencies]
embedded-hal = { version = "0.2.1", features = ["unproven"] }
esp8266-hal = "0.0.1"
libc = { version = "0.2.22", default-features = false }

Is there something like a clean? I just deleted .esp-rs-compiled-lib.

/build/esp-rs/build.sh
ln: failed to create symbolic link '.esp-rs-compiled-lib': File exists
root@240e8789861a:/ant/my-project# rm .esp-rs-compiled-lib

Now it still fails with all those errors:

/build/esp-rs/build.sh
   Vendoring embedded-hal v0.2.2 (/root/.cargo/registry/src/github.com-1ecc6299db9ec823/embedded-hal-0.2.2) to /ant/my-project/vendor/embedded-hal
   Vendoring esp8266-hal v0.0.1 (/root/.cargo/registry/src/github.com-1ecc6299db9ec823/esp8266-hal-0.0.1) to /ant/my-project/vendor/esp8266-hal
   Vendoring libc v0.2.45 (/root/.cargo/registry/src/github.com-1ecc6299db9ec823/libc-0.2.45) to /ant/my-project/vendor/libc
   Vendoring nb v0.1.1 (/root/.cargo/registry/src/github.com-1ecc6299db9ec823/nb-0.1.1) to /ant/my-project/vendor/nb
   Vendoring void v1.0.2 (/root/.cargo/registry/src/github.com-1ecc6299db9ec823/void-1.0.2) to /ant/my-project/vendor/void
To use vendored sources, add this to your .cargo/config for this project:

[source.crates-io]
replace-with = "vendored-sources"

[source.vendored-sources]
directory = "/ant/my-project/vendor"
++ echo '#include <Esp.h>'
+ bindgen --use-core --ctypes-prefix libc --rustfmt-bindings --raw-line '#![allow(non_snake_case,non_camel_case_types,non_upper_case_globals)]' --raw-line 'extern crate libc;' --output /ant/my-project/src/bindings.rs --whitelist-type=LED_BUILTIN --whitelist-function=LED_BUILTIN --whitelist-var=LED_BUILTIN --whitelist-type=delay --whitelist-function=delay --whitelist-var=delay /dev/fd/63 -- -x c++ -nostdinc -m32 -I/root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2 -I/root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2/xtensa-lx106-elf -Itools/sdk/libc/xtensa-lx106-elf/include -I/root/.platformio/packages/framework-arduinoespressif8266/tools/sdk/include -I/root/.platformio/packages/framework-arduinoespressif8266/tools/sdk/libc/xtensa-lx106-elf/include -I/root/.platformio/packages/framework-arduinoespressif8266/cores/esp8266 -I/root/.platformio/packages/framework-arduinoespressif8266/tools/sdk/lwip2/include -I/root/.platformio/packages/framework-arduinoespressif8266/variants/nodemcu -I/ant/my-project/lib/generated -I/root/.platformio/packages/framework-arduinoespressif8266/libraries/ArduinoOTA -I/root/.platformio/packages/framework-arduinoespressif8266/libraries/DNSServer/src -I/root/.platformio/packages/framework-arduinoespressif8266/libraries/EEPROM -I/root/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266AVRISP/src -I/root/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266HTTPClient/src -I/root/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266HTTPUpdateServer/src -I/root/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266LLMNR -I/root/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266NetBIOS -I/root/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266SSDP -I/root/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WebServer/src -I/root/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src -I/root/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFiMesh/src -I/root/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266httpUpdate/src -I/root/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266mDNS -I/root/.platformio/packages/framework-arduinoespressif8266/libraries/Ethernet/src -I/root/.platformio/packages/framework-arduinoespressif8266/libraries/GDBStub/src -I/root/.platformio/packages/framework-arduinoespressif8266/libraries/Hash/src -I/root/.platformio/packages/framework-arduinoespressif8266/libraries/SD/src -I/root/.platformio/packages/framework-arduinoespressif8266/libraries/SPI -I/root/.platformio/packages/framework-arduinoespressif8266/libraries/SPISlave/src -I/root/.platformio/packages/framework-arduinoespressif8266/libraries/Servo/src -I/root/.platformio/packages/framework-arduinoespressif8266/libraries/SoftwareSerial -I/root/.platformio/packages/framework-arduinoespressif8266/libraries/TFT_Touch_Shield_V2 -I/root/.platformio/packages/framework-arduinoespressif8266/libraries/Ticker -I/root/.platformio/packages/framework-arduinoespressif8266/libraries/Wire -I/root/.platformio/packages/framework-arduinoespressif8266/libraries/esp8266/src -I/root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include -I/root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2 -I/root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2/xtensa-lx106-elf -I/root/.platformio/packages/toolchain-xtensa/lib/gcc/xtensa-lx106-elf/4.8.2/include -I/root/.platformio/packages/toolchain-xtensa/lib/gcc/xtensa-lx106-elf/4.8.2/include-fixed -I/root/.platformio/packages/tool-unity -I/ant/my-project/include -I/ant/my-project/src -fno-rtti -fno-exceptions -std=c++11 -Os -falign-functions=4 -U__STRICT_ANSI__ -ffunction-sections -fdata-sections -Wall
++ grep '^#include ' /ant/my-project/src/main.ino
++ grep -ve '"generated/.*\.hir.o.c"'
warning: optimization flag '-falign-functions=4' is not supported [-Wignored-optimization-argument], err: false
tools/sdk/libc/xtensa-lx106-elf/include/stdlib.h:122:44: warning: unknown attribute '__warning__' ignored [-Wunknown-attributes], err: false
tools/sdk/libc/xtensa-lx106-elf/include/stdlib.h:133:65: warning: unknown attribute '__warning__' ignored [-Wunknown-attributes], err: false
/root/.platformio/packages/framework-arduinoespressif8266/cores/esp8266/HardwareSerial.h:156:12: warning: 'write' overrides a member function but is not marked 'override' [-Winconsistent-missing-override], err: false
[2018-12-14T07:28:47Z ERROR bindgen::ir::item] Unhandled cursor kind 417: Cursor(default kind: attribute(visibility), loc: /root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2/bits/stl_relops.h:67:15, usr: None)
[2018-12-14T07:28:47Z ERROR bindgen::ir::item] Unhandled cursor kind 417: Cursor(default kind: attribute(visibility), loc: /root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2/bits/move.h:36:15, usr: None)
[2018-12-14T07:28:47Z ERROR bindgen::ir::item] Unhandled cursor kind 417: Cursor(default kind: attribute(visibility), loc: /root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2/type_traits:40:15, usr: None)
[2018-12-14T07:28:47Z ERROR bindgen::ir::item] Unhandled cursor kind 417: Cursor(default kind: attribute(visibility), loc: /root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2/bits/move.h:59:15, usr: None)
[2018-12-14T07:28:47Z ERROR bindgen::ir::item] Unhandled cursor kind 417: Cursor(default kind: attribute(visibility), loc: /root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2/bits/move.h:149:15, usr: None)
[2018-12-14T07:28:47Z ERROR bindgen::ir::item] Unhandled cursor kind 417: Cursor(default kind: attribute(visibility), loc: /root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2/bits/stl_pair.h:65:15, usr: None)
[2018-12-14T07:28:47Z ERROR bindgen::ir::item] Unhandled cursor kind 417: Cursor(default kind: attribute(visibility), loc: /root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2/utility:76:15, usr: None)
(... lots more similar errors ...)
[2018-12-14T07:28:47Z ERROR bindgen::ir::item] Unhandled cursor kind 417: Cursor(default kind: attribute(visibility), loc: /root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2/stdexcept:41:15, usr: None)
[2018-12-14T07:28:47Z ERROR bindgen::ir::item] Unhandled cursor kind 417: Cursor(default kind: attribute(visibility), loc: /root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2/array:42:15, usr: None)
[2018-12-14T07:28:47Z ERROR bindgen::ir::item] Unhandled cursor kind 417: Cursor(default kind: attribute(visibility), loc: /root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2/array:295:15, usr: None)
[2018-12-14T07:28:47Z ERROR bindgen::ir::item] Unhandled cursor kind 417: Cursor(default kind: attribute(visibility), loc: /root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2/bits/uses_allocator.h:34:15, usr: None)
[2018-12-14T07:28:47Z ERROR bindgen::ir::item] Unhandled cursor kind 417: Cursor(default kind: attribute(visibility), loc: /root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2/tuple:42:15, usr: None)
[2018-12-14T07:28:47Z ERROR bindgen::ir::item] Unhandled cursor kind 417: Cursor(default kind: attribute(visibility), loc: /root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2/functional:60:15, usr: None)
[2018-12-14T07:28:47Z ERROR bindgen::ir::item] Unhandled cursor kind 24: Cursor(function<type-parameter-0-0 (type-parameter-0-1...)> kind: CXXConstructor, loc: /root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2/functional:2430:5, usr: Some("c:@N@std@SP>2#T#pT@function>#Ft0.0Pt0.1@F@function<type-parameter-0-0 (type-parameter-0-1...)>#&1>@N@std@ST>1#T@function1S0_#"))
[2018-12-14T07:28:47Z ERROR bindgen::ir::item] Unhandled cursor kind 417: Cursor(default kind: attribute(visibility), loc: /root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2/bits/stl_algo.h:71:15, usr: None)
[2018-12-14T07:28:47Z ERROR bindgen::ir::item] Unhandled cursor kind 21: Cursor(getCycleCount kind: CXXMethod, loc: /root/.platformio/packages/framework-arduinoespressif8266/cores/esp8266/Esp.h:151:20, usr: Some("c:@S@EspClass@F@getCycleCount#"))
error: 'rustfmt' is not installed for the toolchain 'stable-x86_64-unknown-linux-gnu'
To install, run `rustup component add rustfmt`
Custom { kind: Other, error: StringError("Internal rustfmt error") }
Running cargo check
    Checking my-project v0.1.0 (/ant/my-project)
    Finished dev [unoptimized + debuginfo] target(s) in 0.23s
Transpiling project with mrustc
Run Build- DEBUG: Package 'nb' has 0 dependencies and 1 dependents
Run Build- DEBUG: Package 'void' has 0 dependencies and 1 dependents
Run Build- DEBUG: Package 'embedded-hal' has 2 dependencies and 2 dependents
Run Build- DEBUG: Package 'libc' has 0 dependencies and 2 dependents
Run Build- DEBUG: Package 'esp8266-hal' has 2 dependencies and 1 dependents
Run Build- DEBUG: Package 'my-project' has 3 dependencies and 0 dependents
Run Build- DEBUG: TODO: 'rerun-if-changed' = 'build.rs'
Run Build- DEBUG: Building /ant/my-project/lib/generated/liblibc-0_2_45.hir - Missing
BUILDING libc from libc v0.2.45 with features []
Run Build- Calling /root/.esp-rs/mrustc/bin/mrustc /ant/my-project/vendor/libc/src/lib.rs --crate-name libc --crate-type rlib --crate-tag 0_2_45 -g --cfg debug_assertions -O -o /ant/my-project/lib/generated/liblibc-0_2_45.hir -L /ant/my-project/lib/generated --cfg stdbuild -L /root/.esp-rs/mrustc/output
Run Build- DEBUG: Environment { OUT_DIR=/ant/my-project/lib/generated/build_libc CARGO_MANIFEST_DIR=/ant/my-project/vendor/libc CARGO_PKG_VERSION=0.2.45 CARGO_PKG_VERSION_MAJOR=0 CARGO_PKG_VERSION_MINOR=2 CARGO_PKG_VERSION_PATCH=45 }
terminate called after throwing an instance of 'ParseError::Unexpected'
  what():  std::exception
Run Build- DEBUG: Compiler was terminated with signal 6
Run Build- DEBUG: See /ant/my-project/lib/generated/liblibc-0_2_45.hir_dbg.txt for the compiler output
BUILD FAILED

@russell
Copy link
Contributor

russell commented Dec 31, 2018

i think the error you are seeing is because libc 0.2.45 can't compile with mrustc,

Can you try updating the libc line in your Cargo.toml to

libc = { version = "=0.2.42", default-features = false }

@torntrousers
Copy link
Author

Thanks @russell , I tried that but still get the same lots of Unhandled cursor kind 417errors. Anything else I could try?

@russell
Copy link
Contributor

russell commented Jan 1, 2019

are these errors from bindgen? I think those error occur because bindgen can't fully process C++ so they are safe to ignore.

are there any other errors below bindgen?

@torntrousers
Copy link
Author

Beats me. This is the complete output from the build:

root@240e8789861a:/ant/my-project# /build/esp-rs/build.sh
   Vendoring embedded-hal v0.2.2 (/root/.cargo/registry/src/github.com-1ecc6299db9ec823/embedded-hal-0.2.2) to /ant/my-project/vendor/embedded-hal
   Vendoring esp8266-hal v0.0.1 (/root/.cargo/registry/src/github.com-1ecc6299db9ec823/esp8266-hal-0.0.1) to /ant/my-project/vendor/esp8266-hal
   Vendoring libc v0.2.45 (/root/.cargo/registry/src/github.com-1ecc6299db9ec823/libc-0.2.45) to /ant/my-project/vendor/libc
   Vendoring nb v0.1.1 (/root/.cargo/registry/src/github.com-1ecc6299db9ec823/nb-0.1.1) to /ant/my-project/vendor/nb
   Vendoring void v1.0.2 (/root/.cargo/registry/src/github.com-1ecc6299db9ec823/void-1.0.2) to /ant/my-project/vendor/void
To use vendored sources, add this to your .cargo/config for this project:

[source.crates-io]
replace-with = "vendored-sources"

[source.vendored-sources]
directory = "/ant/my-project/vendor"
++ echo '#include <Esp.h>'
+ bindgen --use-core --ctypes-prefix libc --rustfmt-bindings --raw-line '#![allow(non_snake_case,non_camel_case_types,non_upper_case_globals)]' --raw-line 'extern crate libc;' --output /ant/my-project/src/bindings.rs --whitelist-type=LED_BUILTIN --whitelist-function=LED_BUILTIN --whitelist-var=LED_BUILTIN --whitelist-type=delay --whitelist-function=delay --whitelist-var=delay /dev/fd/63 -- -x c++ -nostdinc -m32 -I/root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2 -I/root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2/xtensa-lx106-elf -Itools/sdk/libc/xtensa-lx106-elf/include -I/root/.platformio/packages/framework-arduinoespressif8266/tools/sdk/include -I/root/.platformio/packages/framework-arduinoespressif8266/tools/sdk/libc/xtensa-lx106-elf/include -I/root/.platformio/packages/framework-arduinoespressif8266/cores/esp8266 -I/root/.platformio/packages/framework-arduinoespressif8266/tools/sdk/lwip2/include -I/root/.platformio/packages/framework-arduinoespressif8266/variants/nodemcu -I/ant/my-project/lib/generated -I/root/.platformio/packages/framework-arduinoespressif8266/libraries/ArduinoOTA -I/root/.platformio/packages/framework-arduinoespressif8266/libraries/DNSServer/src -I/root/.platformio/packages/framework-arduinoespressif8266/libraries/EEPROM -I/root/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266AVRISP/src -I/root/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266HTTPClient/src -I/root/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266HTTPUpdateServer/src -I/root/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266LLMNR -I/root/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266NetBIOS -I/root/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266SSDP -I/root/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WebServer/src -I/root/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFi/src -I/root/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266WiFiMesh/src -I/root/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266httpUpdate/src -I/root/.platformio/packages/framework-arduinoespressif8266/libraries/ESP8266mDNS -I/root/.platformio/packages/framework-arduinoespressif8266/libraries/Ethernet/src -I/root/.platformio/packages/framework-arduinoespressif8266/libraries/GDBStub/src -I/root/.platformio/packages/framework-arduinoespressif8266/libraries/Hash/src -I/root/.platformio/packages/framework-arduinoespressif8266/libraries/SD/src -I/root/.platformio/packages/framework-arduinoespressif8266/libraries/SPI -I/root/.platformio/packages/framework-arduinoespressif8266/libraries/SPISlave/src -I/root/.platformio/packages/framework-arduinoespressif8266/libraries/Servo/src -I/root/.platformio/packages/framework-arduinoespressif8266/libraries/SoftwareSerial -I/root/.platformio/packages/framework-arduinoespressif8266/libraries/TFT_Touch_Shield_V2 -I/root/.platformio/packages/framework-arduinoespressif8266/libraries/Ticker -I/root/.platformio/packages/framework-arduinoespressif8266/libraries/Wire -I/root/.platformio/packages/framework-arduinoespressif8266/libraries/esp8266/src -I/root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include -I/root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2 -I/root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2/xtensa-lx106-elf -I/root/.platformio/packages/toolchain-xtensa/lib/gcc/xtensa-lx106-elf/4.8.2/include -I/root/.platformio/packages/toolchain-xtensa/lib/gcc/xtensa-lx106-elf/4.8.2/include-fixed -I/root/.platformio/packages/tool-unity -I/ant/my-project/include -I/ant/my-project/src -fno-rtti -fno-exceptions -std=c++11 -Os -falign-functions=4 -U__STRICT_ANSI__ -ffunction-sections -fdata-sections -Wall
++ grep '^#include ' /ant/my-project/src/main.ino
++ grep -ve '"generated/.*\.hir.o.c"'
warning: optimization flag '-falign-functions=4' is not supported [-Wignored-optimization-argument], err: false
tools/sdk/libc/xtensa-lx106-elf/include/stdlib.h:122:44: warning: unknown attribute '__warning__' ignored [-Wunknown-attributes], err: false
tools/sdk/libc/xtensa-lx106-elf/include/stdlib.h:133:65: warning: unknown attribute '__warning__' ignored [-Wunknown-attributes], err: false
/root/.platformio/packages/framework-arduinoespressif8266/cores/esp8266/HardwareSerial.h:156:12: warning: 'write' overrides a member function but is not marked 'override' [-Winconsistent-missing-override], err: false
[2018-12-31T18:44:01Z ERROR bindgen::ir::item] Unhandled cursor kind 417: Cursor(default kind: attribute(visibility), loc: /root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2/bits/stl_relops.h:67:15, usr: None)
[2018-12-31T18:44:01Z ERROR bindgen::ir::item] Unhandled cursor kind 417: Cursor(default kind: attribute(visibility), loc: /root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2/bits/move.h:36:15, usr: None)
[2018-12-31T18:44:01Z ERROR bindgen::ir::item] Unhandled cursor kind 417: Cursor(default kind: attribute(visibility), loc: /root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2/type_traits:40:15, usr: None)
[2018-12-31T18:44:01Z ERROR bindgen::ir::item] Unhandled cursor kind 417: Cursor(default kind: attribute(visibility), loc: /root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2/bits/move.h:59:15, usr: None)
[2018-12-31T18:44:01Z ERROR bindgen::ir::item] Unhandled cursor kind 417: Cursor(default kind: attribute(visibility), loc: /root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2/bits/move.h:149:15, usr: None)
[2018-12-31T18:44:01Z ERROR bindgen::ir::item] Unhandled cursor kind 417: Cursor(default kind: attribute(visibility), loc: /root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2/bits/stl_pair.h:65:15, usr: None)
[2018-12-31T18:44:01Z ERROR bindgen::ir::item] Unhandled cursor kind 417: Cursor(default kind: attribute(visibility), loc: /root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2/utility:76:15, usr: None)
[2018-12-31T18:44:01Z ERROR bindgen::ir::item] Unhandled cursor kind 417: Cursor(default kind: attribute(visibility), loc: /root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2/bits/functexcept.h:42:15, usr: None)
[2018-12-31T18:44:01Z ERROR bindgen::ir::item] Unhandled cursor kind 417: Cursor(default kind: attribute(visibility), loc: /root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2/bits/cpp_type_traits.h:68:21, usr: None)
[2018-12-31T18:44:01Z ERROR bindgen::ir::item] Unhandled cursor kind 417: Cursor(default kind: attribute(visibility), loc: /root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2/bits/cpp_type_traits.h:78:15, usr: None)
[2018-12-31T18:44:01Z ERROR bindgen::ir::item] Unhandled cursor kind 417: Cursor(default kind: attribute(visibility), loc: /root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2/ext/type_traits.h:37:21, usr: None)
[2018-12-31T18:44:01Z ERROR bindgen::ir::item] Unhandled cursor kind 417: Cursor(default kind: attribute(visibility), loc: /root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2/ext/numeric_traits.h:37:21, usr: None)
[2018-12-31T18:44:01Z ERROR bindgen::ir::item] Unhandled cursor kind 417: Cursor(default kind: attribute(visibility), loc: /root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2/bits/stl_iterator_base_types.h:70:15, usr: None)
[2018-12-31T18:44:01Z ERROR bindgen::ir::item] Unhandled cursor kind 417: Cursor(default kind: attribute(visibility), loc: /root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2/bits/stl_iterator_base_funcs.h:67:15, usr: None)
[2018-12-31T18:44:01Z ERROR bindgen::ir::item] Unhandled cursor kind 417: Cursor(default kind: attribute(visibility), loc: /root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2/bits/stl_iterator.h:67:15, usr: None)
[2018-12-31T18:44:01Z ERROR bindgen::ir::item] Unhandled cursor kind 417: Cursor(default kind: attribute(visibility), loc: /root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2/bits/stl_iterator.h:694:21, usr: None)
[2018-12-31T18:44:01Z ERROR bindgen::ir::item] Unhandled cursor kind 417: Cursor(default kind: attribute(visibility), loc: /root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2/bits/stl_iterator.h:911:15, usr: None)
[2018-12-31T18:44:01Z ERROR bindgen::ir::item] Unhandled cursor kind 417: Cursor(default kind: attribute(visibility), loc: /root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2/bits/stl_algobase.h:72:15, usr: None)
[2018-12-31T18:44:01Z ERROR bindgen::ir::item] Unhandled cursor kind 417: Cursor(default kind: attribute(visibility), loc: /root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2/cstdlib:114:15, usr: None)
[2018-12-31T18:44:01Z ERROR bindgen::ir::item] Unhandled cursor kind 417: Cursor(default kind: attribute(visibility), loc: /root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2/bits/algorithmfwd.h:42:15, usr: None)
[2018-12-31T18:44:01Z ERROR bindgen::ir::item] Unhandled cursor kind 417: Cursor(default kind: attribute(visibility), loc: /root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2/bits/stl_heap.h:61:15, usr: None)
[2018-12-31T18:44:01Z ERROR bindgen::ir::item] Unhandled cursor kind 417: Cursor(default kind: attribute(visibility), loc: /root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2/bits/memoryfwd.h:50:15, usr: None)
[2018-12-31T18:44:01Z ERROR bindgen::ir::item] Unhandled cursor kind 417: Cursor(default kind: attribute(visibility), loc: /root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2/bits/ptr_traits.h:37:15, usr: None)
[2018-12-31T18:44:01Z ERROR bindgen::ir::item] Unhandled cursor kind 417: Cursor(default kind: attribute(visibility), loc: /root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2/bits/alloc_traits.h:39:15, usr: None)
[2018-12-31T18:44:01Z ERROR bindgen::ir::item] Unhandled cursor kind 417: Cursor(default kind: attribute(visibility), loc: /root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2/ext/alloc_traits.h:41:21, usr: None)
[2018-12-31T18:44:01Z ERROR bindgen::ir::item] Unhandled cursor kind 417: Cursor(default kind: attribute(visibility), loc: /root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2/bits/stl_construct.h:63:15, usr: None)
[2018-12-31T18:44:01Z ERROR bindgen::ir::item] Unhandled cursor kind 417: Cursor(default kind: attribute(visibility), loc: /root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2/bits/stl_tempbuf.h:62:15, usr: None)
[2018-12-31T18:44:01Z ERROR bindgen::ir::item] Unhandled cursor kind 24: Cursor(_Temporary_buffer<_ForwardIterator, _Tp> kind: CXXConstructor, loc: /root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2/bits/stl_tempbuf.h:244:5, usr: Some("c:@N@std@ST>2#T#T@_Temporary_buffer@F@_Temporary_buffer<_ForwardIterator, _Tp>#t0.0#S0_#"))
[2018-12-31T18:44:01Z ERROR bindgen::ir::item] Unhandled cursor kind 417: Cursor(default kind: attribute(visibility), loc: /root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2/cmath:75:15, usr: None)
[2018-12-31T18:44:01Z ERROR bindgen::ir::item] Unhandled cursor kind 417: Cursor(default kind: attribute(visibility), loc: /root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2/cmath:555:15, usr: None)
[2018-12-31T18:44:01Z ERROR bindgen::ir::item] Unhandled cursor kind 417: Cursor(default kind: attribute(visibility), loc: /root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2/bits/stringfwd.h:42:15, usr: None)
[2018-12-31T18:44:01Z ERROR bindgen::ir::item] Unhandled cursor kind 417: Cursor(default kind: attribute(visibility), loc: /root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2/cwchar:135:15, usr: None)
[2018-12-31T18:44:01Z ERROR bindgen::ir::item] Unhandled cursor kind 417: Cursor(default kind: attribute(visibility), loc: /root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2/bits/postypes.h:68:15, usr: None)
[2018-12-31T18:44:01Z ERROR bindgen::ir::item] Unhandled cursor kind 417: Cursor(default kind: attribute(visibility), loc: /root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2/bits/char_traits.h:43:21, usr: None)
[2018-12-31T18:44:01Z ERROR bindgen::ir::item] Unhandled cursor kind 21: Cursor(compare kind: CXXMethod, loc: /root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2/bits/char_traits.h:145:5, usr: Some("c:@N@__gnu_cxx@ST>1#T@char_traits@F@compare#*1t0.0#S0_#i#S"))
[2018-12-31T18:44:01Z ERROR bindgen::ir::item] Unhandled cursor kind 21: Cursor(length kind: CXXMethod, loc: /root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2/bits/char_traits.h:158:5, usr: Some("c:@N@__gnu_cxx@ST>1#T@char_traits@F@length#*1t0.0#S"))
[2018-12-31T18:44:01Z ERROR bindgen::ir::item] Unhandled cursor kind 21: Cursor(find kind: CXXMethod, loc: /root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2/bits/char_traits.h:169:5, usr: Some("c:@N@__gnu_cxx@ST>1#T@char_traits@F@find#*1t0.0#i#&1S1_#S"))
[2018-12-31T18:44:01Z ERROR bindgen::ir::item] Unhandled cursor kind 21: Cursor(move kind: CXXMethod, loc: /root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2/bits/char_traits.h:180:5, usr: Some("c:@N@__gnu_cxx@ST>1#T@char_traits@F@move#*t0.0#*1S1_#i#S"))
[2018-12-31T18:44:01Z ERROR bindgen::ir::item] Unhandled cursor kind 21: Cursor(copy kind: CXXMethod, loc: /root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2/bits/char_traits.h:189:5, usr: Some("c:@N@__gnu_cxx@ST>1#T@char_traits@F@copy#*t0.0#*1S1_#i#S"))
[2018-12-31T18:44:01Z ERROR bindgen::ir::item] Unhandled cursor kind 21: Cursor(assign kind: CXXMethod, loc: /root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2/bits/char_traits.h:199:5, usr: Some("c:@N@__gnu_cxx@ST>1#T@char_traits@F@assign#*t0.0#i#S1_#S"))
[2018-12-31T18:44:01Z ERROR bindgen::ir::item] Unhandled cursor kind 417: Cursor(default kind: attribute(visibility), loc: /root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2/bits/char_traits.h:209:15, usr: None)
[2018-12-31T18:44:01Z ERROR bindgen::ir::item] Unhandled cursor kind 417: Cursor(default kind: attribute(visibility), loc: /root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2/bits/char_traits.h:378:15, usr: None)
[2018-12-31T18:44:01Z ERROR bindgen::ir::item] Unhandled cursor kind 417: Cursor(default kind: attribute(visibility), loc: /root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2/ext/new_allocator.h:40:21, usr: None)
[2018-12-31T18:44:01Z ERROR bindgen::ir::item] Unhandled cursor kind 417: Cursor(default kind: attribute(visibility), loc: /root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2/bits/allocator.h:52:15, usr: None)
[2018-12-31T18:44:01Z ERROR bindgen::ir::item] Unhandled cursor kind 417: Cursor(default kind: attribute(visibility), loc: /root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2/xtensa-lx106-elf/bits/c++locale.h:45:15, usr: None)
[2018-12-31T18:44:01Z ERROR bindgen::ir::item] Unhandled cursor kind 417: Cursor(default kind: attribute(visibility), loc: /root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2/iosfwd:42:15, usr: None)
[2018-12-31T18:44:01Z ERROR bindgen::ir::item] Unhandled cursor kind 417: Cursor(default kind: attribute(visibility), loc: /root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2/bits/localefwd.h:44:15, usr: None)
[2018-12-31T18:44:01Z ERROR bindgen::ir::item] Unhandled cursor kind 417: Cursor(default kind: attribute(visibility), loc: /root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2/bits/ostream_insert.h:38:15, usr: None)
[2018-12-31T18:44:01Z ERROR bindgen::ir::item] Unhandled cursor kind 417: Cursor(default kind: attribute(visibility), loc: /root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2/bits/stl_function.h:59:15, usr: None)
[2018-12-31T18:44:01Z ERROR bindgen::ir::item] Unhandled cursor kind 417: Cursor(default kind: attribute(visibility), loc: /root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2/backward/binders.h:59:15, usr: None)
[2018-12-31T18:44:01Z ERROR bindgen::ir::item] Unhandled cursor kind 417: Cursor(default kind: attribute(visibility), loc: /root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2/bits/range_access.h:37:15, usr: None)
[2018-12-31T18:44:01Z ERROR bindgen::ir::item] Unhandled cursor kind 417: Cursor(default kind: attribute(visibility), loc: /root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2/ext/atomicity.h:38:21, usr: None)
[2018-12-31T18:44:01Z ERROR bindgen::ir::item] Unhandled cursor kind 417: Cursor(default kind: attribute(visibility), loc: /root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2/bits/basic_string.h:45:15, usr: None)
[2018-12-31T18:44:01Z ERROR bindgen::ir::item] Unhandled cursor kind 417: Cursor(default kind: attribute(visibility), loc: /root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2/bits/functional_hash.h:37:15, usr: None)
[2018-12-31T18:44:01Z ERROR bindgen::ir::item] Unhandled cursor kind 417: Cursor(default kind: attribute(visibility), loc: /root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2/bits/basic_string.h:3035:15, usr: None)
[2018-12-31T18:44:01Z ERROR bindgen::ir::item] Unhandled cursor kind 417: Cursor(default kind: attribute(visibility), loc: /root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2/bits/basic_string.tcc:44:15, usr: None)
[2018-12-31T18:44:01Z ERROR bindgen::ir::item] Unhandled cursor kind 21: Cursor(_S_construct kind: CXXMethod, loc: /root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2/bits/basic_string.tcc:153:5, usr: Some("c:@N@std@ST>3#T#T#T@basic_string@F@_S_construct#^typename type-parameter-0-2::rebind<type-parameter-0-0>::other:::size_type#t0.0#&1t0.2#S"))
[2018-12-31T18:44:01Z ERROR bindgen::ir::item] Unhandled cursor kind 24: Cursor(basic_string<_CharT, _Traits, _Alloc> kind: CXXConstructor, loc: /root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2/bits/basic_string.tcc:170:5, usr: Some("c:@N@std@ST>3#T#T#T@basic_string@F@basic_string<_CharT, _Traits, _Alloc>#&1>@N@std@ST>3#T#T#T@basic_string3t0.0t0.1t0.2#"))
[2018-12-31T18:44:01Z ERROR bindgen::ir::item] Unhandled cursor kind 24: Cursor(basic_string<_CharT, _Traits, _Alloc> kind: CXXConstructor, loc: /root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2/bits/basic_string.tcc:178:5, usr: Some("c:@N@std@ST>3#T#T#T@basic_string@F@basic_string<_CharT, _Traits, _Alloc>#&1t0.2#"))
[2018-12-31T18:44:01Z ERROR bindgen::ir::item] Unhandled cursor kind 24: Cursor(basic_string<_CharT, _Traits, _Alloc> kind: CXXConstructor, loc: /root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2/bits/basic_string.tcc:184:5, usr: Some("c:@N@std@ST>3#T#T#T@basic_string@F@basic_string<_CharT, _Traits, _Alloc>#&1>@N@std@ST>3#T#T#T@basic_string3t0.0t0.1t0.2#^typename type-parameter-0-2::rebind<type-parameter-0-0>::other:::size_type#S6_#"))
[2018-12-31T18:44:01Z ERROR bindgen::ir::item] Unhandled cursor kind 24: Cursor(basic_string<_CharT, _Traits, _Alloc> kind: CXXConstructor, loc: /root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2/bits/basic_string.tcc:194:5, usr: Some("c:@N@std@ST>3#T#T#T@basic_string@F@basic_string<_CharT, _Traits, _Alloc>#&1>@N@std@ST>3#T#T#T@basic_string3t0.0t0.1t0.2#^typename type-parameter-0-2::rebind<type-parameter-0-0>::other:::size_type#S6_#&1S5_#"))
[2018-12-31T18:44:01Z ERROR bindgen::ir::item] Unhandled cursor kind 24: Cursor(basic_string<_CharT, _Traits, _Alloc> kind: CXXConstructor, loc: /root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2/bits/basic_string.tcc:206:5, usr: Some("c:@N@std@ST>3#T#T#T@basic_string@F@basic_string<_CharT, _Traits, _Alloc>#*1t0.0#^typename type-parameter-0-2::rebind<type-parameter-0-0>::other:::size_type#&1t0.2#"))
[2018-12-31T18:44:01Z ERROR bindgen::ir::item] Unhandled cursor kind 24: Cursor(basic_string<_CharT, _Traits, _Alloc> kind: CXXConstructor, loc: /root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2/bits/basic_string.tcc:213:5, usr: Some("c:@N@std@ST>3#T#T#T@basic_string@F@basic_string<_CharT, _Traits, _Alloc>#*1t0.0#&1t0.2#"))
[2018-12-31T18:44:01Z ERROR bindgen::ir::item] Unhandled cursor kind 24: Cursor(basic_string<_CharT, _Traits, _Alloc> kind: CXXConstructor, loc: /root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2/bits/basic_string.tcc:220:5, usr: Some("c:@N@std@ST>3#T#T#T@basic_string@F@basic_string<_CharT, _Traits, _Alloc>#^typename type-parameter-0-2::rebind<type-parameter-0-0>::other:::size_type#t0.0#&1t0.2#"))
[2018-12-31T18:44:01Z ERROR bindgen::ir::item] Unhandled cursor kind 24: Cursor(basic_string<_CharT, _Traits, _Alloc> kind: CXXConstructor, loc: /root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2/bits/basic_string.tcc:235:5, usr: Some("c:@N@std@ST>3#T#T#T@basic_string@F@basic_string<_CharT, _Traits, _Alloc>#>@N@std@ST>1#T@initializer_list1t0.0#&1t0.2#"))
[2018-12-31T18:44:01Z ERROR bindgen::ir::item] Unhandled cursor kind 21: Cursor(assign kind: CXXMethod, loc: /root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2/bits/basic_string.tcc:243:5, usr: Some("c:@N@std@ST>3#T#T#T@basic_string@F@assign#&1>@N@std@ST>3#T#T#T@basic_string3t0.0t0.1t0.2#"))
[2018-12-31T18:44:01Z ERROR bindgen::ir::item] Unhandled cursor kind 21: Cursor(assign kind: CXXMethod, loc: /root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2/bits/basic_string.tcc:259:5, usr: Some("c:@N@std@ST>3#T#T#T@basic_string@F@assign#*1t0.0#^typename type-parameter-0-2::rebind<type-parameter-0-0>::other:::size_type#"))
[2018-12-31T18:44:01Z ERROR bindgen::ir::item] Unhandled cursor kind 21: Cursor(append kind: CXXMethod, loc: /root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2/bits/basic_string.tcc:281:5, usr: Some("c:@N@std@ST>3#T#T#T@basic_string@F@append#^typename type-parameter-0-2::rebind<type-parameter-0-0>::other:::size_type#t0.0#"))
[2018-12-31T18:44:01Z ERROR bindgen::ir::item] Unhandled cursor kind 21: Cursor(append kind: CXXMethod, loc: /root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2/bits/basic_string.tcc:298:5, usr: Some("c:@N@std@ST>3#T#T#T@basic_string@F@append#*1t0.0#^typename type-parameter-0-2::rebind<type-parameter-0-0>::other:::size_type#"))
[2018-12-31T18:44:01Z ERROR bindgen::ir::item] Unhandled cursor kind 21: Cursor(append kind: CXXMethod, loc: /root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2/bits/basic_string.tcc:325:5, usr: Some("c:@N@std@ST>3#T#T#T@basic_string@F@append#&1>@N@std@ST>3#T#T#T@basic_string3t0.0t0.1t0.2#"))
[2018-12-31T18:44:01Z ERROR bindgen::ir::item] Unhandled cursor kind 21: Cursor(append kind: CXXMethod, loc: /root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2/bits/basic_string.tcc:342:5, usr: Some("c:@N@std@ST>3#T#T#T@basic_string@F@append#&1>@N@std@ST>3#T#T#T@basic_string3t0.0t0.1t0.2#^typename type-parameter-0-2::rebind<type-parameter-0-0>::other:::size_type#S6_#"))
[2018-12-31T18:44:01Z ERROR bindgen::ir::item] Unhandled cursor kind 21: Cursor(insert kind: CXXMethod, loc: /root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2/bits/basic_string.tcc:360:6, usr: Some("c:@N@std@ST>3#T#T#T@basic_string@F@insert#^typename type-parameter-0-2::rebind<type-parameter-0-0>::other:::size_type#*1t0.0#S0_#"))
[2018-12-31T18:44:01Z ERROR bindgen::ir::item] Unhandled cursor kind 21: Cursor(erase kind: CXXMethod, loc: /root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2/bits/basic_string.tcc:391:6, usr: Some("c:@N@std@ST>3#T#T#T@basic_string@F@erase#>@N@__gnu_cxx@ST>2#T#T@__normal_iterator2^typename type-parameter-0-2::rebind<type-parameter-0-0>::other:::pointer>@N@std@ST>3#T#T#T@basic_string3t0.0t0.1t0.2#S0_#"))
[2018-12-31T18:44:01Z ERROR bindgen::ir::item] Unhandled cursor kind 21: Cursor(replace kind: CXXMethod, loc: /root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2/bits/basic_string.tcc:414:6, usr: Some("c:@N@std@ST>3#T#T#T@basic_string@F@replace#^typename type-parameter-0-2::rebind<type-parameter-0-0>::other:::size_type#S0_#*1t0.0#S0_#"))
[2018-12-31T18:44:01Z ERROR bindgen::ir::item] Unhandled cursor kind 21: Cursor(_M_destroy kind: CXXMethod, loc: /root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2/bits/basic_string.tcc:445:5, usr: Some("c:@N@std@ST>3#T#T#T@basic_string@S@_Rep@F@_M_destroy#&1t0.2#"))
[2018-12-31T18:44:01Z ERROR bindgen::ir::item] Unhandled cursor kind 21: Cursor(_M_leak_hard kind: CXXMethod, loc: /root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2/bits/basic_string.tcc:455:5, usr: Some("c:@N@std@ST>3#T#T#T@basic_string@F@_M_leak_hard#"))
[2018-12-31T18:44:01Z ERROR bindgen::ir::item] Unhandled cursor kind 21: Cursor(_M_mutate kind: CXXMethod, loc: /root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2/bits/basic_string.tcc:469:5, usr: Some("c:@N@std@ST>3#T#T#T@basic_string@F@_M_mutate#^typename type-parameter-0-2::rebind<type-parameter-0-0>::other:::size_type#S0_#S0_#"))
[2018-12-31T18:44:01Z ERROR bindgen::ir::item] Unhandled cursor kind 21: Cursor(reserve kind: CXXMethod, loc: /root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2/bits/basic_string.tcc:502:5, usr: Some("c:@N@std@ST>3#T#T#T@basic_string@F@reserve#^typename type-parameter-0-2::rebind<type-parameter-0-0>::other:::size_type#"))
[2018-12-31T18:44:01Z ERROR bindgen::ir::item] Unhandled cursor kind 21: Cursor(swap kind: CXXMethod, loc: /root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2/bits/basic_string.tcc:519:5, usr: Some("c:@N@std@ST>3#T#T#T@basic_string@F@swap#&>@N@std@ST>3#T#T#T@basic_string3t0.0t0.1t0.2#"))
[2018-12-31T18:44:01Z ERROR bindgen::ir::item] Unhandled cursor kind 21: Cursor(_S_create kind: CXXMethod, loc: /root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2/bits/basic_string.tcc:546:5, usr: Some("c:@N@std@ST>3#T#T#T@basic_string@S@_Rep@F@_S_create#^typename type-parameter-0-2::rebind<type-parameter-0-0>::other:::size_type#S0_#&1t0.2#S"))
[2018-12-31T18:44:01Z ERROR bindgen::ir::item] Unhandled cursor kind 21: Cursor(_M_clone kind: CXXMethod, loc: /root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2/bits/basic_string.tcc:624:5, usr: Some("c:@N@std@ST>3#T#T#T@basic_string@S@_Rep@F@_M_clone#&1t0.2#^typename type-parameter-0-2::rebind<type-parameter-0-0>::other:::size_type#"))
[2018-12-31T18:44:01Z ERROR bindgen::ir::item] Unhandled cursor kind 21: Cursor(resize kind: CXXMethod, loc: /root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2/bits/basic_string.tcc:640:5, usr: Some("c:@N@std@ST>3#T#T#T@basic_string@F@resize#^typename type-parameter-0-2::rebind<type-parameter-0-0>::other:::size_type#t0.0#"))
[2018-12-31T18:44:01Z ERROR bindgen::ir::item] Unhandled cursor kind 21: Cursor(_M_replace_aux kind: CXXMethod, loc: /root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2/bits/basic_string.tcc:668:5, usr: Some("c:@N@std@ST>3#T#T#T@basic_string@F@_M_replace_aux#^typename type-parameter-0-2::rebind<type-parameter-0-0>::other:::size_type#S0_#S0_#t0.0#"))
[2018-12-31T18:44:01Z ERROR bindgen::ir::item] Unhandled cursor kind 21: Cursor(_M_replace_safe kind: CXXMethod, loc: /root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2/bits/basic_string.tcc:681:5, usr: Some("c:@N@std@ST>3#T#T#T@basic_string@F@_M_replace_safe#^typename type-parameter-0-2::rebind<type-parameter-0-0>::other:::size_type#S0_#*1t0.0#S0_#"))
[2018-12-31T18:44:01Z ERROR bindgen::ir::item] Unhandled cursor kind 21: Cursor(copy kind: CXXMethod, loc: /root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2/bits/basic_string.tcc:723:5, usr: Some("c:@N@std@ST>3#T#T#T@basic_string@F@copy#*t0.0#^typename type-parameter-0-2::rebind<type-parameter-0-0>::other:::size_type#S2_#1"))
[2018-12-31T18:44:01Z ERROR bindgen::ir::item] Unhandled cursor kind 21: Cursor(find kind: CXXMethod, loc: /root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2/bits/basic_string.tcc:737:5, usr: Some("c:@N@std@ST>3#T#T#T@basic_string@F@find#*1t0.0#^typename type-parameter-0-2::rebind<type-parameter-0-0>::other:::size_type#S2_#1"))
[2018-12-31T18:44:01Z ERROR bindgen::ir::item] Unhandled cursor kind 21: Cursor(find kind: CXXMethod, loc: /root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2/bits/basic_string.tcc:760:5, usr: Some("c:@N@std@ST>3#T#T#T@basic_string@F@find#t0.0#^typename type-parameter-0-2::rebind<type-parameter-0-0>::other:::size_type#1"))
[2018-12-31T18:44:01Z ERROR bindgen::ir::item] Unhandled cursor kind 21: Cursor(rfind kind: CXXMethod, loc: /root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2/bits/basic_string.tcc:778:5, usr: Some("c:@N@std@ST>3#T#T#T@basic_string@F@rfind#*1t0.0#^typename type-parameter-0-2::rebind<type-parameter-0-0>::other:::size_type#S2_#1"))
[2018-12-31T18:44:01Z ERROR bindgen::ir::item] Unhandled cursor kind 21: Cursor(rfind kind: CXXMethod, loc: /root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2/bits/basic_string.tcc:799:5, usr: Some("c:@N@std@ST>3#T#T#T@basic_string@F@rfind#t0.0#^typename type-parameter-0-2::rebind<type-parameter-0-0>::other:::size_type#1"))
[2018-12-31T18:44:01Z ERROR bindgen::ir::item] Unhandled cursor kind 21: Cursor(find_first_of kind: CXXMethod, loc: /root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2/bits/basic_string.tcc:816:5, usr: Some("c:@N@std@ST>3#T#T#T@basic_string@F@find_first_of#*1t0.0#^typename type-parameter-0-2::rebind<type-parameter-0-0>::other:::size_type#S2_#1"))
[2018-12-31T18:44:01Z ERROR bindgen::ir::item] Unhandled cursor kind 21: Cursor(find_last_of kind: CXXMethod, loc: /root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2/bits/basic_string.tcc:831:5, usr: Some("c:@N@std@ST>3#T#T#T@basic_string@F@find_last_of#*1t0.0#^typename type-parameter-0-2::rebind<type-parameter-0-0>::other:::size_type#S2_#1"))
[2018-12-31T18:44:01Z ERROR bindgen::ir::item] Unhandled cursor kind 21: Cursor(find_first_not_of kind: CXXMethod, loc: /root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2/bits/basic_string.tcc:852:5, usr: Some("c:@N@std@ST>3#T#T#T@basic_string@F@find_first_not_of#*1t0.0#^typename type-parameter-0-2::rebind<type-parameter-0-0>::other:::size_type#S2_#1"))
[2018-12-31T18:44:01Z ERROR bindgen::ir::item] Unhandled cursor kind 21: Cursor(find_first_not_of kind: CXXMethod, loc: /root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2/bits/basic_string.tcc:864:5, usr: Some("c:@N@std@ST>3#T#T#T@basic_string@F@find_first_not_of#t0.0#^typename type-parameter-0-2::rebind<type-parameter-0-0>::other:::size_type#1"))
[2018-12-31T18:44:01Z ERROR bindgen::ir::item] Unhandled cursor kind 21: Cursor(find_last_not_of kind: CXXMethod, loc: /root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2/bits/basic_string.tcc:875:5, usr: Some("c:@N@std@ST>3#T#T#T@basic_string@F@find_last_not_of#*1t0.0#^typename type-parameter-0-2::rebind<type-parameter-0-0>::other:::size_type#S2_#1"))
[2018-12-31T18:44:01Z ERROR bindgen::ir::item] Unhandled cursor kind 21: Cursor(find_last_not_of kind: CXXMethod, loc: /root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2/bits/basic_string.tcc:896:5, usr: Some("c:@N@std@ST>3#T#T#T@basic_string@F@find_last_not_of#t0.0#^typename type-parameter-0-2::rebind<type-parameter-0-0>::other:::size_type#1"))
[2018-12-31T18:44:01Z ERROR bindgen::ir::item] Unhandled cursor kind 21: Cursor(compare kind: CXXMethod, loc: /root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2/bits/basic_string.tcc:916:5, usr: Some("c:@N@std@ST>3#T#T#T@basic_string@F@compare#^typename type-parameter-0-2::rebind<type-parameter-0-0>::other:::size_type#S0_#&1>@N@std@ST>3#T#T#T@basic_string3t0.0t0.1t0.2#1"))
[2018-12-31T18:44:01Z ERROR bindgen::ir::item] Unhandled cursor kind 21: Cursor(compare kind: CXXMethod, loc: /root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2/bits/basic_string.tcc:931:5, usr: Some("c:@N@std@ST>3#T#T#T@basic_string@F@compare#^typename type-parameter-0-2::rebind<type-parameter-0-0>::other:::size_type#S0_#&1>@N@std@ST>3#T#T#T@basic_string3t0.0t0.1t0.2#S0_#S0_#1"))
[2018-12-31T18:44:01Z ERROR bindgen::ir::item] Unhandled cursor kind 21: Cursor(compare kind: CXXMethod, loc: /root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2/bits/basic_string.tcc:949:5, usr: Some("c:@N@std@ST>3#T#T#T@basic_string@F@compare#*1t0.0#1"))
[2018-12-31T18:44:01Z ERROR bindgen::ir::item] Unhandled cursor kind 21: Cursor(compare kind: CXXMethod, loc: /root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2/bits/basic_string.tcc:964:5, usr: Some("c:@N@std@ST>3#T#T#T@basic_string@F@compare#^typename type-parameter-0-2::rebind<type-parameter-0-0>::other:::size_type#S0_#*1t0.0#1"))
[2018-12-31T18:44:01Z ERROR bindgen::ir::item] Unhandled cursor kind 21: Cursor(compare kind: CXXMethod, loc: /root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2/bits/basic_string.tcc:980:5, usr: Some("c:@N@std@ST>3#T#T#T@basic_string@F@compare#^typename type-parameter-0-2::rebind<type-parameter-0-0>::other:::size_type#S0_#*1t0.0#S0_#1"))
[2018-12-31T18:44:01Z ERROR bindgen::ir::item] Unhandled cursor kind 417: Cursor(default kind: attribute(visibility), loc: /root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2/limits:147:15, usr: None)
[2018-12-31T18:44:01Z ERROR bindgen::ir::item] Unhandled cursor kind 417: Cursor(default kind: attribute(visibility), loc: /root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2/bits/stl_uninitialized.h:59:15, usr: None)
[2018-12-31T18:44:01Z ERROR bindgen::ir::item] Unhandled cursor kind 417: Cursor(default kind: attribute(visibility), loc: /root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2/bits/stl_vector.h:66:15, usr: None)
[2018-12-31T18:44:01Z ERROR bindgen::ir::item] Unhandled cursor kind 417: Cursor(default kind: attribute(visibility), loc: /root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2/bits/stl_bvector.h:63:15, usr: None)
[2018-12-31T18:44:01Z ERROR bindgen::ir::item] Unhandled cursor kind 417: Cursor(default kind: attribute(visibility), loc: /root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2/bits/stl_bvector.h:494:15, usr: None)
[2018-12-31T18:44:01Z ERROR bindgen::ir::item] Unhandled cursor kind 417: Cursor(default kind: attribute(visibility), loc: /root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2/bits/stl_bvector.h:1136:15, usr: None)
[2018-12-31T18:44:01Z ERROR bindgen::ir::item] Unhandled cursor kind 417: Cursor(default kind: attribute(visibility), loc: /root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2/bits/vector.tcc:59:15, usr: None)
[2018-12-31T18:44:01Z ERROR bindgen::ir::item] Unhandled cursor kind 21: Cursor(reserve kind: CXXMethod, loc: /root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2/bits/vector.tcc:66:5, usr: Some("c:@N@std@ST>2#T#T@vector@F@reserve#i#"))
[2018-12-31T18:44:01Z ERROR bindgen::ir::item] Unhandled cursor kind 21: Cursor(insert kind: CXXMethod, loc: /root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2/bits/vector.tcc:108:5, usr: Some("c:@N@std@ST>2#T#T@vector@F@insert#>@N@__gnu_cxx@ST>2#T#T@__normal_iterator2^_Vector_base<type-parameter-0-0, type-parameter-0-1>:::pointer>@N@std@ST>2#T#T@vector2t0.0t0.1#&1S4_#"))
[2018-12-31T18:44:01Z ERROR bindgen::ir::item] Unhandled cursor kind 21: Cursor(erase kind: CXXMethod, loc: /root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2/bits/vector.tcc:135:5, usr: Some("c:@N@std@ST>2#T#T@vector@F@erase#>@N@__gnu_cxx@ST>2#T#T@__normal_iterator2^_Vector_base<type-parameter-0-0, type-parameter-0-1>:::pointer>@N@std@ST>2#T#T@vector2t0.0t0.1#"))
[2018-12-31T18:44:01Z ERROR bindgen::ir::item] Unhandled cursor kind 21: Cursor(erase kind: CXXMethod, loc: /root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2/bits/vector.tcc:147:5, usr: Some("c:@N@std@ST>2#T#T@vector@F@erase#>@N@__gnu_cxx@ST>2#T#T@__normal_iterator2^_Vector_base<type-parameter-0-0, type-parameter-0-1>:::pointer>@N@std@ST>2#T#T@vector2t0.0t0.1#S0_#"))
[2018-12-31T18:44:01Z ERROR bindgen::ir::item] Unhandled cursor kind 21: Cursor(_M_fill_assign kind: CXXMethod, loc: /root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2/bits/vector.tcc:219:5, usr: Some("c:@N@std@ST>2#T#T@vector@F@_M_fill_assign#i#&1t0.0#"))
[2018-12-31T18:44:01Z ERROR bindgen::ir::item] Unhandled cursor kind 21: Cursor(_M_fill_insert kind: CXXMethod, loc: /root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2/bits/vector.tcc:442:5, usr: Some("c:@N@std@ST>2#T#T@vector@F@_M_fill_insert#>@N@__gnu_cxx@ST>2#T#T@__normal_iterator2^_Vector_base<type-parameter-0-0, type-parameter-0-1>:::pointer>@N@std@ST>2#T#T@vector2t0.0t0.1#i#&1S4_#"))
[2018-12-31T18:44:01Z ERROR bindgen::ir::item] Unhandled cursor kind 21: Cursor(_M_default_append kind: CXXMethod, loc: /root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2/bits/vector.tcc:533:5, usr: Some("c:@N@std@ST>2#T#T@vector@F@_M_default_append#i#"))
[2018-12-31T18:44:01Z ERROR bindgen::ir::item] Unhandled cursor kind 21: Cursor(_M_shrink_to_fit kind: CXXMethod, loc: /root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2/bits/vector.tcc:583:5, usr: Some("c:@N@std@ST>2#T#T@vector@F@_M_shrink_to_fit#"))
[2018-12-31T18:44:01Z ERROR bindgen::ir::item] Unhandled cursor kind 21: Cursor(_M_reallocate kind: CXXMethod, loc: /root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2/bits/vector.tcc:692:5, usr: Some("c:@N@std@SP>1#T@vector>#b#t0.0@F@_M_reallocate#i#"))
[2018-12-31T18:44:01Z ERROR bindgen::ir::item] Unhandled cursor kind 21: Cursor(_M_fill_insert kind: CXXMethod, loc: /root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2/bits/vector.tcc:705:5, usr: Some("c:@N@std@SP>1#T@vector>#b#t0.0@F@_M_fill_insert#$@N@std@S@_Bit_iterator#i#b#"))
[2018-12-31T18:44:01Z ERROR bindgen::ir::item] Unhandled cursor kind 21: Cursor(_M_insert_aux kind: CXXMethod, loc: /root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2/bits/vector.tcc:769:5, usr: Some("c:@N@std@SP>1#T@vector>#b#t0.0@F@_M_insert_aux#$@N@std@S@_Bit_iterator#b#"))
[2018-12-31T18:44:01Z ERROR bindgen::ir::item] Unhandled cursor kind 21: Cursor(_M_shrink_to_fit kind: CXXMethod, loc: /root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2/bits/vector.tcc:797:5, usr: Some("c:@N@std@SP>1#T@vector>#b#t0.0@F@_M_shrink_to_fit#"))
[2018-12-31T18:44:01Z ERROR bindgen::ir::item] Unhandled cursor kind 417: Cursor(default kind: attribute(visibility), loc: /root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2/bits/vector.tcc:816:15, usr: None)
[2018-12-31T18:44:01Z ERROR bindgen::ir::item] Unhandled cursor kind 417: Cursor(default kind: attribute(visibility), loc: /root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2/bits/random.h:36:15, usr: None)
[2018-12-31T18:44:01Z ERROR bindgen::ir::item] Unhandled cursor kind 417: Cursor(default kind: attribute(visibility), loc: /root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2/bits/stl_numeric.h:65:15, usr: None)
[2018-12-31T18:44:01Z ERROR bindgen::ir::item] Unhandled cursor kind 417: Cursor(default kind: attribute(visibility), loc: /root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2/bits/stl_numeric.h:103:15, usr: None)
[2018-12-31T18:44:01Z ERROR bindgen::ir::item] Unhandled cursor kind 417: Cursor(default kind: attribute(visibility), loc: /root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2/bits/random.tcc:35:15, usr: None)
[2018-12-31T18:44:01Z ERROR bindgen::ir::item] Unhandled cursor kind 21: Cursor(__calc kind: CXXMethod, loc: /root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2/bits/random.tcc:53:7, usr: Some("c:@N@std@N@__detail@SP>4#T#Nt0.0#NS0_#NS0_@_Mod>#S0_####Vb0#Vb1@F@__calc#S0_#S"))
[2018-12-31T18:44:01Z ERROR bindgen::ir::item] Unhandled cursor kind 21: Cursor(seed kind: CXXMethod, loc: /root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2/bits/random.tcc:120:5, usr: Some("c:@N@std@ST>4#T#Nt0.0#NS0_#NS0_@linear_congruential_engine@F@seed#S0_#"))
[2018-12-31T18:44:01Z ERROR bindgen::ir::item] Unhandled cursor kind 21: Cursor(seed kind: CXXMethod, loc: /root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2/bits/random.tcc:329:5, usr: Some("c:@N@std@ST>14#T#Ni#Ni#Ni#Ni#Nt0.0#Ni#NS0_#Ni#NS0_#Ni#NS0_#Ni#NS0_@mersenne_twister_engine@F@seed#S0_#"))
[2018-12-31T18:44:01Z ERROR bindgen::ir::item] Unhandled cursor kind 21: Cursor(_M_gen_rand kind: CXXMethod, loc: /root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2/bits/random.tcc:399:5, usr: Some("c:@N@std@ST>14#T#Ni#Ni#Ni#Ni#Nt0.0#Ni#NS0_#Ni#NS0_#Ni#NS0_#Ni#NS0_@mersenne_twister_engine@F@_M_gen_rand#"))
[2018-12-31T18:44:01Z ERROR bindgen::ir::item] Unhandled cursor kind 21: Cursor(discard kind: CXXMethod, loc: /root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2/bits/random.tcc:435:5, usr: Some("c:@N@std@ST>14#T#Ni#Ni#Ni#Ni#Nt0.0#Ni#NS0_#Ni#NS0_#Ni#NS0_#Ni#NS0_@mersenne_twister_engine@F@discard#k#"))
[2018-12-31T18:44:01Z ERROR bindgen::ir::item] Unhandled cursor kind 21: Cursor(seed kind: CXXMethod, loc: /root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2/bits/random.tcc:543:5, usr: Some("c:@N@std@ST>4#T#Ni#Ni#Ni@subtract_with_carry_engine@F@seed#t0.0#"))
[2018-12-31T18:44:01Z ERROR bindgen::ir::item] Unhandled cursor kind 21: Cursor(_M_initialize kind: CXXMethod, loc: /root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2/bits/random.tcc:1395:5, usr: Some("c:@N@std@ST>1#T@poisson_distribution@S@param_type@F@_M_initialize#"))
[2018-12-31T18:44:01Z ERROR bindgen::ir::item] Unhandled cursor kind 21: Cursor(_M_initialize kind: CXXMethod, loc: /root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2/bits/random.tcc:1598:5, usr: Some("c:@N@std@ST>1#T@binomial_distribution@S@param_type@F@_M_initialize#"))
[2018-12-31T18:44:01Z ERROR bindgen::ir::item] Unhandled cursor kind 21: Cursor(_M_initialize kind: CXXMethod, loc: /root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2/bits/random.tcc:2472:5, usr: Some("c:@N@std@ST>1#T@gamma_distribution@S@param_type@F@_M_initialize#"))
[2018-12-31T18:44:01Z ERROR bindgen::ir::item] Unhandled cursor kind 21: Cursor(_M_initialize kind: CXXMethod, loc: /root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2/bits/random.tcc:2796:5, usr: Some("c:@N@std@ST>1#T@discrete_distribution@S@param_type@F@_M_initialize#"))
[2018-12-31T18:44:01Z ERROR bindgen::ir::item] Unhandled cursor kind 21: Cursor(_M_initialize kind: CXXMethod, loc: /root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2/bits/random.tcc:2945:5, usr: Some("c:@N@std@ST>1#T@piecewise_constant_distribution@S@param_type@F@_M_initialize#"))
[2018-12-31T18:44:01Z ERROR bindgen::ir::item] Unhandled cursor kind 21: Cursor(_M_initialize kind: CXXMethod, loc: /root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2/bits/random.tcc:3169:5, usr: Some("c:@N@std@ST>1#T@piecewise_linear_distribution@S@param_type@F@_M_initialize#"))
[2018-12-31T18:44:01Z ERROR bindgen::ir::item] Unhandled cursor kind 417: Cursor(default kind: attribute(visibility), loc: /root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2/stdexcept:41:15, usr: None)
[2018-12-31T18:44:01Z ERROR bindgen::ir::item] Unhandled cursor kind 417: Cursor(default kind: attribute(visibility), loc: /root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2/array:42:15, usr: None)
[2018-12-31T18:44:01Z ERROR bindgen::ir::item] Unhandled cursor kind 417: Cursor(default kind: attribute(visibility), loc: /root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2/array:295:15, usr: None)
[2018-12-31T18:44:01Z ERROR bindgen::ir::item] Unhandled cursor kind 417: Cursor(default kind: attribute(visibility), loc: /root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2/bits/uses_allocator.h:34:15, usr: None)
[2018-12-31T18:44:01Z ERROR bindgen::ir::item] Unhandled cursor kind 417: Cursor(default kind: attribute(visibility), loc: /root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2/tuple:42:15, usr: None)
[2018-12-31T18:44:01Z ERROR bindgen::ir::item] Unhandled cursor kind 417: Cursor(default kind: attribute(visibility), loc: /root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2/functional:60:15, usr: None)
[2018-12-31T18:44:01Z ERROR bindgen::ir::item] Unhandled cursor kind 24: Cursor(function<type-parameter-0-0 (type-parameter-0-1...)> kind: CXXConstructor, loc: /root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2/functional:2430:5, usr: Some("c:@N@std@SP>2#T#pT@function>#Ft0.0Pt0.1@F@function<type-parameter-0-0 (type-parameter-0-1...)>#&1>@N@std@ST>1#T@function1S0_#"))
[2018-12-31T18:44:01Z ERROR bindgen::ir::item] Unhandled cursor kind 417: Cursor(default kind: attribute(visibility), loc: /root/.platformio/packages/toolchain-xtensa/xtensa-lx106-elf/include/c++/4.8.2/bits/stl_algo.h:71:15, usr: None)
[2018-12-31T18:44:01Z ERROR bindgen::ir::item] Unhandled cursor kind 21: Cursor(getCycleCount kind: CXXMethod, loc: /root/.platformio/packages/framework-arduinoespressif8266/cores/esp8266/Esp.h:151:20, usr: Some("c:@S@EspClass@F@getCycleCount#"))
Running cargo check
    Checking my-project v0.1.0 (/ant/my-project)
    Finished dev [unoptimized + debuginfo] target(s) in 0.34s
Transpiling project with mrustc
Run Build- DEBUG: Package 'nb' has 0 dependencies and 1 dependents
Run Build- DEBUG: Package 'void' has 0 dependencies and 1 dependents
Run Build- DEBUG: Package 'embedded-hal' has 2 dependencies and 2 dependents
Run Build- DEBUG: Package 'libc' has 0 dependencies and 2 dependents
Run Build- DEBUG: Package 'esp8266-hal' has 2 dependencies and 1 dependents
Run Build- DEBUG: Package 'my-project' has 3 dependencies and 0 dependents
Run Build- DEBUG: TODO: 'rerun-if-changed' = 'build.rs'
Run Build- DEBUG: Building /ant/my-project/lib/generated/liblibc-0_2_45.hir - Missing
BUILDING libc from libc v0.2.45 with features []
Run Build- Calling /root/.esp-rs/mrustc/bin/mrustc /ant/my-project/vendor/libc/src/lib.rs --crate-name libc --crate-type rlib --crate-tag 0_2_45 -g --cfg debug_assertions -O -o /ant/my-project/lib/generated/liblibc-0_2_45.hir -L /ant/my-project/lib/generated --cfg stdbuild -L /root/.esp-rs/mrustc/output
Run Build- DEBUG: Environment { OUT_DIR=/ant/my-project/lib/generated/build_libc CARGO_MANIFEST_DIR=/ant/my-project/vendor/libc CARGO_PKG_VERSION=0.2.45 CARGO_PKG_VERSION_MAJOR=0 CARGO_PKG_VERSION_MINOR=2 CARGO_PKG_VERSION_PATCH=45 }
terminate called after throwing an instance of 'ParseError::Unexpected'
  what():  std::exception
Run Build- DEBUG: Compiler was terminated with signal 6
Run Build- DEBUG: See /ant/my-project/lib/generated/liblibc-0_2_45.hir_dbg.txt for the compiler output
BUILD FAILED
root@240e8789861a:/ant/my-project#

@russell
Copy link
Contributor

russell commented Jan 1, 2019

can you post the contents of Cargo.toml. it looks like cargo is still using libc v0.2.45 from the output.

edit:
you could also try running cargo vendor and confirming that the libc version is 0.2.42

@torntrousers
Copy link
Author

cat Cargo.toml
[package]
name = "my-project"
version = "0.1.0"
authors = ["root"]

[dependencies]
embedded-hal = { version = "0.2.1", features = ["unproven"] }
esp8266-hal = "0.0.1"
libc = { version = "0.2.42", default-features = false }

@torntrousers
Copy link
Author

cargo vendor
   Vendoring embedded-hal v0.2.2 (/root/.cargo/registry/src/github.com-1ecc6299db9ec823/embedded-hal-0.2.2) to /ant/my-project/vendor/embedded-hal
   Vendoring esp8266-hal v0.0.1 (/root/.cargo/registry/src/github.com-1ecc6299db9ec823/esp8266-hal-0.0.1) to /ant/my-project/vendor/esp8266-hal
   Vendoring libc v0.2.45 (/root/.cargo/registry/src/github.com-1ecc6299db9ec823/libc-0.2.45) to /ant/my-project/vendor/libc
   Vendoring nb v0.1.1 (/root/.cargo/registry/src/github.com-1ecc6299db9ec823/nb-0.1.1) to /ant/my-project/vendor/nb
   Vendoring void v1.0.2 (/root/.cargo/registry/src/github.com-1ecc6299db9ec823/void-1.0.2) to /ant/my-project/vendor/void
To use vendored sources, add this to your .cargo/config for this project:

[source.crates-io]
replace-with = "vendored-sources"

[source.vendored-sources]
directory = "/ant/my-project/vendor"

@torntrousers
Copy link
Author

Ah, typo in the libc line in Cargo.toml:

libc = { version = "0.2.42", default-features = false }

not

libc = { version = "=0.2.42", default-features = false }

@torntrousers
Copy link
Author

torntrousers commented Jan 1, 2019

So now success, yipee. Thank you!

...
Compiling .pioenvs/nodemcuv2/FrameworkArduino/umm_malloc/umm_malloc.c.o
Archiving .pioenvs/nodemcuv2/libFrameworkArduino.a
Indexing .pioenvs/nodemcuv2/libFrameworkArduino.a
Linking .pioenvs/nodemcuv2/firmware.elf
Building .pioenvs/nodemcuv2/firmware.bin
Retrieving maximum program size .pioenvs/nodemcuv2/firmware.elf
Checking size .pioenvs/nodemcuv2/firmware.elf
Memory Usage -> http://bit.ly/pio-memory-usage
DATA:    [===       ]  34.1% (used 27968 bytes from 81920 bytes)
PROGRAM: [==        ]  23.7% (used 248000 bytes from 1044464 bytes)
======================================================================================= [SUCCESS] Took 12.72 seconds =======================================================================================

Has that created some firmware image somewhere that I can flash the esp8266 with?

@torntrousers
Copy link
Author

It runs. So happy. Thanks everyone for the help.
For anyone else trying this, once the build has completed it created a file firmware.bin so from outside of the docker container you can flash the ESP8266 like this:

docker ps -a
CONTAINER ID        IMAGE               COMMAND             CREATED             STATUS              PORTS               NAMES
240e8789861a        49363eba1b56        "/bin/bash"         2 weeks ago         Up 2 weeks                              affectionate_lichterman
C02V83QTG8WN:temp anthonyelder$ docker cp 240e8789861a:/ant/my-project/.pioenvs/nodemcuv2/firmware.bin .
C02V83QTG8WN:temp anthonyelder$ esptool.py --port /dev/tty.wchusbserial1410 erase_flash
esptool.py v2.5.0
Serial port /dev/tty.wchusbserial1410
Connecting....
Detecting chip type... ESP8266
Chip is ESP8266EX
Features: WiFi
MAC: 18:fe:34:d7:72:24
Uploading stub...
Running stub...
Stub running...
Erasing flash (this may take a while)...
Chip erase completed successfully in 9.9s
Hard resetting via RTS pin...
C02V83QTG8WN:temp anthonyelder$ esptool.py --port /dev/tty.wchusbserial1410 write_flash --flash_size=detect 0 firmware.bin
esptool.py v2.5.0
Serial port /dev/tty.wchusbserial1410
Connecting....
Detecting chip type... ESP8266
Chip is ESP8266EX
Features: WiFi
MAC: 18:fe:34:d7:72:24
Uploading stub...
Running stub...
Stub running...
Configuring flash size...
Auto-detected Flash size: 4MB
Compressed 252144 bytes to 183783...
Wrote 252144 bytes (183783 compressed) at 0x00000000 in 16.4 seconds (effective 123.3 kbit/s)...
Hash of data verified.

Leaving...
Hard resetting via RTS pin...

@emosenkis
Copy link
Owner

Sounds like this is resolved by #24. @torntrousers, can you send a pull request that adds instructions for flashing firmware built using Docker?

@torntrousers
Copy link
Author

Ok. Ideally it would be great to do what was mentioned - ...hosted on Docker hub and users wouldn't have to spend an hour compiling the entirety of mrustc...

@emosenkis
Copy link
Owner

emosenkis commented Jan 1, 2019 via email

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants