Sender | Message | Time |
---|---|---|
28 May 2025 | ||
Why is this important? | 11:35:54 | |
I am trying to make intel fortran compiler working on NixOS 25.05. It used to work on NixOS 24.11, but now on 25.05, the intel fortran compiler complains could not find gcc installation directory. | 11:37:32 | |
What is the package name? | 11:37:41 | |
just you wait until you realize stdenv.cc and gcc14Stdenv.cc are different yet again | 11:38:25 | |
The Intel compilers is not packaged in nixpkgs. It defined here https://github.com/CHN-beta/bscpkgs/blob/master/pkgs/intel-oneapi/2023.nix | 11:39:05 | |
So why? | 11:39:16 | |
Where is the code that make difference? | 11:39:32 | |
some wrapping magic deep in stdenv, but probably not relevant to your issues anyways | 11:40:14 | |
in
| 11:40:21 | |
Yeah it's not relevant | 11:40:45 | |
Post the full build log please | 11:40:49 | |
Currently Intel fortran compiler
| 11:46:03 | |
Does it provide any more information than that? | 11:46:35 | |
If not, you might just have to strace it or something | 11:46:41 | |
But either way this is extremely unlikely to be a stdenv issue | 11:46:48 | |
No. I will do it another day. Thank you for your answer. | 11:53:57 | |
* No. I will strace it another day. Thank you for your answer. | 11:54:14 | |
In reply to @chn:chn.moe stdenv.cc is built via the last bootstrap stage. gcc is built with stdenv.cc so that's why it's different. | 14:03:21 | |
In reply to @chn:chn.moeWhat about using gfortran ? | 14:07:41 | |
29 May 2025 | ||
Many fortran programs in my major does not consist with standard fortran, gfortran will refuse to compile them, while restriction in ifx loose a lot.And, not sure why, but program compiled using ifx usually gains a huge performance improvement, comparing to gfortran or compiler from AMD (ROCM), even on AMD CPU. | 03:27:24 | |
In reply to @chn:chn.moeOh, that's the only fortran I am aware of being in nixpkgs. We might have flang but I can't recall. What about packaging ifx ? | 04:04:28 | |
| 04:06:20 | |
*
That is what I tried to do yesterday. | 04:06:29 | |
Ah | 04:07:52 | |
The Linux stdenv bootstrap doesn’t overlay the versioned gcc attribute. That’s all it is. The Darwin is able to do this for LLVM, so it’s probably possible for Linux, but there’s been no motivating issue to do it for Linux. | 11:53:49 | |
Something like this would probably work for GCC on Linux (but significantly less verbose): https://github.com/NixOS/nixpkgs/blob/adfe0268d8b621c68f0b060fc2e801b5196b5f6a/pkgs/stdenv/darwin/default.nix#L1223-L1246 | 11:55:23 | |
17:28:05 | ||
31 May 2025 | ||
13:47:07 | ||
Wait why can't i invite people here? | 16:33:40 | |
because permission levels are per room | 16:53:35 |