!ayCRiZriCVtuCUpeLp:nixos.org

Nix Cross Compiling

580 Members
127 Servers

Load older messages


SenderMessageTime
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
@k900:0upti.meK900Revert binutils and try it, I guess?16:43:02
@genericnerdyusername:matrix.orgGenericNerdyUsernamein that case it definitely is16:44:01
@genericnerdyusername:matrix.orgGenericNerdyUsernamewait a minute whats binutils with gold?16:44:52
@k900:0upti.meK900Configured to use the gold linker16:45:22
@k900:0upti.meK900Instead of the default bfd one16:45:26
@k900:0upti.meK900gold was an early attempt at writing a fast linker16:46:00
@k900:0upti.meK900It wasn't very fast and was never very finished16:46:08
@genericnerdyusername:matrix.orgGenericNerdyUsernamethen why did we change to the binutils-with-gold source tarball?16:47:14
@k900:0upti.meK900Because that just includes the sources of gold16:47:31

Show newer messages


Back to Room ListRoom Version: 6