!ayCRiZriCVtuCUpeLp:nixos.org

Nix Cross Compiling

581 Members
128 Servers

Load older messages


SenderMessageTime
23 Apr 2025
@dramforever:matrix.orgdramforeveri don't have the logs conveniently available but it's something like "sorry, unimplemented" for a few random functions16:25:56
@rosssmyth:matrix.org@rosssmyth:matrix.orgThen something is messed up with how newlib is being built because I ship firmware that uses those exact flags.16:27:16
@dramforever:matrix.orgdramforeveri'm not surprised that arm's gcc is different from what we have in nixpkgs16:28:16
@dramforever:matrix.orgdramforeveror newlib16:28:23
@rosssmyth:matrix.org@rosssmyth:matrix.orgarm's gcc is just upstream gcc with some config flags afaik. 16:28:40
@rosssmyth:matrix.org@rosssmyth:matrix.orgDownload 14.2.rel1-x86_64-arm-none-eabi-manifest.txt16:30:29
@rosssmyth:matrix.org@rosssmyth:matrix.orgthat's the manifest16:30:34
@rosssmyth:matrix.org@rosssmyth:matrix.org* that's the config manifest16:31:04
@rosssmyth:matrix.org@rosssmyth:matrix.orgThere should be some sort of solution. The arm-embedded gcc supports multiple arches, the mainly limiter is the libc. Clang has some way of only rebuilding compiler-rt for different targets. Even rebuilding the libc would be acceptable.16:33:12
@dramforever:matrix.orgdramforeveri'm not familiar with gcc internals, but i guess we can have some sort of database of "base" gccs16:36:47
@dramforever:matrix.orgdramforever the main difference between gcc and clang in this regard is that one single clang can support all targets 16:37:03
@rosssmyth:matrix.org@rosssmyth:matrix.orgYes, Clang is sane. But right now a clang stdenv can't be built for arm-embedded16:39:08
@rosssmyth:matrix.org@rosssmyth:matrix.orgRedacted or Malformed Event16:39:55
@rosssmyth:matrix.org@rosssmyth:matrix.org * Yes, Clang is sane. But right now a clang stdenv can't be built for arm-embedded 16:41:47
@dramforever:matrix.orgdramforevercan you confirm that arm-embedded has ever worked before?16:41:52
@dramforever:matrix.orgdramforever to me it doesn't seem like pkgsCross.arm-embedded.stdenv.cc should successfully build for -mcpu=cortex-m0 16:43:12
@dramforever:matrix.orgdramforeverit is effectively an unimplemented case16:43:29
@dramforever:matrix.orgdramforever* it is effectively an unimplemented case in nixpkgs16:43:34
@rosssmyth:matrix.org@rosssmyth:matrix.orgDefine "worked"16:44:09
@dramforever:matrix.orgdramforeversuccessfully produce a program for cortex-m016:44:35
@rosssmyth:matrix.org@rosssmyth:matrix.orgI showed you how I have done it, and it compiled successfully. I have not flashed any firmware, and inspecting the objdump it would have failed to flash.16:44:42
@rosssmyth:matrix.org@rosssmyth:matrix.orgI also just opened an issue because the armv6-m machinery is messed up and doesn't generate the correct gcc16:45:12
@rosssmyth:matrix.org@rosssmyth:matrix.org* I also just opened an issue because the armv6-m machinery is messed up and doesn't generate the correct gcc wrapper16:45:19
@dramforever:matrix.orgdramforever maybe i misunderstood but did you ever have an old version of nixpkgs that had a working pkgsCross.arm-embedded.stdenv.cc 16:46:29
@dramforever:matrix.orgdramforeveragain, as in, produce code correctly for cortex-m016:46:46
@rosssmyth:matrix.org@rosssmyth:matrix.orgno16:46:50
@dramforever:matrix.orgdramforeverokay thanks for clarifying16:47:01
@dramforever:matrix.orgdramforever this is the thing i'm getting
../.././newlib/libm/math/e_atanh.c:73:1: sorry, unimplemented: '-fstack-check=specific' for Thumb-1
16:47:41
@dramforever:matrix.orgdramforeverand like, tens of other errors on other similar functions16:47:52
@rosssmyth:matrix.org@rosssmyth:matrix.orgOk16:48:48

Show newer messages


Back to Room ListRoom Version: 6