Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

symbol lookup error: /usr/bin/stratum_bf: undefined symbol: onlp_sw_init #963

Open
xfyan0408 opened this issue May 12, 2022 · 3 comments
Open
Labels
bug Something isn't working

Comments

@xfyan0408
Copy link

When I follow the Method 2: Pre-build the SDE, then build Stratum with Docker (Recommended), after the stratum/hal/bin/barefoot/docker/build-stratum-bf-container.sh I ran the stratum by 'start-stratum-container.sh', The stratum returns

symbol lookup error: /usr/bin/stratum_bf: undefined symbol: onlp_sw_init

I don't know how to fix it. Does somebody know how to deal with it?

The log of stratum is as below:
`root@localhost:~/stratum-master# stratum/hal/bin/barefoot/docker/start-stratum-container.sh

  • [[ -z '' ]]
  • [[ -f /etc/onl/platform ]]
    cat /etc/onl/platform
  • PLATFORM=x86-64-accton-wedge100bf-32x-r0
  • '[' -d /etc/onl ']'
    awk '{print "-v " $1 ":" $1 " " }'
    ls /lib/x86_64-linux-gnu/libonlp-platform-defaults.so /lib/x86_64-linux-gnu/libonlp-platform-defaults.so.1 /lib/x86_64-linux-gnu/libonlp-platform.so /lib/x86_64-linux-gnu/libonlp-platform.so.1 /lib/x86_64-linux-gnu/libonlp.so /lib/x86_64-linux-gnu/libonlp.so.1 /lib/x86_64-linux-gnu/libonlp-x86-64-accton-wedge100bf-32x.so.1
  • ONLP_MOUNT='-v /lib/x86_64-linux-gnu/libonlp-platform-defaults.so:/lib/x86_64-linux-gnu/libonlp-platform-defaults.so
    -v /lib/x86_64-linux-gnu/libonlp-platform-defaults.so.1:/lib/x86_64-linux-gnu/libonlp-platform-defaults.so.1
    -v /lib/x86_64-linux-gnu/libonlp-platform.so:/lib/x86_64-linux-gnu/libonlp-platform.so
    -v /lib/x86_64-linux-gnu/libonlp-platform.so.1:/lib/x86_64-linux-gnu/libonlp-platform.so.1
    -v /lib/x86_64-linux-gnu/libonlp.so:/lib/x86_64-linux-gnu/libonlp.so
    -v /lib/x86_64-linux-gnu/libonlp.so.1:/lib/x86_64-linux-gnu/libonlp.so.1
    -v /lib/x86_64-linux-gnu/libonlp-x86-64-accton-wedge100bf-32x.so.1:/lib/x86_64-linux-gnu/libonlp-x86-64-accton-wedge100bf-32x.so.1 '
  • ONLP_MOUNT='-v /lib/x86_64-linux-gnu/libonlp-platform-defaults.so:/lib/x86_64-linux-gnu/libonlp-platform-defaults.so
    -v /lib/x86_64-linux-gnu/libonlp-platform-defaults.so.1:/lib/x86_64-linux-gnu/libonlp-platform-defaults.so.1
    -v /lib/x86_64-linux-gnu/libonlp-platform.so:/lib/x86_64-linux-gnu/libonlp-platform.so
    -v /lib/x86_64-linux-gnu/libonlp-platform.so.1:/lib/x86_64-linux-gnu/libonlp-platform.so.1
    -v /lib/x86_64-linux-gnu/libonlp.so:/lib/x86_64-linux-gnu/libonlp.so
    -v /lib/x86_64-linux-gnu/libonlp.so.1:/lib/x86_64-linux-gnu/libonlp.so.1
    -v /lib/x86_64-linux-gnu/libonlp-x86-64-accton-wedge100bf-32x.so.1:/lib/x86_64-linux-gnu/libonlp-x86-64-accton-wedge100bf-32x.so.1 -v /lib/platform-config:/lib/platform-config -v /etc/onl:/etc/onl'
  • '[' -n '' ']'
  • '[' -n /root/stratum-master/leaf1.pb_backup.txt ']'
  • CHASSIS_CONFIG_MOUNT='-v /root/stratum-master/leaf1.pb_backup.txt:/etc/stratum/x86-64-accton-wedge100bf-32x-r0/chassis_config.pb.txt'
  • LOG_DIR=/var/log
  • SDE_VERSION=9.2.0
  • DOCKER_IMAGE=stratumproject/stratum-bf
  • DOCKER_IMAGE_TAG=9.2.0
    uname -r
    uname -r
  • docker run -it --rm --privileged -v /dev:/dev -v /sys:/sys -v /lib/modules/4.14.151-OpenNetworkLinux:/lib/modules/4.14.151-OpenNetworkLinux --env PLATFORM=x86-64-accton-wedge100bf-32x-r0 -v /lib/x86_64-linux-gnu/libonlp-platform-defaults.so:/lib/x86_64-linux-gnu/libonlp-platform-defaults.so -v /lib/x86_64-linux-gnu/libonlp-platform-defaults.so.1:/lib/x86_64-linux-gnu/libonlp-platform-defaults.so.1 -v /lib/x86_64-linux-gnu/libonlp-platform.so:/lib/x86_64-linux-gnu/libonlp-platform.so -v /lib/x86_64-linux-gnu/libonlp-platform.so.1:/lib/x86_64-linux-gnu/libonlp-platform.so.1 -v /lib/x86_64-linux-gnu/libonlp.so:/lib/x86_64-linux-gnu/libonlp.so -v /lib/x86_64-linux-gnu/libonlp.so.1:/lib/x86_64-linux-gnu/libonlp.so.1 -v /lib/x86_64-linux-gnu/libonlp-x86-64-accton-wedge100bf-32x.so.1:/lib/x86_64-linux-gnu/libonlp-x86-64-accton-wedge100bf-32x.so.1 -v /lib/platform-config:/lib/platform-config -v /etc/onl:/etc/onl -p 28000:28000 -p 9339:9339 -p 9559:9559 -v /root/stratum-master/leaf1.pb_backup.txt:/etc/stratum/x86-64-accton-wedge100bf-32x-r0/chassis_config.pb.txt -v /var/log:/var/log/stratum stratumproject/stratum-bf:9.2.0
    Cannot find , skip installing the Kernel module.
    /usr/bin/stratum_bf: symbol lookup error: /usr/bin/stratum_bf: undefined symbol: onlp_sw_init
    `
@xfyan0408 xfyan0408 added the bug Something isn't working label May 12, 2022
@Dscano
Copy link
Contributor

Dscano commented May 12, 2022

Hi
I did not experience this bug, but I notice that you use SDE 9.2.0 and it seems not supported by the latest stratum version https://github.com/stratum/stratum/releases.

@xfyan0408
Copy link
Author

xfyan0408 commented May 17, 2022

Hi I did not experience this bug, but I notice that you use SDE 9.2.0 and it seems not supported by the latest stratum version https://github.com/stratum/stratum/releases.

I tried the main branch, as to some experiment needs, I have to use sde-9.2.0, there are many related measures for sde-9.2.0 on my whole network. And my switch is ingrasys platform rather than the accton platform,it's may not be listed in docker images. Do you know how to build compatible stratum:sde9.2.0 for other platforms.

Thank you.

@pudelkoM
Copy link
Member

pudelkoM commented May 18, 2022

As mentioned in the other issue, support for 9.2.0 has been removed in 4df8d28. You could try to patch it in locally on your own by reverting the commit, but that'd be purely on you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants