WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: toolchain64{,-libs} - 64-bit cross-compiling toolchain  (Read 2682 times)

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 7618
toolchain64{,-libs} - 64-bit cross-compiling toolchain
« on: February 05, 2010, 12:57:53 PM »
Quote
Title:          toolchain64.tcz
Description:    64-bit toolchain
Version:        4.2.4
Author:         Various
Original-site:  http://gnu.org, kernel.org
Copying-policy: GPL
Size:      13.6M
Extension_by:   Curaga
Comments:       If you need something compiled 64-bit, this is the way.
      Either run toolchain64-shell, or start it from the menu;
      this sets up some variables so that you can build easier.
-
      Example:
      ./configure --host=x86_64-unknown-linux-gnu
-
      Note that this is a cross-compiler, and so there might
      be some more difficulties compared to native compiling.
-
      This extension contains:
      - 2.6.32.7 kernel headers (GPL)
      - glibc 2.7 + patches (GPL)
      - gcc 4.2.4 + patches (GPL)
      - binutils 2.20 (GPL)
Change-log:    
Current:        2010/02/05 Original

Quote
Title:          toolchain64-lib.tcz
Description:    64-bit toolchain runtime libs
Version:        4.2.4
Author:         Various
Original-site:  http://gnu.org, kernel.org
Copying-policy: GPL
Size:      5.9M
Extension_by:   Curaga
Comments:       Runtime libs of the 64-bit toolchain.
Change-log:    
Current:        2010/02/05 Original

Pictoral proof:


So, looking to the future, here's a 64-bit cross-toolchain. I have tested it on busybox, wget, and the linux kernel.

Note that we accept no 64-bit extensions for the time being; nor can you run such without suitable hardware and kernel. This is for testing, and will be used to compile the 64-bit kernel for 3.x.

PS: Might take a while to upload, these have some mighty sources.
The only barriers that can stop you are the ones you create yourself.

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 7618
Re: toolchain64{,-libs} - 64-bit cross-compiling toolchain
« Reply #1 on: February 05, 2010, 01:14:38 PM »
And it's up.
The only barriers that can stop you are the ones you create yourself.

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 7618
Re: toolchain64{,-libs} - 64-bit cross-compiling toolchain
« Reply #2 on: February 07, 2010, 02:45:42 AM »
Updated the -shell script in toolchain64.tcz.
The only barriers that can stop you are the ones you create yourself.

Offline gutmensch

  • Administrator
  • Hero Member
  • *****
  • Posts: 606
  • I can make it disappear, have no fear!
    • remembrance blog
Re: toolchain64{,-libs} - 64-bit cross-compiling toolchain
« Reply #3 on: February 11, 2010, 03:06:39 AM »
good work, curaga! I'm eager to run tc 3.x 64 bit on my 4 gb ram laptop ;)
If I seem unduly clear to you, you must have misunderstood what I said. (Alan Greenspan)

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 6139
Re: toolchain64{,-libs} - 64-bit cross-compiling toolchain
« Reply #4 on: February 11, 2010, 03:09:15 AM »
based on testing with a different distro on a different architecture, the same app will run 10-15% slower...

That's not at all to knock it, you get access to ram > ~3.5GB as well.
« Last Edit: February 11, 2010, 03:11:50 AM by Juanito »

Offline gutmensch

  • Administrator
  • Hero Member
  • *****
  • Posts: 606
  • I can make it disappear, have no fear!
    • remembrance blog
Re: toolchain64{,-libs} - 64-bit cross-compiling toolchain
« Reply #5 on: February 11, 2010, 03:33:10 AM »
hehe yeah I know about most of the difficulties... even that PAE might work without doing anything at all ;)

but: 64 bit arch is needed sooner or later and I don't see any sense in still sticking with 32 bit, when it's possible to push the arch for the next 20 or 30 years and (despite of atom, netbook, etc.) this will be x64. I also think that most of the transition problems are relicts to old architecture features and not because x64 is slower in general ;)

so call me a hero.. I will give 15% system power away in order to bring x64 to the people, yaayy :D
If I seem unduly clear to you, you must have misunderstood what I said. (Alan Greenspan)

Offline coreplayer2

  • Hero Member
  • *****
  • Posts: 1461
Re: toolchain64{,-libs} - 64-bit cross-compiling toolchain
« Reply #6 on: July 05, 2012, 03:03:30 PM »
Great tool thanks,  just in time for a build.

Am getting a "Upgrade your gcc" error  " -mcmodel=large not supported

??   needs an update already??    Please

Wait..  maybe I shouldn't have compiletc loaded at the same time..?
« Last Edit: July 05, 2012, 03:09:33 PM by coreplayer2 »

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3798
Re: toolchain64{,-libs} - 64-bit cross-compiling toolchain
« Reply #7 on: July 05, 2012, 06:26:51 PM »
Errr...
Are you sure this is the subforum you meant to post this in?
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline coreplayer2

  • Hero Member
  • *****
  • Posts: 1461
Re: toolchain64{,-libs} - 64-bit cross-compiling toolchain
« Reply #8 on: July 05, 2012, 11:00:48 PM »
Sure it is..   But I was compiling a 64bit application whilst other tools were loaded :(  so that was the error I'd got,   anyhow I figured out on my own.  My bad, but it's a gas right??
 

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 7618
Re: toolchain64{,-libs} - 64-bit cross-compiling toolchain
« Reply #9 on: July 06, 2012, 02:06:22 AM »
The GCC 4.2 manpage states
Quote
       -mcmodel=large
           Generate code for the large model: This model makes no assumptions
           about addresses and sizes of sections.  Currently GCC does not
           implement this model.

This mail: http://gcc.gnu.org/ml/gcc/2010-10/msg00321.html
says that mcmodel=large changes the ABI, and so you need to compile _everything_ with it. That seems quite unnecessary, what code wants that option?
The only barriers that can stop you are the ones you create yourself.