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

recipe for target 'configure-gcc' faild #431

Closed
minamagdy00 opened this issue May 1, 2019 · 2 comments
Closed

recipe for target 'configure-gcc' faild #431

minamagdy00 opened this issue May 1, 2019 · 2 comments

Comments

@minamagdy00
Copy link

Hello all,
I've the following issue during my first build for the riscv toolchain:

configure: error: uint64_t and int64_t not found
Makefile:4203: receipe for target 'configure-gcc' failed.

My current used directory is the cloned riscv-gnu-toolchain and using the ./configure --prefix=/any_install_path then make.

So how to solve that error ?.

@minamagdy00
Copy link
Author

minamagdy00 commented May 1, 2019

  • my gcc version is 7.4.0 and ubuntu 18.04 release

@jim-wilson
Copy link
Collaborator

A confusing error, but with a bit of web searching, I figured out that I can reproduce the error if I don't have a C++ compiler installed. So the solution is to install a C++ compiler. E.g. "apt install g++" or equivalent.

The normal way to debug a configure problem like this is to look for the relevant error in the config.log file. Depending on how far configure got, there may be more than one config.log file, so make sure you are looking at the one in the right directory, which in this case would be the one in the gcc subdir. Then look for the "uint64_t or int64_t not found" error and work your way backwards. I expect you will see errors for a missing C++ compiler.

There is already an FSF GCC bug report for this, reported four and a half years ago.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63509

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