Author Topic: Which gcc cross-toolchain?  (Read 2339 times)

dhns

  • Hero Member
  • *****
  • Posts: 699
    • View Profile
    • http://www.goldelico.com
Which gcc cross-toolchain?
« on: October 04, 2004, 09:13:21 am »
Might sound like a beginner's question but I cound not easily figure out: Which gcc version and which glibc are (minimum) required to compile applications and libraries for OZ 3.5.1?

And, is there already a MacOS X / Xcode toolchain?

If not, I plan to extend Zaurus-X-gcc which currently only supports gcc 2.95.3.

-- hns
« Last Edit: October 05, 2004, 04:13:25 am by dhns »
SL5500G, C860, C3100, WLAN, RTM8000, Powerbook G4, and others...
http://www.handheld-linux.com
http://www.quantum-step.com

dhns

  • Hero Member
  • *****
  • Posts: 699
    • View Profile
    • http://www.goldelico.com
Which gcc cross-toolchain?
« Reply #1 on: October 05, 2004, 04:07:08 am »
Here what I found so far:
* OZ seems to use gcc 3.3.2
* glibc - I could not fgure out yet
* there appears to be no precompiled gcc for use with Xcode

One option seems to install a full OE http://openembedded.org/oe_wiki/index.php/...ildrootOnMacOSX and run from the command line on a Mac - but that appears to be too complex and not "Mac-like" just to compile gcc, libraries, kernel, full OZ and then finally a small application.

-- hns
« Last Edit: October 05, 2004, 04:14:40 am by dhns »
SL5500G, C860, C3100, WLAN, RTM8000, Powerbook G4, and others...
http://www.handheld-linux.com
http://www.quantum-step.com

dhns

  • Hero Member
  • *****
  • Posts: 699
    • View Profile
    • http://www.goldelico.com
Which gcc cross-toolchain?
« Reply #2 on: October 06, 2004, 08:10:21 am »
just found on the "3.5.1 released" thread:
Quote
OZ is linked against libc2.3, while pdaXrom is still using libc2.2.
So, questions are answered.

-- hns
SL5500G, C860, C3100, WLAN, RTM8000, Powerbook G4, and others...
http://www.handheld-linux.com
http://www.quantum-step.com

lardman

  • Hero Member
  • *****
  • Posts: 4512
    • View Profile
    • http://people.bath.ac.uk/enpsgp/Zaurus/
Which gcc cross-toolchain?
« Reply #3 on: October 06, 2004, 08:18:34 am »
But off the top of my head I con't know which version.

Do you have a Z with 3.5.1? Look in /lib and see what version libc is.

GCC is 3.xx, I think 3.4.x at the mo.

Download the packages tarball from treke.net and see what the .oe files are called, etc.


Simon
C750 OZ3.5.4 (GPE, 2.6.x kernel)
SL5500 OZ3.5.4 (Opie)
Nokia 770
Serial GPS, WCF-12, Socket Ethernet & BT, Ratoc USB
WinXP, Mandriva

ClosetPacifist

  • Newbie
  • *
  • Posts: 5
    • View Profile
Which gcc cross-toolchain?
« Reply #4 on: October 06, 2004, 08:12:59 pm »
There's a gcc3 toolchain available at http://handhelds.org/download/toolchain/osx/ . Personally, I just made a symlink from /opt/cross to the mounted disk image, as it has to be on a case sensitive filesystem, which a disk image is convenient for. In addition, if you decide to try the OE system, http://openembedded.org/oe_wiki/index.php/...ildrootOnMacOSX is quite helpful. The above toolchain seems to work fine with OE.

I'm currently struggling with OE; having some problems getting qt compiled (or some tool in it's code, rather; I forget what exactly) - it fails with some errors to do with qpsprinter.cpp and stuff. Only progress I've made is, I think, you need to replace the #include of qt_X11.h with an include of <X11/Xlib.h> - or perhaps find a qt_X11.h, not sure, I'm just bumbling my way along, heh.

Good luck! Hopefully you'll get it working!
Sl-5500 with Abicom WiFi CF, 1gb SD.