!ayCRiZriCVtuCUpeLp:nixos.org

Nix Cross Compiling

581 Members
128 Servers

Load older messages


SenderMessageTime
15 Jun 2025
@rhelmot:matrix.orgrhelmotmany such cases17:58:48
@t4ccer:matrix.orgt4ccer left the room.19:07:04
@t4ccer:matrix.orgt4ccer joined the room.19:46:15
@genericnerdyusername:matrix.orgGenericNerdyUsername trying to use crossPackages.riscv32-embedded.buildPackage.gcc and while it does produce binanries, it ignore my -march=rv32i arg, generating a binary with compressed instructions in it 22:48:46
@genericnerdyusername:matrix.orgGenericNerdyUsernamei have a reproducible setup, but its definitely not minimal22:49:08
@genericnerdyusername:matrix.orgGenericNerdyUsernamedoes work with the 25.05 tag22:52:03
@genericnerdyusername:matrix.orgGenericNerdyUsername* does work with the 25.05 tag of nixpkgs22:53:12
@genericnerdyusername:matrix.orgGenericNerdyUsernamenvm, its there in both, idk how i missed that23:10:35
@genericnerdyusername:matrix.orgGenericNerdyUsernameig i mustve mixed up versions the bug is there in 25.05 but not 24.1123:20:41
16 Jun 2025
@alexfmpe:matrix.orgalexfmpe

John Ericson s1341 : non-prebuilt android builds fails early on with compiler-rt not finding pthreads.h

$  nix-build -A pkgsCross.aarch64-android.hello
...
/build/compiler-rt-src-19.1.7/compiler-rt/lib/builtins/os_version_check.c:287:10: fatal error: 'pthread.h' file not found
  287 | #include <pthread.h>
      |          ^~~~~~~~~~~

been this way for several months, any clue what that's about?

00:51:09
@alexfmpe:matrix.orgalexfmpefeels pretty similar to https://github.com/NixOS/nixpkgs/pull/34407900:51:33
@alexfmpe:matrix.orgalexfmpe *

John Ericson s1341 : non-prebuilt android builds fails early on with compiler-rt not finding pthreads.h

$ nix-build -A pkgsCross.aarch64-android.hello
...
/build/compiler-rt-src-19.1.7/compiler-rt/lib/builtins/os_version_check.c:287:10: fatal error: 'pthread.h' file not found
  287 | #include <pthread.h>
      |          ^~~~~~~~~~~

been this way for several months, any clue what that's about?

00:51:47
@alexfmpe:matrix.orgalexfmpe
$ nix-build -A pkgsCross.mingwW64.abseil-cpp
...
/build/source/absl/base/internal/thread_identity.cc:18:10: fatal error: pthread.h: No such file or directory
   18 | #include <pthread.h>
00:53:51
@alexfmpe:matrix.orgalexfmpewhereas aarch64-android-prebuilt works just fine for both hello and abseil-cpp hmm all places consuming useAndroidPrebuilt seem to basically be doing gcc vs clang shenanigans00:59:49
@alexfmpe:matrix.orgalexfmpe *

John Ericson s1341 : non-prebuilt android builds fails early on with compiler-rt not finding pthreads.h

$ nix-build -A pkgsCross.aarch64-android.hello
...
/build/compiler-rt-src-19.1.7/compiler-rt/lib/builtins/os_version_check.c:287:10: fatal error: 'pthread.h' file not found
  287 | #include <pthread.h>

been this way for several months, any clue what that's about?

02:16:51
@qyliss:fairydust.spaceAlyssa Ross
In reply to @genericnerdyusername:matrix.org
ig i mustve mixed up versions the bug is there in 25.05 but not 24.11
Sounds bisectable?
04:54:54
@genericnerdyusername:matrix.orgGenericNerdyUsernameI did, breaking commit is 6b9c4bbe, which updated binutils from 2.43.1 -> 2.4408:35:01
@genericnerdyusername:matrix.orgGenericNerdyUsernamethe most relevant changelog entry is that a bunch of new extensions are supported now08:36:17
@genericnerdyusername:matrix.orgGenericNerdyUsernameDownload flake.nix09:11:28
@genericnerdyusername:matrix.orgGenericNerdyUsernameexample09:11:33
@genericnerdyusername:matrix.orgGenericNerdyUsernamenew contains c.addi, old does not09:12:08
@genericnerdyusername:matrix.orgGenericNerdyUsername* the most relevant changelog entry is that a bunch of new riscv extensions are supported now09:17:26
@emilazy:matrix.orgemilyI believe our wrapper strips -march by default?09:38:37
@emilazy:matrix.orgemilyI could be wrong09:38:40
@emilazy:matrix.orgemilyyou're really meant to specify that stuff in the Nixpkgs system structure09:38:58
@emilazy:matrix.orgemilyusing an unwrapped compiler may also be an option09:39:22
@genericnerdyusername:matrix.orgGenericNerdyUsername what would i have to do use the unwrapped compiler? is it as simple as replacing gcc with gccUnwrapped or is there more to it? 16:31:36
@genericnerdyusername:matrix.orgGenericNerdyUsername also why would a binutils update mean that -march getting stripped suddenly matters? 16:34:15
@k900:0upti.meK900-march should not be stripped unless it's =native IIRC16:34:30
@genericnerdyusername:matrix.orgGenericNerdyUsernamehow would i tell if this is a binutils regression?16:42:42

Show newer messages


Back to Room ListRoom Version: 6