damien-lemoal / riscv64-nommu-buildroot

Other
42 stars 11 forks source link

build failed: Segmentation fault (core dumped) make #5

Closed elliott10 closed 4 years ago

elliott10 commented 4 years ago

When I built buildroot for k210, I encountered the error message below. Please help! Thanks

os@os-MMLP7AP-00:~/dl/k210/linux/riscv64-nommu-buildroot$ make 
/home/os/dl/k210/kendryte-toolchain/bin/make -j1 O=/home/os/dl/k210/linux/riscv64-nommu-buildroot/output HOSTCC="/usr/bin/gcc" HOSTCXX="/usr/bin/g++" syncconfig
>>> host-skeleton  Extracting
>>> host-skeleton  Patching
>>> host-skeleton  Configuring
>>> host-skeleton  Building
>>> host-skeleton  Installing to host directory
/bin/bash: line 2:   304 Segmentation fault      (core dumped) make -C /home/os/dl/k210/linux/riscv64-nommu-buildroot --no-print-directory O=/home/os/dl/k210/linux/riscv64-nommu-buildroot/output
make: *** [Makefile:84: _all] Error 139

os@os-MMLP7AP-00:~/dl/k210/linux/riscv64-nommu-buildroot$ make -n
umask 0022 && \
        make -C /home/os/dl/k210/linux/riscv64-nommu-buildroot --no-print-directory \
                 O=/home/os/dl/k210/linux/riscv64-nommu-buildroot/output

MAKE="/home/os/dl/k210/kendryte-toolchain/bin/make -j5" DL_TOOLS="bzcat xzcat" \
        /home/os/dl/k210/linux/riscv64-nommu-buildroot/support/dependencies/dependencies.sh
/bin/bash: line 2:   920 Segmentation fault      (core dumped) make -C /home/os/dl/k210/linux/riscv64-nommu-buildroot --no-print-directory O=/home/os/dl/k210/linux/riscv64-nommu-buildroot/output
make: *** [Makefile:84: _all] Error 139
damien-lemoal commented 4 years ago

This looks like "make" is crashing... Not sure what is going on here. This project does not change make itself. There may be a problem with some of the tools in the toolchain causing this.

I will be updating this project very soon since the final patches needed for k210 were added to kernel 5.8. I will update once 5.8.0-rc1 kernel is out next week.

elliott10 commented 4 years ago

I found that I used "make" in the riscv64-unknown-elf- cross-compile chain, instead of the "make" in Ubuntu. Thanks Damien for the help !

pdp7 commented 4 years ago

@damien-lemoal thanks, I look forward to 5.8 :)