enclustra-bsp / bsp-altera

4 stars 7 forks source link

Buildroot error: Error running make EBE_OVERLAYS={ebe_overlays} -j7 #6

Open SvenBotha opened 4 months ago

SvenBotha commented 4 months ago

Hello,

I'm trying to do a standard build for the AA+10 module. I've been consistently getting the same error in my Ubuntu 22.04 VM:

....
+make EBE_OVERLAYS=/home/rrs/Documents/Projects/936/BSP/bsp-altera/out_20240515091631_Mercury_AA1_Mercury_PE1_MMC/overlays -j7

ERROR: Error running make EBE_OVERLAYS={ebe_overlays} -j7 for Buildroot

INFO: Working directory: /home/rrs/Documents/Projects/936/BSP/bsp-altera

INFO: Copying files for U-Boot

INFO: Copying ./sources/altera-uboot/.config to ./out_20240515091631_Mercury_AA1_Mercury_PE1_MMC/configs/uboot_dotconfig

INFO: Copying ./sources/altera-uboot/boot.scr to ./out_20240515091631_Mercury_AA1_Mercury_PE1_MMC/boot.scr

INFO: Copying ./sources/altera-uboot/u-boot-dtb.img to ./out_20240515091631_Mercury_AA1_Mercury_PE1_MMC/u-boot.img

INFO: Copying ./sources/altera-uboot/spl/u-boot-splx4.sfp to ./out_20240515091631_Mercury_AA1_Mercury_PE1_MMC/u-boot-splx4.sfp

INFO: Copying files for Linux

INFO: Copying ./sources/altera-linux/arch/arm/boot/uImage to ./out_20240515091631_Mercury_AA1_Mercury_PE1_MMC/uImage

INFO: Copying ./sources/altera-linux/.config to ./out_20240515091631_Mercury_AA1_Mercury_PE1_MMC/configs/kernel_dotconfig

INFO: Copying ./sources/altera-linux/arch/arm/boot/dts/enclustra_generated.dtb to ./out_20240515091631_Mercury_AA1_Mercury_PE1_MMC/devicetree.dtb

INFO: --------------------------------------------------------------------------------

ERROR: BUILD FAILED

INFO: Device: Mercury AA1 Mercury PE1 MMC 

INFO: Targets: U-Boot (fetch + build), Buildroot (fetch), Linux (fetch + build) 

INFO: Binaries: ME-AA1-480-2I3-D12E-NFX3

I've directly followed the steps in the documentation and I am working on the latest master branch. Is there any suggestions to fix this issue?

I've attached the build.log.

andreas-buerkler-enclustra commented 4 months ago

Hi

In your log file, I see following error:

wget --passive-ftp -nd -t 3 -O '/home/rrs/Documents/Projects/936/BSP/bsp-altera/sources/buildroot-rootfs/output/build/.attr-2.5.1.tar.xz.lbjrQ2/output' 'http://download.savannah.gnu.org/releases/attr/attr-2.5.1.tar.xz' 
--2024-05-17 13:04:06--  http://download.savannah.gnu.org/releases/attr/attr-2.5.1.tar.xz
Resolving download.savannah.gnu.org (download.savannah.gnu.org)... 209.51.188.200, 2001:470:142:5::200
Connecting to download.savannah.gnu.org (download.savannah.gnu.org)|209.51.188.200|:80... failed: Connection timed out.
Connecting to download.savannah.gnu.org (download.savannah.gnu.org)|2001:470:142:5::200|:80... failed: Network is unreachable.

This could be caused by a network issue or when the download server (download.savannah.gnu.org) is not responding. To check if the server is not responding or the file is not available anymore, I tried to download the file manually (with: wget --passive-ftp -nd -t 3 -O 'attr-2.5.1.tar.xz' 'http://download.savannah.gnu.org/releases/attr/attr-2.5.1.tar.xz). This was successful. Can you try it again or check your network settings if you can access the download server?

SvenBotha commented 4 months ago

Hi

It seems my company network was blocking the ftp attempt but switching the network and rerunning the build script has produced the following error:

ERROR: Error running make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- -j7 for U-Boot

I've attateched the new build.log.

andreas-buerkler-enclustra commented 4 months ago

According to your log file, a few build steps are missing:

Building U-Boot
U-Boot device-tree arch/arm/dts/enclustra_generated.dts created successfully
make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- -j7

Compared to a build log on my machine (Ubuntu 22.04 vm), creating the enclustra_ebe_generated_defconfig file, executing "make enclustra_ebe_generated_defconfig" and running the qts-filter-a10.sh script is missing.

Building U-Boot
U-Boot device-tree arch/arm/dts/enclustra_generated.dts created successfully
cat configs/socfpga_enclustra_mercury_aa1_defconfig configs/socfpga_env_on_mmc.appendix > configs/enclustra_ebe_generated_defconfig
cat configs/socfpga_enclustra_mercury_aa1_defconfig configs/socfpga_env_on_mmc.appendix > configs/enclustra_ebe_generated_defconfig completed successfully
make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- enclustra_ebe_generated_defconfig -j13
  HOSTCC  scripts/basic/fixdep
  HOSTCC  scripts/kconfig/conf.o
  YACC    scripts/kconfig/zconf.tab.c
  LEX     scripts/kconfig/zconf.lex.c
  HOSTCC  scripts/kconfig/zconf.tab.o
  HOSTLD  scripts/kconfig/conf
#
# configuration written to .config
#
make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- enclustra_ebe_generated_defconfig completed successfully
arch/arm/mach-socfpga/qts-filter-a10.sh /home/andreas/delete-me/bsp-altera/out_20240521085310_Mercury_AA1_Mercury_PE1_MMC/handoff/hps.xml arch/arm/dts/socfpga_arria10_handoff.h
arch/arm/mach-socfpga/qts-filter-a10.sh ${OUTDIR}/handoff/hps.xml arch/arm/dts/socfpga_arria10_handoff.h completed successfully
make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- -j13

How did you start your build? Do you use the graphical interface by running "./build.sh" or do you build it via command line (e.g. "./build.sh -d Mercury_AA1/Mercury_PE1/MMC")? In the log file that is attached to your first message, U-Boot was built successfully. Did you change anything between these builds? Maybe it helps to start a build again from a newly cloned bsp-altera repository.