crosstool-ng

ESP32 开发

会有一股神秘感。 提交于 2020-08-07 16:37:31
功能丰富的 Wi-Fi & 蓝牙 MCU适用于多样的物联网应用 esp32/sources/esp-idf $ python -m pip install --user -r requirements.txt $ make menuconfig $ xtensa-esp32-elf-gcc -v Using built-in specs. COLLECT_GCC=xtensa-esp32-elf-gcc COLLECT_LTO_WRAPPER=...... Target: xtensa-esp32-elf ...... Thread model: posix gcc version 5.2.0 (crosstool-NG crosstool-ng-......) 问题: esp32/sources/esp-idf/components/soc/include/hal/i2s_types.h:70:31: error: expected ',' or '}' before '__attribute__' I2S_COMM_FORMAT_I2S __attribute__((deprecated)) = 0x01, /*!< I2S comm ^ esp32/sources/esp-idf/components/soc/src/hal/i2s_hal.c: In function

Using Python subprocess.call() to launch an ncurses process

老子叫甜甜 提交于 2019-12-31 04:11:16
问题 I'm trying to call ct-ng (http://crosstool-ng.org/) from a SCons SConstruct script, so basically from Python. using the following method: ret = subprocess.call(["/mnt/build/pw_build/crosstool-ng/bin/ct-ng menuconfig"], env=env_cross,shell=True) crosstool-ng uses ncurses to present the user with a menu: Unfortunately when trying to navigate the menus I get: Using cat to display the sequences when using the arrow keys I see: :/mnt/build$ cat > /dev/null ^[OA^[OD^[OB^[OC^[OA^[OB^[OD^[OC^[OA^[OB

Using Python subprocess.call() to launch an ncurses process

ぐ巨炮叔叔 提交于 2019-12-31 04:11:11
问题 I'm trying to call ct-ng (http://crosstool-ng.org/) from a SCons SConstruct script, so basically from Python. using the following method: ret = subprocess.call(["/mnt/build/pw_build/crosstool-ng/bin/ct-ng menuconfig"], env=env_cross,shell=True) crosstool-ng uses ncurses to present the user with a menu: Unfortunately when trying to navigate the menus I get: Using cat to display the sequences when using the arrow keys I see: :/mnt/build$ cat > /dev/null ^[OA^[OD^[OB^[OC^[OA^[OB^[OD^[OC^[OA^[OB

gettext compile fails in crosstool-ng build on cygwin

瘦欲@ 提交于 2019-12-25 05:03:13
问题 I am new to crosscompiling and I followed the steps from using-crosstool-ng-and-cygwin by MAKSYM SHYTE The crosstool fails to build gettext when generating crosscompiler for i686-nptl-linux-gnu target build = x86_64-unknown-cygwin host = x86_64-unknown-cygwin target = i686-nptl-linux-gnu or x86_64-unknown-linux-gnu NOTE: This gnulib patch from Ken Brown is needed to get gettext module compile. Alternatively, it also compiles if we just comment out #include in /usr/include/sys/types.h as per

gettext compile fails in crosstool-ng build on cygwin

北城余情 提交于 2019-12-25 05:03:08
问题 I am new to crosscompiling and I followed the steps from using-crosstool-ng-and-cygwin by MAKSYM SHYTE The crosstool fails to build gettext when generating crosscompiler for i686-nptl-linux-gnu target build = x86_64-unknown-cygwin host = x86_64-unknown-cygwin target = i686-nptl-linux-gnu or x86_64-unknown-linux-gnu NOTE: This gnulib patch from Ken Brown is needed to get gettext module compile. Alternatively, it also compiles if we just comment out #include in /usr/include/sys/types.h as per

How to reduce ELF section padding?

旧时模样 提交于 2019-12-24 07:49:12
问题 I used crosstool-NG to create a PowerPC toolchain with gcc 6.3.0 and glibc 2.25. I have the following test program, test.c: int main() { return 0; } I compiled it with the command: powerpc-unknown-linux-gnu-gcc -s -Os -o test test.c The final binary is 66904 bytes, which is much larger than expected. The section headers look like this: $ powerpc-unknown-linux-gnu-readelf -S test There are 27 section headers, starting at offset 0x10120: Section Headers: [Nr] Name Type Addr Off Size ES Flg Lk

How to I get crosstool-ng C++ compiler working

喜你入骨 提交于 2019-12-12 12:12:37
问题 I'm trying to get crosstool-ng working with both C and C++. Even though I've selected C++ while using menuconfig, it doesn't seem to get built. The gcc compiler works as expected but not g++ I'm not sure what I'm doing wrong so any help would be appreciated. I followed the steps found here: Building embedded ARM systems with Crosstool-NG $ arm-unknown-linux-gnueabi-cpp main.cpp -o test arm-unknown-linux-gnueabi-cpp: main.cpp: C++ compiler not installed on this system NOTE: there is no arm

Crosstool-ng g++ not compiling c++11 std::current_exception

a 夏天 提交于 2019-12-11 04:54:19
问题 I build a gcc toolchain using Crosstool-ng, but the resulting g++ does not compile and/or link C++11 exceptions. If I try to compile: #include <exception> int main() { std::current_exception(); } via: arm-none-linux-gnueabihf-g++ -std=c++11 foo.cpp I get: foo.cpp: In function 'int main()': foo.cpp:5:9: error: 'current_exception' is not a member of 'std' std::current_exception(); ^~~ However, if I additionally provide cortex-a9 as cpu the haviour changes: arm-none-linux-gnueabihf-g++ -mcpu

How to use candian in Crosstools-NG in a cross-native fashion to get gcc on an arm board?

这一生的挚爱 提交于 2019-12-08 00:46:37
问题 As I understand, to have gcc on an armv5 board compiling executables while using my x86 machine to compile that arm native gcc, I need this setup: Machine configuring the toolchain components: the config machine : x86_64 Machine building the toolchain components: the build machine : x86_64 Machine running the toolchain: the host machine : ARM Machine the toolchain is generating code for: the target machine : ARM Based on reading the cross-ng docs here, I should use a cross-native setup, but

Cross compile native gcc for arm with crosstool-ng, have toolchain, which architecture deps, and which build, host, and target?

ぐ巨炮叔叔 提交于 2019-12-07 16:54:22
问题 I want to build a native gcc for arm, to run on Android, as I've built glibc for it and want to build GNU utils linked against glibc, so want to compile natively on the Android phone. I've built the crosscompiling toolchain with crosstools-ng. I've cross compiled glibc, fine. Have built a couple native arm (arm-exynos-linux-gnueabi) utils, like tar etc. and confirmed they work on the Android phone, when symlinking the built x-tools sysroot's lib directory to /lib on the android machine. Now I