Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Architectures & Platforms Gentoo on ARM
  • Search

Failure to compile using arm-none-eabi from crossdev

Gentoo on all things ARM. Both 32 bit and 64 bit.
Tell about your hardware and CHOST.
Problems with crossdev targeting ARM hardware go here too.
Post Reply
  • Print view
Advanced search
1 post • Page 1 of 1
Author
Message
epenguin
n00b
n00b
User avatar
Posts: 25
Joined: Tue Dec 07, 2021 7:56 pm
Location: US
Contact:
Contact epenguin
Website

Failure to compile using arm-none-eabi from crossdev

  • Quote

Post by epenguin » Mon Feb 14, 2022 3:32 pm

Here are the instructions I used to generate the toolchain: https://wiki.gentoo.org/wiki/How_to_bui ... d_cortex-r . This wiki contains instructions for building a really low footprint toolchain for cortex-m and cortex-r, but I've had a few issues with it.

When compiling this project:
https://github.com/blackmagic-debug/blackmagic

Here is the result:
https://dpaste.com/948Z296GQ

Specifically:

Code: Select all

/usr/libexec/gcc/arm-none-eabi/ld: /usr/lib/gcc/arm-none-eabi/11.2.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp/libc_nano.a(lib_a-chk_fail.o): in function `__chk_fail':
chk_fail.c:(.text.__chk_fail+0x3e): undefined reference to `_exit'
/usr/libexec/gcc/arm-none-eabi/ld: /usr/lib/gcc/arm-none-eabi/11.2.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp/libc_nano.a(lib_a-signalr.o): in function `_kill_r':
signalr.c:(.text._kill_r+0xe): undefined reference to `_kill'
/usr/libexec/gcc/arm-none-eabi/ld: /usr/lib/gcc/arm-none-eabi/11.2.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp/libc_nano.a(lib_a-signalr.o): in function `_getpid_r':
signalr.c:(.text._getpid_r+0x0): undefined reference to `_getpid'
/usr/libexec/gcc/arm-none-eabi/ld: /usr/lib/gcc/arm-none-eabi/11.2.1/../../../../arm-none-eabi/lib/thumb/v7-m/nofp/libc_nano.a(lib_a-writer.o): in function `_write_r':
writer.c:(.text._write_r+0x10): undefined reference to `_write'
collect2: error: ld returned 1 exit status
make[1]: *** [platforms/native/Makefile.inc:35: blackmagic_dfu.elf] Error 1
make[1]: *** Waiting for unfinished jobs....
make: *** [Makefile:17: all] Error 2
It would honestly be extremely convenient and preferable to just use the toolchain provided by arm. The gentoo wiki instructions I've linked above seem to imply it cuts a lot of the fat off and provides "a functioning multilib / multiarch for embedded arm development with small code output size". While this option is nice to have, it would be preferable to have a toolchain that can guarantee compatibility with as many cortex m and r devices as possible like the toolchain provided by arm. The reason I don't just use the one from arm is because for some reason (and if you know the reason I would also love to know why, sincerely) they compile gdb with ncurses 5 so I always get this error when using their provided arm-none-eabi-gdb:

Code: Select all

error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory
I know of a million little hacks to fix this, but this has been around for years and whoever maintains the toolchain at arm already knows about this and doesn't care so I'd really love to get crossdev working to produce a stable embedded arm toolchain.
Top
Post Reply
  • Print view
1 post • Page 1 of 1

Return to “Gentoo on ARM”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic