sonic-net / sonic-buildimage

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

Build failed. Marvell amd64. #11337

Open Japanavt opened 2 years ago

Japanavt commented 2 years ago

Description

Hello! I have a problem building an image. When I try to build I get error undefined reference to `sai_query_stats_capability'. I assemble for marvell amd64. Operating system Ubuntu 20.04. Build log in attachment.

/usr/bin/ld: libSyncd.a(libSyncd_a-VendorSai.o): in functionsyncd::VendorSai::queryStatsCapability(unsigned long, _sai_object_type_t, _sai_stat_capability_list_t*)': ./syncd/VendorSai.cpp:447: undefined reference to sai_query_stats_capability' collect2: error: ld returned 1 exit status make[3]: *** [Makefile:657: syncd] Error 1 make[3]: Leaving directory '/sonic/src/sonic-sairedis/syncd' make[2]: *** [Makefile:441: install-recursive] Error 1 make[2]: Leaving directory '/sonic/src/sonic-sairedis'

Steps to reproduce the issue:

  1. make init
  2. make configure PLATFORM=marvell
  3. make SONIC_BUILD_JOBS=1 all

Describe the results you received:

Build failed with the above error.

Describe the results you expected:

Build succeeds

Output of show version:

(paste your output here)

Output of show techsupport:

(paste your output here or download and attach the file here )

output_new.txt

zhangyanzhao commented 2 years ago

Can Marvell take a look?

Japanavt commented 2 years ago

Anybody can help me?

Liuboshenko commented 1 year ago

Anybody can help me?

Hello, I am experiencing the same thing. Did you manage to resolve it?

Liuboshenko commented 1 year ago

Description

Hello! I have a problem building an image. When I try to build I get error undefined reference to `sai_query_stats_capability'. I assemble for marvell amd64. Operating system Ubuntu 20.04. Build log in attachment.

/usr/bin/ld: libSyncd.a(libSyncd_a-VendorSai.o): in functionsyncd::VendorSai::queryStatsCapability(unsigned long, _sai_object_type_t, _sai_stat_capability_list_t*)': ./syncd/VendorSai.cpp:447: undefined reference to sai_query_stats_capability' collect2: error: ld returned 1 exit status make[3]: *** [Makefile:657: syncd] Error 1 make[3]: Leaving directory '/sonic/src/sonic-sairedis/syncd' make[2]: *** [Makefile:441: install-recursive] Error 1 make[2]: Leaving directory '/sonic/src/sonic-sairedis'

Steps to reproduce the issue:

  1. make init
  2. make configure PLATFORM=marvell
  3. make SONIC_BUILD_JOBS=1 all

Describe the results you received:

Build failed with the above error.

Describe the results you expected:

Build succeeds

Output of show version:

(paste your output here)

Output of show techsupport:

(paste your output here or download and attach the file here )

output_new.txt

Hello, I am experiencing the same thing. Did you manage to resolve it?

deep5050 commented 1 year ago

exact same problem here.

......................
libtool: link: g++ -g -I../SAI/inc -I../SAI/experimental -I../SAI/meta -I../lib -I../vslib -ansi -fPIC -pipe -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 -Wl,-z -Wl,now -o .libs/syncd_tests syncd_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:480: undefined reference to `sai_query_stats_capability'
collect2: error: ld returned 1 exit status
make[5]: *** [Makefile:819: syncd] Error 1
make[5]: Leaving directory '/sonic/src/sonic-sairedis/syncd'
make[4]: *** [Makefile:1607: all-recursive] Error 1
make[4]: Leaving directory '/sonic/src/sonic-sairedis/syncd'
make[3]: *** [Makefile:456: all-recursive] Error 1
make[3]: Leaving directory '/sonic/src/sonic-sairedis'
make[2]: *** [Makefile:388: all] Error 2
make[2]: Leaving directory '/sonic/src/sonic-sairedis'
dh_auto_build: error: make -j20 returned exit code 2
make[1]: *** [debian/rules:46: build] Error 25
make[1]: Leaving directory '/sonic/src/sonic-sairedis'
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2
[  FAIL LOG END  ] [ target/debs/buster/syncd_1.0.0_amd64.deb ]
make: *** [slave.mk:726: target/debs/buster/syncd_1.0.0_amd64.deb] Error 1
make: *** Waiting for unfinished jobs....
[ finished ] [ target/python-wheels/buster/sonic_config_engine-1.0-py3-none-any.whl ]
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:603: buster] Error 2
make[1]: Leaving directory '/home/sonic/sonic-buildimage'