!OqhvaDMJdKYUicLDiE:nixos.org

Nixpkgs Stdenv

221 Members
70 Servers

Load older messages


SenderMessageTime
12 Dec 2024
@rosscomputerguy:matrix.orgTristan RossI might look into it after the LLVM libc PR is merged18:32:57
@truby:matrix.orgtruby I don't think it should be too hard; I think you can just wrap it in exactly the same way as clang as all the driver options should be the same. We didn't support -B last time I tried to look at it, if that's still the case I'm happy to add that from the flang side 18:34:10
@rosscomputerguy:matrix.orgTristan RossMaybe, we'll have to see.18:35:19
@truby:matrix.orgtrubyI'm not sure how many of the hardening flags we have either; or how many of them make sense for Fortran. 18:35:43
@artturin:matrix.orgArtturin truby: https://github.com/search?q=lang%3Anix%20%2Fflang%2F&type=code 18:35:56
@rosscomputerguy:matrix.orgTristan RossAlso, my CPU model PR I might close and redo completely. I have better ideas as to handling it.18:36:40
@truby:matrix.orgtrubyas another unrelated question; do you know if there's a better solution for having a dev environment for working on LLVM than just using fhsEnv? So that the clang you build in the dev shell can actually find libc etc? Atm I'm just shoving everything in a fhsEnv but it feels kinda hacky.18:37:30
@rosscomputerguy:matrix.orgTristan RossCheck the wiki18:37:49
@rosscomputerguy:matrix.orgTristan Ross I've done nix develop nixpkgs#llvmPackages.clang 18:38:16
@rosscomputerguy:matrix.orgTristan RossAnd that's worked before.18:38:22
@truby:matrix.orgtruby I tried what was on the wiki and it didn't work for some reason, but now that I think of it that might have been flang not supporting -B... :) 18:38:52
@truby:matrix.orgtrubyguess that's on me to fix if it's still true... 18:39:50
@truby:matrix.orgtruby I think most of these are referring to "classic" flang, which is a completely different compiler with the same name. It's not at all confusing and never causes any issues for us. ๐Ÿ˜ƒ 18:40:41
@p14:matrix.orgp14
In reply to @rosscomputerguy:matrix.org
And that's worked before.
That's fine for building clang, but if you subsequently try to use the built clang, it won't work well because it's not wrapped.
19:22:21
@p14:matrix.orgp14 I'm not sure I've seen nixpkgs have a good answer to this. I think what's needed is a way of dumping the flags needed somewhere (e.g. to find the C/C++ stdlib) that the development compiler can pick up. My method is to use NIX_DEBUG on some other compiler and dump them into a clang{,++}.cfg next to my development compiler. 19:23:28
@p14:matrix.orgp14Which is a little fragile since there aren't GC roots for those references, but it seems to work well enough for my purposes as a development environment.19:23:56
@philiptaron:matrix.orgPhilip Taron (UTC-8) I filled it in. Did you see the draft I posted earlier? 19:45:57
@reckenrode:matrix.orgRandy EckenrodeI need to add my availability, though itโ€™s probably a bit limited.19:46:53
@rosscomputerguy:matrix.orgTristan Ross What draft? 19:55:09
@philiptaron:matrix.orgPhilip Taron (UTC-8) Hold on, rather than linking the Matrix message I'll just make a pad. 20:05:31
@rosscomputerguy:matrix.orgTristan Ross Alright 20:05:45
@philiptaron:matrix.orgPhilip Taron (UTC-8) https://pad.lassul.us/gYaWH4LuQGeED_BUSGInQA 20:25:19
@rosscomputerguy:matrix.orgTristan Ross Looks good 20:26:02
@truby:matrix.orgtruby Tristan Ross: da67096a3b9bf56a91d16901293e51ba5b49a27e is my nixpkgs rev. Still hitting the gettext failure 20:29:04
@rosscomputerguy:matrix.orgTristan Ross https://github.com/NixOS/nixpkgs/commit/da67096a3b9bf56a91d16901293e51ba5b49a27e 20:29:36
@artturin:matrix.orgArtturinthe bump is not yet in master https://nixpk.gs/pr-tracker.html?pr=35825420:29:43
@truby:matrix.orgtrubyhm20:29:44
@artturin:matrix.orgArtturinwhile the removal is20:29:45
@artturin:matrix.orgArtturinwas submitted agaisnt master20:29:50
@truby:matrix.orgtrubyI'm probably misunderstanding the flake file format20:29:56

Show newer messages


Back to Room ListRoom Version: 9