Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to build gcc-xtensa for Windows? #11

Open
TridentTD opened this issue May 21, 2018 · 5 comments
Open

How to build gcc-xtensa for Windows? #11

TridentTD opened this issue May 21, 2018 · 5 comments

Comments

@TridentTD
Copy link

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.

@jcmvbkbc
Copy link
Owner

jcmvbkbc commented May 21, 2018

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.

@TridentTD
Copy link
Author

Thank you very much.

@TridentTD
Copy link
Author

TridentTD commented May 24, 2018

// 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?

@jcmvbkbc
Copy link
Owner

jcmvbkbc commented May 24, 2018

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.

@TridentTD
Copy link
Author

Thank you very mush.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants