openbmc / bmcweb

A do everything Redfish, KVM, GUI, and DBus webserver for OpenBMC
Apache License 2.0
148 stars 130 forks source link

meson builddir not available #237

Closed fishermess closed 1 year ago

fishermess commented 2 years ago

WKJ@_DN7XFH6DZN4D9J3PSK

edtanous commented 2 years ago

Please fill out the bug template as requested. From the looks of it, you're trying to run a meson build from within a devtool modifiy copy of bmcweb. If you want to build bmcweb locally, the commands are documented in the repo, if you want to build in yocto, that is done via bitbake, not meson. Mixing the two is not something anyone within the project supports, but if there's patchsets to improve the behavior, feel free to submit them to code review and we will take a look, but building in a combo of yocto and local is not a building mechanism that any of the maintainers use, so it's likely it doesn't work or will regress often.

fishermess commented 2 years ago

Thanks for your reply.I am sorry for that I didn't express what I want to ask for well.I just wonder why I cannot get pass 'meson builddir'(without option the result is same as it) locally, but in yocto using "bitbake bmcweb" or "devtool build bmcweb" it works well.

gtmills commented 1 year ago

@fishermess Can this issue be closed?

edtanous commented 1 year ago

No response from submitter; Bug template has still not been filled out. Closing. Feel free to reopen if this is still and issue, and the bug template can be filled out.

wosayttn commented 1 year ago

Anyone can tell me how to do the native build using 'meson builddir && ninja -C builddir' command on x86_64 platform successfully? Is it available? or I miss some dependency?

image bmcweb_build.log

williamspatrick commented 1 year ago

Anyone can tell me how to do the native build using 'meson builddir && ninja -C builddir' command on x86_64 platform successfully? Is it available? or I miss some dependency?

image bmcweb_build.log

Please don’t reply to already closed issues if you can’t tell they are similar problems.

You need a newer GCC. Looks like you have 10 and we need 12.

wosayttn commented 1 year ago

@williamspatrick

Sorry, I just correct related to meson build issue in same thread. I upgraded my UBUNTU distro to 22.04 and upgrade g++12. It's okay to build the bmcweb successfully. Thanks for your hint.