gcc-xtensa icon indicating copy to clipboard operation
gcc-xtensa copied to clipboard

How to build gcc-xtensa for Windows?

Open TridentTD opened this issue 6 years ago • 5 comments

I have already donwloaded gcc-xtensa version 4.9.2 release version. and I have already install MingW on my computer.

If I want to build for Windows platform , how to build them ?

Thank you.

TridentTD avatar May 21 '18 08:05 TridentTD

Please consider using prebuilt toolchain for Windows, like this one, or this one. It will save you a lot of trouble if all you need is the toolchain.

If you decide to build gcc yourself the easiest way is to use somebody's else build scripts, e.g.: CHERTS, Fabien Poussin.

In general, it's just building a cross-compiler, a huge topic covered by the gcc documentation.

jcmvbkbc avatar May 21 '18 14:05 jcmvbkbc

Thank you very much.

TridentTD avatar May 23 '18 22:05 TridentTD

// Sorry for my poor English.

I have just tried both shell-script, however when call the scripts , both (CHERTS's shell-script & Fabien Poussin's shell-script) can't find ../configure occur error like this.

.......
Buidling GMP
./build.sh: line 103: ../configure: No such file or directory

How can I find the configure file?

TridentTD avatar May 24 '18 03:05 TridentTD

How can I find the configure file?

Debug what the script does.

  • check if the configure file is actually there (it should be in the ./dl/gmp-6.0.0a, if not there run the script with -x to see the trace of what it does to understand what went wrong).
  • check if the configure script is executable (ls -l ./dl/gmp-6.0.0a/configure should show 'x' in permissions. If it doesn't then I guess it has something to do with tar or your filesystem. You can do chmod +x to make it executable, but I guess the same issue will happen with other scripts and compiled programs.
  • check that you have script interpreter available (/bin/sh for that particular configure), if not install it or make a symbolic link.

And don't worry, your English is fine.

jcmvbkbc avatar May 24 '18 09:05 jcmvbkbc

Thank you very mush.

TridentTD avatar May 27 '18 14:05 TridentTD