Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Re: [gentoo-user] crossdev arm-unknown-linux-gnu failed

276 views
Skip to first unread message

Andrew Udvare

unread,
May 26, 2018, 11:40:03 PM5/26/18
to


> On 2018-05-26, at 23:32, Andrew Udvare <aud...@gmail.com> wrote:
>
> You probably mean to use another triple name. The last part is the C library, so you probably mean:
>
> arm-unknown-Linux-glibc

That is:

arm-unknown-linux-glic

It is case-sensitive.

---
Andrew

Andrew Udvare

unread,
May 26, 2018, 11:40:03 PM5/26/18
to


> On 2018-05-26, at 23:06, tu...@posteo.de wrote:
>
> Hi,
>
> too feed a STM32F103C8T6 MCU (Core-M3) with some code to execute,
> I want a compiler. For that I did a
>
> crossdev arm-unknown-linux-gnu
>
> . That one failed to build (gcc, binytils seem to be ok).
>
> Unfortunately I did not really understand, what the great concerto
> of logfiles (attached) are want to tell me. On the internet I found
> an older thread of a person who seems (?) to have similiar problems
> with the same target compiler, but no solution there was.
>
> I am running Gentoo linux on a AMD Phenom(tm) II X6 1090T Processor.
> This is a 64 bit system. The system is updated regularly.
>
> I would be very happy, if someone, who better understand the topic,
> could help me to get this thing running -- thank you very much in
> advance for any help!


I see in your log:

Configuration arm-unknown-linux-gnu not supported

You probably mean to use another triple name. The last part is the C library, so you probably mean:

arm-unknown-Linux-glibc

---
Andrew

R0b0t1

unread,
May 27, 2018, 12:10:03 AM5/27/18
to
You may need to fix the profile yourself, but the typical triplet is
now "arm-linux-gnueabihf." There is a tracker issue on this. Most
things compile for me, some breakage in @system.

Cheers,
R0b0t1

tu...@posteo.de

unread,
May 27, 2018, 3:20:03 AM5/27/18
to
Hi,

the target is a STM32F03C8T6 (the typical "Blue Pill" dev board), this
MCU has no FPU so "hf" (hardfloat) seems to be wrong to me...

And maybe a noob-question:
What profile do you mean?

Cheers
Meino

Jeremi Piotrowski

unread,
May 27, 2018, 11:30:04 AM5/27/18
to
On Sun, May 27, 2018 at 05:06:43AM +0200, tu...@posteo.de wrote:
> Hi,
>
> too feed a STM32F103C8T6 MCU (Core-M3) with some code to execute,
> I want a compiler. For that I did a
>
> crossdev arm-unknown-linux-gnu
>
> . That one failed to build (gcc, binytils seem to be ok).
>
That triplet is not going to work for that hardware for two reasons:

- bare-metal implies no kernel so 'linux' is wrong
- gnu (== glibc) is not going to work on bare-metal

What you're looking for is 'arm-none-eabi', that's what all the vendor
supplied prebuilt toolchains use. That triplet will use 'newlib' as the
libc, which is the correct choice for bare-metal.

I wouldv'e said 'arm-unknown-linux-eabi' or the gentoo specific
'armv7m-softfloat-none-eabi' but for some reasons the binutils
build chokes on that. However compared to arm-none-eabi the only thing
these triplets do is change some of the configured defaults (arch/fpu/...,
see /usr/portage/eclass/toolchain.eclass), so you should be fine with
'arm-none-eabi'.

Raffaele Belardi

unread,
May 28, 2018, 6:10:03 AM5/28/18
to
arm-none-eabi is also what I'm using here on a similar platform.

To the OP, if you only need to build some program for ARM and not install a gentoo system
on the target then you could download the pre-built cross-compiler toolchain from the ARM
site (https://developer.arm.com/open-source/gnu-toolchain/gnu-rm/downloads).

raffaele

tu...@posteo.de

unread,
May 28, 2018, 2:40:04 PM5/28/18
to
Hi Raffaele,

your suggestion put a friendly smile onto my face:
No, I dont want compile a Gentoo System... :)
I want to compile a FORTH (Mecrisp Stellaris by Matthias Koch) for an
STM32F103C8T6 (72Mhz, one core, 128Kb Flash 20kb RAM). This is jut
0.23 nm above "pure assembler".
So your suggestion is very welcome and exactlu what I need after quite
a few failed iterations about the name of that game.

Thanks a lot, Raffaele! This day has been rescued! :) ;)

Cheers!
Meino

For those, who may like a quirky yet genious programming language and
who are not frightened by its age or by being responsible for the stack
themselves:
https://en.wikipedia.org/wiki/Forth_(programming_language)
Still a good thing for microcontrollers due to its compact size,
small footprint and excellent exection speed due to the fact,
that Mecrisp Stellaris compiles to native assembler right on the
board. This language is compiler and interpreter at the same time.
http://hightechdoc.net/mecrisp-stellaris/_build/html/
http://mecrisp.sourceforge.net/
https://sourceforge.net/projects/mecrisp/files/
The STM32F103C8T6 minimum dev board aka "blue pill" can be bought
online for under 2 $.

No...this is not meant aa an advertisement...I am only a nerd... ;)
And the above is all OpenSource!

Cheers again!
Meino
0 new messages