Giter Club home page Giter Club logo

Comments (8)

mcb30 avatar mcb30 commented on September 21, 2024 2

The R_X86_64_GOTPCRELX et al errors should be resolved by a trivial patch to elf2efi.c to add extra constants to the /* Provide constants missing on some platforms */ section. I'll push a PR for this later this evening, if I get time.

from ipxe.

threepistons avatar threepistons commented on September 21, 2024

git reset --hard HEAD~2 prior to compiling removes the error messages and allows compilation to finish, so the problem been introduced since 337880d.

from ipxe.

threepistons avatar threepistons commented on September 21, 2024

The failure to chainload turns out to be DNS not working so well in the building I'm in. Replacing chain tftp://server.domain/menu.ipxe with chain tftp://ipaddress/menu.ipxe solved that problem. The compilation failure remains outstanding.

from ipxe.

NiKiZe avatar NiKiZe commented on September 21, 2024

Thanks for the report!

When was gcc 8.3 released?
If you need to build with old versions of gcc you might need to stay on older commits.
You should be able to use a Docker image or other VM with a never set of build tools to build current master.

It might be harder and harder to stay compatible, not sure how long back we really should (or must?) stay compatible?

from ipxe.

threepistons avatar threepistons commented on September 21, 2024

https://gcc.gnu.org/gcc-8 says May 2019. The GCC shipped with my CentOS 7 system was 4.something, I had to use https://www.softwarecollections.org/en/scls/rhscl/devtoolset-8/ to get 8.3 and there isn't a later devtoolset release.

Would an iPXE compiled on an Ubuntu system work on a CentOS 7 server?

from ipxe.

threepistons avatar threepistons commented on September 21, 2024

Would an iPXE compiled on an Ubuntu system work on a CentOS 7 server?

That's one of my stupider questions of today. Of course it will, because the laptop under build is executing the iPXE binary, not the server hosting it.

from ipxe.

mcb30 avatar mcb30 commented on September 21, 2024

The R_X86_64_GOTPCRELX et al errors should be resolved by a trivial patch to elf2efi.c to add extra constants to the /* Provide constants missing on some platforms */ section. I'll push a PR for this later this evening, if I get time.

OK, this part at least should be solved in commit 9e92c3989 (and in wimboot in commit ipxe/wimboot@47f6298)

from ipxe.

mcb30 avatar mcb30 commented on September 21, 2024

With the current master (commit 9e92c3989) I now get a successful build in a CentOS 7.9 container:

[root@7a3b91da0507 src]# cat /etc/redhat-release 
CentOS Linux release 7.9.2009 (Core)
[root@7a3b91da0507 src]# gcc --version
gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-44)

from ipxe.

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.