Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

Getting below error while make frr. #14816

Closed
AS132933 opened this issue Nov 17, 2023 · 5 comments
Closed

Getting below error while make frr. #14816

AS132933 opened this issue Nov 17, 2023 · 5 comments
Labels
triage Needs further investigation

Comments

@AS132933
Copy link

root@vbngvij1:/libyang/build/frr/lib# make
git suffix: -gc599ed56f-dirty
git branches: local:master, github/frrouting/frr.git/master
Files lib/gitversion.h.tmp and lib/gitversion.h are identical
CC lib/northbound.lo
lib/northbound.c: In function ‘nb_candidate_validate_yang’:
lib/northbound.c:874:27: error: ‘LYD_VALIDATE_MULTI_ERROR’ undeclared (first use in this function)
874 | uint32_t options =LYD_VALIDATE_MULTI_ERROR ;
| ^~~~~~~~~~~~~~~~~~~~~~~~
lib/northbound.c:874:27: note: each undeclared identifier is reported only once for each function it appears in
make[1]: *** [Makefile:10608: lib/northbound.lo] Error 1
make: *** [Makefile:2: all] Error 2
root@vbngvij1:
/libyang/build/frr/lib#

@AS132933 AS132933 added the triage Needs further investigation label Nov 17, 2023
@ponedo
Copy link
Contributor

ponedo commented Nov 17, 2023

me same

@ponedo
Copy link
Contributor

ponedo commented Nov 17, 2023

I solved the problem by updating libyang to v2.0.0 to v2.1.80.

If you are using Ubuntu, please check following lines in docker/ubuntu-ci/Dockerfile. You can find that libyang version is updated:

# build and install libyang2
RUN cd && pwd && ls -al && \
    git clone https://github.com/CESNET/libyang.git && \
    cd libyang && \
    git checkout v2.1.80 && \
    mkdir build; cd build && \
    cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr \
          -DCMAKE_BUILD_TYPE:String="Release" .. && \
    make -j $(nproc) && \
    sudo make install

@AS132933
Copy link
Author

@ponedo Let me try and update you !

@AS132933
Copy link
Author

after change version getting below error now.

Traceback (most recent call last):
File "", line 1, in
File "/usr/lib/python3/dist-packages/sphinx/init.py", line 74, in main
from .cmd import build
File "/usr/lib/python3/dist-packages/sphinx/cmd/build.py", line 25, in
from sphinx.application import Sphinx
File "/usr/lib/python3/dist-packages/sphinx/application.py", line 48, in
from sphinx.util.tags import Tags
File "/usr/lib/python3/dist-packages/sphinx/util/tags.py", line 11, in
from jinja2 import nodes
File "/usr/lib/python3/dist-packages/jinja2/init.py", line 33, in
from jinja2.environment import Environment, Template
File "/usr/lib/python3/dist-packages/jinja2/environment.py", line 15, in
from jinja2 import nodes
File "/usr/lib/python3/dist-packages/jinja2/nodes.py", line 23, in
from jinja2.utils import Markup
File "/usr/lib/python3/dist-packages/jinja2/utils.py", line 656, in
from markupsafe import Markup, escape, soft_unicode
ImportError: cannot import name 'soft_unicode' from 'markupsafe' (/usr/local/lib/python3.8/dist-packages/markupsafe/init.py)
make[1]: *** [Makefile:17888: doc/user/_build/.doctrees/environment.pickle] Error 1
make[1]: Leaving directory '/root/libyang/frr-frr-9.0.1'

@ponedo
Copy link
Contributor

ponedo commented Nov 17, 2023

Looks like required python dependencies are not installed in your environment.
According to your error message, you may try to reintsall python3-dev and python3-sphinx.

If you are using ubuntu and contunue to encounter new dependency problems, you can follow commands in docker/ubuntu-ci/Dockerfile to install or update dependencies. Please install all dependencies according to the Dockerfile first.

@FRRouting FRRouting locked and limited conversation to collaborators Nov 17, 2023
@ton31337 ton31337 converted this issue into discussion #14820 Nov 17, 2023

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
triage Needs further investigation
Projects
None yet
Development

No branches or pull requests

2 participants