Author Topic: Which Version Of Gcc To Compile Against?  (Read 7113 times)

Ikkakujyu

  • Newbie
  • *
  • Posts: 27
    • View Profile
    • http://ikkakujyu.googlepages.com
Which Version Of Gcc To Compile Against?
« on: September 18, 2005, 12:20:05 pm »
Alrighty.

I've been playing around with BitBake again, and after finally getting a toolchain together, I find out that it's using GCC 4.0. This is a slight problem because OpenZaurus 3.5.3 uses GCC 3.4, so I can't make anything work without upgrading my whole system or building a new toolchain.

The question I'm asking here is, would it be worth it to upgrade, or am I going to run into incompatibilities and such?
Etched Marble Experiment - pushing the Zaurus to its limit - blog - wiki

fooman

  • Newbie
  • *
  • Posts: 49
    • View Profile
Which Version Of Gcc To Compile Against?
« Reply #1 on: July 24, 2006, 05:10:03 pm »
Did you ever try this?  I'm running into the same issue myself -- my toolchain uses gcc-4.1.1 so I'm wondering if my programs will run on the Zaurus.  I'm planning on using ipkg "--force-depends" and seeing if that works.

Quote
Alrighty.

I've been playing around with BitBake again, and after finally getting a toolchain together, I find out that it's using GCC 4.0. This is a slight problem because OpenZaurus 3.5.3 uses GCC 3.4, so I can't make anything work without upgrading my whole system or building a new toolchain.

The question I'm asking here is, would it be worth it to upgrade, or am I going to run into incompatibilities and such?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=96178\"][{POST_SNAPBACK}][/a][/div]
SL-C3000 running Cacko 1.23 Beta 1 with Tetsu's special Kernel v18b
Swapped out 4 GB Microdrive for 4 GB CF card
1 GB SanDisk Ultra II SD card with ext2 filesystem
128 MB swapfile on SD card
Ambicom 802.11b WiFi CF card
TRENDnet 10 Mbps Ethernet CF card

CaptainDondo

  • Newbie
  • *
  • Posts: 8
    • View Profile
Which Version Of Gcc To Compile Against?
« Reply #2 on: August 25, 2006, 06:46:11 pm »
Quote
Did you ever try this?  I'm running into the same issue myself -- my toolchain uses gcc-4.1.1 so I'm wondering if my programs will run on the Zaurus.  I'm planning on using ipkg "--force-depends" and seeing if that works.

See this.  The answer is, of course, it depends.  :-)

http://gcc.gnu.org/ml/libstdc++/2006-02/msg00086.html

I've found 3.4.4 to be the most stable for crosscompiling, but YMMV.

If you end up with weird header related issues, it's probably your gcc version,

It's not that hard to build alternate gcc toolchains.
« Last Edit: August 25, 2006, 06:47:33 pm by CaptainDondo »