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

Missing elog-gen.py in SDK #21

Open
sbteeks opened this issue May 26, 2021 · 5 comments
Open

Missing elog-gen.py in SDK #21

sbteeks opened this issue May 26, 2021 · 5 comments

Comments

@sbteeks
Copy link
Contributor

sbteeks commented May 26, 2021

No description provided.

@sbteeks
Copy link
Contributor Author

sbteeks commented May 26, 2021

Here are the steps used:

  • Clone phosphor-debug-collector repo
  • Run:
    ./bootstrap.sh
    ./configure ${CONFIGURE_FLAGS} && make
  • Get the following error:
    config.status: executing libtool commands
    /home/shanteek/Development/rainier_sdk/sysroots/x86_64-oesdk-linux/usr/bin/sdbus++ -r . error exception-cpp org.open_power.Host.Boot> org/open_power/Host/Boot/error.cpp
    /home/shanteek/Development/rainier_sdk/sysroots/x86_64-oesdk-linux/usr/bin/sdbus++ -r . error exception-header org.open_power.Host.Boot> org/open_power/Host/Boot/error.hpp
    chmod: cannot access '/home/shanteek/Development/rainier_sdk/sysroots/x86_64-oesdk-linux/usr/local/share/phosphor-logging/elog/tools//elog-gen.py': No such file or directory
    Makefile:1097: recipe for target 'phosphor-logging/elog-errors.hpp' failed
    make: *** [phosphor-logging/elog-errors.hpp] Error 1

@sbteeks
Copy link
Contributor Author

sbteeks commented May 26, 2021

Workaround: Copy the script and templates from phosphor-logging/tools to SDK.

@sbteeks
Copy link
Contributor Author

sbteeks commented May 27, 2021

@williamspatrick It appears that elog-gen.py and templates files are not getting installed on docker also

@spinler
Copy link
Contributor

spinler commented May 27, 2021

I guess I need to figure out the meson equivalent of:

 # Export elog-gen parser and mako script
 elogdir = ${datadir}/phosphor-logging/elog
 nobase_elog_DATA =  \
     tools/elog-gen.py \
     tools/phosphor-logging/templates/elog-gen-template.mako.hpp

@spinler
Copy link
Contributor

spinler commented Jun 7, 2021

Resolved by https://gerrit.openbmc-project.xyz/c/openbmc/phosphor-logging/+/43753.

I will create a new issue for elog-gen.py to be installed using python setuptools.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants