Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Unsupported Software
  • Search

Compiling for a different-ish platform: crossdev didn't help

This forum covers all Gentoo-related software not officially supported by Gentoo. Ebuilds/software posted here might harm the health and stability of your system(s), and are not supported by Gentoo developers. Bugs/errors caused by ebuilds from overlays.gentoo.org are covered by this forum, too.
Post Reply
Advanced search
3 posts • Page 1 of 1
Author
Message
PeGa!
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 104
Joined: Fri May 13, 2005 3:25 pm
Location: Capital Federal, Buenos Aires, Argentina
Contact:
Contact PeGa!
Website

Compiling for a different-ish platform: crossdev didn't help

  • Quote

Post by PeGa! » Fri Sep 01, 2017 5:28 am

Hi,

In an Atom n2600 I've got Funtoo (x86_64) installed with a very tight set of CFLAGS (safe ones, but very specific for the architecture) and while the system runs very smooth, it's a royal PITA when it comes the time for compiling.

That being said, I need to install new software into the atom (e.g. Chromium, and while this is a valid example, it's not the only packages I need to install), and as compiling is taking ages, I wanted to compile it in a more powerful system, for later packaging with -B and subsequent installation with -K.

I've attempted a crossdev setup with my desktop (AMD Vishera 8350, Gentoo x86_64), but either I didn't understand the crossdev concept, or it refused to compile to the same architecture.

The thing is, both processors and systems are x86_64, only that the Atom has a very reduced instruction set; that being said, there are some incompatibilities between platforms.

I attempted a kvm setup with n270 CPU settings, which somehow the guest OS (systemrescuecd) understood as i686 platform; aside from that specific setup, any other setup I do on kvm ends with SIGILL interruptions, which prevents me for doing any useful operation when chrooting for the first time into the new environment.

For kvm use, this is what I did:

- Created the kvm VM (choosing n270 as CPU)
- Booted it with systemrescuecd
- rsync'ed the netbook's filesystem (funtoo) into the kvm VM
- Chrooted into the kvm VM
- any useful operation (emege, grub-install, even the file operation ends with SIGILL) doesn't appear to work, resulting in SIGILLs.

I'd appreciate any hints on what are my options from here.

Thanks in advance.
If it moves, it needs an ebuild.

Adopt an unanswered post.
Top
xaviermiller
Bodhisattva
Bodhisattva
User avatar
Posts: 8738
Joined: Fri Jul 23, 2004 6:49 pm
Location: ~Brussels - Belgique
Contact:
Contact xaviermiller
Website

  • Quote

Post by xaviermiller » Fri Sep 01, 2017 7:49 am

Hi,

In your case, crossdev will not help. Did you try a simple 64 bits chroot ?
Kind regards,
Xavier Miller
Top
NeddySeagoon
Administrator
Administrator
User avatar
Posts: 56082
Joined: Sat Jul 05, 2003 9:37 am
Location: 56N 3W

  • Quote

Post by NeddySeagoon » Fri Sep 01, 2017 8:32 am

Moved from Kernel & Hardware to Unsupported Software.

It a Funtoo install, not Gentoo.

Crossdev is for building for say a Raspberry Pi, which is arm7a or AArch64 on an Intel/AMD CPU.

distcc can help you.
Install it everywhere and set up and start the daemon on the helpers.
Add distcc and distcc-pump to FEATURES an your atom.
That will try to expert the preprocessing and compiling to the helpers. The atom still does everything else.

If that's not enough, the following demands that your atom CPU instruction set is a subset of the helper.
Any instructions the helper cannot execute must not be used.

Make a chroot on the hepler and set up a BINHOST there. The chroot is identical to the atom install
except some things, like repositories can be shared.

Export the atom root fs over NFS to a helper, then chroot into it from the helper.
This is slower that the BINHOST approach as everything happen over the network.
You can speed it up my sharing repositories and local build space.
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Top
Post Reply

3 posts • Page 1 of 1

Return to “Unsupported Software”

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