!kjdutkOsheZdjqYmqp:nixos.org

Nixpkgs / NixOS contributions

1861 Members
NixOS 24.05 Uakari | #review-requests:nixos.org | https://nixos.org/blog/announcements.html#nixos-23.11 | https://hydra.nixos.org/jobset/nixos/trunk-combined | https://reproducible.nixos.org/ | 24.05 RMs: wegank & Mic92409 Servers

Load older messages


SenderMessageTime
21 Oct 2024
@qyliss:fairydust.spaceAlyssa RossHow does it currently know?18:18:23
@qyliss:fairydust.spaceAlyssa RossIt just assumes that if it finds an architecture-specific program that it will definitely work?18:18:33
@luckytethys:matrix.orgTethys Svensson
  • If it finds an architecture-specific program it will use that
  • If the target architecture is sufficiently close to the host architecture and it finds a host program, it will use that
  • Otherwise error out. If it can figure out a way to help the user install a proper binutils it will print that
18:19:44
@qyliss:fairydust.spaceAlyssa Ross

You can list the available binary formats with objdump -i

18:20:23
@qyliss:fairydust.spaceAlyssa RossWould doing that also be hard?18:20:28
@qyliss:fairydust.spaceAlyssa RossOr is that the wrong thing?18:20:36
@luckytethys:matrix.orgTethys SvenssonParsing that format is not particularly easy. And I would have to write a similar parser for every other architecture-specific tool they use18:21:54
@luckytethys:matrix.orgTethys SvenssonBecause you wouldn't necessarily know that the readelf you find is from the same place as the objdump you find18:22:07
@qyliss:fairydust.spaceAlyssa RossIs supporting mixing multiple binutils builds like that really that important?18:22:39
@qyliss:fairydust.spaceAlyssa Rossthat sounds like an odd thing to do18:23:17
@qyliss:fairydust.spaceAlyssa Ross(with the exception of gas, where there's a reason for it, as we've discovered)18:23:31
@jh-devv:matrix.orgjh-devv 🏳️‍⚧️How do I make dockerTools.buildimage run an command in the shell in the image?18:23:44
@qyliss:fairydust.spaceAlyssa Ross

(BTW: it looks like a gas-only build is not as easy as I hoped, so I will look into emily's suggestion of building gas for each architecture in binutils-unwrapped-all-targets)

18:23:49
@lily:lily.flowersLily Foster
In reply to @emilazy:matrix.org
apparently .ci is expensive
well we've still been paying for it. the previous payment info had expired and no one who was set to receive registrar renewal reminder emails acted on them i guess until after it had lapsed payment and expired a month after
18:24:12
@jh-devv:matrix.orgjh-devv 🏳️‍⚧️ * 18:24:12
@lily:lily.flowersLily Foster(so they bought ofborg.org real fast while waiting on that to be fixed and decided to stay on it)18:24:51
@lily:lily.flowersLily Foster* (so they bought ofborg.org real fast while waiting on that to be fixed and decided to stay on the .org instead)18:25:13
@luckytethys:matrix.orgTethys Svensson

So your suggestion for e.g. finding readelf is to:

  • Look for a target specific readelf
  • Look for a host specific readelf when target is sufficiently close to host
  • Look for any readelf. If one is found, look for a objdump that looks to come from a similar place. If that is found, parse the output of objdump -i to see if your target architecture is in there. If it is, return that readelf
  • Otherwise do the fallback of trying to guide the user to an install command

Or am I missing something?

18:25:20
@qyliss:fairydust.spaceAlyssa Ross

Well, I wouldn't have separate "looking" and "running" steps. If running it fails with ENOENT, you didn't find it. My step three would be "run objdump -i and see if the target architecture is in there. If it is, run readelf.

18:27:17
@qyliss:fairydust.spaceAlyssa Ross *

Well, I wouldn't have separate "looking" and "running" steps. If running it fails with ENOENT, you didn't find it. My step three would be "run objdump -i and see if the target architecture is in there. If it is, run readelf."

18:27:33
@qyliss:fairydust.spaceAlyssa RossBut I also think it might be worth waiting a bit here while I check doing a just-gas build is actually doable.18:28:12
@luckytethys:matrix.orgTethys SvenssonIn principle that could be done, but not without majorly refactoring the code. The current code is very much structured as "try to find the correct binary, when found go build a big command up around it".18:32:36
@qyliss:fairydust.spaceAlyssa RossI think I might be a bit tired to figure out gas18:33:39
@qyliss:fairydust.spaceAlyssa Ross

The thing I'm trying to figure out is whether it's reasonable to just make install multiple times into the same prefix, with different configurations.

18:34:17
@qyliss:fairydust.spaceAlyssa RossIt would be very nice if it was.18:34:22
@hexa:lossy.networkhexaimage.png
Download image.png
18:34:36
@reecertv:matrix.orgReecerTV joined the room.18:54:55
@reecertv:matrix.orgReecerTV set a profile picture.18:59:17
@artur:glasgow.social(artur 'manuel) changed their display name from (lambda (f l) (format nil "~a ~a")) "Artur" "Manuel" to (artur 'manuel).20:04:36
@maka_77x:matrix.orgmaka_77x joined the room.20:05:37

Show newer messages


Back to Room ListRoom Version: 6