Coder Social home page Coder Social logo

Fails to compile about phosphor-host-ipmid HOT 7 CLOSED

openbmc avatar openbmc commented on August 26, 2024
Fails to compile

from phosphor-host-ipmid.

Comments (7)

shenki avatar shenki commented on August 26, 2024 1

As I have said in the past, I recommend we make all of our tools able to compile outside of the bitbake SDK. This allows at the very least compile testing and static analysis to be run on a desktop Linux distribution.

from phosphor-host-ipmid.

williamspatrick avatar williamspatrick commented on August 26, 2024

The instructions are written somewhat assuming you are building within an SDK, which maybe isn't ideal. If you are not running in the SDK you need to have autoconf-archive installed.

from phosphor-host-ipmid.

msbarth avatar msbarth commented on August 26, 2024

I am not able to reproduce any of the issue show here from within an SDK. Please re-attempt after rebasing from within an SDK.

from phosphor-host-ipmid.

williamspatrick avatar williamspatrick commented on August 26, 2024

As I mentioned before, you need to have autoconf-archive installed. I did a fresh download of this repository and have no problem getting past configure.

There are two issues to be addressed:
1. We need to find a place to document the need for autoconf-archive to be installed.
2. The AC_CHECK_LIB([mapper], [mapper_get_service]) does not appear to work. I do not have mapper installed and yet I am passing ./configure (and then later failing in make due to missing header file). We should also enhance this to check for the header file for mapper.

checking for mapper_get_service in -lmapper... no  <---- why doesn't this halt?
  CXX      libapphandler_la-apphandler.lo
apphandler.cpp:8:20: fatal error: mapper.h: No such file or directory
compilation terminated.
Makefile:747: recipe for target 'libapphandler_la-apphandler.lo' failed

from phosphor-host-ipmid.

 avatar commented on August 26, 2024

You can also store copies of needed autoconf macros in m4/ (or whatever directory you configure) and it'll work even if you don't have autoconf-archive installed. I can't remember what precedence it all is though :)

from phosphor-host-ipmid.

msbarth avatar msbarth commented on August 26, 2024

Issue #100 was created to address halting the ./configure step where libmapper is not found.

This issue will track adding the use of "m4-ifndef" checks for none autoconf default macros (i.e. autoconf-archive macros, etc..) prior to use.

from phosphor-host-ipmid.

williamspatrick avatar williamspatrick commented on August 26, 2024

I think this has been solved at this point.

from phosphor-host-ipmid.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.