Skip to contentSkip to conversation

cross compilation

parisc-linux Dark Fiber 3 participants 3 messages Jan 29, 2002

lore
Share & tools
lore

Dark Fiber

author
#0 lore raw

hi. i'm new to the list (slowly going back through the archives). whats the current gcc status? can i use the cvs from gnu.org? or do i use the parisc-linux.org version?

i need to build elf64 gcc/binutils for hppa... on my i386 freebsd box.

i need to crosscompile gcc... but all the notes on crosscomp on the website talk about glibc and other nasty things as well as requiring the linux kernel in the cross compile build! erk! but i'm reading that as glibc requires the linux kernel, so i'm hoping to avoid all that.

it also talks about the debian version of binutils? what makes the debian binutils different from the standard ones and apply the hppa patches?

unfortunatly i wont be able to get into doing all this till the weekend, so i'm just trying to prepare myself ahead of time. (mm planning!) taking notes. scribbling all over scrap paper.

i've got a sinking feeling i wont be able to build it, but we will see how it goes. i'm hoping the hppa patches are all generic enough that i can use standard binutils, etc, otherwise i'll be in a world of trouble.

then its a case of just folling your excellent XC faq...

my intention is to port freebsd to a 64bit lp64(depending..) kernel. not a serious official freebsd port, but something i want to undertake. i'm hoping to concentrate on the pa8* cpu series and up. nothing might come of this whatsoever, but i'm willing to put a little time in and play around. i think i'm mad, but hey, it takes all kinds! ^_^

but it all depends on getting over that first stumbling block of elf64-hppa cross compiler working...

-Stuart 'just another mad aussie in london' George

-Dark Fiber <[email protected]>

[FAQ] Write Your Own Operating System
http://www.mega-tokyo.com/os
Sarien Sierra AGI Emulator
http://www.mega-tokyo.com/sarien
3x3 Eyes Fanfiction Archive
http://www.mega-tokyo.com/pai
AD&D UnderDark Roguelike
http://www.mega-tokyo.com/underdark
Roguelike News II
http://www.mega-tokyo.com/rlnews

#1 lore raw
Quoted 3 lines · Dark Fiber

it also talks about the debian version of binutils? what makes the debian binutils different from the standard ones and apply the hppa patches?

Not much, actually. I'm working on a new version, but it should be very easy to tell which patches I added to binutils for hppa. To my recollection, the only ones in the current binutils in debian that aren't in HJ Lu's 2.11.92.0.12.3 are the three from Alan Modra that are already in upstream CVS (stub size, refcount, and undefined symbol). They are all neatly placed in the debian/patches dir of the unpacked debian source package (or just edit down the diff, if you'd like). CVS may or may not be better...I'm not sure yet.

Quoted 3 lines

i've got a sinking feeling i wont be able to build it, but we will see how it goes. i'm hoping the hppa patches are all generic enough that i can use standard binutils, etc, otherwise i'll be in a world of trouble.

I'm going to be trying CVS on the A500 this week. Email me outside the list for my results compared to the debian package. I'm currently trying the same comparison on powerpc (since it's my laptop and is in front of me right now).

C

#2 lore raw
In reply to Dark Fiber
Quoted 5 lines · Dark Fiber

my intention is to port freebsd to a 64bit lp64(depending..) kernel. not a serious official freebsd port, but something i want to undertake. i'm hoping to concentrate on the pa8* cpu series and up. nothing might come of this whatsoever, but i'm willing to put a little time in and play around. i think i'm mad, but hey, it takes all kinds! ^_^

Uhm, yeah, you're certifiable :-)

You should ignore the cvs repositories on cvs.p-l.org for the most part; we get our binutils from upstream and the gcc patches we require are folded into the debian package (gcc 3.1 is supposed to support hppa-linux... we'll see).

Just so you know, you'll have to write drivers to support:

- Runway-to-GSC converter (u2/uturn)
- GSC-to-PCI (dino/cujo)
- Runway-to-Ropes (astro/ike)
- Ropes-to-PCI (elroy)
- Multifunction IO (lasi, wax, suckyio)

plus, if freebsd doesn't already have them:

- Apricot (i82596) ethernet
- ncr720 scsi
- suckyio IDE/USB

you can cut down the number of drivers to write if you decide to only support machines such as B1000 and up -- basically you're down to Astro and Elroy support for those machines. SuckyIO support if you want to use the builtin serial/usb/ide/ps2/parallel controller. But we managed without that support for months, using PCI serial cards as console. Oh and don't forget the sound driver. Think that's it...

Signature · 1 line
Revolutions do not require corporate support.