libasterfusionbf_driver.so needs to be linked against libi2c.so too

libi2c.so needs to be dynamically linked against libasterfusionbf_driver.so
manually adding "-li2c" to ibasterfusionbf_driver_la_CFLAGS in platforms/asterfusion-bf/src/Makefile
please find the logs below...
all the best!
cs
mc36@core:~$ ./sw.sh
256
insmod: ERROR: could not insert module /home/mc36/nct6779d/nct6779d.ko: File exists
insmod: ERROR: could not load module /home/mc36/bf-sde-9.13.3/build/pkgsrc/bf-drivers/kdrv/bf_kpkt/bf_kpkt.ko: No such file or directory
i2c-3	smbus     	sio_smbus                       	SMBus adapter
i2c-1	smbus     	SMBus I801 adapter at 3000      	SMBus adapter
i2c-2	i2c       	CP2112 SMBus Bridge on hidraw0  	I2C adapter
i2c-0	smbus     	SMBus iSMT adapter at 887d6000  	SMBus adapter
insmod: ERROR: could not load module /home/mc36/bf-sde-9.13.3/install/lib/modules/bf_kpkt.ko: No such file or directory
Using SDE /home/mc36/bf-sde-9.13.3
Using SDE_INSTALL /home/mc36/bf-sde-9.13.3/install
Setting up DMA Memory Pool
Using TARGET_CONFIG_FILE /home/mc36/bf-sde-9.13.3/install/share/p4/targets/tofino/bf_router.conf
Using SDE_DEPENDENCIES /home/mc36/bf-sde-9.13.3/install
Using PATH /home/mc36/bf-sde-9.13.3/install/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
Using LD_LIBRARY_PATH /home/mc36/bf-sde-9.13.3/install/lib:/home/mc36/bf-sde-9.13.3/install/lib::/usr/local/lib
2024-05-24 14:09:19.435254 BF_SWITCHD DEBUG - bf_switchd: system services initialized
2024-05-24 14:09:19.435326 BF_SWITCHD DEBUG - bf_switchd: loading conf_file /home/mc36/bf-sde-9.13.3/install/share/p4/targets/tofino/bf_router.conf...
2024-05-24 14:09:19.435374 BF_SWITCHD DEBUG - bf_switchd: processing device configuration...
2024-05-24 14:09:19.435451 BF_SWITCHD DEBUG - Configuration for dev_id 0
2024-05-24 14:09:19.435477 BF_SWITCHD DEBUG -   Family        : tofino
2024-05-24 14:09:19.435499 BF_SWITCHD DEBUG -   pci_sysfs_str : /sys/devices/pci0000:00/0000:00:03.0/0000:05:00.0
2024-05-24 14:09:19.435519 BF_SWITCHD DEBUG -   pci_int_mode  : 0
2024-05-24 14:09:19.435540 BF_SWITCHD DEBUG -   sds_fw_path   : share/tofino_sds_fw/avago/firmware
2024-05-24 14:09:19.435560 BF_SWITCHD DEBUG - bf_switchd: processing P4 configuration...
2024-05-24 14:09:19.435623 BF_SWITCHD DEBUG - coal_mirror_enable=0 coal_min=0 sessions_num=0
2024-05-24 14:09:19.435652 BF_SWITCHD DEBUG - P4 profile for dev_id 0
2024-05-24 14:09:19.435673 BF_SWITCHD DEBUG - num P4 programs 1
2024-05-24 14:09:19.435694 BF_SWITCHD DEBUG -   p4_name: bf_router
2024-05-24 14:09:19.435715 BF_SWITCHD DEBUG -   p4_pipeline_name: pipe
2024-05-24 14:09:19.435735 BF_SWITCHD DEBUG -     libpd:
2024-05-24 14:09:19.435754 BF_SWITCHD DEBUG -     libpdthrift:
2024-05-24 14:09:19.435774 BF_SWITCHD DEBUG -     context: /home/mc36/bf-sde-9.13.3/install/bf_router.tofino/pipe/context.json
2024-05-24 14:09:19.435828 BF_SWITCHD DEBUG -     config: /home/mc36/bf-sde-9.13.3/install/bf_router.tofino/pipe/tofino.bin
2024-05-24 14:09:19.435849 BF_SWITCHD DEBUG -   Pipes in scope [
2024-05-24 14:09:19.435868 BF_SWITCHD DEBUG - 0
2024-05-24 14:09:19.435888 BF_SWITCHD DEBUG - 1
2024-05-24 14:09:19.435909 BF_SWITCHD DEBUG - 2
2024-05-24 14:09:19.435929 BF_SWITCHD DEBUG - 3
2024-05-24 14:09:19.435950 BF_SWITCHD DEBUG - ]
2024-05-24 14:09:19.435971 BF_SWITCHD DEBUG -   diag:
2024-05-24 14:09:19.435990 BF_SWITCHD DEBUG -   accton diag:
2024-05-24 14:09:19.436011 BF_SWITCHD DEBUG -   Agent[0]: /home/mc36/bf-sde-9.13.3/install/lib/libpltfm_mgr.so
2024-05-24 14:09:19.439950 BF_SWITCHD DEBUG - bf_switchd: library /home/mc36/bf-sde-9.13.3/install/lib/libpltfm_mgr.so loaded
2024-05-24 14:09:19.441429 BF_SWITCHD DEBUG - bf_switchd: agent[0] initialized
BSP ver  : Git: r78 24.02-rc1-33-gc2dd6cf-dev built: 19:05:37 UTC 2024-05-24
System Preview
Login User:                                                        mc36
Runtime User:                                                        root
Host:                                                        core
Arch:                                                      x86_64
Bits/LONG:                                                          64
Platform:                                                       Linux
Kernel:                                             5.10.0-29-amd64
OS:                       #1 SMP Debian 5.10.216-1 (2024-05-03)
CPU:                                                           4
Loading /etc/platform.conf ...
Initializing i2c    ...   i2c-3
Initializing uart   ...   Skip ...
Reading EEPROM ...
bf_switchd: symbol lookup error: /home/mc36/bf-sde-9.13.3/install/lib/libasterfusionbf_driver.so.0: undefined symbol: i2c_smbus_write_block_data

Please sync your local repo from remote and build bsp via cmake to see whether the issue resolved. I have checked building and running on Debian 11 it works fine.

hi,
cmake fails out with the below message....
please note that it's a default debian 11 with bf-sde-9.13.3 and the bsp installed to my home....
ps:
the ./autogen.sh ; ./configure --prefix=$SDE_INSTALL --enable-thrift ; make ; make install
method also fails now when it tries to link the cp2112_utils....
thanks,
mc36@core:~/bf-bsp-lts/build$ cmake ../
CMake Warning (dev) in CMakeLists.txt:
No project() command is present.  The top-level CMakeLists.txt file must
contain a literal, direct call to the project() command.  Add a line of
code such as
project(ProjectName)

near the top of the file, but after cmake_minimum_required().
CMake is pretending there is a "project(Project)" command on the first
line.
This warning is for project developers.  Use -Wno-dev to suppress it.
-- Supported -DOS_NAME=(Debian|Ubuntu)
-- Supported -DOS_VERSION=[(8|9|10|11|12),(14.04|16.04|18.04|20.04|22.04)]
-- Supported -DSDE_VERSION=(900|911|933|954|975|991|9112|9133)
-- core
-- SDE >= 9.9.0
-- Giving -DOS_NAME=Debian
-- Giving -DOS_VERSION=9
-- Giving -DSDE_VERSION=9130
-- Linking target_utils target_sys
CMake Error at CMakeLists.txt:114 (find_package):
By not providing "FindThrift.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "Thrift", but
CMake did not find one.
Could not find a package configuration file provided by "Thrift" with any
of the following names:
ThriftConfig.cmake
thrift-config.cmake

