Forums

Skip to content

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

Cross compiling Gentoo

Post here for other supported architectures, or if you are interested in porting Gentoo to a currently unsupported architecture.
Post Reply
Advanced search
29 posts
  • Previous
  • 1
  • 2
Author
Message
Luud
Apprentice
Apprentice
Posts: 246
Joined: Thu Jun 05, 2003 11:21 am
Location: Netherlands

Linux: Efficient Cross Compiling

  • Quote

Post by Luud » Tue Nov 09, 2004 12:05 pm

Hi,

This came up recently at kerneltrap. Might be interresing to post here:

Linux: Efficient Cross Compiling

I leave it up to you to decide how useful this is within the Gentoo framework :wink:

Cheers
"Great minds don't think alike. If they did, the patent office would only have about fifty inventions." - Wally
Top
qarce
n00b
n00b
User avatar
Posts: 18
Joined: Fri Mar 28, 2003 9:37 pm
Location: us - california

  • Quote

Post by qarce » Mon Dec 13, 2004 5:26 am

meowsqueak wrote:As an exercise in almost certain futility, I'm seeing how far I can get with installing Gentoo-PPC on one of our embedded ppc_860 processors. I currently have one booting off NFS with the Montavista Hardhat distribution. I untarred the Gentoo-PPC stage 2 tarball and attempted to 'chroot'. Got a few library dependency problems, which 'LD_LIBRARY_PATH=/ppc-gentoo/lib' fixed. The next message was:

# LD_LIBRARY_PATH=/ppc-gentoo/lib ./bash
./bash: /lib/ld.so.1: version `GLIBC_PRIVATE' not found (required by /ppc-gentoo/lib/libdl.so.2)
./bash: /lib/ld.so.1: version `GLIBC_PRIVATE' not found (required by /ppc-gentoo/lib/libc.so.6)

This was 'fixed' by symlinking /lib/ld.so.1 in my hardhat NFS to /gentoo/lib/ld.so.1. Unfortunately, everything I now run segmentation faults.


Hi, so I think the group I work with found the answer to this problem. The first was... did the libc version with your compiler match the target root libc version? The second issue where any application not static would seg fault turned out to be a ppc asm problem in the kernel. Guess the lesson is always know where your kernel sources come from and check the libc version when you have ld problems.

Is there any way I can work out why it's seg faulting? I'm assuming here (and it might be a fairly big assumption) that the Gentoo-PPC stage 2 tarball contains binaries that can run on the ppc_860. Anybody know for sure?

Perhaps I'd be better off installing from Stage 1? I already have a cross compiler and glibc-2.3.2 cross-compiled. I noticed a 'Stage 0' tarball on the FTP server - what's that for?

Edit: as you can see, I have no idea what I'm doing... but it's been fun thus far...
Top
what.
n00b
n00b
User avatar
Posts: 12
Joined: Sat Feb 05, 2005 3:40 am
Contact:
Contact what.
Website

possible solution

  • Quote

Post by what. » Fri Feb 18, 2005 7:52 am

I was running into the same "cannot compute sizeof (long double)" error emerging glibc (trying to recompile my toolchain). Found this thread trying to (unsuccessfully) google up an answer.

Anyway, long story short, check your LDFLAGS. I had some riced-out flags I'd seen in some forum and blindly stuck in my make.conf back in my rookie days, and removing LDFLAGS from my make.conf entirely solved this problem for me.
Free computers? (Help me bring another Gentoo box into the world.)
Top
trunet
n00b
n00b
Posts: 11
Joined: Fri Oct 03, 2003 12:42 pm
Location: São Paulo/SP/Brazil

  • Quote

Post by trunet » Tue Apr 26, 2005 10:58 pm

I'm having the same problem here, and I don't have any LDFLAGS in my make.conf!

I'd a emerge -u glibc to 3.3.5 and I can't compile anything. Any clues?

Any ideas?

tkz...
Top
Post Reply

29 posts
  • Previous
  • 1
  • 2

Return to “Gentoo on Alternative Architectures”

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