Forums

Skip to content

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

tcc on musl/arm64

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
5 posts • Page 1 of 1
Author
Message
akrmn24
n00b
n00b
Posts: 32
Joined: Sun Nov 24, 2024 3:28 pm
Contact:
Contact akrmn24
Website

tcc on musl/arm64

  • Quote

Post by akrmn24 » Sat Jan 25, 2025 12:04 pm

I am trying out tcc in a chroot on an ARM64/Ampere VPS. I emerge tcc (I unmask the ~arm64 keyword). I make a simple hello world program. Compile it with tcc -o hello hello.c. But When I run ./hello, I get 'Segmentation fault (core dumped)'. When I do tcc -run hello.c it works though.

Any idea?
Top
pingtoo
Advocate
Advocate
User avatar
Posts: 2182
Joined: Fri Sep 10, 2021 8:37 pm
Location: Richmond Hill, Canada

  • Quote

Post by pingtoo » Sat Jan 25, 2025 12:09 pm

tcc does not support ARM architecture. It only support X86
Top
akrmn24
n00b
n00b
Posts: 32
Joined: Sun Nov 24, 2024 3:28 pm
Contact:
Contact akrmn24
Website

  • Quote

Post by akrmn24 » Sat Jan 25, 2025 2:30 pm

It says in their README that they support ARM. I just made a test directly on my raspberry pi with tcc and it worked. I don't know why it doesn't work in the chroot in the Ampere VPS...

Edit: also worked in the Ubuntu host for the Ampere VPS.
Top
pingtoo
Advocate
Advocate
User avatar
Posts: 2182
Joined: Fri Sep 10, 2021 8:37 pm
Location: Richmond Hill, Canada

  • Quote

Post by pingtoo » Sat Jan 25, 2025 3:50 pm

So I was outdated :oops:

For a long time it did not support ARM

On the chroot environment have you check the binary code type?

Code: Select all

file a.out
Top
Hu
Administrator
Administrator
Posts: 24395
Joined: Tue Mar 06, 2007 5:38 am

  • Quote

Post by Hu » Sat Jan 25, 2025 4:07 pm

If it crashes with a segmentation fault, then the next step is to debug it to understand what memory it tried to access and why it did that instead of what it should have done.
Top
Post Reply
  • Print view

5 posts • 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