Giter Club home page Giter Club logo

Comments (13)

fhunleth avatar fhunleth commented on September 24, 2024 1

Fixed! The difference was indeed related to glibc 2.26. The implementation of open() was changed to call the openat syscall. I didn't handle the openat syscall in the syscall validator, so it was throwing an error. It's handled now. Thanks for reporting this. I'll make a patch release shortly.

from fwup.

fhunleth avatar fhunleth commented on September 24, 2024

Thanks for letting me know about this. That really looks like an issue with the test suite rather than fwup itself. Between the versions that you referenced, I added code to validate syscalls since there are non-obvious constraints with buffer alignment, sizes and offsets on some platforms. That code is failing, but it's failing since the syscalls aren't being captured. I doubt that anything here is a problem for NixOS, but something could be hiding.

I'm not a NixOS user so I tried pulling down the NixOS appliance and installing everything needed to build fwup (like gcc, autoconf, automake, libconfuse, libarchive, etc.). I'm stuck at what looks like a noob issue, but my searches are failing me. gcc fails to build anything with error trying to exec 'as': execp: No such file or directory. I didn't see a build-essential package for NixOS. Any ideas how I may reproduce and debug?

from fwup.

orivej avatar orivej commented on September 24, 2024

@fhunleth Thank you for your effort! You can run nix-shell '<nixpkgs>' -A fwup to enter the build environment with all the dependencies for fwup.

from fwup.

fhunleth avatar fhunleth commented on September 24, 2024

I just ran the following in a fwup source directory:

nix-shell '<nixpkgs>' -A fwup
./autogen.sh
./configure
make
make check

All tests passed for me.

I'm running NixOS 17.09.2249.6b8833df272 (x86_64-linux) in VirtualBox. Are you running something different?

from fwup.

jtojnar avatar jtojnar commented on September 24, 2024

Sorry about that, NixOS 17.09 contains the old version of fwup. Could you run nix-channel --add https://nixos.org/channels/nixpkgs-unstable and nix-channel --update before entering the shell.

from fwup.

fhunleth avatar fhunleth commented on September 24, 2024

I checked out fwup v0.18.0 from Github to ~/fwup and built it there. I ran the commands that you wrote and re-entered the shell. Should I be compiling from a different directory?

from fwup.

jtojnar avatar jtojnar commented on September 24, 2024

My bad, that should be fine. Then it looks like a problem with environment. Could you try using nix-shell '<nixpkgs>' -A fwup --pure to sandbox the shell?

from fwup.

fhunleth avatar fhunleth commented on September 24, 2024

Ok, --pure is really cool.

I ran make distclean first to start a fresh build and then repeated what I did above. I have the same result. I.e. everything works.

from fwup.

orivej avatar orivej commented on September 24, 2024

Sorry, we have not checked if the tests of the newer fwup fail in NixOS 17.09 (EDIT: they don't), only in the NixOS master (aka unstable). One of the differences is the upgrade to Glibc 2.26.

from fwup.

orivej avatar orivej commented on September 24, 2024

Could you unpack https://github.com/NixOS/nixpkgs/archive/master.tar.gz somewhere and run nix-shell path/to/master -A fwup --pure? This should reproduce test failure. (EDIT: doing what @jtojnar has said about nix-channel is equivalent to the manual downloading and unpacking.)

from fwup.

fhunleth avatar fhunleth commented on September 24, 2024

Downloaded and unpacked and I'm finally getting the failures! Investigating...

from fwup.

orivej avatar orivej commented on September 24, 2024

Thank you for the fix (and for introducing me to the open_by_handle_at syscall)!

from fwup.

fhunleth avatar fhunleth commented on September 24, 2024

Thanks @jtojnar and @orivej again for reporting the issue and helping me reproduce it. The 0.18.1 release is now available with the fix.

from fwup.

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.