Open jimmymagemtek opened 6 years ago
It looks like there was build problems, because the kernel building is not the last step of the build process.
I would try cleaning and trying again. Use the user-clean
target, like this:
make -j4 MACHINEROOT=../machine/accton MACHINE=accton_as7512_32x user-clean
Then make all
again:
make -j4 MACHINEROOT=../machine/accton MACHINE=accton_as7512_32x all
With parallel builds (the -j
make option), sometimes the error scrolls off the top of the screen. You can always check the exit code to be sure: echo $?
should print 0
if all is well.
You can also capture the entire log to file and search it for "error":
make -j4 MACHINEROOT=../machine/accton MACHINE=accton_as7512_32x all > /tmp/log.txt 2>&1
Hi I attach the log file.There seems to be only warning messages.
Does it have to warning-free to get the images? Could you provide some instructions about how to modify the warning part ? Thanks.
if you look closely at log.txt there are errors in there:
/bin/sh: 1: bc: not found
Kbuild:67: recipe for target 'include/generated/timeconst.h' failed
make[2]: *** [include/generated/timeconst.h] Error 127
Makefile:1051: recipe for target 'prepare0' failed
make[1]: *** [prepare0] Error 2
make[1]: Leaving directory '/home/jimmy/onie/build/accton_as7512_32x-r0/kernel/linux-4.9.95'
make/kernel.make:101: recipe for target '/home/jimmy/onie/build/accton_as7512_32x-r0/stamp/kernel-build' failed
make: *** [/home/jimmy/onie/build/accton_as7512_32x-r0/stamp/kernel-build] Error 2
make: *** Waiting for unfinished jobs....
CC archival/lzop.o
It looks like your build machine is missing the bc
program. Install that and try again.
Hi , Thanks. I installed bc, but there is still not output. The log is attached.
Jimmy log.txt
Hmmm. It looks like the build of the crosstools did not fully complete. The strace
binary was not built.
Restarting the build when the xtools build fails is known problem. See #736 .
I think you are almost there. Try make distclean
then restart the accton_as7512_32x build.
Hi, Thanks for the information & I do have some progress. However, there are still errors in the end. The log file is attached . Please advise. Thanks again.
Jimmy log.txt
Hi , Just dump the error message in the end of the log file on the web page.
Jimmy
[INFO ] Installing MPC for host
[INFO ] Installing MPC for host: done in 11.02s (at 06:06)
[INFO ] =================================================================
[INFO ] Installing expat for host
[INFO ] Installing expat for host: done in 8.87s (at 06:15)
[INFO ] =================================================================
[INFO ] Installing ncurses for host
[INFO ] Installing ncurses for host: done in 36.89s (at 06:52)
[INFO ] =================================================================
[INFO ] Installing libiconv for host
[INFO ] Installing libiconv for host: done in 0.00s (at 06:52)
[INFO ] =================================================================
[INFO ] Installing gettext for host
[INFO ] Installing gettext for host: done in 0.00s (at 06:52)
[INFO ] =================================================================
[INFO ] Installing binutils for host
[INFO ] Installing binutils for host: done in 147.69s (at 09:19)
[INFO ] =================================================================
[INFO ] Installing pass-1 core C gcc compiler
[INFO ] Installing pass-1 core C gcc compiler: done in 806.67s (at 22:46)
[INFO ] =================================================================
[INFO ] Installing kernel headers
[INFO ] Installing kernel headers: done in 10.14s (at 22:56)
[INFO ] =================================================================
[INFO ] Installing C library headers & start files
[INFO ] =================================================================
[INFO ] Building for multilib 1/1: ''
[INFO ] Building for multilib 1/1: '': done in 10.44s (at 23:07)
[INFO ] Installing C library headers & start files: done in 10.49s (at 23:07)
[INFO ] =================================================================
[INFO ] Installing pass-2 core C gcc compiler
[INFO ] Installing pass-2 core C gcc compiler: done in 837.20s (at 37:04)
[INFO ] =================================================================
[INFO ] Installing C library
[INFO ] =================================================================
[INFO ] Building for multilib 1/1: ''
[INFO ] Building for multilib 1/1: '': done in 106.52s (at 38:51)
[INFO ] Installing C library: done in 106.57s (at 38:51)
[INFO ] =================================================================
[INFO ] Installing final gcc compiler
[ERROR] collect2: error: ld returned 1 exit status
[ERROR] make[4]: [/home/jimmy/onie/build/x-tools/x86_64-g4.9.2-lnx4.9.95-uClibc-ng-1.0.22/build/build/src/gcc-4.9.2/gcc/cp/Make-lang.in:99: cc1plus] Error 1
[ERROR] make[3]: [Makefile:3976: all-gcc] Error 2
[ERROR] make[2]: [Makefile:864: all] Error 2
[ERROR]
[ERROR] >>
[ERROR] >> Build failed in step 'Installing final gcc compiler'
[ERROR] >> called in step '(top-level)'
[ERROR] >>
[ERROR] >> Error happened in: CT_DoExecLog[scripts/functions@338]
[ERROR] >> called from: do_gcc_backend[scripts/build/cc/100-gcc.sh@1145]
[ERROR] >> called from: do_gcc_for_host[scripts/build/cc/100-gcc.sh@832]
[ERROR] >> called from: do_cc_for_host[scripts/build/cc.sh@56]
[ERROR] >> called from: main[scripts/crosstool-NG.sh@653]
[ERROR] >>
[ERROR] >> For more info on this error, look at the file: 'build.log'
[ERROR] >> There is a list of known issues, some with workarounds, in:
[ERROR] >> '/home/jimmy/onie/build/crosstool-ng/crosstool-ng-1.23.0/docs/B - Known issues.txt'
[ERROR] >>
[ERROR] >> If you feel this is a bug in crosstool-NG, report it at:
[ERROR] >> https://github.com/crosstool-ng/crosstool-ng/issues/
[ERROR] >>
[ERROR] >> Make sure your report includes all the information pertinent to this issue.
[ERROR] >> Read the bug reporting guidelines here:
[ERROR] >> http://crosstool-ng.github.io/support/
[ERROR]
[ERROR] (elapsed: 52:13.80)
/home/jimmy/onie/build/crosstool-ng/crosstool-ng-1.23.0/ct-ng:147: recipe for target 'build' failed
make[1]: [build] Error 2
make[1]: Leaving directory '/home/jimmy/onie/build/x-tools/x86_64-g4.9.2-lnx4.9.95-uClibc-ng-1.0.22/build'
rm: cannot remove '/home/jimmy/onie/build/x-tools/x86_64-g4.9.2-lnx4.9.95-uClibc-ng-1.0.22/build/.config.2': No such file or directory
make/xtools.make:123: recipe for target '/home/jimmy/onie/build/x-tools/x86_64-g4.9.2-lnx4.9.95-uClibc-ng-1.0.22/stamp/xtools-build' failed
make: *** [/home/jimmy/onie/build/x-tools/x86_64-g4.9.2-lnx4.9.95-uClibc-ng-1.0.22/stamp/xtools-build] Error 1
Hi I had another error while compiling accton_as6700_32x.
The origin seems to be in:
fw_env.c:64:2: error: unknown type name 'uint8_t'
uint8_t mtd_type; / type of the MTD device /
^~~
Hi I had another error while compiling accton_as6700_32x.
The origin seems to be in: fw_env.c:64:2: error: unknown type name 'uint8_t' uint8_t mtd_type; / type of the MTD device / ^
~~
Hi, I have the same issue, have you sovled it ?
Hi I had another error while compiling accton_as6700_32x. The origin seems to be in: fw_env.c:64:2: error: unknown type name 'uint8_t' uint8_t mtd_type; / type of the MTD device / ^
~~ onie_accton_as6700_32x2019-02-07_111421.logHi, I have the same issue, have you sovled it ?
I add
#include <stdint.h>
in line 39 which before #ifdef MT_OLD
build/accton_as6700_32x-r1/u-boot/u-boot-2013.01.01/tools/env/fw_env.c
@jimmymagemtek do you fix the error :
"rm: cannot remove '/home/jimmy/onie/build/x-tools/x86_64-g4.9.2-lnx4.9.95-uClibc-ng-1.0.22/build/.config.2': No such file or directory"
I have the same problem. can you help me? thanks!
Hi I built onie for x86 platform using the following command:
make -j4 MACHINEROOT=../machine/accton MACHINE=accton_as7512_32x all
It seems that there is no errors during the build, but there is no output under /onie/build/images. Is anything wrong ? Any suggestion is appreciated.
CC arch/x86/boot/video-vga.o CC arch/x86/boot/compressed/string.o CC arch/x86/boot/video-vesa.o CC arch/x86/boot/video-bios.o HOSTCC arch/x86/boot/tools/build CC arch/x86/boot/compressed/cmdline.o CPUSTR arch/x86/boot/cpustr.h CC arch/x86/boot/cpu.o CC arch/x86/boot/compressed/error.o OBJCOPY arch/x86/boot/compressed/vmlinux.bin HOSTCC arch/x86/boot/compressed/mkpiggy CC arch/x86/boot/compressed/cpuflags.o CC arch/x86/boot/compressed/early_serial_console.o CC arch/x86/boot/compressed/eboot.o AS arch/x86/boot/compressed/efi_stub_64.o CC arch/x86/boot/compressed/misc.o XZKERN arch/x86/boot/compressed/vmlinux.bin.xz MKPIGGY arch/x86/boot/compressed/piggy.S AS arch/x86/boot/compressed/piggy.o DATAREL arch/x86/boot/compressed/vmlinux LD arch/x86/boot/compressed/vmlinux ZOFFSET arch/x86/boot/zoffset.h OBJCOPY arch/x86/boot/vmlinux.bin AS arch/x86/boot/header.o LD arch/x86/boot/setup.elf OBJCOPY arch/x86/boot/setup.bin BUILD arch/x86/boot/bzImage Setup is 15612 bytes (padded to 15872 bytes). System is 3614 kB CRC 8d6cbce8 Kernel: arch/x86/boot/bzImage is ready (#1) make[1]: Leaving directory '/home/jimmy/onie/build/accton_as7512_32x-r0/kernel/linux-4.9.95' jimmy@debian:~/onie/build-config$ cd .. jimmy@debian:~/onie$ cd build jimmy@debian:~/onie/build$ cd images/ jimmy@debian:~/onie/build/images$ ls jimmy@debian:~/onie/build/images$