Skip to content
This repository has been archived by the owner on Jan 24, 2022. It is now read-only.

cortex-m-rt doesn't build on Windows anymore #80

Closed
jcreedon opened this issue Jul 3, 2018 · 4 comments · Fixed by #290
Closed

cortex-m-rt doesn't build on Windows anymore #80

jcreedon opened this issue Jul 3, 2018 · 4 comments · Fixed by #290
Labels

Comments

@jcreedon
Copy link

jcreedon commented Jul 3, 2018

On Windows, with a fresh clean install of arm-none-eabi-gcc, building cortex-m-rt eventually fails with:

Internal error occurred: Failed to find tool. Is `ar` installed? (see https://github.com/alexcrichton/cc-rs#compile-time-requirements for help)

As a workaround, setting the TARGET_AR environment variable to arm-none-eabi-ar fixes it. This was not necessary before, and is not documented anywhere if it is a new requirement.

@tib888
Copy link

tib888 commented Jul 15, 2018

I had the same issue on windows.
Thank you for this fix!

@Sh4rK
Copy link

Sh4rK commented Jul 26, 2018

I just bumped into this as well, thanks for the workaround.

@japaric
Copy link
Member

japaric commented Aug 2, 2018

IMO, cc should be using a prefixed archiver if already using a prefixed compiler / assembler. I have filed rust-lang/cc-rs#330 to request changing the behavior.

@jonathanpallant
Copy link
Contributor

I fell over this today :/

@bors bors bot closed this as completed in #290 Aug 26, 2020
@bors bors bot closed this as completed in feef84e Aug 26, 2020
adamgreig pushed a commit to rust-embedded/cortex-m that referenced this issue Jan 12, 2022
290: Beef up CI r=therealprof a=jonas-schievink

Closes rust-embedded/cortex-m-rt#233
Closes rust-embedded/cortex-m-rt#80

Co-authored-by: Jonas Schievink <jonasschievink@gmail.com>
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants