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

Toolchain build failure #41

Open
CCF100 opened this issue Feb 20, 2019 · 1 comment
Open

Toolchain build failure #41

CCF100 opened this issue Feb 20, 2019 · 1 comment

Comments

@CCF100
Copy link

CCF100 commented Feb 20, 2019

I have know idea if anyone still looks at this repo, but I'm getting a build failure:

Terminal output:
[caleb@caleb-gaming-rig-archlinux OpeniBoot-Toolchain]$ sudo bash build-toolchain.sh make
build-toolchain.sh: line 83: /tmp/ipl-toolchain/build.log: No such file or directory

  • Creating default directories
    • /tmp/ipl-toolchain/binutils-build
    • /tmp/ipl-toolchain/gcc-build
    • /tmp/ipl-toolchain/newlib-build
    • /tmp/ipl-toolchain/src
  • Downloading packages
    • Downloading binutils-2.17.tar.bz2
    • binutils-2.17.tar.bz2 download complete
    • Downloading gcc-4.1.1.tar.bz2
    • gcc-4.1.1.tar.bz2 download complete
    • Downloading newlib-1.14.0.tar.gz
    • newlib-1.14.0.tar.gz download complete
      Starting Binutils
  • Extracting binutils
  • Configuring binutils
  • Building binutils
  • Installing binutils
    Completed Binutils
    Starting GCC Part 1
  • Extracting GCC
  • Extracting Newlib dependency for gcc
  • Patching GCC for t-arm-elf
  • Configuring GCC
  • Building GCC part 1
    Failed to build GCC part 1 (stage: gcc_build)
    build.log
@aaga
Copy link

aaga commented Mar 8, 2019

Are you on Mac? I tried building the toolchain and kept running up against snag after snag. I think the toolchain source is way too out of date at this point. Don't use the installer script. Instead you'll have to follow the instructions here step-by-step, patching issues as you run into them.

I spent multiple days and ultimately gave up. Instead, I followed @planetbeing's instructions on using a prebuilt toolchain. The git link there is out of date too; you'll want to run git clone https://android.googlesource.com/platform/prebuilt

NB: If you do end up continuing down the route of building from scratch, one of the big things I remember is that you'll need to manually tweak some GCC flags to do with in-line functions and loop unrolling because of some bugs/inconsistencies in newer versions of GCC. I don't remember all of the patches I had to do, but keep me updated with whatever issues you run into and I can try to help.

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