-
Notifications
You must be signed in to change notification settings - Fork 12
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
Failed to build GCC part 1 (stage: gcc_build) #3
Comments
@markcoker Which OS are you building this on? Note that the project has been dead for years now - if this is a simple fix I'll have a look at it, but if its anything more significant its unlikely to be resolved. |
No worries, thanks for your time. Im building it on macOS 10.12 ... I haven't tested it on linux yet (to be honest, I just used binaries gcc arm binaries, so this is more informal). |
Same issue here on Ubuntu 16.04. I'd love to build Android for my iPod but this is the only thing stopping me |
Had a brief look at this, and basically looks as if your system compiler toolchains are too new - https://gcc.gnu.org/ml/gcc-patches/2007-02/msg00119.html I'll have to look into it a bit more, though I strongly suspect you're going to need to install older versions of gcc in order to be able to build this (Its highly unlikely that a patch to the code the toolchain script builds will ever surface) |
Thanks for that information, what version is needed do you know 4.0? |
I believe 4.1.1 |
Which leaves this output:
Ubuntu 16.04 |
Hey everyone, sorry for awaking this thread again... However, I had the exact same issue, pain in the fucking ass. I tried on a Ubuntu 12.04 VM, and it worked fine. No errors (except newlib, but that can be ignored). |
Did you run the VM in Ubuntu itself, Mac OS or WIndows? |
I believe it is due to the following errors.
../../gcc-4.1.1/gcc/toplev.c:524:1: error: redefinition of a 'extern inline'
function 'floor_log2' is not supported in C99 mode
floor_log2 (unsigned HOST_WIDE_INT x)
../../gcc-4.1.1/gcc/toplev.c:559:1: error: redefinition of a 'extern inline'
function 'exact_log2' is not supported in C99 mode
exact_log2 (unsigned HOST_WIDE_INT x)
The text was updated successfully, but these errors were encountered: