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

Building kernel fail #6

Open
zcfang-siglabs opened this issue Dec 5, 2018 · 1 comment
Open

Building kernel fail #6

zcfang-siglabs opened this issue Dec 5, 2018 · 1 comment

Comments

@zcfang-siglabs
Copy link

When executing:

ARCH=riscv CROSS_COMPILE=CROSS_COMPILE=riscv32-unknown-linux-gnu- make -j`nproc` 

The following error appears:

Makefile:605: include/config/auto.conf: No such file or directory
./scripts/gcc-version.sh: line 26: CROSS_COMPILE=riscv32-unknown-linux-gnu-gcc: command not found
./scripts/gcc-version.sh: line 27: CROSS_COMPILE=riscv32-unknown-linux-gnu-gcc: command not found
/bin/sh: 1: -print-file-name=include: not found
/bin/sh: 1: --version: not found
/bin/sh: 1: --version: not found
scripts/kconfig/conf  --syncconfig Kconfig
./scripts/gcc-version.sh: 26: ./scripts/gcc-version.sh: CROSS_COMPILE=riscv32-unknown-linux-gnu-gcc: not found
./scripts/gcc-version.sh: 27: ./scripts/gcc-version.sh: CROSS_COMPILE=riscv32-unknown-linux-gnu-gcc: not found
./scripts/gcc-version.sh: 29: ./scripts/gcc-version.sh: CROSS_COMPILE=riscv32-unknown-linux-gnu-gcc: not found
./scripts/gcc-version.sh: 26: ./scripts/gcc-version.sh: CROSS_COMPILE=riscv32-unknown-linux-gnu-gcc: not found
./scripts/gcc-version.sh: 27: ./scripts/gcc-version.sh: CROSS_COMPILE=riscv32-unknown-linux-gnu-gcc: not found
./scripts/gcc-version.sh: 29: ./scripts/gcc-version.sh: CROSS_COMPILE=riscv32-unknown-linux-gnu-gcc: not found
init/Kconfig:17: syntax error
init/Kconfig:16: invalid option
./scripts/clang-version.sh: 15: ./scripts/clang-version.sh: CROSS_COMPILE=riscv32-unknown-linux-gnu-gcc: not found
./scripts/gcc-plugin.sh: 11: ./scripts/gcc-plugin.sh: CROSS_COMPILE=riscv32-unknown-linux-gnu-gcc: not found
make[2]: *** [syncconfig] Error 1
make[1]: *** [syncconfig] Error 2
make: *** [include/config/auto.conf] Error 2
@kgugala
Copy link
Member

kgugala commented Dec 5, 2018

CROSS_COMPILE=CROSS_COMPILE= part is not correct.

ARCH=riscv CROSS_COMPILE=riscv32-unknown-linux-gnu- make -j`nproc` 

The instructions are fixed now, thanks for catching that

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