Skip to content

Can't compile for arm android #86

Open
@4ntoine

Description

@4ntoine

I'm trying to compile on x86_64 linux Ubuntu 18.04 machine [build] a toolchain that works on ARM Android (arm-linux-androideabi) [host] and targets xtensa-lx106-elf.

I've created a config file from "xtensa-lx106-elf" sample and changed to "canadian" and "arm-linux-androideabi" host (passing of Android NDK standalone toolchain in PATH). I've also changed GCC version to 7.1.0 and isl to 0.18.

I'm getting the following error:

[INFO ]  =================================================================
[INFO ]  Installing final gcc compiler for build
[ERROR]    /opt/Espressif/espressif-crosstool-ng/.build/xtensa-lx106-elf/build/build-cc-gcc-final-build-x86_64-build_pc-linux-gnu/xtensa-lx106-elf/libstdc++-v3/include/cstdint:78:11: error: 'uint_least32_t' is already declared in this scope
[ERROR]    /opt/Espressif/espressif-crosstool-ng/.build/xtensa-lx106-elf/build/build-cc-gcc-final-build-x86_64-build_pc-linux-gnu/xtensa-lx106-elf/libstdc++-v3/include/cstdint:78:11: error: 'uint_least32_t' is already declared in this scope
[ERROR]    make[4]: *** [Makefile:1737: xtensa-lx106-elf/bits/stdc++.h.gch/O2ggnu++0x.gch] Error 1
[ERROR]    make[4]: *** [Makefile:1742: xtensa-lx106-elf/bits/stdc++.h.gch/O2g.gch] Error 1
[ERROR]    make[3]: *** [Makefile:510: all-recursive] Error 1
[ERROR]    make[2]: *** [Makefile:417: all] Error 2
[ERROR]    make[1]: *** [Makefile:10680: all-target-libstdc++-v3] Error 2
[ERROR]   
[ERROR]  >>
[ERROR]  >>  Build failed in step 'Installing final gcc compiler for build'
[ERROR]  >>        called in step '(top-level)'
[ERROR]  >>
[ERROR]  >>  Error happened in: CT_DoExecLog[scripts/functions@257]
[ERROR]  >>        called from: do_gcc_core_backend[scripts/build/cc/100-gcc.sh@545]
[ERROR]  >>        called from: do_gcc_for_build[scripts/build/cc/100-gcc.sh@633]
[ERROR]  >>        called from: do_cc_for_build[scripts/build/cc.sh@49]
[ERROR]  >>        called from: main[scripts/crosstool-NG.sh@646]
[ERROR]  >>
[ERROR]  >>  For more info on this error, look at the file: 'build.log'
[ERROR]  >>  There is a list of known issues, some with workarounds, in:
[ERROR]  >>      'share/doc/crosstool-ng/crosstool-ng-1.22.0-97-gca13a260/B - Known issues.txt'
[ERROR]   
[ERROR]  (elapsed: 17:25.55)
[17:26] / make: *** [ct-ng:152: build] Error 2

config.zip
build.zip

Info:

/opt/Espressif/espressif-crosstool-ng anton$uname -a
Linux dell-XPS-13-9370 5.3.0-51-generic #44~18.04.2-Ubuntu SMP Thu Apr 23 14:27:18 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

/opt/Espressif/espressif-crosstool-ng anton$git log -1
commit ca13a260d6c34b8acfeb03efc0f0fba551160ec4 (HEAD -> esp8266-1.22.x, origin/esp8266-1.22.x)
Author: dongheng <Dong Heng>
Date:   Mon Sep 2 20:16:18 2019 +0800

    chore(ci): update CI from xtensa-1.22.x

Any thoughts?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions