sonic-net / sonic-buildimage

Scripts which perform an installable binary image build for SONiC
Other
737 stars 1.43k forks source link

Unable to compile image for Marvell - arm64 architecture #11928

Open chiranjeevi-07 opened 2 years ago

chiranjeevi-07 commented 2 years ago

Description

Hi, I'm unable to compile image for Marvell platform with the latest master code. Please help with the compilation and also let me know if I'm doing anything wrong

Steps to reproduce the issue:

  1. git clone https://github.com/sonic-net/sonic-buildimage.git
  2. cd sonic-buildimage/
  3. git checkout
  4. make init
  5. make configure PLATFORM=marvell-arm64 PLATFORM_ARCH=arm64
  6. make SONIC_BUILD_JOBS=4 all

Describe the results you received:

ranlib libSyncd.a /bin/bash ../libtool --tag=CXX --mode=link g++ -g -I../SAI/inc -I../SAI/experimental -I../SAI/meta -I../lib -I../vslib -ansi -fPIC -std=c++14 -Wall -Wcast-align -Wcast-qual -Wconversion -Wdisabled-optimization -Werror -Wextra -Wfloat-equal -Wformat=2 -Wformat-nonliteral -Wformat-security -Wformat-y2k -Wimport -Winit-self -Wno-inline -Winvalid-pch -Wmissing-field-initializers -Wmissing-format-attribute -Wmissing-include-dirs -Wmissing-noreturn -Wno-aggregate-return -Wno-padded -Wno-switch-enum -Wno-unused-parameter -Wpacked -Wpointer-arith -Wredundant-decls -Wshadow -Wstack-protector -Wstrict-aliasing=3 -Wswitch -Wswitch-default -Wunreachable-code -Wunused -Wvariadic-macros -Wwrite-strings -Wno-switch-default -Wconversion -Wno-psabi -Wcast-align=strict -g -O2 -fdebug-prefix-map=/sonic/src/sonic-sairedis=. -fstack-protector-strong -Wformat -Werror=format-security -rdynamic -Wl,-z,relro -o syncd syncd-main.o libSyncd.a ../lib/libSaiRedis.a -L../meta/.libs -lsaimetadata -lsaimeta -ldl -lhiredis -lswsscommon -lsai -lpthread -lzmq
/bin/bash ../libtool --tag=CXX --mode=link g++ -g -I../SAI/inc -I../SAI/experimental -I../SAI/meta -I../lib -I../vslib -ansi -fPIC -std=c++14 -Wall -Wcast-align -Wcast-qual -Wconversion -Wdisabled-optimization -Werror -Wextra -Wfloat-equal -Wformat=2 -Wformat-nonliteral -Wformat-security -Wformat-y2k -Wimport -Winit-self -Wno-inline -Winvalid-pch -Wmissing-field-initializers -Wmissing-format-attribute -Wmissing-include-dirs -Wmissing-noreturn -Wno-aggregate-return -Wno-padded -Wno-switch-enum -Wno-unused-parameter -Wpacked -Wpointer-arith -Wredundant-decls -Wshadow -Wstack-protector -Wstrict-aliasing=3 -Wswitch -Wswitch-default -Wunreachable-code -Wunused -Wvariadic-macros -Wwrite-strings -Wno-switch-default -Wconversion -Wno-psabi -Wcast-align=strict -g -O2 -fdebug-prefix-map=/sonic/src/sonic-sairedis=. -fstack-protector-strong -Wformat -Werror=format-security -Wl,-rpath,../lib/.libs -Wl,-rpath,../meta/.libs -Wl,-z,relro -o tests tests-tests.o libSyncd.a -lhiredis -lswsscommon -lpthread -L../lib/.libs -lsairedis -L../meta/.libs -lsaimetadata -lsaimeta -lzmq
libtool: link: g++ -g -I../SAI/inc -I../SAI/experimental -I../SAI/meta -I../lib -I../vslib -ansi -fPIC -std=c++14 -Wall -Wcast-align -Wcast-qual -Wconversion -Wdisabled-optimization -Werror -Wextra -Wfloat-equal -Wformat=2 -Wformat-nonliteral -Wformat-security -Wformat-y2k -Wimport -Winit-self -Wno-inline -Winvalid-pch -Wmissing-field-initializers -Wmissing-format-attribute -Wmissing-include-dirs -Wmissing-noreturn -Wno-aggregate-return -Wno-padded -Wno-switch-enum -Wno-unused-parameter -Wpacked -Wpointer-arith -Wredundant-decls -Wshadow -Wstack-protector -Wstrict-aliasing=3 -Wswitch -Wswitch-default -Wunreachable-code -Wunused -Wvariadic-macros -Wwrite-strings -Wno-switch-default -Wconversion -Wno-psabi -Wcast-align=strict -g -O2 -fdebug-prefix-map=/sonic/src/sonic-sairedis=. -fstack-protector-strong -Wformat -Werror=format-security -rdynamic -Wl,-z -Wl,relro -o .libs/syncd syncd-main.o libSyncd.a ../lib/libSaiRedis.a -L../meta/.libs /sonic/src/sonic-sairedis/meta/.libs/libsaimetadata.so /sonic/src/sonic-sairedis/meta/.libs/libsaimeta.so -ldl -lhiredis -lswsscommon -lsai -lpthread -lzmq libtool: link: g++ -g -I../SAI/inc -I../SAI/experimental -I../SAI/meta -I../lib -I../vslib -ansi -fPIC -std=c++14 -Wall -Wcast-align -Wcast-qual -Wconversion -Wdisabled-optimization -Werror -Wextra -Wfloat-equal -Wformat=2 -Wformat-nonliteral -Wformat-security -Wformat-y2k -Wimport -Winit-self -Wno-inline -Winvalid-pch -Wmissing-field-initializers -Wmissing-format-attribute -Wmissing-include-dirs -Wmissing-noreturn -Wno-aggregate-return -Wno-padded -Wno-switch-enum -Wno-unused-parameter -Wpacked -Wpointer-arith -Wredundant-decls -Wshadow -Wstack-protector -Wstrict-aliasing=3 -Wswitch -Wswitch-default -Wunreachable-code -Wunused -Wvariadic-macros -Wwrite-strings -Wno-switch-default -Wconversion -Wno-psabi -Wcast-align=strict -g -O2 -fdebug-prefix-map=/sonic/src/sonic-sairedis=. -fstack-protector-strong -Wformat -Werror=format-security -Wl,-rpath -Wl,../lib/.libs -Wl,-rpath -Wl,../meta/.libs -Wl,-z -Wl,relro -o .libs/tests tests-tests.o libSyncd.a -lhiredis -lswsscommon -lpthread -L../lib/.libs /sonic/src/sonic-sairedis/lib/.libs/libsairedis.so -L../meta/.libs /sonic/src/sonic-sairedis/meta/.libs/libsaimetadata.so /sonic/src/sonic-sairedis/meta/.libs/libsaimeta.so -lzmq /usr/bin/ld: libSyncd.a(libSyncd_a-VendorSai.o): in function syncd::VendorSai::queryStatsCapability(unsigned long, _sai_object_type_t, _sai_stat_capability_list_t*)': ./syncd/VendorSai.cpp:469: undefined reference tosai_query_stats_capability' /usr/bin/ld: libSyncd.a(libSyncd_a-VendorSai.o): in function syncd::VendorSai::queryAttributeCapability(unsigned long, _sai_object_type_t, unsigned int, _sai_attr_capability_t*)': ./syncd/VendorSai.cpp:1275: undefined reference tosai_query_attribute_capability' collect2: error: ld returned 1 exit status make[4]: [Makefile:666: syncd] Error 1 make[4]: Waiting for unfinished jobs.... make[4]: Leaving directory '/sonic/src/sonic-sairedis/syncd' make[3]: [Makefile:443: all-recursive] Error 1 make[3]: Leaving directory '/sonic/src/sonic-sairedis' make[2]: [Makefile:375: all] Error 2 make[2]: Leaving directory '/sonic/src/sonic-sairedis' dh_auto_build: error: make -j4 returned exit code 2 make[1]: [debian/rules:57: binary-syncd] Error 25 make[1]: Leaving directory '/sonic/src/sonic-sairedis' dpkg-buildpackage: error: fakeroot debian/rules binary-syncd subprocess returned exit status 2 [ FAIL LOG END ] [ target/debs/buster/syncd_1.0.0_arm64.deb ] make: [slave.mk:653: target/debs/buster/syncd_1.0.0_arm64.deb] Error 1 DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality. make[1]: [Makefile.work:422: buster] Error 2 make[1]: Leaving directory '/home/root-sonic/sonic-buildimage' make: [Makefile:32: all] Error 2

Describe the results you expected:

a compiled binary image file

chiranjeevi-07 commented 2 years ago

Hi, Can anyone help me with this issue? Please let me know If I'm missing something.

zhangyanzhao commented 2 years ago

Can Marvell help to enable the ARM64 build? Thanks.