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

Make error when building binutils #4

Open
l-yc opened this issue Jul 26, 2019 · 3 comments
Open

Make error when building binutils #4

l-yc opened this issue Jul 26, 2019 · 3 comments

Comments

@l-yc
Copy link

l-yc commented Jul 26, 2019

Hi there, I've been trying to build the toolchain on Linux (Fedora 29) unsuccessfully so far. When I run the script 04-build-binutils.sh, the process eventually results in an error (pasted below)

make[4]: Leaving directory '/home/lyc/EV3/toolchain/build-binutils/gprof'
make[3]: Leaving directory '/home/lyc/EV3/toolchain/build-binutils/gprof'
make[2]: Leaving directory '/home/lyc/EV3/toolchain/build-binutils/gprof'
make[1]: Leaving directory '/home/lyc/EV3/toolchain/build-binutils'
make: *** [Makefile:850: all] Error 2
FAILED COMMAND: make -j4
@a3f
Copy link
Member

a3f commented Jul 26, 2019

Hi there. The original error message is missing, could you attach the whole log?

@l-yc
Copy link
Author

l-yc commented Aug 2, 2019

Sorry for the late reply. After relooking at the error messages, I figured that I had to install flex and bison. Afterwards, after deleting the binutils and build-binutils directory and re-extracting the original tar archive to reset the environment, I managed to build the binutils successfully.

However, on attempting to execute 05-build-kernel-headers.sh, another error has occurred. Below is the full output:

  CHK     include/linux/version.h
make[1]: 'scripts/unifdef' is up to date.
make[3]: *** No rule to make target '/home/lyc/EV3/toolchain/linux-2.6.33-rc4/include/linux/netfilter/xt_CONNMARK.h', needed by '/opt/cross/arm-linux/include/linux/netfilter/.install'.  Stop.
make[2]: *** [/home/lyc/EV3/toolchain/linux-2.6.33-rc4/scripts/Makefile.headersinst:92: netfilter] Error 2
make[1]: *** [/home/lyc/EV3/toolchain/linux-2.6.33-rc4/scripts/Makefile.headersinst:92: linux] Error 2
make: *** [Makefile:1062: headers_install] Error 2

Am I missing anything? Thanks!

@a3f
Copy link
Member

a3f commented Aug 3, 2019

Could it be that you downloaded the files to a Windows/macOS system first? This StackOverflow answer suggests it might be due to case-insensitive file system related mangling.

Also, just to make sure you noticed: There are prebuilt toolchains in the releases tab, which you can use.

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