Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't compile for arm android #86

Open
4ntoine opened this issue Jun 20, 2020 · 1 comment
Open

Can't compile for arm android #86

4ntoine opened this issue Jun 20, 2020 · 1 comment

Comments

@4ntoine
Copy link

4ntoine commented Jun 20, 2020

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?

@4ntoine
Copy link
Author

4ntoine commented Jun 20, 2020

from build.log:

[ALL  ]                     from /opt/Espressif/espressif-crosstool-ng/.build/src/gcc-7.1.0/libstdc++-v3/include/precompiled/stdc++.h:52:
[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
[ALL  ]       using ::uint_least32_t;
[ALL  ]               ^~~~~~~~~~~~~~
[ALL  ]    In file included from /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/bits/char_traits.h:422:0,
[ALL  ]                     from /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/ios:40,
[ALL  ]                     from /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/istream:38,
[ALL  ]                     from /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/sstream:38,
[ALL  ]                     from /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/complex:45,
[ALL  ]                     from /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/ccomplex:39,
[ALL  ]                     from /opt/Espressif/espressif-crosstool-ng/.build/src/gcc-7.1.0/libstdc++-v3/include/precompiled/stdc++.h:52:
[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
[ALL  ]       using ::uint_least32_t;
[ALL  ]               ^~~~~~~~~~~~~~
[ERROR]    make[4]: *** [Makefile:1737: xtensa-lx106-elf/bits/stdc++.h.gch/O2ggnu++0x.gch] Error 1
[ALL  ]    make[4]: *** Waiting for unfinished jobs....
[ERROR]    make[4]: *** [Makefile:1742: xtensa-lx106-elf/bits/stdc++.h.gch/O2g.gch] Error 1

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

No branches or pull requests

1 participant