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

[MARVELL] [ARM64] Failed to build target/sonic-MARVELL-ARM64.bin and got segmentation error (core dump) #21324

Open
Jiawei202010 opened this issue Jan 3, 2025 · 1 comment

Comments

@Jiawei202010
Copy link

github commit hash: 1129da9

Compile environment

lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04.6 LTS
Release: 20.04
Codename: focal

Docker version

docker version
Client: Docker Engine - Community
Version: 27.4.0
API version: 1.47
Go version: go1.22.10
Git commit: bde2b89
Built: Sat Dec 7 10:38:58 2024
OS/Arch: linux/amd64
Context: default

Server: Docker Engine - Community
Engine:
Version: 27.4.0
API version: 1.47 (minimum version 1.24)
Go version: go1.22.10
Git commit: 92a8393
Built: Sat Dec 7 10:38:58 2024
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: 1.7.24
GitCommit: 88bf19b2105c8b17560993bee28a01ddc2f97182
runc:
Version: 1.2.2
GitCommit: v1.2.2-0-g7cb3632
docker-init:
Version: 0.19.0
GitCommit: de40ad0

Steps to reproduce the issue:

make init
make configure PLATFORM=marvell PLATFORM_ARCH=arm64
make SONIC_BUILD_JOBS=4 target/sonic-marvell-arm64.bin

Describe the results you received:

docker image building apt-get and install got core dumped,
#22 1185.2 Setting up mariadb-common (1:10.5.26-0+deb11u2) ...
#22 1185.3 update-alternatives: using /etc/mysql/mariadb.cnf to provide /etc/mysql/my.cnf (my.cnf) in auto mode
#22 1185.4 Setting up python3-six (1.16.0-2) ...
#22 1187.6 Setting up libgeronimo-annotation-1.3-spec-java (1.3-1) ...
#22 1187.6 Setting up libgeronimo-interceptor-3.0-spec-java (1.0.1-4) ...
#22 1187.6 Setting up libcommons-collections3-java (3.2.2-2) ...
#22 1187.6 Setting up libasound2-data (1.2.4-1.1) ...
#22 1187.7 Setting up autogen-doc (1:5.18.16-4) ...
#22 1187.7 Setting up libjemalloc-dev (5.2.1-3) ...
#22 1187.7 Setting up libgssrpc4:arm64 (1.18.3-6+deb11u5) ...
#22 1187.7 Setting up python3-roman (2.0.0-5) ...
#22 1188.1 Segmentation fault (core dumped)
#22 1188.1 dpkg: error processing package python3-roman (--configure):
#22 1188.1 installed python3-roman package post-installation script subprocess returned error exit status 139
#22 1188.1 Setting up xtrans-dev (1.4.0-1) ...
#22 1188.1 Setting up zip (3.0-12) ...
#22 1188.1 Setting up libfontenc1:arm64 (1:1.1.4-1) ...
#22 1188.1 Setting up autotools-dev (20180224.1+nmu1) ...
#22 1188.1 Setting up python3-jinja2 (2.11.3-1+deb11u2) ...
#22 1190.8 Setting up python3-pygments (2.7.1+dfsg-2.1) ...
#22 1195.7 Setting up libz3-4:arm64 (4.8.10-1) ...

The error location is random, and multiple attempts have been made. The Docker image has now been built.
But now it still appears in the compilation process of subsequent deb packages:

gcc -Wp,-MMD,scripts/dtc/libfdt/.fdt_overlay.o.d -g -O2 -ffile-prefix-map=/sonic/src/sonic-linux-kernel/linux-6.1.94=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -I /sonic/src/sonic-linux-kernel/linux-6.1.94/scripts/dtc/libfdt -DNO_YAML -I ./scripts/dtc -c -o scripts/dtc/libfdt/fdt_overlay.o /sonic/src/sonic-linux-kernel/linux-6.1.94/scripts/dtc/libfdt/fdt_overlay.c
gcc -Wp,-MMD,scripts/dtc/.fdtoverlay.o.d -g -O2 -ffile-prefix-map=/sonic/src/sonic-linux-kernel/linux-6.1.94=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -I /sonic/src/sonic-linux-kernel/linux-6.1.94/scripts/dtc/libfdt -DNO_YAML -I ./scripts/dtc -c -o scripts/dtc/fdtoverlay.o /sonic/src/sonic-linux-kernel/linux-6.1.94/scripts/dtc/fdtoverlay.c
gcc -Wp,-MMD,scripts/dtc/libfdt/.fdt_addresses.o.d -g -O2 -ffile-prefix-map=/sonic/src/sonic-linux-kernel/linux-6.1.94=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -I /sonic/src/sonic-linux-kernel/linux-6.1.94/scripts/dtc/libfdt -DNO_YAML -I ./scripts/dtc -c -o scripts/dtc/libfdt/fdt_addresses.o /sonic/src/sonic-linux-kernel/linux-6.1.94/scripts/dtc/libfdt/fdt_addresses.c
Segmentation fault (core dumped)
make[5]: *** [/sonic/src/sonic-linux-kernel/linux-6.1.94/scripts/Makefile.host:131: scripts/dtc/treesource.o] Error 139
make[5]: *** Waiting for unfinished jobs....

Describe the results you expected:

Build the project correctly

Additional information you deem important (e.g. issue happens only occasionally):

error log files:
sonic-slave-bullseye-march-arm64_3b764cf5fbc.log
linux-headers-6.1.0-22-2-common_6.1.94-1_all.deb.log
monit_5.20.0-6_arm64.deb.log

@Jiawei202010
Copy link
Author

git branch -a

  • 202405

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

1 participant