Forums

Skip to content

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

crossdev build chain

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
28 posts
  • Previous
  • 1
  • 2
Author
Message
axl
Veteran
Veteran
User avatar
Posts: 1147
Joined: Fri Oct 11, 2002 7:42 pm
Location: Romania
Contact:
Contact axl
Website

  • Quote

Post by axl » Wed May 03, 2023 2:39 pm

eu47 wrote:Interesting. You may have your reasons to have that third linux in /mnt/blanc/rootfs/pi.

I only need your second linux, that in /usr/aarch64-unknown-linux-gnu.
/mnt/blanc/rootfs/pi is just a pi rootfs shared through nfs. you can use an intel, not just to build your own crossdev toolchain for distcc, you can also update your own toolchain and deps, and also, update the pi remotely. that is where that long command comes in. You can use it to update your toolchain in /usr/aarc64whatever. but you can also use to upgrade hard packages like gcc, remotely.

And I think you should also look into running qemu statically, using binfmt.d. Just for good measure. It's an invaluable tool. You can actually chroot on arm linux from intel cpu, seamlessly.
Top
eu47
n00b
n00b
Posts: 41
Joined: Fri May 06, 2022 4:52 am
Location: Canada

  • Quote

Post by eu47 » Wed May 03, 2023 6:10 pm

axl wrote: I didn't start with both systems being arm. I started just like you, building for PI on intel. It should work. I assume there is something else at fault here. NOT the different arch. And even that is not a problem as you can run cross platform through qemu-static.

I suggest you take a look in config.log to see what the actual error was.
So, after the above issue was fixed, I started to build an aarch64 clang with cross-emerge.
The dependencies were built successfully until dev-lang/python, which seems to be pulled as dependency of clang even if "python" useflag is not set.
python build fails at configure stage with:

Code: Select all

configure:25189: checking for device files
configure:25194: checking for /dev/ptmx
configure:25196: result: not set
configure:25198: error: set ac_cv_file__dev_ptmx to yes/no in your CONFIG_SITE file when cross compiling
Any idea what's the cause of this error?
Top
eu47
n00b
n00b
Posts: 41
Joined: Fri May 06, 2022 4:52 am
Location: Canada

  • Quote

Post by eu47 » Wed May 03, 2023 7:14 pm

I solved the python configure problem above by altering the ebuild:

In src_prepare I added:

Code: Select all

touch config.site
echo "ac_cv_file__dev_ptmx=no" > config.site
echo "ac_cv_file__dev_ptc=no" >> config.site
In src_configure I changed the econf line to:

Code: Select all

CONFIG_SITE=config.site econf ...
Top
Post Reply
  • Print view

28 posts
  • Previous
  • 1
  • 2

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