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

Fail to compile with Ubuntu 16.04 on ppc64le #500

Closed
geissonator opened this issue Aug 8, 2016 · 19 comments
Closed

Fail to compile with Ubuntu 16.04 on ppc64le #500

geissonator opened this issue Aug 8, 2016 · 19 comments

Comments

@geissonator
Copy link
Contributor

There are 2 issues with compiling openbmc on Ubuntu ppc64le.

  1. The first is this message string: https://lists.yoctoproject.org/pipermail/yocto/2016-June/030784.html

Symptom is this error:
uninative selected but not configured, please set UNINATIVE_CHKSUM[ppc64le]

Workaround is to add this to your local.conf:
INHERIT_remove = "uninative"

  1. The second is this error:
    | ERROR: User requested feature sdl
    | configure was not able to find it.
    | Install SDL devel

It seems related to this message chain and bug:
https://lists.yoctoproject.org/pipermail/poky/2016-May/010552.html
https://bugzilla.yoctoproject.org/show_bug.cgi?id=8553

I'm currently testing the proposed workaround of commenting out ASSUME_PROVIDED from local.conf.

@geissonator
Copy link
Contributor Author

Confirmed the workaround for issue 2, was able to compile and boot the generated image in QEMU on Ubuntu 16.04 with ppc64le.

@shenki
Copy link
Member

shenki commented Aug 8, 2016

I think we want to remove the SDL qemu bits from our local.conf.

We can document how to build qemu with the SDL GUI for those who need it. For the majority of use cases it will not be required.

Are you building on 14.04 for a reason? It would be nice to test on the latest LTS.

@mx-shift
Copy link
Member

mx-shift commented Aug 8, 2016

The first issue is related to Yocto uninative which isn't strictly
necessary. Adding INHERIT_ remove to local.conf as you did just disabled
it. You can also run the BitBake command to generate the uninative tarball.

The second issue is that you do not have the libsdl headers installed.
Install libsdl-dev or equivalent. This is in the top-level readme.

On Aug 8, 2016 7:20 AM, "Andrew Geissler" notifications@github.com wrote:

Confirmed the workaround for issue 2, was able to compile and boot the
generated image in QEMU on Ubuntu 16.04 with ppc64le.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#500 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AJBDl2lBV_PRfQba6l8Kv5WZM2G4I9TEks5qdzsggaJpZM4JfCjC
.

@geissonator
Copy link
Contributor Author

@shenki - I'm using Ubuntu 16.04 LTS
@kc8apf - I had the lib installed, there was a change recently in yocto to try and build the sdl natively (I think). Commenting out ASSUME_PROVIDED += "libsdl-native" from local.conf fixed this.

@mx-shift
Copy link
Member

mx-shift commented Aug 8, 2016

Yocto has always assumed the host has libsdl available. That's what
ASSUME_PROVIDED += "libsdl-native" does. The error indicates binaries
can't be built against libsdl on the host. Could be the host missing
headers or the test in qemu is broken.

On Aug 8, 2016 7:51 AM, "Andrew Geissler" notifications@github.com wrote:

@shenki https://github.com/shenki - I'm using Ubuntu 16.04 LTS
@kc8apf https://github.com/kc8apf - I had the lib installed, there was a
change recently in yocto to try and build the sdl natively (I think).
Commenting out ASSUME_PROVIDED += "libsdl-native" from local.conf fixed
this.


You are receiving this because you were mentioned.

Reply to this email directly, view it on GitHub
#500 (comment), or mute
the thread
https://github.com/notifications/unsubscribe-auth/AJBDl-hrpKxdXjVZC0ZL9SHOxWmC1N7xks5qd0JcgaJpZM4JfCjC
.

@williamspatrick williamspatrick added this to the openBMC v2.0 Backlog milestone Aug 8, 2016
@geissonator
Copy link
Contributor Author

Patrick resolved the ASSUME_PROVIDED part of this issue with https://gerrit.openbmc-project.xyz/#/c/158/. So now we're just tracking the uninative aspect.

@KennethWilke
Copy link

I hit this trying to run a build today, after commenting out the ASSUME_PROVIDED line i get:

ERROR: Nothing PROVIDES 'libsdl-native' (but virtual:native:/home/kwilke/builds/openbmc/meta/recipes-devtools/qemu/qemu_2.4.0.bb DEPENDS on or otherwise requires it). Close matches:
  libxslt-native
  libsm-native
  mklibs-native

Is there another step I missed to get the build going?

@geissonator
Copy link
Contributor Author

@KennethWilke was that against stable or master? The workaround doesn't seem to work for stable (I think the yocto version in stable doesn't have rules on how to generate the sdl library).

@KennethWilke
Copy link

@geissonator I'm trying to build the latest tag for Barreleye provided by our vendor which based on the openbmc v1.0.4 tag: https://github.com/ken1029/openbmc/tree/v10.40.256

@geissonator
Copy link
Contributor Author

Yeah, you're going t have to use Ubuntu 14.04 then to build that for now.

@mdmillerii
Copy link
Contributor

I would guess that 16.04 has similar packages that can build the required dependencies.

The point was the older yocto in the v1.0-stable branch does not have code to build the sdl even if its removed from the ASSUME_PROVIDED, which was the solution on the master branch, and so the build dependencies will need to be pre-installed.

@mdmillerii
Copy link
Contributor