Add the installation prefix of "Thrift" to CMAKE_PREFIX_PATH or set
"Thrift_DIR" to a directory containing one of the above files.  If "Thrift"
provides a separate development package or SDK, be sure it has been
installed.
-- Configuring incomplete, errors occurred!
See also "/home/mc36/bf-bsp-lts/build/CMakeFiles/CMakeOutput.log".
mc36@core:~/bf-bsp-lts/build$
mc36@core:~$ ls
access-bmc.sh   asic.yaml       c.sh lr.sh                      port_map.json  sai.yam
access-cpu.sh   bf-bsp-lts      lf.sh       model_20240524_133829.log  rare           sw.sh
access-dpu1.sh  bf_drivers.log  libcgos.so  nct6779d                   reimage.sh update.sh
access-dpu2.sh  bf-sde-9.13.3   lp.sh       platform.conf              rtr            zlog-cfg-cur
mc36@core:~$
mc36@core:~/bf-bsp-lts$ make
make  all-recursive
make[1]: Entering directory '/home/mc36/bf-bsp-lts'
Making all in platforms
make[2]: Entering directory '/home/mc36/bf-bsp-lts/platforms'
Making all in include
make[3]: Entering directory '/home/mc36/bf-bsp-lts/platforms/include'
make[3]: Nothing to be done for 'all'.
make[3]: Leaving directory '/home/mc36/bf-bsp-lts/platforms/include'
Making all in asterfusion-bf
make[3]: Entering directory '/home/mc36/bf-bsp-lts/platforms/asterfusion-bf'
Making all in thrift
make[4]: Entering directory '/home/mc36/bf-bsp-lts/platforms/asterfusion-bf/thrift'
make  all-am
make[5]: Entering directory '/home/mc36/bf-bsp-lts/platforms/asterfusion-bf/thrift'
make[5]: Nothing to be done for 'all-am'.
make[5]: Leaving directory '/home/mc36/bf-bsp-lts/platforms/asterfusion-bf/thrift'
make[4]: Leaving directory '/home/mc36/bf-bsp-lts/platforms/asterfusion-bf/thrift'
Making all in include
make[4]: Entering directory '/home/mc36/bf-bsp-lts/platforms/asterfusion-bf/include'
make[4]: Nothing to be done for 'all'.
make[4]: Leaving directory '/home/mc36/bf-bsp-lts/platforms/asterfusion-bf/include'
Making all in src
make[4]: Entering directory '/home/mc36/bf-bsp-lts/platforms/asterfusion-bf/src'
make[4]: Nothing to be done for 'all'.
make[4]: Leaving directory '/home/mc36/bf-bsp-lts/platforms/asterfusion-bf/src'
Making all in cp2112_util
make[4]: Entering directory '/home/mc36/bf-bsp-lts/platforms/asterfusion-bf/cp2112_util'
CCLD     cp2112_util
/usr/bin/ld: ../src/bf_pltfm_master_i2c/cp2112_util-bf_pltfm_master_i2c.o: in function bf_pltfm_master_i2c_read_byte': /home/mc36/bf-bsp-lts/platforms/asterfusion-bf/cp2112_util/../src/bf_pltfm_master_i2c/bf_pltfm_master_i2c.c:712: undefined reference to i2c_smbus_read_byte_data'
/usr/bin/ld: ../src/bf_pltfm_master_i2c/cp2112_util-bf_pltfm_master_i2c.o: in function bf_pltfm_master_i2c_read_block': /home/mc36/bf-bsp-lts/platforms/asterfusion-bf/cp2112_util/../src/bf_pltfm_master_i2c/bf_pltfm_master_i2c.c:766: undefined reference to i2c_smbus_read_byte_data'
/usr/bin/ld: ../src/bf_pltfm_master_i2c/cp2112_util-bf_pltfm_master_i2c.o: in function bf_pltfm_master_i2c_write_byte': /home/mc36/bf-bsp-lts/platforms/asterfusion-bf/cp2112_util/../src/bf_pltfm_master_i2c/bf_pltfm_master_i2c.c:865: undefined reference to i2c_smbus_write_byte_data'
/usr/bin/ld: ../src/bf_pltfm_master_i2c/cp2112_util-bf_pltfm_master_i2c.o: in function bf_pltfm_master_i2c_write_block': /home/mc36/bf-bsp-lts/platforms/asterfusion-bf/cp2112_util/../src/bf_pltfm_master_i2c/bf_pltfm_master_i2c.c:916: undefined reference to i2c_smbus_write_byte_data'
/usr/bin/ld: ../src/bf_pltfm_master_i2c/cp2112_util-bf_pltfm_master_i2c.o: in function bf_pltfm_bmc_write_read': /home/mc36/bf-bsp-lts/platforms/asterfusion-bf/cp2112_util/../src/bf_pltfm_master_i2c/bf_pltfm_master_i2c.c:993: undefined reference to i2c_smbus_read_block_data'
/usr/bin/ld: /home/mc36/bf-bsp-lts/platforms/asterfusion-bf/cp2112_util/../src/bf_pltfm_master_i2c/bf_pltfm_master_i2c.c:975: undefined reference to `i2c_smbus_write_block_data'
collect2: error: ld returned 1 exit status
make[4]: *** [Makefile:504: cp2112_util] Error 1
make[4]: Leaving directory '/home/mc36/bf-bsp-lts/platforms/asterfusion-bf/cp2112_util'
make[3]: *** [Makefile:380: all-recursive] Error 1
make[3]: Leaving directory '/home/mc36/bf-bsp-lts/platforms/asterfusion-bf'
make[2]: *** [Makefile:376: all-recursive] Error 1
make[2]: Leaving directory '/home/mc36/bf-bsp-lts/platforms'
make[1]: *** [Makefile:615: all-recursive] Error 1
make[1]: Leaving directory '/home/mc36/bf-bsp-lts'
make: *** [Makefile:440: all] Error 2
mc36@core:~/bf-bsp-lts$

Please try belowing that is told by README.mdhttp://README.md
@.http://localhost:~/bf-bsp-lts# ./autogen.shhttp://autogen.sh
@.http://localhost:~/bf-bsp-lts# mkdir build && cd build/
@.http://localhost:~/bf-bsp-lts/build# cmake ..
                      -DCMAKE_MODULE_PATH=pwd/../cmake
                      -DCMAKE_INSTALL_PREFIX=$SDE_INSTALL
                      -DOS_NAME=Debian
                      -DOS_VERSION=11
                      -DSDE_VERSION=9133
@.http://localhost:~/bf-bsp-lts/build# make -j15 install

From: @.>
Date:  Sat, Jun 8, 2024, 01:46
Subject:  Re: [asterfusion/bf-bsp-lts] libasterfusionbf_driver.sohttp://libasterfusionbf_driver.so needs to be linked against libi2c.sohttp://libi2c.so too (Issue #2)
To: @.>
Cc: "Hang @.>, @.>
hi,
cmake fails out with the below message....
please note that it's a default debian 11 with bf-sde-9.13.3 and the bsp installed to my home....
ps:
the ./autogen.shhttp://autogen.sh ; ./configure --prefix=$SDE_INSTALL --enable-thrift ; make ; make install
method also fails now when it tries to link the cp2112_utils....
thanks,
@.:~/bf-bsp-lts/build$ cmake ../
 CMake Warning (dev) in CMakeLists.txt:
 No project() command is present. The top-level CMakeLists.txt file must
 contain a literal, direct call to the project() command. Add a line of
 code such as
project(ProjectName)
near the top of the file, but after cmake_minimum_required().
CMake is pretending there is a "project(Project)" command on the first
 line.
 This warning is for project developers. Use -Wno-dev to suppress it.
-- Supported -DOS_NAME=(Debian|Ubuntu)
 -- Supported -DOS_VERSION=[(8|9|10|11|12),(14.04|16.04|18.04|20.04|22.04)]
 -- Supported -DSDE_VERSION=(900|911|933|954|975|991|9112|9133)
 -- core
 -- SDE >= 9.9.0
 -- Giving -DOS_NAME=Debian
 -- Giving -DOS_VERSION=9
 -- Giving -DSDE_VERSION=9130
 -- Linking target_utils target_sys
 CMake Error at CMakeLists.txt:114 (find_package):
 By not providing "FindThrift.cmake" in CMAKE_MODULE_PATH this project has
 asked CMake to find a package configuration file provided by "Thrift", but
 CMake did not find one.
Could not find a package configuration file provided by "Thrift" with any
 of the following names:
ThriftConfig.cmake
thrift-config.cmake
Add the installation prefix of "Thrift" to CMAKE_PREFIX_PATH or set
 "Thrift_DIR" to a directory containing one of the above files. If "Thrift"
 provides a separate development package or SDK, be sure it has been
 installed.
-- Configuring incomplete, errors occurred!
 See also "/home/mc36/bf-bsp-lts/build/CMakeFiles/CMakeOutput.log".
@.:~/bf-bsp-lts/build$
@.:$ ls
 access-bmc.shhttp://access-bmc.sh asic.yaml c.shhttp://c.sh lr.shhttp://lr.sh port_map.json sai.yam
 access-cpu.shhttp://access-cpu.sh bf-bsp-lts lf.shhttp://lf.sh model_20240524_133829.log rare sw.shhttp://sw.sh
 access-dpu1.shhttp://access-dpu1.sh bf_drivers.log libcgos.sohttp://libcgos.so nct6779d reimage.shhttp://reimage.sh update.shhttp://update.sh
 access-dpu2.shhttp://access-dpu2.sh bf-sde-9.13.3 lp.shhttp://lp.sh platform.conf rtr zlog-cfg-cur
@.:$
@.:/bf-bsp-lts$ make
 make all-recursive
 make[1]: Entering directory '/home/mc36/bf-bsp-lts'
 Making all in platforms
 make[2]: Entering directory '/home/mc36/bf-bsp-lts/platforms'
 Making all in include
 make[3]: Entering directory '/home/mc36/bf-bsp-lts/platforms/include'
 make[3]: Nothing to be done for 'all'.
 make[3]: Leaving directory '/home/mc36/bf-bsp-lts/platforms/include'
 Making all in asterfusion-bf
 make[3]: Entering directory '/home/mc36/bf-bsp-lts/platforms/asterfusion-bf'
 Making all in thrift
 make[4]: Entering directory '/home/mc36/bf-bsp-lts/platforms/asterfusion-bf/thrift'
 make all-am
 make[5]: Entering directory '/home/mc36/bf-bsp-lts/platforms/asterfusion-bf/thrift'
 make[5]: Nothing to be done for 'all-am'.
 make[5]: Leaving directory '/home/mc36/bf-bsp-lts/platforms/asterfusion-bf/thrift'
 make[4]: Leaving directory '/home/mc36/bf-bsp-lts/platforms/asterfusion-bf/thrift'
 Making all in include
 make[4]: Entering directory '/home/mc36/bf-bsp-lts/platforms/asterfusion-bf/include'
 make[4]: Nothing to be done for 'all'.
 make[4]: Leaving directory '/home/mc36/bf-bsp-lts/platforms/asterfusion-bf/include'
 Making all in src
 make[4]: Entering directory '/home/mc36/bf-bsp-lts/platforms/asterfusion-bf/src'
 make[4]: Nothing to be done for 'all'.
 make[4]: Leaving directory '/home/mc36/bf-bsp-lts/platforms/asterfusion-bf/src'
 Making all in cp2112_util
 make[4]: Entering directory '/home/mc36/bf-bsp-lts/platforms/asterfusion-bf/cp2112_util'
 CCLD cp2112_util
 /usr/bin/ld: ../src/bf_pltfm_master_i2c/cp2112_util-bf_pltfm_master_i2c.o: in function bf_pltfm_master_i2c_read_byte': /home/mc36/bf-bsp-lts/platforms/asterfusion-bf/cp2112_util/../src/bf_pltfm_master_i2c/bf_pltfm_master_i2c.c:712: undefined reference to i2c_smbus_read_byte_data'
 /usr/bin/ld: ../src/bf_pltfm_master_i2c/cp2112_util-bf_pltfm_master_i2c.o: in function bf_pltfm_master_i2c_read_block': /home/mc36/bf-bsp-lts/platforms/asterfusion-bf/cp2112_util/../src/bf_pltfm_master_i2c/bf_pltfm_master_i2c.c:766: undefined reference to i2c_smbus_read_byte_data'
 /usr/bin/ld: ../src/bf_pltfm_master_i2c/cp2112_util-bf_pltfm_master_i2c.o: in function bf_pltfm_master_i2c_write_byte': /home/mc36/bf-bsp-lts/platforms/asterfusion-bf/cp2112_util/../src/bf_pltfm_master_i2c/bf_pltfm_master_i2c.c:865: undefined reference to i2c_smbus_write_byte_data'
 /usr/bin/ld: ../src/bf_pltfm_master_i2c/cp2112_util-bf_pltfm_master_i2c.o: in function bf_pltfm_master_i2c_write_block': /home/mc36/bf-bsp-lts/platforms/asterfusion-bf/cp2112_util/../src/bf_pltfm_master_i2c/bf_pltfm_master_i2c.c:916: undefined reference to i2c_smbus_write_byte_data'
 /usr/bin/ld: ../src/bf_pltfm_master_i2c/cp2112_util-bf_pltfm_master_i2c.o: in function bf_pltfm_bmc_write_read': /home/mc36/bf-bsp-lts/platforms/asterfusion-bf/cp2112_util/../src/bf_pltfm_master_i2c/bf_pltfm_master_i2c.c:993: undefined reference to i2c_smbus_read_block_data'
 /usr/bin/ld: /home/mc36/bf-bsp-lts/platforms/asterfusion-bf/cp2112_util/../src/bf_pltfm_master_i2c/bf_pltfm_master_i2c.c:975: undefined reference to `i2c_smbus_write_block_data'
 collect2: error: ld returned 1 exit status
 make[4]: *** [Makefile:504: cp2112_util] Error 1
 make[4]: Leaving directory '/home/mc36/bf-bsp-lts/platforms/asterfusion-bf/cp2112_util'
 make[3]: *** [Makefile:380: all-recursive] Error 1
 make[3]: Leaving directory '/home/mc36/bf-bsp-lts/platforms/asterfusion-bf'
 make[2]: *** [Makefile:376: all-recursive] Error 1
 make[2]: Leaving directory '/home/mc36/bf-bsp-lts/platforms'
 make[1]: *** [Makefile:615: all-recursive] Error 1
 make[1]: Leaving directory '/home/mc36/bf-bsp-lts'
 make: *** [Makefile:440: all] Error 2
@.:/bf-bsp-lts$
—
Reply to this email directly, view it on GitHubhttps://github.com/asterfusion/bf-bsp-lts/issues/2#issuecomment-2155265988, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BBK7WQ3FNTO32PQFCHZIXETZGHWWXAVCNFSM6AAAAABIIDA2QKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNJVGI3DKOJYHA.
You are receiving this because you commented.[image: https://github.com/notifications/beacon/BBK7WQ5Y2KWHXUTWEBARCDTZGHWWXA5CNFSM6AAAAABIIDA2QKWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTUAO274I.gif]Message ID: @.***>

hi,
ohhh, an updated readme... nicee! :)
anyway -li2c seems still to be missing during the linking phase...
thanks,
mc36@core:~/bf-bsp-lts$ ./autogen.sh
/home/mc36/bf-sde-9.13.3/install
:/home/mc36/bf-sde-9.13.3/install/lib
Copying bd-map json for tof2 based platforms ...
Git Local version: 48
ALL GIT Version: Git: r48 24.06-rc1
Generated: platforms/asterfusion-bf/include//version.h
autoreconf: Entering directory .' autoreconf: configure.ac: not using Gettext autoreconf: running: aclocal --force ${ACLOCAL_FLAGS} -I m4 autoreconf: configure.ac: tracing autoreconf: running: libtoolize --copy --force libtoolize: putting auxiliary files in '.'. libtoolize: copying file './ltmain.sh' libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'. libtoolize: copying file 'm4/libtool.m4' libtoolize: copying file 'm4/ltoptions.m4' libtoolize: copying file 'm4/ltsugar.m4' libtoolize: copying file 'm4/ltversion.m4' libtoolize: copying file 'm4/lt~obsolete.m4' autoreconf: running: /usr/bin/autoconf --force autoreconf: running: /usr/bin/autoheader --force autoreconf: running: automake --add-missing --copy --force-missing configure.ac:90: installing './compile' configure.ac:9: installing './missing' Makefile.am: installing './depcomp' autoreconf: Leaving directory .'
Press any key to continue...
mc36@core:~/bf-bsp-lts/build$ cmake ..                       -DCMAKE_MODULE_PATH=pwd/../cmake                        -DCMAKE_INSTALL_PREFIX=$SDE_INSTALL                       -DOS_NAME=Debian                                          -DOS_VERSION=11                                            -DSDE_VERSION=9133
CMake Warning (dev) in CMakeLists.txt:
No project() command is present.  The top-level CMakeLists.txt file must
contain a literal, direct call to the project() command.  Add a line of
code such as
project(ProjectName)

