Coder Social home page Coder Social logo

u-boot build issue about openbmc HOT 20 CLOSED

facebook avatar facebook commented on April 20, 2024
u-boot build issue

from openbmc.

Comments (20)

AdrianB-Flex avatar AdrianB-Flex commented on April 20, 2024 1

Confirmed. Everyone, thanks for the help. The "How to build" section on the main facebook/openbmc page should be updated I think.

from openbmc.

AdrianB-Flex avatar AdrianB-Flex commented on April 20, 2024

Building on a Ubuntu 14.04.5 machine and following the howto build section of this repo.

from openbmc.

theopolis avatar theopolis commented on April 20, 2024

Hi @AdrianB-Flex, we can help, but I need more details about the error :)

from openbmc.

theopolis avatar theopolis commented on April 20, 2024

Here's the build that continually tries to build wedge100-image from the helium branch: https://jenkins.osquery.io/view/Other/job/openbmcHeliumBuildWedge100/

It runs:

export BOARD=wedge100
export OPENBMC=$PWD

sudo yum install -y perl-Thread-Queue gcc-c++ patch wget diffstat chrpath texinfo bzip2

git clone -b krogoth --depth 1 https://git.yoctoproject.org/git/poky
cd poky
git clone -b krogoth --depth 1 https://github.com/openembedded/meta-openembedded.git
git clone -b krogoth --depth 1 https://git.yoctoproject.org/git/meta-security
ln -s $OPENBMC meta-openbmc

export TEMPLATECONF=meta-openbmc/meta-facebook/meta-${BOARD}/conf
source ./oe-init-build-env

bitbake ${BOARD}-image

from openbmc.

AdrianB-Flex avatar AdrianB-Flex commented on April 20, 2024

Sorry for the delay Teddy, I was on PTO latter half of last week. I am using fido not krogoth, that might be an issue. I'll give this a try.

from openbmc.

AdrianB-Flex avatar AdrianB-Flex commented on April 20, 2024

Not seeing the meta-openbmc/meta-facebook folder. Is there a git clone missing? Before I had to do this:
git clone https://github.com/facebook/openbmc.git meta-openbmc

from openbmc.

theopolis avatar theopolis commented on April 20, 2024

Here's the meta-facebook folder: https://github.com/facebook/openbmc/tree/helium/meta-facebook

Would you mind starting from a clean working state and documenting the steps you're taking, I think that will help me debug too :)

from openbmc.

amithash avatar amithash commented on April 20, 2024

@AdrianB-Flex if you are moving to krogoth from fido, you might also want to switch openbmc from the master to the helium branch.
git clone -b helium https://github.com/facebook/openbmc.git meta-openbmc
instead of
git clone https://github.com/facebook/openbmc.git meta-openbmc

from openbmc.

AdrianB-Flex avatar AdrianB-Flex commented on April 20, 2024

Ahh, thanks Amit.

from openbmc.

AdrianB-Flex avatar AdrianB-Flex commented on April 20, 2024

From a clean tree Ubuntu 14.04.5:
sudo apt-get install gawk wget git-core diffstat unzip texinfo gcc-multilib
build-essential chrpath libsdl1.2-dev xterm

git clone -b krogoth --depth 1 https://git.yoctoproject.org/git/poky bolt-dev
cd bolt-dev
git clone -b krogoth --depth 1 https://github.com/openembedded/meta-openembedded.git
git clone -b krogoth --depth 1 https://git.yoctoproject.org/git/meta-security
git clone -b helium https://github.com/facebook/openbmc.git meta-openbmc
export BOARD=wedge100
export TEMPLATECONF=meta-openbmc/meta-facebook/meta-${BOARD}/conf
source ./oe-init-build-env
bitbake ${BOARD}-image

from openbmc.

AdrianB-Flex avatar AdrianB-Flex commented on April 20, 2024

And here's the error:

image

from openbmc.

tfangit avatar tfangit commented on April 20, 2024

@AdrianB-Flex The default gcc from poky krogoth branch is 5.x. However, your log shows as 4.9.2. Could u pls check why?

from openbmc.

AdrianB-Flex avatar AdrianB-Flex commented on April 20, 2024

That's puzzling. When I do a gcc --version I get 6.2.0. This got pulled in from the apt-get install gcc-multilib from the yocto user guide. Not sure why 4.9.2 is getting selected.

from openbmc.

theopolis avatar theopolis commented on April 20, 2024

I'll try to reproduce on a Ubuntu 14.04 system tonight.

from openbmc.

renweihang avatar renweihang commented on April 20, 2024

When I cd to u-boot path and
'make fbwedge100_defconfig' && 'make'
also get this same problem:
capture
How to fix the Assembler Error?

from openbmc.

theopolis avatar theopolis commented on April 20, 2024

Right, so this is a compiler issue. Is there the older GCC in your path?

On a new install of Ubuntu 14.04: https://jenkins.osquery.io/view/Other/job/openbmcUbuntuHeliumBuildWedge100/8/console

Using the build script from above.

from openbmc.

renweihang avatar renweihang commented on April 20, 2024

Thanks a lot , at first I use the poky fido branch,the gcc version is 4.9 .But now I use the krogoth branch, all going well,it can build success.

from openbmc.

AdrianB-Flex avatar AdrianB-Flex commented on April 20, 2024

Frank, what distro/version did you use finally?

from openbmc.

renweihang avatar renweihang commented on April 20, 2024

Ubuntu-14.04.1-desktop-i386

Be honest, I did not find the real reason why I can build success finally, but , These are the steps I use to get things done:

sudo apt-get insatll gcc-arm-linux-gnueabi
sudo apt-get insatll g++-arm-linux-gnueabi
sudo apt-get install sed wget subversion git-core coreutils unzip gcc-multilib \
texi2html texinfo libsdl1.2-dev docbook-utils fop gawk python-pysqlite2
diffstat make gcc build-essential xsltproc g++ desktop-file-utils
chrpath libgl1-mesa-dev libglu1-mesa-dev autoconf automake groff libtool
xterm libxml-parser-perl vim-common xz-utils cvs tofrodos
libstring-crc32-perl ubuntu-minimal ubuntu-standard patch
libbonobo2-common libncurses5-dev \

git clone -b krogoth --depth 1 https://git.yoctoproject.org/git/poky
cd poky
git clone -b krogoth --depth 1 https://github.com/openembedded/meta-openembedded.git
git clone -b krogoth --depth 1 https://git.yoctoproject.org/git/meta-security
git clone -b helium https://github.com/facebook/openbmc.git meta-openbmc

source oe-init-build-env
bitbake -k wedge100-image

from openbmc.

tfangit avatar tfangit commented on April 20, 2024

Switching to krogoth and start a new build directory shall fix this issue, as gcc 5.x is used in Krogoth.

@AdrianB-Flex Could you confirm if this fixed your build issue?

from openbmc.

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.