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

Issues with using Makefile.toolchain #6

Open
thejpster opened this issue Jun 8, 2018 · 3 comments
Open

Issues with using Makefile.toolchain #6

thejpster opened this issue Jun 8, 2018 · 3 comments

Comments

@thejpster
Copy link

If you follow the instructions around using make -f Makefile.toolchain toolchain, but you don't commit the ./toolchain/output directory, you will get a build error when subsequently running make -f Makefile.toolchain toolchain in a fresh checkout.

Executing make -f Makefile.toolchain oldconfig first seems to make things work. It might be useful to add this to the README.

@boucman
Copy link
Member

boucman commented Jun 8, 2018

hmm, the idea behind buildroot-submodule is that you should never commit the output directory... what is the exact error you see ? that sounds weird...

@thejpster
Copy link
Author

thejpster commented Jun 8, 2018

$ make -f Makefile.toolchain toolchain > >(tee toolchain.log |grep '>>>') 2>&1 || { # collapsed multi-line command
Failed build last output
make -C /builds/p3411/cerberus/linux-image/buildroot  O=/builds/p3411/cerberus/linux-image/toolchain/output BR2_EXTERNAL=/builds/p3411/cerberus/linux-image PROJECT_NAME=toolchain BR2_DEFCONFIG=/builds/p3411/cerberus/linux-image/toolchain/defconfig toolchain
  GEN     /builds/p3411/cerberus/linux-image/toolchain/output/Makefile
Makefile:864: *** Please configure Buildroot first (e.g. "make menuconfig").  Stop.
common.mk:70: recipe for target '_all' failed
make: *** [_all] Error 2

But actually there's a bigger problem. Once the toolchain is built, you get this error when running make

>>> toolchain-external-linaro-arm 2017.11 Configuring
Cannot execute cross-compiler '/builds/p3411/cerberus/linux-image/toolchain/output/host/usr/bin/arm-linux-gnueabihf-gcc.br_real'
package/pkg-generic.mk:213: recipe for target '/builds/p3411/cerberus/linux-image/output/build/toolchain-external-linaro-arm-2017.11/.stamp_configured' failed
make[2]: *** [/builds/p3411/cerberus/linux-image/output/build/toolchain-external-linaro-arm-2017.11/.stamp_configured] Error 1
Makefile:79: recipe for target '_all' failed
make[1]: *** [_all] Error 2
common.mk:41: recipe for target 'default' failed
make: *** [default] Error 2

@thejpster thejpster changed the title Issue with instructions when building in CI Issues with using Makefile.toolchain Jun 8, 2018
@JulienVdG
Copy link
Contributor

JulienVdG commented Jun 8, 2018 via email

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

3 participants