• Home
  • Help
  • Search
  • Login
  • Register
Pages: [1]
Author Topic: GCC cross compiler for Windows  (Read 11935 times)
erdgeist
Newbie
*

Karma: 0
Posts: 3


View Profile
« on: June 17, 2009, 08:32:48 AM »

Is there also a crosscompiler GCC version for windows? I could not find it on the download page. If not, please let us now the options and patches which were used to build the linux crosscompiler.

Regards,
Andreas
Logged

dimedriver
Newbie
*

Karma: 0
Posts: 1


View Profile
« Reply #1 on: June 22, 2009, 05:58:11 PM »

You can build an arm cross compiler for windows but its a major pain.
Steps are.

-Install a GCC that will run on windows like DJGPP or cygwin.

-Download tool chain source code.
GCC
GLIBC
Linux kernel source
GDB
GNUbinutils

-Build the tool chain (the major hard part). This could take weeks of trail and error before you find the right combos of tool versions and settings.

Code sorcery may have one for download but Im not sure.

I would run a virtual machine under windows, if I was not allowed to have a dedicated linux box.
Having a dedicated linux box will make your life a lot simpler too.  Your developing linux apps anyways why not do it on linux.

-Avery
Logged

Rabeeh Khoury
Administrator
Full Member
*****

Karma: 5
Posts: 218


View Profile
« Reply #2 on: June 23, 2009, 01:55:14 AM »

For Linux or Windows cross compiler, you can download from CodeSourcery both.

You can download Linux cross compiler from here too (based on CodeSourcery) -
http://www.plugcomputer.org/index.php/resources/downloads

If you want to build your own cross compiler, check crosstool -
http://www.kegel.com/crosstool/

or crosstool-ng -

http://freshmeat.net/projects/crosstool-ng/

I haven't tried crosstool-ng; but crosstool worked flawlessly for me in the past (automatically downloads and build the cross compiler).

As a general note, since you have a strong processor in the plug, it is suggested that you nativly build your stuff on the ARM processor.




« Last Edit: June 23, 2009, 01:57:48 AM by Rabeeh Khoury » Logged

jlpoole
Principal Software Engineer
Global Moderator
Jr. Member
*****

Karma: 2
Posts: 87

Principal Software Engineer -- Oracle Corporation


View Profile
« Reply #3 on: June 26, 2009, 10:02:02 AM »

I've been attempting to build a cross compiler on a Gentoo AMD 64 (Phenom II) box and have run into admittedly deprecated documentation.  With the help of Gentoo developers on Internet Relay Chat to climb out of the stale documentation morass, I think I may have made a break through.  Unfortunately, this has consumed a lot of my time, and it is time that is outside of my job.

At any rate, I am writing this post to indicate that there may be a very simple solution to cross compiling when using Gentoo; it may also be as easy as using other Linux flavor's apt-get &etc.   I'm going to be submitting some revised documentation to their Gentoo Embedded Handbook.  Maybe I'll have this accomplished by this upcoming weekend.

What I have not done is embark on the task of staging for emerge binaries compiled for the Advanced Risk Machine ("arm") platform and then running some sort of emerge server so that they can easily be installed on the SheevaPlug.  Someone earlier suggested a Linux system,
www.sabayonlinux.org, that is based on Gentoo that does precisely this: offers precompiled binaries as well as the usual source.  I haven't decided whether I might try sabayon, thought I'd like to stick with Gentoo if possible.
Logged

The statements and opinions expressed here are my own and do not necessarily represent those of Oracle Corporation.

erdgeist
Newbie
*

Karma: 0
Posts: 3


View Profile
« Reply #4 on: June 26, 2009, 05:29:19 PM »

I also prefer crosstool to build toolchain. The problem is that i don't know much about the used processor (88F6281?) in the SheevaPlug. I have not found a datasheet on the web. I am not sure, how to configure the toolchain. Open questions are for example endianess, floating point arithmetic (native or not), architecture (maybe armv5?)
Logged

Rabeeh Khoury
Administrator
Full Member
*****

Karma: 5
Posts: 218


View Profile
« Reply #5 on: June 27, 2009, 01:23:17 PM »

armv5te
this version doesn't have VFP or wmmx.
Logged

Caesar
Newbie
*

Karma: 0
Posts: 4


View Profile
« Reply #6 on: February 19, 2010, 02:53:14 AM »

Hi, everybody...

this topic is more then a half year old. Has anybody generated a toolchain for cygwin yet? (google didn't helped me successfully)

I'm very interested in it. I try now for 3 days to make an cross-development-environment with eclipse and gdb-remote, but all trys fail - my linux know how is unfortunaly puny...

My Sheeva runs debian, gcc-4.3, gdb-6.8 and local (SSH) all works 'fine', but for real application development I need more then a command line debugger... I'm spoiled of incircuit debugging with modern IDEs and don't want to work without something like that.


hopefully,

Caesar
Logged

Caesar
Newbie
*

Karma: 0
Posts: 4


View Profile
« Reply #7 on: February 21, 2010, 12:36:57 PM »

Hi, a prelimery result:

first way: my notebook worked aprox. 10h to build a arm-toolchain for cygwin, but after the first compiler runs I abort frustrated... it generates ELF 32-Bit MSB executable (I dont' know why.. shouldn't it be LSB) - of course, binary didn't run
Code:
(gdb) run
Starting program: /home/Sheeva/src/h2_111
/bin/sh: /home/Sheeva/sr/h2_111: cannot execute binary file
/bin/sh: /home/Sheeva/src/h2_111: Erfolg  [color=blue]I don't know why here is german word....[/color]

Program exited with code 01.
warning: Unable to find dynamic linker breakpoint function.
GDB will be unable to debug shared library initializers
and track explicitly loaded dynamic code.
You can't do that without a process to debug.
(gdb)



second way:
virtualbox installed on WinXP, debian lenny in the virtual maschine with gcc, gdb ans eclipse - this way need to be compleded with a cross compiler I now just haven't, but soon I will try more...

Now new way: run eclipse with RSE (SSH) on the host, compile and project build via SSH console on the Sheeva - next step is to lern eclipse to load the debuginfos from Sheeva, start the gdbserver on the Sheeva and debug with gdb on the host
Is that procedure realistic to use?


Cause more then 30 Members read my last post, I hope for any comment - of course, also statements to advise me to stop to babble and to persist in my snail shell.

Thx,

Caesar
Logged

Pages: [1]
Print
Jump to: