View previous topic :: View next topic |
Author |
Message |
kcb n00b
Joined: 03 May 2016 Posts: 1
|
Posted: Tue May 03, 2016 4:28 am Post subject: arm-none-eabi-g++ Where it may be? |
|
|
Hello!
I want to install toolchain for stm32 microcontrollers.
Code: | crossdev -S -t arm-none-eabi |
finished with no errors, but I can't find arm-none-eabi-g++ in installed binaries. Gcc, as, ld... all except g++. What I'm doing wrong? |
|
Back to top |
|
|
greenboard n00b
Joined: 31 Mar 2021 Posts: 1
|
Posted: Wed Mar 31, 2021 10:22 pm Post subject: |
|
|
I manged to solve this issue. (Apologies for the necro-bump, this was the only thread I found on this issue when trying to find a solution myself).
I noticed in the initial crossdev output that only stage 3 was being built,
Code: | * Stage: 3 (C compiler & libc) |
which according to the output of crossdev --help does not build a full compiler:
Code: | Stage Options:
-s0, --stage0 Build just binutils
-s1, --stage1 Also build a bare C compiler (no C library/
C++/shared GCC libs/C++ exceptions/etc...)
-s2, --stage2 Also build kernel headers
-s3, --stage3 Also build the C library
-s4, --stage4 Also build a full compiler [default]
(shared libs GCC/various lang frontends/etc...) |
I add the -s4 flag to the crossdev command and this built the g++ compiler:
Code: | # crossdev --stable -t arm-none-eabi -s4
* crossdev version: 20201129
* Host Portage ARCH: amd64
* Host Portage System: x86_64-pc-linux-gnu (i686-pc-linux-gnu x86_64-pc-linux-gnu)
* Target Portage ARCH: arm
* Target System: arm-none-eabi
* Stage: 4 (C/C++ compiler)
...
# ls /usr/bin/arm*g++
/usr/bin/arm-none-eabi-g++ |
|
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|