@KennethWilke The README file in this repository lists several packages required on the host for the ubuntu and fedora distributions. That applied to the 1.0.x releases.

  • this had been drafted before the prior comment about 16.04 but aparently not posted

@geissonator
Copy link
Contributor Author

I had installed the required packages into my 16.04 instance but still no dice on compiling the stable branch. They must be incompatible with the older yocto.

@KennethWilke
Copy link

@mdmillerii I did ensure those packages were installed prior to building, and also installed all libsdl packages to see if any would satisfy the dependency but that resulted in the same errors.

I'd previously built openbmc on 15.10, so will spin up a VM to build it on for now.

@causten
Copy link
Member

causten commented Aug 25, 2016

I got the stable release to build on 16.04. I had to comment out a bit more from the local.conf file.

#PACKAGECONFIG_append_pn-qemu-native = " sdl"
#PACKAGECONFIG_append_pn-nativesdk-qemu = " sdl"
#ASSUME_PROVIDED += "libsdl-native"

I suspect this will stop you from having a natural qemu image with the yocto build so it may be best to just stick to 14.04 for the stable branch if you were trying to test with it.

@KennethWilke
Copy link

Commit 6044148 has resolved this issue on my end for building the v1.0-stable branch for running in qemu and for running on Barreleye.

When I try to build on the master branch I get this result:

kwilke@barreleye-1:/tmp/openbmc$ . openbmc-env
### Initializing OE build env ###
You had no conf/local.conf file. This configuration file has therefore been
created for you with some default values. You may wish to edit it to, for
example, select a different MACHINE (target hardware). See conf/local.conf
for more information as common configuration options are commented.

You had no conf/bblayers.conf file. This configuration file has therefore been
created for you with some default values. To add additional metadata layers
into your configuration please add entries to conf/bblayers.conf.

The Yocto Project has extensive documentation about OE including a reference
manual which can be found at:
    http://yoctoproject.org/documentation

For more information about OpenEmbedded see their website:
    http://www.openembedded.org/


### Shell environment set up for builds. ###

You can now run 'bitbake <target>'

Common targets are:
     obmc-phosphor-image

You can also run generated qemu images with a command like:
     runqemu qemuarm
kwilke@barreleye-1:/tmp/openbmc/build$ bitbake obmc-phosphor-image
NOTE: Your conf/bblayers.conf has been automatically updated.
Parsing recipes: 100% |########################################################################| Time: 00:00:12
Parsing of 1918 .bb files complete (0 cached, 1918 parsed). 2486 targets, 385 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION        = "1.30.0"
BUILD_SYS         = "ppc64le-linux"
NATIVELSBSTRING   = "Ubuntu-16.04"
TARGET_SYS        = "arm-openbmc-linux-gnueabi"
MACHINE           = "qemuarm"
DISTRO            = "openbmc-phosphor"
DISTRO_VERSION    = "0.1.0"
TUNE_FEATURES     = "arm armv5 thumb dsp"
TARGET_FPU        = "soft"
meta              
meta-poky         
meta-oe           
meta-networking   
meta-python       
meta-virtualization 
meta-phosphor     = "master:ed181d504f1f622f8e19ab9d83b4470c191fc5c9"

ERROR: Uninative selected but not configured correctly, please set UNINATIVE_CHECKSUM[ppc64le]

Summary: There was 1 ERROR message shown, returning a non-zero exit code.

@mx-shift
Copy link
Member

mx-shift commented Dec 7, 2016 via email

@rfrandse rfrandse added the bug label Feb 10, 2017
@adamliyi
Copy link
Member

A quick fix to error:

ERROR: Uninative selected but not configured correctly, please set UNINATIVE_CHECKSUM[ppc64le]

is

--- a/import-layers/yocto-poky/meta-poky/conf/distro/poky.conf
+++ b/import-layers/yocto-poky/meta-poky/conf/distro/poky.conf
@@ -107,4 +107,4 @@ ERROR_QA_append = " ${WARN_TO_ERROR_QA}"
 require conf/distro/include/poky-world-exclude.inc
 require conf/distro/include/no-static-libs.inc
 require conf/distro/include/yocto-uninative.inc
-INHERIT += "uninative"
+#INHERIT += "uninative"

@geissonator
Copy link
Contributor Author

Thanks for the reminder Yi, yeah we now have master building on ppc64le Ubuntu for all systems.

stefanberger pushed a commit to stefanberger/openbmc that referenced this issue Aug 1, 2023
…web: downstream srcrev bump 2c9a449d5a..5066f18d2d (openbmc#3618)

* bmcweb: downstream srcrev bump 2c9a449d5a..5066f18d2d

Asmitha Karunanithi (1):
  Fix broadcast eventing issue (openbmc#681)

Change-Id: I1d3b2fe2bc903875d0ec5266cbfc82fbebae7502

* bmcweb: downstream srcrev bump 5066f18d2d..3976090f15

Janet Adkins (2):
  Audit Log: Add PUT events to audit log for HMC config file management
  Audit Log: Exclude body data for all IBM management console events

Gunnar Mills (1):
  Audit log enhancements and fixs (openbmc#500)

Reed Frandsen (1):
  Merge pull request openbmc#680 from jeaaustx/1050-enableAuditLog

zamiseck (3):
  Add Audit Event Through bmcweb
  Add Audit Event Points to All POSTs
  Expand Success Case For Audit Logging (openbmc#447)

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

No branches or pull requests

9 participants