near the top of the file, but after cmake_minimum_required().
CMake is pretending there is a "project(Project)" command on the first
line.
This warning is for project developers.  Use -Wno-dev to suppress it.
-- The C compiler identification is GNU 10.2.1
-- The CXX compiler identification is GNU 10.2.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Supported -DOS_NAME=(Debian|Ubuntu)
-- Supported -DOS_VERSION=[(8|9|10|11|12),(14.04|16.04|18.04|20.04|22.04)]
-- Supported -DSDE_VERSION=(900|911|933|954|975|991|9112|9133)
-- core
-- SDE >= 9.9.0
-- Giving -DOS_NAME=Debian
-- Giving -DOS_VERSION=11
-- Giving -DSDE_VERSION=9133
-- Linking target_utils target_sys
CMake Warning (dev) at /usr/share/cmake-3.18/Modules/FindPackageHandleStandardArgs.cmake:273 (message):
The package name passed to find_package_handle_standard_args (THRIFT)
does not match the name of the calling package (Thrift).  This can lead to
problems in calling code that expects find_package result variables
(e.g., _FOUND) to follow a certain pattern.
Call Stack (most recent call first):
cmake/FindThrift.cmake:92 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
CMakeLists.txt:114 (find_package)
This warning is for project developers.  Use -Wno-dev to suppress it.
-- Found THRIFT: /usr/lib/x86_64-linux-gnu/libthrift.so
-- Configuring done
-- Generating done
-- Build files have been written to: /home/mc36/bf-bsp-lts/build
mc36@core:~/bf-bsp-lts/build$ make
Scanning dependencies of target pltfm_o
[  1%] Building C object CMakeFiles/pltfm_o.dir/drivers/src/bf_pltfm_mgr/pltfm_mgr_init.c.o
[  2%] Building C object CMakeFiles/pltfm_o.dir/drivers/src/bf_pltfm_mgr/pltfm_mgr_handlers.c.o
[  2%] Built target pltfm_o
Scanning dependencies of target asterfusionbf_driver_o
[  3%] Building C object CMakeFiles/asterfusionbf_driver_o.dir/platforms/asterfusion-bf/src/bf_pltfm_master_i2c/bf_pltfm_master_i2c.c.o
[  4%] Building C object CMakeFiles/asterfusionbf_driver_o.dir/platforms/asterfusion-bf/src/bf_pltfm_master_i2c/bf_pltfm_cgos_i2c.c.o
[  5%] Building C object CMakeFiles/asterfusionbf_driver_o.dir/platforms/asterfusion-bf/src/bf_pltfm_uart/bf_pltfm_uart.c.o
[  6%] Building C object CMakeFiles/asterfusionbf_driver_o.dir/platforms/asterfusion-bf/src/bf_pltfm_bmc_tty/bmc_tty.c.o
[  7%] Building C object CMakeFiles/asterfusionbf_driver_o.dir/platforms/asterfusion-bf/src/platform_mgr/platform.c.o
[  8%] Building C object CMakeFiles/asterfusionbf_driver_o.dir/platforms/asterfusion-bf/src/platform_mgr/platform_board.c.o
[  9%] Building C object CMakeFiles/asterfusionbf_driver_o.dir/platforms/asterfusion-bf/src/platform_mgr/platform_health_mntr.c.o
[ 10%] Building C object CMakeFiles/asterfusionbf_driver_o.dir/platforms/asterfusion-bf/src/bf_pltfm_led/lq.c.o
[ 11%] Building C object CMakeFiles/asterfusionbf_driver_o.dir/platforms/asterfusion-bf/src/bf_pltfm_led/bf_pltfm_mav_led.c.o
[ 12%] Building C object CMakeFiles/asterfusionbf_driver_o.dir/platforms/asterfusion-bf/src/bf_pltfm_led/bf_pltfm_mav_led_x564p.c.o
[ 13%] Building C object CMakeFiles/asterfusionbf_driver_o.dir/platforms/asterfusion-bf/src/bf_pltfm_led/bf_pltfm_mav_led_x532p.c.o
[ 14%] Building C object CMakeFiles/asterfusionbf_driver_o.dir/platforms/asterfusion-bf/src/bf_pltfm_led/bf_pltfm_mav_led_x308p.c.o
[ 15%] Building C object CMakeFiles/asterfusionbf_driver_o.dir/platforms/asterfusion-bf/src/bf_pltfm_led/bf_pltfm_mav_led_x312p.c.o
[ 16%] Building C object CMakeFiles/asterfusionbf_driver_o.dir/platforms/asterfusion-bf/src/bf_pltfm_led/bf_pltfm_mav_led_x732q.c.o
[ 17%] Building C object CMakeFiles/asterfusionbf_driver_o.dir/platforms/asterfusion-bf/src/bf_pltfm_led/bf_pltfm_mav_led_hc36y24c.c.o
[ 18%] Building C object CMakeFiles/asterfusionbf_driver_o.dir/platforms/asterfusion-bf/src/bf_pltfm_led/bf_pltfm_mav_cpld_led.c.o
[ 20%] Building C object CMakeFiles/asterfusionbf_driver_o.dir/platforms/asterfusion-bf/src/bf_pltfm_cpld/bf_pltfm_cpld_ucli.c.o
[ 21%] Building C object CMakeFiles/asterfusionbf_driver_o.dir/platforms/asterfusion-bf/src/bf_pltfm_spi/bf_pltfm_spi.c.o
[ 22%] Building C object CMakeFiles/asterfusionbf_driver_o.dir/platforms/asterfusion-bf/src/qsfp/bf_mav_qsfp_module.c.o
[ 23%] Building C object CMakeFiles/asterfusionbf_driver_o.dir/platforms/asterfusion-bf/src/qsfp/bf_mav_qsfp_sub_module.c.o
[ 24%] Building C object CMakeFiles/asterfusionbf_driver_o.dir/platforms/asterfusion-bf/src/qsfp/bf_mav_qsfp_sub_module_x564p.c.o
[ 25%] Building C object CMakeFiles/asterfusionbf_driver_o.dir/platforms/asterfusion-bf/src/qsfp/bf_mav_qsfp_sub_module_x532p.c.o
[ 26%] Building C object CMakeFiles/asterfusionbf_driver_o.dir/platforms/asterfusion-bf/src/qsfp/bf_mav_qsfp_sub_module_x308p.c.o
[ 27%] Building C object CMakeFiles/asterfusionbf_driver_o.dir/platforms/asterfusion-bf/src/qsfp/bf_mav_qsfp_sub_module_x312p.c.o
[ 28%] Building C object CMakeFiles/asterfusionbf_driver_o.dir/platforms/asterfusion-bf/src/qsfp/bf_mav_qsfp_sub_module_x732q.c.o
[ 29%] Building C object CMakeFiles/asterfusionbf_driver_o.dir/platforms/asterfusion-bf/src/qsfp/bf_mav_qsfp_sub_module_hc36y24c.c.o
[ 30%] Building C object CMakeFiles/asterfusionbf_driver_o.dir/platforms/asterfusion-bf/src/qsfp/bf_mav_sfp_module.c.o
[ 31%] Building C object CMakeFiles/asterfusionbf_driver_o.dir/platforms/asterfusion-bf/src/qsfp/bf_mav_sfp_module_x564p.c.o
[ 32%] Building C object CMakeFiles/asterfusionbf_driver_o.dir/platforms/asterfusion-bf/src/qsfp/bf_mav_sfp_module_x532p.c.o
[ 33%] Building C object CMakeFiles/asterfusionbf_driver_o.dir/platforms/asterfusion-bf/src/qsfp/bf_mav_sfp_module_x308p.c.o
[ 34%] Building C object CMakeFiles/asterfusionbf_driver_o.dir/platforms/asterfusion-bf/src/qsfp/bf_mav_sfp_module_x312p.c.o
[ 35%] Building C object CMakeFiles/asterfusionbf_driver_o.dir/platforms/asterfusion-bf/src/qsfp/bf_mav_sfp_module_x732q.c.o
[ 36%] Building C object CMakeFiles/asterfusionbf_driver_o.dir/platforms/asterfusion-bf/src/qsfp/bf_mav_sfp_module_hc36y24c.c.o
[ 37%] Building C object CMakeFiles/asterfusionbf_driver_o.dir/platforms/asterfusion-bf/src/bf_pltfm_chss_mgmt/bf_pltfm_chss_mgmt_intf.c.o
[ 38%] Building C object CMakeFiles/asterfusionbf_driver_o.dir/platforms/asterfusion-bf/src/bf_pltfm_chss_mgmt/bf_pltfm_bd_eeprom.c.o
[ 40%] Building C object CMakeFiles/asterfusionbf_driver_o.dir/platforms/asterfusion-bf/src/bf_pltfm_chss_mgmt/bf_pltfm_chss_mgmt_tmp.c.o
[ 41%] Building C object CMakeFiles/asterfusionbf_driver_o.dir/platforms/asterfusion-bf/src/bf_pltfm_chss_mgmt/bf_pltfm_chss_mgmt_vrail.c.o
[ 42%] Building C object CMakeFiles/asterfusionbf_driver_o.dir/platforms/asterfusion-bf/src/bf_pltfm_chss_mgmt/bf_pltfm_chss_mgmt_ps.c.o
[ 43%] Building C object CMakeFiles/asterfusionbf_driver_o.dir/platforms/asterfusion-bf/src/bf_pltfm_chss_mgmt/bf_pltfm_chss_mgmt_fan.c.o
[ 44%] Building C object CMakeFiles/asterfusionbf_driver_o.dir/platforms/asterfusion-bf/src/bf_pltfm_chss_mgmt/bf_pltfm_chss_mgmt_mac.c.o
[ 45%] Building C object CMakeFiles/asterfusionbf_driver_o.dir/platforms/asterfusion-bf/src/bf_pltfm_chss_mgmt/bf_pltfm_chss_mgmt_ucli.c.o
[ 46%] Building C object CMakeFiles/asterfusionbf_driver_o.dir/platforms/asterfusion-bf/src/bf_pltfm_cp2112/bf_pltfm_cp2112_intf.c.o
[ 47%] Building C object CMakeFiles/asterfusionbf_driver_o.dir/platforms/asterfusion-bf/src/bf_pltfm_cp2112/bf_pltfm_cp2112_intf_ucli.c.o
[ 47%] Built target asterfusionbf_driver_o
Scanning dependencies of target asterfusionbf_driver
[ 48%] Linking C shared library /home/mc36/bf-sde-9.13.3/install/lib/libasterfusionbf_driver.so
[ 48%] Built target asterfusionbf_driver
Scanning dependencies of target pltfm_driver_o
[ 49%] Building C object CMakeFiles/pltfm_driver_o.dir/drivers/src/bf_bd_cfg/bf_bd_cfg_intf.c.o
[ 50%] Building C object CMakeFiles/pltfm_driver_o.dir/drivers/src/bf_bd_cfg/bf_bd_cfg_intf_ucli.c.o
[ 51%] Building C object CMakeFiles/pltfm_driver_o.dir/drivers/src/bf_bd_cfg/bf_bd_cfg_porting.c.o
[ 52%] Building C object CMakeFiles/pltfm_driver_o.dir/drivers/src/bf_qsfp/bf_qsfp_cli.c.o
[ 53%] Building C object CMakeFiles/pltfm_driver_o.dir/drivers/src/bf_qsfp/bf_sfp_ucli.c.o
[ 54%] Building C object CMakeFiles/pltfm_driver_o.dir/drivers/src/bf_qsfp/bf_qsfp_comm.c.o
[ 55%] Building C object CMakeFiles/pltfm_driver_o.dir/drivers/src/bf_qsfp/bf_sfp_comm.c.o
[ 56%] Building C object CMakeFiles/pltfm_driver_o.dir/drivers/src/bf_qsfp/sff.c.o
[ 57%] Building C object CMakeFiles/pltfm_driver_o.dir/drivers/src/bf_qsfp/dom.c.o
[ 58%] Building C object CMakeFiles/pltfm_driver_o.dir/drivers/src/bf_qsfp/map.c.o
[ 60%] Building C object CMakeFiles/pltfm_driver_o.dir/drivers/src/bf_qsfp/nonstandard.c.o
[ 61%] Building C object CMakeFiles/pltfm_driver_o.dir/drivers/src/bf_qsfp/sff_db.c.o
[ 62%] Building C object CMakeFiles/pltfm_driver_o.dir/drivers/src/bf_qsfp/sff_enums.c.o
[ 63%] Building C object CMakeFiles/pltfm_driver_o.dir/drivers/src/bf_led/bf_led.c.o
[ 64%] Building C object CMakeFiles/pltfm_driver_o.dir/drivers/src/bf_port_mgmt/bf_pm_intf.c.o
[ 65%] Building C object CMakeFiles/pltfm_driver_o.dir/drivers/src/bf_port_mgmt/bf_pm_intf_tf2.c.o
[ 66%] Building C object CMakeFiles/pltfm_driver_o.dir/drivers/src/bf_port_mgmt/bf_pm_qsfp_mgmt.c.o
[ 67%] Building C object CMakeFiles/pltfm_driver_o.dir/drivers/src/bf_port_mgmt/bf_pm_sfp_mgmt.c.o
[ 68%] Building C object CMakeFiles/pltfm_driver_o.dir/drivers/src/bf_port_mgmt/bf_pm_porting.c.o
[ 68%] Built target pltfm_driver_o
Scanning dependencies of target pltfm_driver
[ 69%] Linking C shared library /home/mc36/bf-sde-9.13.3/install/lib/libpltfm_driver.so
[ 69%] Built target pltfm_driver
Scanning dependencies of target asterfusion_bin_srcs_o
[ 70%] Building C object CMakeFiles/asterfusion_bin_srcs_o.dir/platforms/asterfusion-bf/src/bf_pltfm_master_i2c/bf_pltfm_master_i2c.c.o
[ 71%] Building C object CMakeFiles/asterfusion_bin_srcs_o.dir/platforms/asterfusion-bf/src/bf_pltfm_master_i2c/bf_pltfm_cgos_i2c.c.o
[ 72%] Building C object CMakeFiles/asterfusion_bin_srcs_o.dir/platforms/asterfusion-bf/src/bf_pltfm_uart/bf_pltfm_uart.c.o
[ 73%] Building C object CMakeFiles/asterfusion_bin_srcs_o.dir/platforms/asterfusion-bf/src/bf_pltfm_cp2112/bf_pltfm_cp2112_intf.c.o
[ 74%] Building C object CMakeFiles/asterfusion_bin_srcs_o.dir/platforms/asterfusion-bf/src/bf_pltfm_bmc_tty/bmc_tty.c.o
[ 75%] Building C object CMakeFiles/asterfusion_bin_srcs_o.dir/platforms/asterfusion-bf/src/bf_pltfm_chss_mgmt/bf_pltfm_chss_mgmt_intf.c.o
[ 76%] Building C object CMakeFiles/asterfusion_bin_srcs_o.dir/platforms/asterfusion-bf/src/bf_pltfm_chss_mgmt/bf_pltfm_bd_eeprom.c.o
[ 77%] Building C object CMakeFiles/asterfusion_bin_srcs_o.dir/drivers/src/bf_bd_cfg/bf_bd_cfg_intf.c.o
[ 77%] Built target asterfusion_bin_srcs_o
Scanning dependencies of target cp2112_util
[ 78%] Building C object CMakeFiles/cp2112_util.dir/platforms/asterfusion-bf/cp2112_util/cp2112_util.c.o
[ 80%] Linking C executable cp2112_util
/usr/bin/ld: CMakeFiles/asterfusion_bin_srcs_o.dir/platforms/asterfusion-bf/src/bf_pltfm_master_i2c/bf_pltfm_master_i2c.c.o: in function bf_pltfm_master_i2c_read_byte': bf_pltfm_master_i2c.c:(.text+0x104e): undefined reference to i2c_smbus_read_byte_data'
/usr/bin/ld: CMakeFiles/asterfusion_bin_srcs_o.dir/platforms/asterfusion-bf/src/bf_pltfm_master_i2c/bf_pltfm_master_i2c.c.o: in function bf_pltfm_master_i2c_read_block': bf_pltfm_master_i2c.c:(.text+0x1200): undefined reference to i2c_smbus_read_byte_data'
/usr/bin/ld: CMakeFiles/asterfusion_bin_srcs_o.dir/platforms/asterfusion-bf/src/bf_pltfm_master_i2c/bf_pltfm_master_i2c.c.o: in function bf_pltfm_master_i2c_write_byte': bf_pltfm_master_i2c.c:(.text+0x13aa): undefined reference to i2c_smbus_write_byte_data'
/usr/bin/ld: CMakeFiles/asterfusion_bin_srcs_o.dir/platforms/asterfusion-bf/src/bf_pltfm_master_i2c/bf_pltfm_master_i2c.c.o: in function bf_pltfm_master_i2c_write_block': bf_pltfm_master_i2c.c:(.text+0x1559): undefined reference to i2c_smbus_write_byte_data'
/usr/bin/ld: CMakeFiles/asterfusion_bin_srcs_o.dir/platforms/asterfusion-bf/src/bf_pltfm_master_i2c/bf_pltfm_master_i2c.c.o: in function bf_pltfm_bmc_write_read': bf_pltfm_master_i2c.c:(.text+0x175c): undefined reference to i2c_smbus_read_block_data'
/usr/bin/ld: bf_pltfm_master_i2c.c:(.text+0x180a): undefined reference to `i2c_smbus_write_block_data'
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/cp2112_util.dir/build.make:119: cp2112_util] Error 1
make[1]: *** [CMakeFiles/Makefile2:299: CMakeFiles/cp2112_util.dir/all] Error 2
make: *** [Makefile:149: all] Error 2
mc36@core:~/bf-bsp-lts/build$

Please try bf-bsp-lts/tags/24.06

hi,
after a fresh clone of the repo, the build now succeeds however starting the bf-sde exits with the i2c symbol lookup error...
br,
cs
mc36@core:~/bf-bsp-lts/build$ cmake .. -DCMAKE_MODULE_PATH=pwd/../cmake                                              -DCMAKE_INSTALL_PREFIX=$SDE_INSTALL                                             -DOS_NAME=Debian                                                                -DOS_VERSION=10                                                                  -DSDE_VERSION=9133
CMake Warning (dev) in CMakeLists.txt:
No project() command is present.  The top-level CMakeLists.txt file must
contain a literal, direct call to the project() command.  Add a line of
code such as
project(ProjectName)

near the top of the file, but after cmake_minimum_required().
CMake is pretending there is a "project(Project)" command on the first
line.
This warning is for project developers.  Use -Wno-dev to suppress it.
-- The C compiler identification is GNU 10.2.1
-- The CXX compiler identification is GNU 10.2.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Supported -DOS_NAME=(Debian|Ubuntu)
-- Supported -DOS_VERSION=[(8|9|10|11|12),(1404|1604|1804|2004|2204)]
-- Supported -DSDE_VERSION=(900|911|933|954|975|991|9112|9133)
-- core
-- SDE >= 9.9.0
-- Giving -DOS_NAME=Debian
-- Giving -DOS_VERSION=10
-- Giving -DSDE_VERSION=9133
-- Giving -DTHRIFT_ENABLED=ON
-- Giving -DDEFAULT_LASER_ON=OFF
-- Giving -DASTERFUSION-DIAGS=OFF
-- Giving -DCOVERAGE=OFF
-- Linking target_utils target_sys
-- Linking i2c
CMake Warning (dev) at /usr/share/cmake-3.18/Modules/FindPackageHandleStandardArgs.cmake:273 (message):
The package name passed to find_package_handle_standard_args (THRIFT)
does not match the name of the calling package (Thrift).  This can lead to
problems in calling code that expects find_package result variables
(e.g., _FOUND) to follow a certain pattern.
Call Stack (most recent call first):
cmake/FindThrift.cmake:92 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
CMakeLists.txt:128 (find_package)
This warning is for project developers.  Use -Wno-dev to suppress it.
-- Found THRIFT: /usr/lib/x86_64-linux-gnu/libthrift.so
-- Configuring done
-- Generating done
-- Build files have been written to: /home/mc36/bf-bsp-lts/build
mc36@core:~/bf-bsp-lts/build$ make
Scanning dependencies of target pltfm_o
[  1%] Building C object CMakeFiles/pltfm_o.dir/drivers/src/bf_pltfm_mgr/pltfm_mgr_init.c.o
[  2%] Building C object CMakeFiles/pltfm_o.dir/drivers/src/bf_pltfm_mgr/pltfm_mgr_handlers.c.o
[  2%] Built target pltfm_o
Scanning dependencies of target asterfusionbf_driver_o
[  3%] Building C object CMakeFiles/asterfusionbf_driver_o.dir/platforms/asterfusion-bf/src/bf_pltfm_master_i2c/bf_pltfm_master_i2c.c.o
[  4%] Building C object CMakeFiles/asterfusionbf_driver_o.dir/platforms/asterfusion-bf/src/bf_pltfm_master_i2c/bf_pltfm_cgos_i2c.c.o
[  5%] Building C object CMakeFiles/asterfusionbf_driver_o.dir/platforms/asterfusion-bf/src/bf_pltfm_uart/bf_pltfm_uart.c.o
[  6%] Building C object CMakeFiles/asterfusionbf_driver_o.dir/platforms/asterfusion-bf/src/bf_pltfm_bmc_tty/bmc_tty.c.o
[  7%] Building C object CMakeFiles/asterfusionbf_driver_o.dir/platforms/asterfusion-bf/src/platform_mgr/platform.c.o
[  8%] Building C object CMakeFiles/asterfusionbf_driver_o.dir/platforms/asterfusion-bf/src/platform_mgr/platform_board.c.o
[  9%] Building C object CMakeFiles/asterfusionbf_driver_o.dir/platforms/asterfusion-bf/src/platform_mgr/platform_health_mntr.c.o
[ 10%] Building C object CMakeFiles/asterfusionbf_driver_o.dir/platforms/asterfusion-bf/src/bf_pltfm_led/lq.c.o
[ 11%] Building C object CMakeFiles/asterfusionbf_driver_o.dir/platforms/asterfusion-bf/src/bf_pltfm_led/bf_pltfm_mav_led.c.o
[ 12%] Building C object CMakeFiles/asterfusionbf_driver_o.dir/platforms/asterfusion-bf/src/bf_pltfm_led/bf_pltfm_mav_led_x564p.c.o
[ 13%] Building C object CMakeFiles/asterfusionbf_driver_o.dir/platforms/asterfusion-bf/src/bf_pltfm_led/bf_pltfm_mav_led_x532p.c.o
[ 14%] Building C object CMakeFiles/asterfusionbf_driver_o.dir/platforms/asterfusion-bf/src/bf_pltfm_led/bf_pltfm_mav_led_x308p.c.o
[ 15%] Building C object CMakeFiles/asterfusionbf_driver_o.dir/platforms/asterfusion-bf/src/bf_pltfm_led/bf_pltfm_mav_led_x312p.c.o
[ 16%] Building C object CMakeFiles/asterfusionbf_driver_o.dir/platforms/asterfusion-bf/src/bf_pltfm_led/bf_pltfm_mav_led_x732q.c.o
[ 17%] Building C object CMakeFiles/asterfusionbf_driver_o.dir/platforms/asterfusion-bf/src/bf_pltfm_led/bf_pltfm_mav_led_hc36y24c.c.o
[ 18%] Building C object CMakeFiles/asterfusionbf_driver_o.dir/platforms/asterfusion-bf/src/bf_pltfm_led/bf_pltfm_mav_cpld_led.c.o
[ 20%] Building C object CMakeFiles/asterfusionbf_driver_o.dir/platforms/asterfusion-bf/src/bf_pltfm_cpld/bf_pltfm_cpld_ucli.c.o
[ 21%] Building C object CMakeFiles/asterfusionbf_driver_o.dir/platforms/asterfusion-bf/src/bf_pltfm_spi/bf_pltfm_spi.c.o
[ 22%] Building C object CMakeFiles/asterfusionbf_driver_o.dir/platforms/asterfusion-bf/src/qsfp/bf_mav_qsfp_module.c.o
[ 23%] Building C object CMakeFiles/asterfusionbf_driver_o.dir/platforms/asterfusion-bf/src/qsfp/bf_mav_qsfp_sub_module.c.o
[ 24%] Building C object CMakeFiles/asterfusionbf_driver_o.dir/platforms/asterfusion-bf/src/qsfp/bf_mav_qsfp_sub_module_x564p.c.o
[ 25%] Building C object CMakeFiles/asterfusionbf_driver_o.dir/platforms/asterfusion-bf/src/qsfp/bf_mav_qsfp_sub_module_x532p.c.o
[ 26%] Building C object CMakeFiles/asterfusionbf_driver_o.dir/platforms/asterfusion-bf/src/qsfp/bf_mav_qsfp_sub_module_x308p.c.o
[ 27%] Building C object CMakeFiles/asterfusionbf_driver_o.dir/platforms/asterfusion-bf/src/qsfp/bf_mav_qsfp_sub_module_x312p.c.o
[ 28%] Building C object CMakeFiles/asterfusionbf_driver_o.dir/platforms/asterfusion-bf/src/qsfp/bf_mav_qsfp_sub_module_x732q.c.o
[ 29%] Building C object CMakeFiles/asterfusionbf_driver_o.dir/platforms/asterfusion-bf/src/qsfp/bf_mav_qsfp_sub_module_hc36y24c.c.o
[ 30%] Building C object CMakeFiles/asterfusionbf_driver_o.dir/platforms/asterfusion-bf/src/qsfp/bf_mav_sfp_module.c.o
[ 31%] Building C object CMakeFiles/asterfusionbf_driver_o.dir/platforms/asterfusion-bf/src/qsfp/bf_mav_sfp_module_x564p.c.o
[ 32%] Building C object CMakeFiles/asterfusionbf_driver_o.dir/platforms/asterfusion-bf/src/qsfp/bf_mav_sfp_module_x532p.c.o
[ 33%] Building C object CMakeFiles/asterfusionbf_driver_o.dir/platforms/asterfusion-bf/src/qsfp/bf_mav_sfp_module_x308p.c.o
[ 34%] Building C object CMakeFiles/asterfusionbf_driver_o.dir/platforms/asterfusion-bf/src/qsfp/bf_mav_sfp_module_x312p.c.o
[ 35%] Building C object CMakeFiles/asterfusionbf_driver_o.dir/platforms/asterfusion-bf/src/qsfp/bf_mav_sfp_module_x732q.c.o
[ 36%] Building C object CMakeFiles/asterfusionbf_driver_o.dir/platforms/asterfusion-bf/src/qsfp/bf_mav_sfp_module_hc36y24c.c.o
[ 37%] Building C object CMakeFiles/asterfusionbf_driver_o.dir/platforms/asterfusion-bf/src/bf_pltfm_chss_mgmt/bf_pltfm_chss_mgmt_intf.c.o
[ 38%] Building C object CMakeFiles/asterfusionbf_driver_o.dir/platforms/asterfusion-bf/src/bf_pltfm_chss_mgmt/bf_pltfm_bd_eeprom.c.o
[ 40%] Building C object CMakeFiles/asterfusionbf_driver_o.dir/platforms/asterfusion-bf/src/bf_pltfm_chss_mgmt/bf_pltfm_chss_mgmt_tmp.c.o
[ 41%] Building C object CMakeFiles/asterfusionbf_driver_o.dir/platforms/asterfusion-bf/src/bf_pltfm_chss_mgmt/bf_pltfm_chss_mgmt_vrail.c.o
[ 42%] Building C object CMakeFiles/asterfusionbf_driver_o.dir/platforms/asterfusion-bf/src/bf_pltfm_chss_mgmt/bf_pltfm_chss_mgmt_ps.c.o
[ 43%] Building C object CMakeFiles/asterfusionbf_driver_o.dir/platforms/asterfusion-bf/src/bf_pltfm_chss_mgmt/bf_pltfm_chss_mgmt_fan.c.o
[ 44%] Building C object CMakeFiles/asterfusionbf_driver_o.dir/platforms/asterfusion-bf/src/bf_pltfm_chss_mgmt/bf_pltfm_chss_mgmt_mac.c.o
[ 45%] Building C object CMakeFiles/asterfusionbf_driver_o.dir/platforms/asterfusion-bf/src/bf_pltfm_chss_mgmt/bf_pltfm_chss_mgmt_ucli.c.o
[ 46%] Building C object CMakeFiles/asterfusionbf_driver_o.dir/platforms/asterfusion-bf/src/bf_pltfm_cp2112/bf_pltfm_cp2112_intf.c.o
[ 47%] Building C object CMakeFiles/asterfusionbf_driver_o.dir/platforms/asterfusion-bf/src/bf_pltfm_cp2112/bf_pltfm_cp2112_intf_ucli.c.o
[ 47%] Built target asterfusionbf_driver_o
Scanning dependencies of target asterfusionbf_driver
[ 48%] Linking C shared library /home/mc36/bf-sde-9.13.3/install/lib/libasterfusionbf_driver.so
[ 48%] Built target asterfusionbf_driver
Scanning dependencies of target pltfm_driver_o
[ 49%] Building C object CMakeFiles/pltfm_driver_o.dir/drivers/src/bf_bd_cfg/bf_bd_cfg_intf.c.o
[ 50%] Building C object CMakeFiles/pltfm_driver_o.dir/drivers/src/bf_bd_cfg/bf_bd_cfg_intf_ucli.c.o
[ 51%] Building C object CMakeFiles/pltfm_driver_o.dir/drivers/src/bf_bd_cfg/bf_bd_cfg_porting.c.o
[ 52%] Building C object CMakeFiles/pltfm_driver_o.dir/drivers/src/bf_qsfp/bf_qsfp_cli.c.o
[ 53%] Building C object CMakeFiles/pltfm_driver_o.dir/drivers/src/bf_qsfp/bf_sfp_ucli.c.o
[ 54%] Building C object CMakeFiles/pltfm_driver_o.dir/drivers/src/bf_qsfp/bf_qsfp_comm.c.o
[ 55%] Building C object CMakeFiles/pltfm_driver_o.dir/drivers/src/bf_qsfp/bf_sfp_comm.c.o
[ 56%] Building C object CMakeFiles/pltfm_driver_o.dir/drivers/src/bf_qsfp/sff.c.o
[ 57%] Building C object CMakeFiles/pltfm_driver_o.dir/drivers/src/bf_qsfp/dom.c.o
[ 58%] Building C object CMakeFiles/pltfm_driver_o.dir/drivers/src/bf_qsfp/map.c.o
[ 60%] Building C object CMakeFiles/pltfm_driver_o.dir/drivers/src/bf_qsfp/nonstandard.c.o
[ 61%] Building C object CMakeFiles/pltfm_driver_o.dir/drivers/src/bf_qsfp/sff_db.c.o
[ 62%] Building C object CMakeFiles/pltfm_driver_o.dir/drivers/src/bf_qsfp/sff_enums.c.o
[ 63%] Building C object CMakeFiles/pltfm_driver_o.dir/drivers/src/bf_led/bf_led.c.o
[ 64%] Building C object CMakeFiles/pltfm_driver_o.dir/drivers/src/bf_port_mgmt/bf_pm_intf.c.o
[ 65%] Building C object CMakeFiles/pltfm_driver_o.dir/drivers/src/bf_port_mgmt/bf_pm_intf_tf2.c.o
[ 66%] Building C object CMakeFiles/pltfm_driver_o.dir/drivers/src/bf_port_mgmt/bf_pm_qsfp_mgmt.c.o
[ 67%] Building C object CMakeFiles/pltfm_driver_o.dir/drivers/src/bf_port_mgmt/bf_pm_sfp_mgmt.c.o
[ 68%] Building C object CMakeFiles/pltfm_driver_o.dir/drivers/src/bf_port_mgmt/bf_pm_porting.c.o
[ 68%] Built target pltfm_driver_o
Scanning dependencies of target pltfm_driver
[ 69%] Linking C shared library /home/mc36/bf-sde-9.13.3/install/lib/libpltfm_driver.so
[ 69%] Built target pltfm_driver
Scanning dependencies of target asterfusion_bin_srcs_o
[ 70%] Building C object CMakeFiles/asterfusion_bin_srcs_o.dir/platforms/asterfusion-bf/src/bf_pltfm_master_i2c/bf_pltfm_master_i2c.c.o
[ 71%] Building C object CMakeFiles/asterfusion_bin_srcs_o.dir/platforms/asterfusion-bf/src/bf_pltfm_master_i2c/bf_pltfm_cgos_i2c.c.o
[ 72%] Building C object CMakeFiles/asterfusion_bin_srcs_o.dir/platforms/asterfusion-bf/src/bf_pltfm_uart/bf_pltfm_uart.c.o
[ 73%] Building C object CMakeFiles/asterfusion_bin_srcs_o.dir/platforms/asterfusion-bf/src/bf_pltfm_cp2112/bf_pltfm_cp2112_intf.c.o
[ 74%] Building C object CMakeFiles/asterfusion_bin_srcs_o.dir/platforms/asterfusion-bf/src/bf_pltfm_bmc_tty/bmc_tty.c.o
[ 75%] Building C object CMakeFiles/asterfusion_bin_srcs_o.dir/platforms/asterfusion-bf/src/bf_pltfm_chss_mgmt/bf_pltfm_chss_mgmt_intf.c.o
[ 76%] Building C object CMakeFiles/asterfusion_bin_srcs_o.dir/platforms/asterfusion-bf/src/bf_pltfm_chss_mgmt/bf_pltfm_bd_eeprom.c.o
[ 77%] Building C object CMakeFiles/asterfusion_bin_srcs_o.dir/drivers/src/bf_bd_cfg/bf_bd_cfg_intf.c.o
[ 77%] Built target asterfusion_bin_srcs_o
Scanning dependencies of target cp2112_util
[ 78%] Building C object CMakeFiles/cp2112_util.dir/platforms/asterfusion-bf/cp2112_util/cp2112_util.c.o
[ 80%] Linking C executable cp2112_util
[ 80%] Built target cp2112_util
Scanning dependencies of target pltfm_mgr_rpc_python
[ 81%] Generating gen-py/pltfm_mgr_rpc/constants.py, gen-py/pltfm_mgr_rpc/init.py, gen-py/pltfm_mgr_rpc/ttypes.py, gen-py/pltfm_mgr_rpc/pltfm_mgr_rpc.py, gen-py/pltfm_mgr_rpc/pltfm_mgr_rpc-remote
[ 81%] Built target pltfm_mgr_rpc_python
Scanning dependencies of target pltfm_pm_rpc_python
[ 82%] Generating gen-py/pltfm_pm_rpc/constants.py, gen-py/pltfm_pm_rpc/init.py, gen-py/pltfm_pm_rpc/ttypes.py, gen-py/pltfm_pm_rpc/pltfm_pm_rpc.py, gen-py/pltfm_pm_rpc/pltfm_pm_rpc-remote
[ 82%] Built target pltfm_pm_rpc_python
[ 83%] Generating gen-cpp/pltfm_mgr_rpc.cpp, gen-cpp/pltfm_mgr_rpc.h, gen-cpp/pltfm_mgr_rpc_types.cpp, gen-cpp/pltfm_mgr_rpc_types.h, gen-cpp/pltfm_pm_rpc.cpp, gen-cpp/pltfm_pm_rpc.h, gen-cpp/pltfm_pm_rpc_types.cpp, gen-cpp/pltfm_pm_rpc_types.h
Scanning dependencies of target pltfm_mgr_thrift
[ 84%] Building CXX object platforms/asterfusion-bf/thrift/CMakeFiles/pltfm_mgr_thrift.dir/src/bf_platform_rpc_server.cpp.o
[ 85%] Building CXX object platforms/asterfusion-bf/thrift/CMakeFiles/pltfm_mgr_thrift.dir/gen-cpp/pltfm_mgr_rpc.cpp.o
[ 86%] Building CXX object platforms/asterfusion-bf/thrift/CMakeFiles/pltfm_mgr_thrift.dir/gen-cpp/pltfm_mgr_rpc_types.cpp.o
[ 87%] Building CXX object platforms/asterfusion-bf/thrift/CMakeFiles/pltfm_mgr_thrift.dir/gen-cpp/pltfm_pm_rpc.cpp.o
[ 88%] Building CXX object platforms/asterfusion-bf/thrift/CMakeFiles/pltfm_mgr_thrift.dir/gen-cpp/pltfm_pm_rpc_types.cpp.o
[ 89%] Linking CXX shared library /home/mc36/bf-sde-9.13.3/install/lib/libpltfm_mgr_thrift.so
[ 89%] Built target pltfm_mgr_thrift
Scanning dependencies of target pltfm_mgr
[ 90%] Linking C shared library /home/mc36/bf-sde-9.13.3/install/lib/libpltfm_mgr.so
[ 90%] Built target pltfm_mgr
Scanning dependencies of target spi_i2c_util
[ 91%] Building C object CMakeFiles/spi_i2c_util.dir/platforms/asterfusion-bf/tofino_spi_util/tofino_spi_if.c.o
[ 92%] Building C object CMakeFiles/spi_i2c_util.dir/platforms/asterfusion-bf/tofino_spi_util/tofino_porting_spi.c.o
[ 93%] Linking C executable spi_i2c_util
[ 93%] Built target spi_i2c_util
Scanning dependencies of target uart_util
[ 94%] Building C object CMakeFiles/uart_util.dir/platforms/asterfusion-bf/uart_util/uart_util.c.o
[ 95%] Linking C executable uart_util
[ 95%] Built target uart_util
Scanning dependencies of target syseeprom_util
[ 96%] Building C object CMakeFiles/syseeprom_util.dir/platforms/asterfusion-bf/cp2112_util/syseeprom_util.c.o
[ 97%] Building C object CMakeFiles/syseeprom_util.dir/platforms/asterfusion-bf/cp2112_util/cp2112_util.c.o
[ 98%] Building C object CMakeFiles/syseeprom_util.dir/platforms/asterfusion-bf/cp2112_util/onie_tlvinfo.c.o
/home/mc36/bf-bsp-lts/platforms/asterfusion-bf/cp2112_util/onie_tlvinfo.c: In function ‘decode_tlv_value’:
/home/mc36/bf-bsp-lts/platforms/asterfusion-bf/cp2112_util/onie_tlvinfo.c:386:17: warning: ‘sprintf’ argument 3 overlaps destination object ‘value’ [-Wrestrict]
386 |                 sprintf (value, "%s 0x%02X", value,
|                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
387 |                          tlv->value[i]);
|                          ~~~~~~~~~~~~~~
/home/mc36/bf-bsp-lts/platforms/asterfusion-bf/cp2112_util/onie_tlvinfo.c:343:37: note: destination object referenced by ‘restrict’-qualified argument 1 was declared here
343 |                               char *value)
|                               ^
/home/mc36/bf-bsp-lts/platforms/asterfusion-bf/cp2112_util/onie_tlvinfo.c:404:17: warning: ‘sprintf’ argument 3 overlaps destination object ‘value’ [-Wrestrict]
404 |                 sprintf (value, "%s 0x%02X", value,
|                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
405 |                          tlv->value[i]);
|                          ~~~~~~~~~~~~~~
/home/mc36/bf-bsp-lts/platforms/asterfusion-bf/cp2112_util/onie_tlvinfo.c:343:37: note: destination object referenced by ‘restrict’-qualified argument 1 was declared here
343 |                               char *value)
|                               ^
/home/mc36/bf-bsp-lts/platforms/asterfusion-bf/cp2112_util/onie_tlvinfo.c: In function ‘tlvinfo_add_tlv’:
/home/mc36/bf-bsp-lts/platforms/asterfusion-bf/cp2112_util/onie_tlvinfo.c:815:13: warning: ‘strncpy’ specified bound 256 equals destination size [-Wstringop-truncation]
815 |             strncpy (data, strval, MAX_TLV_VALUE_LEN);
|             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[100%] Linking C executable syseeprom_util
[100%] Built target syseeprom_util
mc36@core:~/bf-bsp-lts/build$ make instal
make: *** No rule to make target 'instal'.  Stop.
mc36@core:~/bf-bsp-lts/build$ make install
[  2%] Built target pltfm_o
[ 47%] Built target asterfusionbf_driver_o
[ 48%] Built target asterfusionbf_driver
[ 68%] Built target pltfm_driver_o
[ 69%] Built target pltfm_driver
[ 77%] Built target asterfusion_bin_srcs_o
[ 80%] Built target cp2112_util
[ 81%] Built target pltfm_mgr_rpc_python
[ 82%] Built target pltfm_pm_rpc_python
[ 89%] Built target pltfm_mgr_thrift
[ 90%] Built target pltfm_mgr
[ 93%] Built target spi_i2c_util
[ 95%] Built target uart_util
[100%] Built target syseeprom_util
Install the project...
-- Install configuration: "Release"
-- Installing: /home/mc36/bf-sde-9.13.3/install/bin/spi_i2c_util
-- Installing: /home/mc36/bf-sde-9.13.3/install/bin/cp2112_util
-- Installing: /home/mc36/bf-sde-9.13.3/install/bin/uart_util
-- Installing: /home/mc36/bf-sde-9.13.3/install/bin/syseeprom_util
-- Installing: /home/mc36/bf-sde-9.13.3/install/bin/tofino_pci_bringup.sh
-- Installing: /home/mc36/bf-sde-9.13.3/install/bin/tofino_i2c_wr_local.sh
-- Installing: /home/mc36/bf-sde-9.13.3/install/bin/tofino_i2c_wr.sh
-- Installing: /home/mc36/bf-sde-9.13.3/install/bin/tofino_i2c_rd_local.sh
-- Installing: /home/mc36/bf-sde-9.13.3/install/bin/tofino_i2c_rd.sh
-- Installing: /home/mc36/bf-sde-9.13.3/install/bin/credo_firmware.bin
-- Installing: /home/mc36/bf-sde-9.13.3/install/bin/xt-cfgen.sh
-- Installing: /home/mc36/bf-sde-9.13.3/install/bin/xt-clean.sh
-- Installing: /home/mc36/bf-sde-9.13.3/install/bin/xt-diags.sh
-- Installing: /home/mc36/bf-sde-9.13.3/install/bin/xt-setup.sh
-- Installing: /home/mc36/bf-sde-9.13.3/install/bin/sdepythonpath.py
-- Up-to-date: /home/mc36/bf-sde-9.13.3/install/lib/python3.9/site-packages/pltfm_pm_rpc
-- Installing: /home/mc36/bf-sde-9.13.3/install/lib/python3.9/site-packages/pltfm_pm_rpc/pltfm_pm_rpc-remote
-- Installing: /home/mc36/bf-sde-9.13.3/install/lib/python3.9/site-packages/pltfm_pm_rpc/ttypes.py
-- Installing: /home/mc36/bf-sde-9.13.3/install/lib/python3.9/site-packages/pltfm_pm_rpc/init.py
-- Installing: /home/mc36/bf-sde-9.13.3/install/lib/python3.9/site-packages/pltfm_pm_rpc/pltfm_pm_rpc.py
-- Installing: /home/mc36/bf-sde-9.13.3/install/lib/python3.9/site-packages/pltfm_pm_rpc/constants.py
-- Up-to-date: /home/mc36/bf-sde-9.13.3/install/lib/python3.9/site-packages/pltfm_mgr_rpc
-- Installing: /home/mc36/bf-sde-9.13.3/install/lib/python3.9/site-packages/pltfm_mgr_rpc/ttypes.py
-- Installing: /home/mc36/bf-sde-9.13.3/install/lib/python3.9/site-packages/pltfm_mgr_rpc/init.py
-- Installing: /home/mc36/bf-sde-9.13.3/install/lib/python3.9/site-packages/pltfm_mgr_rpc/pltfm_mgr_rpc.py
-- Installing: /home/mc36/bf-sde-9.13.3/install/lib/python3.9/site-packages/pltfm_mgr_rpc/pltfm_mgr_rpc-remote
-- Installing: /home/mc36/bf-sde-9.13.3/install/lib/python3.9/site-packages/pltfm_mgr_rpc/constants.py
-- Installing: /home/mc36/bf-sde-9.13.3/install/include/bf_pltfm/bf_pltfm_qsfp.h
-- Installing: /home/mc36/bf-sde-9.13.3/install/include/bf_pltfm/bf_pltfm_sfp.h
-- Installing: /home/mc36/bf-sde-9.13.3/install/include/bf_pltfm/bf_pltfm_led.h
-- Installing: /home/mc36/bf-sde-9.13.3/install/include/bf_pltfm/bf_pltfm_bd_cfg.h
-- Installing: /home/mc36/bf-sde-9.13.3/install/include/bf_pltfm/bf_pltfm_ext_phy.h
-- Installing: /home/mc36/bf-sde-9.13.3/install/include/bf_pltfm/bf_pltfm.h
-- Installing: /home/mc36/bf-sde-9.13.3/install/include/bf_pltfm/asterfusion-bf/bf_pltfm_spi.h
-- Installing: /home/mc36/bf-sde-9.13.3/install/include/bf_pltfm/asterfusion-bf/bf_pltfm_cp2112_intf.h
-- Installing: /home/mc36/bf-sde-9.13.3/install/include/bf_pltfm/asterfusion-bf/bf_pltfm_chss_mgmt_intf.h
-- Installing: /home/mc36/bf-sde-9.13.3/install/include/bf_pltfm/asterfusion-bf/bf_pltfm_bmc_tty.h
-- Installing: /home/mc36/bf-sde-9.13.3/install/include/bf_pltfm/asterfusion-bf/bf_mav_led.h
-- Installing: /home/mc36/bf-sde-9.13.3/install/include/bf_pltfm/asterfusion-bf/bf_pltfm_master_i2c.h
-- Installing: /home/mc36/bf-sde-9.13.3/install/include/bf_pltfm/asterfusion-bf/bf_pltfm_uart.h
-- Installing: /home/mc36/bf-sde-9.13.3/install/include/bf_pltfm/asterfusion-bf/pltfm_types.h
-- Installing: /home/mc36/bf-sde-9.13.3/install/include/bf_pltfm/asterfusion-bf/version.h
-- Installing: /home/mc36/bf-sde-9.13.3/install/include/bf_bd_cfg/bf_bd_cfg_intf.h
-- Installing: /home/mc36/bf-sde-9.13.3/install/include/bf_bd_cfg/bf_bd_cfg_porting.h
-- Installing: /home/mc36/bf-sde-9.13.3/install/include/bf_bd_cfg/bf_bd_cfg_bd_map.h
-- Installing: /home/mc36/bf-sde-9.13.3/install/include/bf_pltfm_types/bf_pltfm_types.h
-- Installing: /home/mc36/bf-sde-9.13.3/install/include/bf_port_mgmt/bf_port_mgmt_intf.h
-- Installing: /home/mc36/bf-sde-9.13.3/install/include/bf_port_mgmt/bf_port_mgmt_porting.h
-- Installing: /home/mc36/bf-sde-9.13.3/install/include/bf_pltfm_mgr/pltfm_mgr_handlers.h
-- Installing: /home/mc36/bf-sde-9.13.3/install/include/bf_led/bf_led.h
-- Installing: /home/mc36/bf-sde-9.13.3/install/include/bf_qsfp/bf_qsfp.h
-- Installing: /home/mc36/bf-sde-9.13.3/install/include/bf_qsfp/sff.h
-- Installing: /home/mc36/bf-sde-9.13.3/install/include/bf_qsfp/bf_sfp.h
-- Installing: /home/mc36/bf-sde-9.13.3/install/include/bf_qsfp/sff_standards.h
-- Installing: /home/mc36/bf-sde-9.13.3/install/include/bf_qsfp/map.h
-- Installing: /home/mc36/bf-sde-9.13.3/install/include/bf_qsfp/dom.h
-- Installing: /home/mc36/bf-sde-9.13.3/install/include/bf_qsfp/sff_db.h
-- Installing: /home/mc36/bf-sde-9.13.3/install/include/bf_qsfp/8436.h
-- Installing: /home/mc36/bf-sde-9.13.3/install/include/bf_qsfp/8472.h
-- Installing: /home/mc36/bf-sde-9.13.3/install/include/bf_qsfp/8636.h
-- Up-to-date: /home/mc36/bf-sde-9.13.3/install/include/bf_qsfp/bf_sfp.h
mc36@core:~/bf-bsp-lts/build$
mc36@core:~$ ./sw.sh
[sudo] password for mc36:
256
i2c-3	smbus     	sio_smbus                       	SMBus adapter
i2c-1	smbus     	SMBus I801 adapter at 3000      	SMBus adapter
i2c-2	i2c       	CP2112 SMBus Bridge on hidraw0  	I2C adapter
i2c-0	smbus     	SMBus iSMT adapter at 887d6000  	SMBus adapter
Using SDE /home/mc36/bf-sde-9.13.3
Using SDE_INSTALL /home/mc36/bf-sde-9.13.3/install
Setting up DMA Memory Pool
Using TARGET_CONFIG_FILE /home/mc36/bf-sde-9.13.3/install/share/p4/targets/tofino/bf_router.conf
Using SDE_DEPENDENCIES /home/mc36/bf-sde-9.13.3/install
Using PATH /home/mc36/bf-sde-9.13.3/install/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
Using LD_LIBRARY_PATH /home/mc36/bf-sde-9.13.3/install/lib:/home/mc36/bf-sde-9.13.3/install/lib::/usr/local/lib
2024-06-25 11:52:18.219770 BF_SWITCHD DEBUG - bf_switchd: system services initialized
2024-06-25 11:52:18.220394 BF_SWITCHD DEBUG - bf_switchd: loading conf_file /home/mc36/bf-sde-9.13.3/install/share/p4/targets/tofino/bf_router.conf...
2024-06-25 11:52:18.220451 BF_SWITCHD DEBUG - bf_switchd: processing device configuration...
2024-06-25 11:52:18.220731 BF_SWITCHD DEBUG - Configuration for dev_id 0
2024-06-25 11:52:18.220764 BF_SWITCHD DEBUG -   Family        : tofino
2024-06-25 11:52:18.220783 BF_SWITCHD DEBUG -   pci_sysfs_str : /sys/devices/pci0000:00/0000:00:03.0/0000:05:00.0
2024-06-25 11:52:18.220805 BF_SWITCHD DEBUG -   pci_int_mode  : 0
2024-06-25 11:52:18.220825 BF_SWITCHD DEBUG -   sds_fw_path   : share/tofino_sds_fw/avago/firmware
2024-06-25 11:52:18.220845 BF_SWITCHD DEBUG - bf_switchd: processing P4 configuration...
2024-06-25 11:52:18.222076 BF_SWITCHD DEBUG - coal_mirror_enable=0 coal_min=0 sessions_num=0
2024-06-25 11:52:18.222108 BF_SWITCHD DEBUG - P4 profile for dev_id 0
2024-06-25 11:52:18.222128 BF_SWITCHD DEBUG - num P4 programs 1
2024-06-25 11:52:18.222150 BF_SWITCHD DEBUG -   p4_name: bf_router
2024-06-25 11:52:18.222171 BF_SWITCHD DEBUG -   p4_pipeline_name: pipe
2024-06-25 11:52:18.222190 BF_SWITCHD DEBUG -     libpd:
2024-06-25 11:52:18.222209 BF_SWITCHD DEBUG -     libpdthrift:
2024-06-25 11:52:18.222230 BF_SWITCHD DEBUG -     context: /home/mc36/bf-sde-9.13.3/install/bf_router.tofino/pipe/context.json
2024-06-25 11:52:18.222249 BF_SWITCHD DEBUG -     config: /home/mc36/bf-sde-9.13.3/install/bf_router.tofino/pipe/tofino.bin
2024-06-25 11:52:18.222268 BF_SWITCHD DEBUG -   Pipes in scope [
2024-06-25 11:52:18.222288 BF_SWITCHD DEBUG - 0
2024-06-25 11:52:18.222306 BF_SWITCHD DEBUG - 1
2024-06-25 11:52:18.222327 BF_SWITCHD DEBUG - 2
2024-06-25 11:52:18.222345 BF_SWITCHD DEBUG - 3
2024-06-25 11:52:18.222366 BF_SWITCHD DEBUG - ]
2024-06-25 11:52:18.222385 BF_SWITCHD DEBUG -   diag:
2024-06-25 11:52:18.222403 BF_SWITCHD DEBUG -   accton diag:
2024-06-25 11:52:18.222422 BF_SWITCHD DEBUG -   Agent[0]: /home/mc36/bf-sde-9.13.3/install/lib/libpltfm_mgr.so
2024-06-25 11:52:18.229025 BF_SWITCHD DEBUG - bf_switchd: library /home/mc36/bf-sde-9.13.3/install/lib/libpltfm_mgr.so loaded
2024-06-25 11:52:18.245120 BF_SWITCHD DEBUG - bf_switchd: agent[0] initialized
BSP ver  : Git: r49 24.06 built: 16:49:40 UTC 2024-06-25
System Preview
Login User:                                                        mc36
Runtime User:                                                        root
Host:                                                        core
Arch:                                                      x86_64
Bits/LONG:                                                          64
Platform:                                                       Linux
Kernel:                                             5.10.0-30-amd64
OS:                       #1 SMP Debian 5.10.218-1 (2024-06-01)
CPU:                                                           4
Loading /etc/platform.conf ...
Initializing i2c    ...   i2c-3
Initializing uart   ...   Skip ...

Initializing i2c    ...   i2c-3
Initializing uart   ...   Skip ...
Reading EEPROM ...
########################
BMC v1.0.6-offical
########################
########################
AFN_BD_ID_X312PT_V3P0
########################
Initializing CPLD   ...
CPLD1 : v3.0
CPLD2 :
CPLD3 : v1.0
CPLD4 : v1.0
CPLD5 : v2.0
Initializing QSFP   ...
QSFPs/vQSFPs : 12/ 4
Initializing SFP    ...
SFPs/xSFPs : 50/ 2
Health monitor started
ONLP monitor started
Starting BF-PLATFORM RPC server on : : 9095
Loading /etc/transceiver-cases.conf ...   done(8 entries)
2024-06-25 12:54:29.230367 BF_SWITCHD DEBUG - Device 0: Operational mode set to ASIC
2024-06-25 12:54:29.230419 BF_SWITCHD DEBUG - Initialized the device types using platforms infra API
2024-06-25 12:54:29.230442 BF_SWITCHD DEBUG - ASIC detected at PCI /sys/class/bf/bf0/device
2024-06-25 12:54:29.230509 BF_SWITCHD DEBUG - ASIC pci device id is 16 (0x0010)
Starting PD-API RPC server on port 9090
2024-06-25 12:54:29.245893 BF_SWITCHD DEBUG - bf_switchd: drivers initialized
Setting core_pll_ctrl0=cd44cbfe
/
Initializing LED    ...
Port deleted ->             Off
Port disabled ->             Off
Port enabled ->             Off
Link up ->           Green
Link dn ->             Off
Link at 1G/10G ->           Green
Link at 25G ->           Green
Link at 40G ->           Green
Link at 50G ->           Green
Link at 100G ->           Green
Link at 200G ->             Off
Link at 400G ->             Off
bf_pm_cold_init:1311 Bind QSFP Mgmt callback ..
bf_pm_cold_init:1337 Bind QSFP Mgmt callback Tx-only ..
2024-06-25 12:54:37.746929 BF_SWITCHD DEBUG - bf_switchd: dev_id 0 initialized
2024-06-25 12:54:37.746977 BF_SWITCHD DEBUG - bf_switchd: initialized 1 devices
Adding Thrift service for bf-platforms to server
2024-06-25 12:54:37.747080 BF_SWITCHD DEBUG - bf_switchd: thrift initialized for agent : 0
2024-06-25 12:54:37.747108 BF_SWITCHD DEBUG - bf_switchd: spawning cli server thread
2024-06-25 12:54:37.747356 BF_SWITCHD DEBUG - bf_switchd: spawning driver shell
2024-06-25 12:54:37.747456 BF_SWITCHD DEBUG - bf_switchd: server started - listening on port 9999
    ********************************************
    *      WARNING: Authorised Access Only     *
    **********bfruntime gRPC server started on <IP_ADDRESS>:50052

bfshell>  SFP    46 : 23/2 : inserted
bfshell>
bfshell>
bfshell>
bfshell>


Native packing

Very nice, @hdjirdeh
Thanks for sharing.
In the screencast I see you are running it fullscreen natively.
Did you use phonegap? Is it builtin in your project?

Thank you @byukihara!
Are you referring to the README? Oh no I just rendered the webpage as mobile by setting Device Mode in the Chrome DevTools. I then recorded that portion of the screen as a .gif :)

Closing this now :)


Save current setup

A method to save current build.
Some builders have the current build as a string in the setup.
Then you can just share a string to share a build.
Would be awesome to just could pick up a build later.

this is now added, there is a Get Link btn on the editor that gives you a link that you can then load your build or share it on discord/etc =)


Please rebuild docker image due to #162

PR #162 did not find it's way into the current docker provided image, which results in the image failing with
Attaching to elexis-environment_bookstack_1
bookstack_1           | sed: can't read config/app.php: No such file or directory

We don't need to rebuild the image. Instead, you can use the latest version. It's landed in  0.27.4-1 or latest tag if you want.


[1.3] Inconsistent Description for Laundry Dryer Controls

Reproduction steps
The description for Laundry Dryer Controls is inconsistent.
https://github.com/project-chip/connectedhomeip/blob/v<IP_ADDRESS>/src/app/zap-templates/zcl/data-model/chip/laundry-dryer-controls-cluster.xml

Bug prevalence
each time
GitHub hash of the SDK that was being used
5bb5c9e23d532cea40476fc0bd1d3008522792ba
Platform
other, core
Platform Version(s)
1.3
Type
Spec Compliance Issue, Core SDK Performance Improvement
Anything else?
No response

@rbultman Please take a look.


some times I'm stuck not being able to edit or save a theme

I'm finding it hard to identify what I did to report here but I have noticed that some times after I saved new edits to a theme, when I try to edit again I just can't seem to save the new changes. I also tried creating new theme after noticing this and it also fails to save the new theme. I noticed similar behaviours while editing published posts.

Could you paste in the output of running +vats %blog in your dojo?

just happened and I captured this:
peek bad result
/app/blog/hoon:<[302 12].[302 39]>
/app/blog/hoon:<[302 9].[302 40]>
/app/blog/hoon:<[301 9].[302 40]>
/app/blog/hoon:<[300 9].[302 40]>
/app/blog/hoon:<[299 9].[302 40]>
/app/blog/hoon:<[274 3].[391 31]>
/app/blog/hoon:<[272 3].[391 31]>
/sys/vane/gall/hoon:<[1.725 26].[1.725 60]>
> +vats %blog
%blog
  /sys/kelvin:           [%zuse 411]
  %cz hash ends in:      th6jm
  app status:            running
  source ship:           ~dister-bonbud-macryg
  pending updates:       ~
::

> +vats %base
%base
  /sys/kelvin:           [%zuse 411]
  %cz hash ends in:      b4l49
  app status:            running
  source ship:           ~binzod
  pending updates:       ~
::

@bonbud-macryg just happened again... I can't save anything. This is what I get when I try to save a new draft:

Every time I get stuck the only way is for me to nuke/uninstall %blog and install/revive it from zero. then I past the content of the theme and existing posts to get this going again

Do you see that session.js error at the top of the image every time this happens? And once this error has happened, are you able to refresh your urbit apps in another tab and send pokes to them without issue?
Also curious if this just happens when you paste in your theme? If so, would appreciate a pastebin of the CSS you're pasting in there.

Also, what's your hosting setup for this ship?

Also, what's your hosting setup for this ship?

I'm selfhosted on a VPS

@bonbud-macryg I just saw the session.js error again. I can't make changes to any files on %blog now. I went to %wiki and created a new doc, and it works fine... how can I test pokes?

@m-rio Chromium-based browsers tend to keep their Urbit app JS caches around for a very long time for some reason. Are you using Chrome / Brave (Vivaldi, Edge...)? It's possible that your frontend was out of date but the backend wasn't, so there were minor peek/poke errors going on: the frontend either serializing incorrect input or deserializing incorrect output.

@ashelkovnykov unfortunately I'm lacking the knowledge to troubleshoot beyond what I see in the console. Right now I've isolated the issue to: whenever I see the error from session.js (which seems to be related to rocket-loader.min.js some kind of dependency) I know I won't be able to continue to work on %blog. I need to close the tab/window/browser and open %blog again... working in incognito mode seems to help but if I leave %leave opened for a while without doing anything the session.js starts happening

Rocket Loader isn't a dependency in Common Blog, quick search says it's a Cloudflare thing which is why I asked about your hosting setup. Could try disabling it if you can? https://developers.cloudflare.com/speed/optimization/content/rocket-loader/enable/

@bonbud-macryg after making a publishing a single edit (and I have disabled rocket loader) I now get the session.js error and am stuck. If I close the tab and reopen it fixes it. I'm on arc browser (chrome based) and I'm not in incognito mode. Is this something related to how urbit keeps sessions alive?

The error is pointing to resume:8, could it be because you're putting HTML in the composer? Try just using Markdown.

it seems that session.js is also something related to cloudflare...

FWIW Urbit also a has session.js.

I added html because it worked (except when I couldn't save it(!)). I can see a script tag with session.js indeed

@m-rio Thanks for the screenshot. I was able to reproduce this on a Tlon-hosted ship by editing and publishing and editing a published post a few times, had to publish 3-5 times to make it happen. I was then able to continue re-editing the post by closing the tab and going back Common Blog through the Landscape menu. I can't reproduce it again just now.

In my case the post I was editing and publishing over and over was just one line of plain text.


bugfix: fix runtime wrong config when join node

Describe what this PR does / why we need it
1.fix runtime wrong config when join node: wrong kubeadm config when join node, seems this using default config when merging kubeadm.yaml criSocket: /var/run/dockershim.sock
2.  wrong kubelet auth file path: if /var/lib/kubelet is not exist, /var/lib/kubelet will be a file with config.json as its content. that will cause 401 .
Does this pull request fix one issue?

Describe how you did it
Describe how to verify it
Special notes for reviews

Codecov Report

Merging #1653 (f90f32c) into main (8c24705) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main    #1653   +/-   ##
=======================================
  Coverage   14.54%   14.54%
=======================================
  Files          83       83
  Lines        6965     6965
=======================================
  Hits         1013     1013
  Misses       5829     5829
  Partials      123      123

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.


mozillavpn: 2.11.0 → 2.12.0

Description of changes
Upgrade the Mozilla VPN client from 2.11.0 to 2.12.0.
https://github.com/mozilla-mobile/mozilla-vpn-client/releases/tag/v2.12.0
Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[x] Tested basic functionality of all binary files (usually in ./result/bin/)
23.05 Release Notes (or backporting 22.11 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[x] Fits CONTRIBUTING.md.

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:
https://discourse.nixos.org/t/prs-ready-for-review/3032/1561


Add projects

Add project as in old website

I cloned the ones on the old website. Need to be updated.


migrate to sbt 1.x

Coverage remained the same at 90.656% when pulling df6aee9bbd8ae740cd2a1a10dafdc12429eaf59f on xuwei-k:sbt-1 into 1fe0dbfbcb7d8305b652e65e1b23e92249b0daae on etaty:master.

thanks!


Add classification to EventAgendaItem

https://github.com/opencivicdata/pupa/pull/228

Meant to open on docs.opencivicdata.org


Deprecate /groups endpoint

The /groups/{slug}/backers|users is deprecated and should not be used anymore.
Unfortunately, it's still relied on by the following collectives (we see requests in the logs):

[ ] openfl (not many calls, ~ one request per day)
[ ] obsproject
[x] gulpjs https://github.com/gulpjs/gulpjs.github.io/pull/103
[x] jest https://github.com/facebook/jest/pull/8592
[x] webpack https://github.com/webpack/webpack.js.org/pull/3054
[x] babel: https://github.com/babel/website/pull/2031

We need to provide a compatible endpoint or ask these collectives to migrate to our GraphQL API v2.

Babel migrated in https://github.com/babel/website/pull/2031

@dodgepong OBS is the last one on my list. Can I help you get rid of this API call and replace it with a future proof version?

@znarf I've migrated the OBS website to use the GraphQL API now

@Warchamp7 that's awesome to hear! is it live already?
The advantage of the REST endpoint approach compared to GraphQL is that it's cached on the CDN level and then faster. The data is formatted similarly.

@znarf Yep, the change is already live. We shouldn't be hitting the REST endpoint anymore

@Warchamp7 I'm still seeing some requests to https://opencollective.com/api/groups/obsproject/backers in our logs. Do you know where that might be coming from?

@znarf Does your logging say which page is making the request? Everything that was hitting it before should be pointed at GraphQL now

@Warchamp7 Sorry, I unfortunately don't have that information available.

@znarf I had only commented out the fetch we had on some pages, which some bots may have still opted to go hit just cause it was in the page source. That URL no longer appears in any page now, commented or otherwise.
If anything is still hitting that endpoint, it is not us and we will not be affected by it disappearing.

Ok, maybe some cached versions somewhere, let's wait and see. Fyi, we definitely see less of these requests since yesterday, just not zero.


Support for XSD style regex

Any way for this library to consume XSD style regex's? I'd like to be able to take an XSD style regex string and evaluate it using this crate, but not sure if it's possible given the syntax differences between the XSD style and the Perl-style that this crate uses.

I don't know what XSD or XSD style regexes are. Please consider adding more detail to your question, along with examples.

Sure thing. I've been implementing the Concise data definitional language (CDDL) RFC 8610 at https://github.com/anweiss/cddl. The spec supports the use of XSD style regex which is defined in the XML schema definition specification at https://www.w3.org/TR/2004/REC-xmlschema-2-20041028/#regexs. There's also a good comparison chart between the different regex flavors here.
Below is an example straight from the CDDL spec:
XSD style regex: [A-Za-z0-9]+@[A-Za-z0-9]+(\\.[A-Za-z0-9]+)+
matches
<EMAIL_ADDRESS>

That example should work just fine in this crate.
Quickly reading the spec you linked, I'd imagine most XSD regexes will work just fine with this crate. I can see a couple small incompatibilities, for example, XSD's strange support of Unicode blocks, which are almost never the right thing to use. There are also some variations in how . and \s are defined.
If you're looking for strict 100% compatibility, then you'll need to carefully implement the spec yourself. If you're lucky, you can do it cosmetically at the syntax level, but otherwise rely on this crate's regex engine. But it is otherwise totally unreasonable for this crate to provide this for you. For example, this crate doesn't even provide POSIX compatibility, which is far more widely used than XSD.
I'd be happy to help answer questions if you have them, but otherwise I don't think there's anything to be done here in my end.


New Error Logs on latest Update

Before you submit a new bug report, please check that

[X] I have read frequently asked questions and limitations
[X] I'm running the newest version of Garbage Collection, or the next pre-release.
[X] I have enabled debug logging for my installation.

Describe the bug
Having updated to latest now getting error logs
Configuration
{
  "home_assistant": {
    "installation_type": "Home Assistant OS",
    "version": "2022.2.6",
    "dev": false,
    "hassio": true,
    "virtualenv": false,
    "python_version": "3.9.7",
    "docker": true,
    "arch": "x86_64",
    "timezone": "Europe/London",
    "os_name": "Linux",
    "os_version": "5.10.98",
    "supervisor": "2022.01.1",
    "host_os": "Home Assistant OS 7.4",
    "docker_version": "20.10.9",
    "chassis": "vm",
    "run_as_root": true
  },
  "custom_components": {
    "sonoff": {
      "version": "v2.4.6",
      "requirements": [
        "pycryptodome>=3.6.6"
      ]
    },
    "shopping_list": {
      "version": "0.5",
      "requirements": []
    },
    "alexa_media": {
      "version": "3.10.15",
      "requirements": [
        "alexapy==1.25.3",
        "packaging>=20.3",
        "wrapt>=1.12.1"
      ]
    },
    "remote_homeassistant": {
      "version": "3.6",
      "requirements": []
    },
    "hacs": {
      "version": "1.22.0",
      "requirements": [
        "aiogithubapi>=21.11.0"
      ]
    },
    "meross_lan": {
      "version": "2.4.3",
      "requirements": []
    },
    "hildebrandglow_dcc": {
      "version": "0.5.2",
      "requirements": []
    },
    "xiaomi_cloud_map_extractor": {
      "version": "v2.1.5",
      "requirements": [
        "pillow",
        "pybase64",
        "python-miio",
        "requests",
        "pycryptodome"
      ]
    },
    "webrtc": {
      "version": "v2.2.0",
      "requirements": []
    },
    "magic_areas": {
      "version": "3.0.0-beta",
      "requirements": []
    },
    "dwains_dashboard": {
      "version": "2.0.5",
      "requirements": []
    },
    "fontawesome": {
      "version": "2.1.5",
      "requirements": []
    },
    "garbage_collection": {
      "version": "4.4.4",
      "requirements": [
        "python-dateutil>=2.8.1"
      ]
    }
  },
  "integration_manifest": {
    "domain": "garbage_collection",
    "name": "Garbage Collection",
    "version": "4.4.4",
    "documentation": "https://github.com/bruxy70/Garbage-Collection/",
    "issue_tracker": "https://github.com/bruxy70/Garbage-Collection/issues",
    "iot_class": "calculated",
    "dependencies": [],
    "config_flow": true,
    "codeowners": [
      "@bruxy70"
    ],
    "requirements": [
      "python-dateutil>=2.8.1"
    ],
    "is_built_in": false
  },
  "data": {
    "entity_id": "sensor.black_bin",
    "state": "on 16-Feb-2022, in 4 days",
    "attributes": {
      "next_date": "2022-02-16T00:00:00+00:00",
      "days": 4,
      "last_collection": null,
      "last_updated": "2022-02-12T23:00:36.522409+00:00",
      "device_class": "garbage_collection__schedule"
    },
    "config_entry": {
      "entry_id": "e1d5ffc343cdd5433df95795be83f4e8",
      "version": 4,
      "domain": "garbage_collection",
      "title": "Black Bin",
      "data": {
        "unique_id": "66b16a0d-23ad-4ddc-9e70-2a2b3faa2e06",
        "frequency": "every-n-days",
        "icon_normal": "mdi:trash-can",
        "icon_today": "mdi:delete-restore",
        "icon_tomorrow": "mdi:delete-circle",
        "verbose_format": "on {date}, in {days} days",
        "date_format": "%d-%b-%Y",
        "verbose_state": true,
        "first_month": "jan",
        "last_month": "dec",
        "period": 14,
        "first_date": "2022-02-16",
        "collection_days": [
          "wed"
        ]
      },
      "options": {},
      "pref_disable_new_entities": false,
      "pref_disable_polling": false,
      "source": "user",
      "unique_id": null,
      "disabled_by": null
    }
  }
}

Debug logs
This error originated from a custom integration.

Logger: custom_components.garbage_collection.sensor
Source: custom_components/garbage_collection/sensor.py:68
Integration: Garbage Collection (documentation, issues)
First occurred: 23:00:13 (3 occurrences)
Last logged: 23:00:13

Getting date in wrong format: 2022-03-07. Converting, but raising error to get this reported.
Getting date in wrong format: 2022-02-09. Converting, but raising error to get this reported.
Getting date in wrong format: 2022-02-16. Converting, but raising error to get this reported.

Thanks. Thank helps :). Thsi has no impact to function, all works. You can ignore the error.


Removing Allocation ID

Description
Removes Allocation ID, which is now in its own feature branch. https://github.com/Azure/azure-sdk-for-python/tree/feature/azure-appconfiguration-provider-exp

API change check
API changes are not detected in this pull request.


Introducing rate limiting

Wasabi provided easy way to configure rate limits for api requests, I think we can make use of it and provide this feature for our users. We can add rate limit configuration under server section , it could look something like this:
server:
  rate_limits:
  general:
    - interval: 1m
      limit: 100
  groups:
    - name: group1
      limits:
        - interval: 1h
          limit: 50
      methods:
        - aggregate
    - name: group2
      limits:
        - interval: 30s
          limit: 5
      methods:
        - chain

Let's do rate-limiting based on
IP address, for now, unfortunately it will be a bit inconsistent with Deriv approach for authorised sessions, but it is a reasonable trade off


Fix init.sh when UID and/or GID have changed

This change the ui/gid at the container starts, It would hang on "Log file not found after waiting. Please check server status." otherwise.

This change the ui/gid at the container starts, It would hang on "Log file not found after waiting. Please check server status." otherwise.

Thanks for the FIX lol i pushed to mine also


Fix breaking changes from latest version

v0.6.8 have breaking changes so updating the demo app to have the latest update

Good catch! I didn't think to give the demo app a run after merging these changes, thanks

@icanzilb need a favour.
Im participating in hacktoberfest. Every year I usually participate on October and use their plan a tree options from digital ocean.
To make this PR count, it would be really helpful if you add hacktoberfest-accepted label to this PR. more info here

Sure @rizwankce not a problem at all

Sure @rizwankce not a problem at all

Thank you so much. Really appreciate!!


MSI installer should deploy test setup scripts in Debug config.

Describe the bug
The list of expected files the MSI installer deploys in the Debug configuration includes various test EXEs.
However, for xdp_tests and connect_redirect_tests the tests won't run without additional setup with PS scripts (unlike eg. unit_tests.exe)
If we believe the Debug config should deploy test binaries, I contend they should come with their dependencies to facilitate local running. Otherwise, we should not copy over the tests.

@Alan-Jowett argues that the retail and debug MSI should not be different in what components (including tests) that are deployed.


send post data to phantomjs using node request module

Hi
I am using request module in node to send post call to  phantom server. I use webserver module in phantom. but I am not able to get request.post  in phantom.How can I get body parameter in phantom which I send using node.js  please help me into this?

Thank you for submitting this ticket!
This issue tracker primarily serves as the tool to report and track bugs, defects, and development tasks. For general question, code review request, build problem, or other related discussion, please post it to either:

the official PhantomJS users mailing-list
Stack Overflow (with phantomjs tag)

If you have not read it yet, please check also a few tips on Effective Q&A.
(The webserver module has a number of serious low-level technical problems.  We discourage its use and we're not planning to add new features to it.)


Widget Scheme style error

Aqua

Fluent

The aqua scheme still needs more work, I would avoid it for now.


Contact developers from external integrations

Contact developers from external integrations, put them in relation with the integration team, and once our tests are conclusive, add them into a specific section in the documentation & integrations repo.

@curquiza can you give me the list of all the external integrations you have on your pipeline please.
If you already have the contact, please send me in private the info.

Yunno: https://github.com/YunoHost-Apps/meilisearch_ynh
D language: https://github.com/aberba/meilisearch
https://github.com/devtud/aio_meilisearch
https://github.com/unionco/craft-meilisearch

😄

https://airbyte.io/destination/search/meilisearch/

asked @curquiza about it

After a month, only one maintainer has replied. The main problem raised to keep the integration up to date with MeiliSearch is keeping up with the changes. He is the only maintainer of the integration, but this can change in the near future. He pointed out that the new information in Community Slack integrations channels might help him be aware of MeiliSearch's changes.


How to get rectified polygons from polygon points?

In the paper you state
"Moreover, with our polygon representation, the
curved images can be rectified into straight text images,
which are also shown in Fig. 11. We believe this ability for
rectification can further be of use for recognition tasks."
My question is from a set of polygon points, how can I reconstruct the rectified image?
Can you kindly point me towards the correct direction? many thanks in advance

One possible solution is to follow textsnake to find ending points. Then you can warp it into rectangle. However the size of rectangle is not mentioned in the paper.

Hi Godrickly! Thanks for the hint! Any ideas on how to perform such rectification from a polygon? Like which opencv functions would you use? Thanks a ton!

@ziudeso A reference implementation FYI, which I tried before.
TextSnake

@Godricly  Thanks a lot =) Did you also find a way to get the polygonal output rather than the rectangular one? That'd be awesome!

nope. I was still trying to implement weakly learning part.

Sorry for the late reply.
We perform an affine transform on the upper and lower triangles at consecutive control points. At this time, height is fixed and width can be selected in several ways, chosen as the average of the two control points. Finally, since discontinuity can occur in the boundary, we removed the discontinuity through simple masking.
Following is the warping function that we are actually using.
def warpPerspectivePoly(img, poly):
    # Use Affine transform
    n = int(len(poly) / 2) - 1
    width = 0
    height = 0
    for k in range(n):
        box = np.float32([poly[k], poly[k+1], poly[-k-2], poly[-k-1]])
        width += int((np.linalg.norm(box[0] - box[1]) + np.linalg.norm(box[2] - box[3])/2))
        height += np.linalg.norm(box[1] - box[2])
    width = int(width)
    height = int(height / n)

    output_img = np.zeros((height, width, 3), dtype=np.uint8)
    width_step = 0
    for k in range(n):
        box = np.float32([poly[k], poly[k+1], poly[-k-2], poly[-k-1]])
        w = int((np.linalg.norm(box[0] - box[1]) + np.linalg.norm(box[2] - box[3])/2))

        # Top triangle
        pts1 = box[:3]
        pts2 = np.float32([[width_step,0],[width_step + w - 1,0],[width_step + w - 1,height-1]])
        M = cv2.getAffineTransform(pts1, pts2)
        warped_img = cv2.warpAffine(img, M, (width, height), borderMode=cv2.BORDER_REPLICATE)
        warped_mask = np.zeros((height, width, 3), dtype=np.uint8)
        warped_mask = cv2.fillConvexPoly(warped_mask, np.int32(pts2), (1, 1, 1))
        output_img[warped_mask==1] = warped_img[warped_mask==1]

        # Bottom triangle
        pts1 = np.vstack((box[0], box[2:]))
        pts2 = np.float32([[width_step,0],[width_step + w - 1,height-1],[width_step,height-1]])
        M = cv2.getAffineTransform(pts1, pts2)
        warped_img = cv2.warpAffine(img, M, (width, height), borderMode=cv2.BORDER_REPLICATE)
        warped_mask = np.zeros((height, width, 3), dtype=np.uint8)
        warped_mask = cv2.fillConvexPoly(warped_mask, np.int32(pts2), (1, 1, 1))
        cv2.line(warped_mask, (width_step,0), (width_step + w - 1,height-1), (0, 0, 0), 1)
        output_img[warped_mask==1] = warped_img[warped_mask==1]

        width_step += w
    return output_img

hi @YoungminBaek , it seems that the output polygon is not completed.
polygon:

box:


Files of 200GB size create an error

I used version 1.2

Pre-release version 1.3 available that fixes this issue.

😀

Version: v1.3.0 (https://github.com/MPDL/upverse/commit/116eb01a4cb54889b7f22c8697c19968929f4eb3)
OS: Linux
Testserver: QA.edmond
Testdate: 05.09.2024
User: User
Test result: ok


Tables & Overlapping entities

First of all, thank you for your awesome work :beers:
I'm currently switching from CodeMirror + Custom widgets to draft-js for our GitBook Editor.
I've started by implementing a library, draft-markup to parse Markdown to RawContentState, and RawContentState to Markdown (or other markup syntaxes). You can see checkout an example at http://gitbookio.github.io/draft-markup/
I successfully implemented the markdown syntax using the rule of our markdown parser: link, emphasis, image, code, etc. But I'm facing issue on the implementation of tables.
My original idea was to parse a table like:
| Col 1 | Col 2 |
| ----- | ----- |
| Cell 1.1 | Cell 1.2 |
| Cell 2.1 | Cell 2.2 |

into one TABLE block with 4 types of entities in it: TABLE_HEADER, TABLE_BODY, TABLE_ROW and TABLE_CELL.
But It seems that draft-js doesn't support overlapping entities (since TABLE_CELL is included inside TABLE_ROW, which is included inside TABLE_BODY).
Basically, here is the RawContentState when parsing the previous table: https://gist.github.com/SamyPesse/589225b9d6728bf1db6f
And here is the dom generated by draft-js:

I understand that overlapping entities are not a good idea and should be avoided,but  what would be the advised method for editing table with draft-js ?

My suggestion for tables is to use an entity and a custom block renderer with an input mechanism, much like the TeX example.


.close icon inside a .label-pill

Is there a way to put icon inside a label-pill ? When trying to put span.close inside span.label.label-pill X is oversized.

"Label with an integrated 'X' button to remove the label" does sound like a useful widget to offer. :+1:

note that just adding it as a <span> won't make it keyboard/AT accessible, unless you then stuff that element with tabindex=0, role=button etc. best to just stick with an actual <button> element (and not forgetting appropriate aria-label or similar)

@patrickhlauke so you are saying to put button inside span ?
@cvrebert  - basically I am looking at stuff like select2 and md-chips and since we lack similar control, I want to at least have similar styles to be able to implement it as external component

@ojosdegris I believe he is saying to use a <button>  instead of a <span> for the close icon, however, you shouldn't place block elements inside of inline elements, so you should also need to change the .label-pill to a block element and position it accordingly (float, flex, etc.).

<button> is not a block-level element, though

@patrickhlauke Bah, good call. Looks like I didn't have enough coffee today. Cheers.

Closing this out given we're scaling back the functionality and complexity of badges for now.


Exception using Rider 2023.2.1

Hello, CleanCode plugin (2023.2) causes exception shown in Rider
com.intellij.diagnostic.PluginException: No display name specified in plugin descriptor XML file for configurable com.jetbrains.rider.plugins.cleancode.options.CleanCodeOptionsPage; specify it using 'displayName' or 'key' attribute to avoid necessity to load the configurable class when Settings dialog is opened [Plugin: MO.CleanCode-rider] 	at com.intellij.openapi.options.ex.ConfigurableWrapper.getDisplayName(ConfigurableWrapper.java:156) 	at com.intellij.ide.util.gotoByName.GotoActionModel.lambda$new$0(GotoActionModel.java:81) 	at com.intellij.openapi.util.NotNullLazyValue$4.compute(NotNullLazyValue.java:120) 	at com.intellij.openapi.util.NotNullLazyValue$4.getValue(NotNullLazyValue.java:105) 	at com.intellij.ide.util.gotoByName.GotoActionModel.getConfigurablesNames(GotoActionModel.java:378) 	at com.intellij.ide.util.gotoByName.GotoActionItemProvider.processOptions(GotoActionItemProvider.java:148) 	at com.intellij.ide.util.gotoByName.GotoActionItemProvider.filterElements(GotoActionItemProvider.java:94) 	at com.intellij.ide.actions.searcheverywhere.ActionSearchEverywhereContributor.lambda$fetchWeightedElements$4(ActionSearchEverywhereContributor.java:137) 	at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$executeProcessUnderProgress$13(CoreProgressManager.java:604) 	at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:679) 	at com.intellij.openapi.progress.impl.CoreProgressManager.computeUnderProgress(CoreProgressManager.java:635) 	at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:603) 	at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:61) 	at com.intellij.ide.actions.searcheverywhere.ActionSearchEverywhereContributor.fetchWeightedElements(ActionSearchEverywhereContributor.java:136) 	at com.intellij.ide.actions.searcheverywhere.MixedResultsSearcher$ContributorSearchTask.run(MixedResultsSearcher.java:184) 	at com.intellij.util.ConcurrencyUtil.runUnderThreadName(ConcurrencyUtil.java:218) 	at com.intellij.util.ConcurrencyUtil.lambda$underThreadNameRunnable$3(ConcurrencyUtil.java:206) 	at com.intellij.codeWithMe.ClientId$Companion.decorateRunnable$lambda$4(ClientId.kt:304) 	at com.intellij.openapi.application.impl.ApplicationImpl$2.run(ApplicationImpl.java:272) 	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539) 	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) 	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) 	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) 	at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:702) 	at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:699) 	at java.base/java.security.AccessController.doPrivileged(AccessController.java:399) 	at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1.run(Executors.java:699) 	at java.base/java.lang.Thread.run(Thread.java:833)
This occurs on every Rider launch.

On which platform do you see this error? I can't directly reproduce on Mac OS

Hey @MO2k4 I'm also getting this error, which is odd as it was working just fine over the weekend (windows 11).
Interestingly it had been working fine on my work pc which is on windows 10 - I don't know if that is a red herring or not.

i could reproduce it on windows, i will try to fix this

Could you check the linked pr and the build and download the artefact and install the plugin manually to verify?
With this version i was not able to reproduce this error

Found the same issue, came here to report. Good to know there's a fix, I will test it.

Getting building version restriction from your azure build
https://dev.azure.com/mo2k4/CleanCode/_build/results?buildId=367&view=results
Rider doesn't let me bump through the ide since it's a patch. I'd need to reinstall or look around to test locally. That will have to wait a bit unfortunately.

@melipefello u should be able to install it locally without uninstalling it

The new version will be available soon, hopefully tomorrow


Typescript: toString must have 2 params

https://github.com/peterolson/BigInteger.js/blob/bf283df222ec54ec464a82234a26947f679edaac/BigInteger.d.ts#L362
Actually toString() method accepts second param - alphabet.
But Typescript linter gives an error now if given 2 arguments:
Expected 0-1 arguments, but got 2.

https://github.com/peterolson/BigInteger.js/pull/176

Thanks for pointing that out! I merged your pull request.


Change defaults (--keep, --older-than) and explain

Changes the defaults for the --keep and --older-than CLI options.
Explains the (default) values that are active when displaying results, which should make it easier to spot why in some cases there are unexpectedly few or many results.
Changes and aligns styling and wording on help screens.
Fixes tests for the orphans command by "mocking" the default Namespace.

Resolves: #22
Side Note: Next Release
After this PR is merged we should probably go about publishing a new release (and package it with the container-oc image). The latest release is more than a month ago, and there have been significant advancements in the meantime. :rocket:

Come on @github, fix @actions. It's broken. :face_with_head_bandage: :adhesive_bandage:


member file_line is not actually used for normal logic inside LineReader, making set_file_line effectively useless

Needed to set the line in a csv file,
io::CSVReader<1> csv_file(file_path);
csv_file.read_header(io::ignore_extra_column, "\"my_column\"");

unsigned int line_number = 3;
// +1 to avoid header
csv_file.set_file_line(line_number+1);
std::cout << "line_number + 1: " <<line_number + 1 << std::endl; //4
std::cout << "file line: " << csv_file.get_file_line() << std::endl; // 4
double my_column;
csv_file.read_row(my_column); //only reads first line.
std::cout << "file line: " << csv_file.get_file_line() << std::endl; //5 which is expected
csv_file.read_row(my_column); //but this will get the second line?, so there is some other variable handling the true line number.

Found out that, while line number itself is properly updated, no where in the next line function, or indeed in the entire csv.h header file does file_line actually correspond to internal logic, ie, it doesn't effect the actual line number underneath.
If this isn't correct, please correct me with the appropriate information, but AFAICT, it is only used for error handling, it doesn't effect the actual line I'm trying to read from the CSV file.

Hi,
The line number is only used in the error messages and in the
get_file_line function.
Best Regards
Dr. Ben Strasser
On 5/20/19 8:37 PM, Shae Bolt wrote:

Needed to set the line in a csv file,
|io::CSVReader<1> csv_file(file_path);
csv_file.read_header(io::ignore_extra_column, ""my_column"");
unsigned int line_number = 3; // +1 to avoid header
csv_file.set_file_line(line_number+1); std::cout << "line_number + 1:
" <<line_number + 1 << std::endl; //4 std::cout << "file line: " <<
csv_file.get_file_line() << std::endl; // 4 double my_column;
csv_file.read_row(my_column); //only reads first line. std::cout <<
"file line: " << csv_file.get_file_line() << std::endl; //5 which is
expected csv_file.read_row(my_column); //but this will get the second
line?, so there is some other variable handling the true line number. |
Found out that, while line number itself is properly updated, no where
in the next line function, or indeed in the entire csv.h header file
does file_line actually correspond to internal logic, ie, it doesn't
effect the actual line number underneath.
If this isn't correct, please correct me with the appropriate
information, but AFAICT, it is only used for error handling, it
doesn't effect the actual line I'm trying to read from the CSV file.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/ben-strasser/fast-cpp-csv-parser/issues/80?email_source=notifications&email_token=AC3IBD2D2NCZDG5Y5OP2QCTPWLVVLA5CNFSM4HOENSXKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4GUZJXHQ,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AC3IBD6HOCSIQ7MMNUJZZMLPWLVVLANCNFSM4HOENSXA.


Inheritance Diagram For Chisel Types

I remember in the past when learning Chisel there was a nice diagram with all the different data types and how they inherit / are related. I don't recall where I saw it.
Does this diagram still exist? Can someone point me to it?

There's a small on in the README: https://github.com/ucb-bar/chisel3#data-types-overview
I also think https://github.com/ucb-bar/chisel3/pull/432 (which I need to merge, whoops) adds some automatically generated diagrams to the ScalaDoc

Gracias.